Visual explainer
LoRA Low-Rank Tuning
Retraining giant weights costs a fortune. See how a frozen base plus a thin detour learns new skills for pennies.
You want a new skill in a giant model. Full tuning rewrites billions of weights with gradients and optimizer states for each. Your single GPU cannot hold that bill.
Freeze Base Train Detour
Freeze your giant matrix and learn a thin detour beside it. A tall skinny matrix feeds a short wide one through a tiny rank bottleneck. Only the thin pair learns anything new.
Count Real Saved Weights
Here is the focal math. A 4096 by 4096 layer holds 16.7 million weights. Rank 8 needs 4096 times 8 twice, which is 65,536. That is about 256 times smaller for the same shape.
Sum Both Paths Together
Your input travels two roads at once. Frozen weights give the old answer while the detour gives the new tweak. Summed outputs act like retrained weights with no added delay after merging.
Tiny Update Matches Style
Same style task, two bills. Full tuning shifts tone well at full memory. Your thin detour matches that tone at a sliver of memory. Style lives in few directions, so rank stays tiny.
Size Rank To Task
Keep rank near 4 or 8 for tone and format, since few directions rule them. Raise rank toward 32 or 64 when skills grow knottier. Flip high only while scores still climb with rank.
Where It Breaks
Thin detours cannot inject deep new facts. New languages or fresh science need wider paths than style tweaks do. When new knowledge stalls while style flies, your rank is too thin.
The Quick Version
- Full tuning rewrites billions of weights.
- Freeze the base, train a thin detour.
- Rank 8 shrinks updates about 256 times.
- Both paths sum to the answer.
- Tiny detours match style tuning well.
- Small rank for style, bigger for skills.
- Deep new facts still need wider rank.