Introduction
Low-Rank Adaptation (LoRA) is the industry standard for efficiently fine-tuning Large Language Models (LLMs). In a standard LoRA layer, weight updates are decomposed into two low-rank matrices, $A$ and $B$. To ensure that the fine-tuning process starts with the exact behavior of the original pretrained model, researchers conventionally initialize $B$ to zero.
However, this practice lacks a solid theoretical foundation. Furthermore, LoRA is notoriously sensitive to the choice of learning rate. If the learning rate is too small—a common occurrence during the "decay" phase of training—LoRA's feature learning can become inefficient. This paper asks a fundamental question: Is zero-initialization actually optimal, or is it just a safe default that limits LoRA's potential?
The authors demonstrate that this "zero-init" rule is unnecessary. Initializing both matrices to non-zero values makes fine-tuning significantly more robust to suboptimal learning rates and can even speed up convergence without hurting final accuracy.
Methods
The authors investigate LoRA dynamics through the lens of Scaling Theory, specifically examining the "infinite-width" limit. They utilize a mathematical tool called the $\gamma$-operator to track how different variables, such as gradients and weight updates, behave as the model's width ($n$) grows toward infinity.
They compare two main strategies:
- Init[A] (Standard): Matrix $A$ is initialized randomly (e.g., Kaiming init), and $B$ is set to zero.
- Init[AB] (Proposed): Both $A$ and $B$ are initialized to non-zero values drawn from a normal distribution with the same variance.
The researchers analyze these strategies based on three criteria:
- Stability: Ensuring the outputs don't explode as the model gets wider.
- Efficiency: Ensuring the low-rank matrices actually learn useful features.
- Robustness: How well the model performs when the learning rate isn't perfectly tuned.
Datasets
The authors validated their theory across a diverse range of tasks and models:
- Toy Models: MNIST and FashionMNIST to verify basic optimization dynamics.
- Natural Language Understanding (NLU): The GLUE benchmark (including MRPC, CoLA, SST-2, and QNLI) using T5-Base.
- Natural Language Generation (NLG): Commonsense reasoning and arithmetic reasoning benchmarks using Llama 3-8B.
Key Insights
- The Robustness "Aha" Moment: Theoretical analysis reveals that Init[AB] decouples the learning dynamics of the two matrices. In standard zero-init, if the learning rate is small, the "linear" updates to the matrices are suppressed. Non-zero initialization provides a "head start" that allows the optimizer (specifically Adam) to maintain effective updates even at lower learning rates.
- Pretrained Models are "Noisy" Anyway: A common fear is that non-zero initialization introduces "noise" by shifting the model away from its pretrained starting point. The authors argue that pretrained weights are already suboptimal for downstream tasks. Their experiments show that LLMs are remarkably resilient to this initial shift; the fine-tuning process easily "corrects" the starting noise.
- You Don't Need to Subtract: Some previous methods tried non-zero initialization but "corrected" it by subtracting the initial product ($BA$) from the pretrained weights to keep the starting point at zero. This paper shows that this extra step is unnecessary—you can simply add the LoRA layers and start training.
Key Results
Extensive experiments confirmed the theoretical findings, showing marked improvements in robustness and speed.
- Superior Robustness: In heatmaps comparing learning rates and initialization scales, Init[AB] consistently showed a much larger "green zone" of high performance compared to standard LoRA. It is far less sensitive to suboptimal learning rate choices.
- Accuracy Boost: On GLUE tasks, Init[AB] achieved up to a 10% accuracy improvement over standard LoRA when using smaller, suboptimal learning rates.
- Faster Convergence: On the QNLI dataset, Init[AB] reached peak accuracy nearly 2x faster than the standard zero-initialization approach.
- Consistency: The benefits held true for both smaller models like T5 and massive models like Llama 3, suggesting this is a fundamental property of LoRA dynamics.
Limitations and Future Work
- Optimizer Focus: The theoretical analysis focuses heavily on the Adam optimizer due to its gradient normalization properties. While the authors touch on SGD in the appendix, the benefits of Init[AB] are most pronounced with Adam.
- Variance Limits: While the model is robust to initial noise, there is an upper limit. If the initialization variance is exceedingly large (e.g., $\beta \ge 8$ in their tests), the noise finally outweighs the benefits, and performance drops.
- Infinite Width Assumption: The theory relies on the infinite-width limit. While LLMs are "wide," they are finite, and the exact transition point where these asymptotic behaviors dominate could be explored further in future work.
Summary updated