Open Interpretability Models Contributors Research Posts About

LoRA: Low-Rank Adaptation of Large Language Models

Source

Citation. Edward Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang and Weizhu Chen, all of Microsoft Corporation. Hu and Shen made an equal contribution. Li also gives an address at Carnegie Mellon University. "LoRA: Low-Rank Adaptation of Large Language Models". arXiv:2106.09685, version 2 of 16 October 2021. Version 1 is of 17 June 2021. A note says that version 2 adds better baselines, GLUE experiments and more on adapter latency. Venue: ICLR 2022, as the issue states. The arXiv v2 text names no venue, so this page did not check the venue in the source. Code, the loralib package and checkpoints for RoBERTa, DeBERTa and GPT-2 are at github.com/microsoft/LoRA. The authors release no GPT-3 adapters. The text names no funding. All experiments ran on NVIDIA Tesla V100 GPUs, and the latency study on one Quadro RTX8000.

Status. Planned. #4782 (catastrophic interference, weight-space programming and LoRA) would use it in its synthesis page. #5133 reads the same kind of Δ that the paper's section 7 reads. The page proposes one follow-up that reads weights only. The fix campaign is the maintainer's, so this page reports evidence and records questions only.

Read. On 2026-11-19 we downloaded the arXiv v2 PDF (26 pages) and extracted its text with pdftotext. The reader was this page's author, a model (Claude Opus 5.5). We read in the source's own words the abstract, sections 1 to 8 and Appendices A to H. We read Tables 1 to 8 and 10 to 18 as text. We did not see the figures as images. So this page gives Figures 2 to 8 only through their captions and the numbers that the text states. The text of Table 9 (RoBERTa hyperparameters) and of section D.1 came through only in part. We did not read the references in full, the ICLR version or its OpenReview discussion.

Summary

Claim. The weight change that adapts a pre-trained language model to a task has a low "intrinsic rank". So one can freeze each weight matrix W0 and train only a low-rank update ΔW = BA. On RoBERTa, DeBERTa, GPT-2 and GPT-3 175B, this matches or beats full fine-tuning with far fewer trainable parameters. The update merges into W0, so it adds no inference latency.

Method.

Findings, as the source reports them.

Setting Result
GPT-3 175B, training memory and checkpoint (section 4.2) VRAM falls from 1.2TB to 350GB. With r = 4 on Wq and Wv, the checkpoint falls from 350GB to 35MB
GPT-3 175B, throughput (footnote 5) 32.5 tokens/s per V100 for FT, 43.1 for LoRA
GPT-2 medium latency, batch 1, sequence 128 (Table 1) FT or LoRA 19.8±2.7 ms. AdapterL +20.7%, AdapterH +30.3%
GLUE mean, RoBERTa base (Table 2) FT 86.4 (125.0M parameters, prior work). LoRA 87.2 (0.3M)
GLUE mean, DeBERTa XXL (Table 2) FT 91.1 (1500.0M, prior work). LoRA 91.3 (4.7M)
E2E NLG BLEU, GPT-2 medium (Table 3) FT 68.2 (354.92M, prior work). LoRA 70.4±.1 (0.35M)
GPT-3 175B (Table 4) FT: WikiSQL 73.8, MNLI-m 89.5, SAMSum 52.0/28.0/44.5. LoRA 4.7M: 73.4, 91.7, 53.8/29.8/45.9. LoRA 37.7M: 74.0, 91.6, 53.4/29.2/45.1
GPT-3, seed spread (Table 4 caption) About ±0.5% on WikiSQL, ±0.1% on MNLI-m, ±0.2/±0.2/±0.1 on SAMSum
GPT-3, rank with Wq and Wv adapted (Table 6) r = 1: WikiSQL 73.4, MNLI 91.3. r = 64: 73.5, 91.4
GPT-3, rank with Wq only (Table 6) r = 1: WikiSQL 68.8. r = 4: 70.5
GPT-3, 18M budget across weight types (Table 5) Wq alone 70.4 on WikiSQL. Wq and Wv 73.7. All four 73.7
GPT-3, ranks 8 and 64, layer 48 (section 7.2) The two share "a subspace of dimension 1 with normalized similarity > 0.5" in ΔWq and ΔWv
GPT-3 layer 48, ΔWq against Wq, r = 4 (Table 7) ‖Uᵀ Wq Vᵀ‖F is 0.32 for ΔWq's directions, 21.67 for Wq's own top directions, 0.02 for random. ‖Wq‖F = 61.95, ‖ΔWq‖F = 6.91
Same, r = 64 (Table 7) 1.90 for ΔWq's directions, 37.71 for Wq's, 0.33 for random. ‖ΔWq‖F = 3.57
Amplification factor (section 7.3, H.4) About 21.5 for r = 4 (6.91/0.32), and "around 2" for r = 64
Overlap of ΔWq with Wq's top directions (H.3) The similarity between ΔW's top 4 directions and the top 10% of W's "barely exceeds 0.2"
GPT-2 medium, rank sweep on E2E (Table 18) Validation loss is lowest (1.16) from r = 16. BLEU peaks at r = 4 (70.38)
GPT-3, MNLI with 100 examples (Table 16) FT 60.2, PrefixEmbed 37.6, LoRA 63.8
GPT-3, few-shot against FT (Table 8) MNLI-m 40.6 against 89.5. RTE 69.0 against 85.4

From Table 7, the authors conclude three things. ΔW correlates with W more than a random matrix does. ΔW does not repeat W's top singular directions. And ΔW amplifies "features" that W holds but does not emphasize. In their words, the update "potentially amplifies the important features for specific downstream tasks". These are features "learned but not emphasized" in pre-training. H.4 adds that one should expect a different set of directions to be amplified for each task.

Where the claims go beyond the evidence

The authors include random baselines in Figure 4 and Table 7, a null for the subspace claims. They also state the main limit of the merge. Once A and B are inside W, one pass cannot easily batch inputs for different tasks.

Use in this repo