Open Interpretability Models Contributors Research Posts About

Mechanistic Insights into LoRA: Layer Sparsity via Path Patching

Source

Citation. Fei Zuo (East China Normal University), Yizhou Huang and Kezhi Wang (Brunel University of London). "Mechanistic Insights into LoRA: Layer Sparsity for Adaptive Fine-Tuning via Path Patching". arXiv:2610.34756 [cs.LG], v1, 26 October 2026. Paper, licence CC BY 4.0. The arXiv comment says "Accepted at NeurIPS 2026 (Main Track)". The paper gives no code link. Its checklist says that a code release is "planned under the MIT license". The tools are PyTorch, Hugging Face Transformers, PEFT and TransformerLens. Funding is from UKRI, Horizon Europe, the MSCA, the Royal Society and the NVIDIA Academic Grant Program. Mismatch: the title and the introduction name path patching, but the method that the body describes is a zero-ablation of whole blocks (see below).

Status. Planned. #5125 asks whether VERIFIED explanations keep through narrow fine-tunes, and a LoRA arm of it could use this paper's layer choice as one arm. No code, skill or protocol in this repo depends on it. The maintainer designs the campaign to fix models (#4784, #5220), so this page reports evidence and records questions only.

Read. On 2026-11-21 a web-fetch subagent (Claude) read the arXiv abstract page and the full HTML text in four consecutive parts. We have every section, from the abstract to the NeurIPS checklist, in the source's own words. That includes the appendices and Tables 1–18. We saw Figures 1–6 only as captions. We did not read the PDF or the TeX source. The reader was this page's author, a model (Claude Opus 5.5), through that subagent's report.

Summary

Claim. Standard LoRA adapts every layer, but layers contribute unequally. A cheap causal score on the frozen base model picks the layers that matter for a task. LoRA on about 30% of the layers then matches or beats LoRA on all of them. The important layers depend on the task, and two tasks share few of them.

Method.

Findings, as the source reports them. All numbers are from the paper's text or tables.

Setting Result
Qwen2.5-0.5B, four datasets, rank-8 LoRA on Q/K/V The MLP has 58.4% of the measured effect, attention 41.6% (range 57.3–59.5% for the MLP)
Same V has about 46% of the attention effect, Q and K about 27% each
Same, top 7 of 24 layers Mean Jaccard overlap of the chosen layers across six task pairs: 39.5% (27.3–75.0%)
Same, 100 inputs, five adapter settings The base model's layer ranking agrees with the trained adapter's: Spearman 0.630–0.893
Qwen2.5-1.5B, rank 16, 8 of 28 layers, seed 42 (Table 1) Commonsense average 59.1, against 56.9 for LoRA, 57.9 for LoRA+ and 55.5 for DoRA
Same, rank 32 Commonsense 62.2 against 60.4 for LoRA. Math 47.8, against 45.5 for LoRA and 47.3 for LoRA+. A 3.5× smaller adapter
Table 2, rank 16, seed 42, commonsense, Adaptive against LoRA Qwen2.5-0.5B +1.5, Qwen2.5-1.5B +2.2, Qwen2.5-3B +1.9, LLaMA-3 3B +1.2, Qwen3-8B +0.0, Qwen3-32B −0.2
Alpaca-ZH perplexity, 12 of 36 layers (Table 9) Adaptive 12.32, sequential 14.06, reverse 15.00, random 16.42
Calibration size, Qwen2.5-1.5B (Table 12) N = 10 gives 59.4, N = 30 gives 59.8, N = 100 gives 59.7
Five calibration draws of N = 30 (Table 14) Jaccard overlap of the chosen layers 0.617–0.747 across six models
Three seeds, eight settings (Table 10) Mean paired gains of +0.17 to +1.57 points
Calibration cost O(NL) forward passes with no gradient, 20–62 s on one A100 for N = 30

Where the claims go beyond the evidence

The authors give some limits themselves. They select whole layers, not heads or neurons. They test only commonsense and math tasks. They say that they "lack a formal theoretical framework" for why early layers matter most. They fix the chosen layers before training.

Use in this repo