If you change LoRA's rank from 16 to 64 with α fixed, what actually happens?
Raising LoRA rank 16 to 64 with α fixed quadruples trainable params but quarters the effective update, because the scaling factor is α divided by r.
Think of LoRA as a small dimmer switch bolted onto a big frozen lamp. The rank is how many tiny wires the dimmer has: more wires means it can shape light in more ways, so going from 16 to 64 wires roughly quadruples the parts you adjust. But there is also one master volume knob set to alpha divided by rank. When you add wires without turning alpha up, that master knob automatically turns down by the same factor. So you have built a richer dimmer, yet you have also dialled its overall brightness down to a quarter. To keep the brightness steady, you raise alpha alongside the rank.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: separate the two dials, derive the param-count scaling, derive the alpha over r scaling, explain why they oppose, then cover the alpha tied to rank convention and rank-stabilised LoRA.
| Quantity | Depends on | Effect of r: 16 to 64 with alpha fixed |
|---|---|---|
| Trainable parameters | Shape of B and A | Roughly quadruples (grows linearly with r) |
| Scaling factor alpha over r | Forward-pass scalar | Shrinks fourfold |
| Effective update magnitude | Scaling factor times BA | Quartered, so training appears to slow |
| Fix | Tie alpha to r | Ratio held constant, only capacity changes |
Real products, models, and research that use this idea.
- Hugging Face PEFT exposes both lora_alpha and r, and its docs warn users to scale alpha with rank rather than leave it pinned.
- The rank-stabilised LoRA option (use_rslora) in PEFT divides by the square root of r so high-rank adapters of Llama 4 stay stable during fine-tuning.
- Unsloth and Axolotl recipes for fine-tuning Llama 4 and DeepSeek V4 default to alpha equal to twice the rank for exactly this decoupling reason.
- QLoRA fine-tunes of Mistral and Llama 4 commonly use rank 64 with alpha 16, an aggressive low-scale choice teams pick deliberately, not by accident.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does the LoRA paper scale by alpha over r instead of just learning the magnitude inside BA?
QHow does rank-stabilised LoRA change the scaling, and why might dividing by the square root of r be better at high rank?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming rank only affects parameter count. It also moves the α over r scaling factor, so raising rank with α fixed silently shrinks every update.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.