short · 3 min
LoRA
Fine-tuning by freezing the model and training a small add-on next to each weight matrix.
updated 29 Sept 2026
Here's a strange number. When LoRA was first tried on GPT-3, it trained 10,000 times fewer parameters than normal fine-tuning, used a third of the GPU memory, and did about as well. How do you leave almost the whole model alone and still change what it does?
One matrix, plus a thin correction
A transformer is mostly big square weight matrices. Let's take one, , with numbers in it. Full fine-tuning learns a change to every one of those numbers.
LoRA's bet is that the change we need is much simpler than the matrix itself. So it freezes and learns the change as two thin matrices multiplied together: , which is , and , which is . The rank is small, anywhere from 1 to a few hundred. The layer now uses
where is a fixed scaling number. starts at zero, so on step one the model behaves exactly like the original. Only and get trained.
For a sense of scale: on an 8-billion-parameter Llama with LoRA on every layer at rank 256, we train about 0.7 billion numbers.
Memory is where it really pays. Full fine-tuning keeps gradients and optimizer state for every weight, so it usually needs about ten times the hardware that just running the model does. LoRA keeps that state only for the thin matrices. And because the base model never changes, the add-on (people call it an adapter) is a small separate file. One server can hold many adapters on top of a single copy of the base model and answer requests for all of them in the same batch.
Does it actually match full fine-tuning?
That's been argued for years. The original paper said yes, on the models of 2021.
Then in 2024 a study on code and math said no. With about 100,000 training pairs, LoRA did a lot worse than full fine-tuning. It did forget less of what the base model knew outside those topics, which is nice. And full fine-tuning turned out to learn changes of much higher rank than the usual LoRA setup allows, which could explain the gap.
In 2025 a team swept the learning rate for every run and found most of the gap was setup. Two mistakes did most of the damage. Putting LoRA only on the attention layers falls short, even with the same number of trained numbers; it needs every layer, the MLP ones especially. And LoRA wants a learning rate about ten times higher than full fine-tuning. With those fixed, on instruction and reasoning data of normal post-training size, LoRA did the same as full fine-tuning. For reinforcement learning, even rank 1 was enough, since each episode only hands back one reward number.
Everyone agrees on one limit. When the dataset gets so big it looks like pretraining, it holds more than the thin matrices can absorb, and LoRA falls behind. It also copes worse with very large batches, and a higher rank doesn't help there.
So if you're starting out today: LoRA on all layers, learning rate around ten times what you'd use for full training, and keep the base model in fewer bits if memory is still tight (that's quantization).
What's still open is how far "the same" stretches. The 2025 result is mostly measured as training and test loss, and loss isn't your task. Your own evals on held-out data are the only way to know for your case.
Further reading
- LoRA Without Regret, John Schulman and Thinking Machines Lab, 2025. The one to read if you're setting up a run. When LoRA matches full fine-tuning and the settings that get it there.
- LoRA: Low-Rank Adaptation of Large Language Models, Edward Hu et al. (Microsoft), 2021. The original idea and the GPT-3 savings.
- LoRA Learns Less and Forgets Less, Dan Biderman et al., 2024. The case against, on code and math, and the upside of forgetting less.