Asymmetry in Low-Rank Adapters of Foundation Models

Jiacheng Zhu, Kristjan H. Greenewald, Kimia Nadjahi, Haitz Sáez de Ocáriz Borde, Rickard Brüel Gabrielsson, Leshem Choshen, Marzyeh Ghassemi, Mikhail Yurochkin, Justin Solomon · DOI

Introduction

Fine-tuning large-scale foundation models, such as Llama or Vision Transformers (ViT), presents a significant computational hurdle. Low-Rank Adaptation (LoRA) has emerged as the industry standard for parameter-efficient fine-tuning (PEFT), introducing a weight update $\Delta W = BA$ where $A$ and $B$ are low-rank matrices. While widely adopted, the internal dynamics and relative importance of $A$ and $B$ have remained poorly understood. This research investigates a fundamental asymmetry in LoRA: the two matrices perform distinct roles, and optimizing only one can lead to superior efficiency and generalization.

The Functional Roles of A and B

The authors propose a functional decomposition of the LoRA adapter. In this framework, the $A$ matrix acts as a feature extractor, projecting high-dimensional input into a compressed low-rank subspace. Conversely, the $B$ matrix serves as an output generator, mapping these extracted features to the target task's requirements.

Because foundation models are inherently over-parameterized, the input features often contain significant redundancy. Consequently, a random projection via a fixed $A$ matrix is often sufficient to capture necessary information. The critical learning happens in $B$, which must precisely align these features with the specific output task. This hypothesis is supported by analyzing the pairwise similarity of learned matrices across different training runs.

Pairwise similarity of learned A and B matrices across different initialization and task settings, illustrating the inherent asymmetry between the two components.

Empirical Evidence of Asymmetry

As shown in the similarity analysis, when models are trained on the same task with different random seeds (Figure 4a), the learned $B$ matrices converge to significantly more similar solutions than the $A$ matrices. This suggests that $B$ captures the essential task-specific transformations, while $A$ explores a more varied space of feature projections. When tasks differ (Figure 4c), similarity drops for both, confirming that the learned updates are indeed task-dependent.

Performance and Parameter Efficiency

The study compared standard LoRA (training both $A$ and $B$) against variants where one matrix is frozen. The results on the GLUE benchmark demonstrate that training only $B$ with a frozen random $A$ matrix achieved performance parity with standard LoRA while utilizing only half the trainable parameters.

Performance comparison of various parameter-efficient fine-tuning (PEFT) methods on the GLUE benchmark. Note that training only B (B0 Arand) achieves competitive results with significantly fewer parameters.

Key findings from the empirical evaluation include:

  • Generalization: Models training only $B$ showed improved robustness on Out-of-Domain (OOD) data in vision tasks. Theoretically, this is supported by tighter generalization bounds derived from the reduced number of trainable parameters.
  • Rank-Efficiency Trade-off: Given a fixed parameter budget, it is more effective to use a higher rank $r$ for a trained $B$ (with a frozen $A$) than a lower rank for both matrices. For instance, $r=16$ for $B$ alone outperforms $r=8$ for both $A$ and $B$ despite having the same parameter count.
  • Initialization: The best results for frozen $A$ matrices come from using random orthogonal initialization rather than standard Gaussian noise.

Conclusion

The discovery of asymmetry in LoRA provides a path toward more efficient fine-tuning. By freezing the feature-extracting $A$ matrix and focusing training efforts on the output-generating $B$ matrix, practitioners can reduce the parameter footprint of adapters by 50% without sacrificing performance. This approach not only simplifies the optimization process but also enhances the model's ability to generalize to unseen domains, making it a powerful strategy for scaling foundation model adaptation.

Summary updated

BibTeX
@inproceedings{zhu2024asymmetry,
  author = {Jiacheng Zhu and Kristjan H. Greenewald and Kimia Nadjahi and Haitz Sáez de Ocáriz Borde and Rickard Brüel Gabrielsson and Leshem Choshen and Marzyeh Ghassemi and Mikhail Yurochkin and Justin Solomon},
  title = {{Asymmetry in Low-Rank Adapters of Foundation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=txRZBD8tBV},
}
Figure