The ΔW = BA decomposition, target-module selection, and parameter-count math for rank and target fraction.
RANK rΔW = B·A · r=1654.7M TRAINABLE (0.78% OF 7B)
Fine-tune updates are empirically low-rank. A stays Gaussian, B starts at zero, so the pretrained function is preserved exactly when training begins.
ARCHITECTURE & FORMULATIONModule 3: SFT Deep Dive
Why low-rank adaptation works
Fine-tuning updates empirically live in low-dimensional subspaces: the change to a big weight matrix is close to low rank. LoRA exploits that by learning ΔW = B·A directly, freezing the original W and training only the small factors.
The Factorization
For a d×d weight matrix, full fine-tuning trains d² parameters; LoRA trains 2·r·d. With d=4096 and r=16, that is ~0.4% of the original.
Initialization
A starts Gaussian, B starts at zero — so ΔW = 0 at step one and the pretrained function is preserved exactly when training begins.
Scaling α
The update is scaled by α/r. Changing rank without re-tuning α silently changes the effective learning rate.