LoRA+: Efficient Low Rank Adaptation of Large Models

Soufiane Hayou, Nikhil Ghosh, Bin Yu
2/19/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: nikhilgsh/loraplus (235 stars, MIT, last commit 2024-06-24).

Abstract

In this paper, we show that Low Rank Adaptation (LoRA) as originally introduced in Hu et al. (2021) leads to suboptimal finetuning of models with large width (embedding dimension). This is due to the fact that adapter matrices A and B in LoRA are updated with the same learning rate. Using scaling arguments for large width networks, we demonstrate that using the same learning rate for A and B does not allow efficient feature learning. We then show that this suboptimality of LoRA can be corrected simply by setting different learning rates for the LoRA adapter matrices A and B with a well-chosen ratio. We call this proposed algorithm LoRA$+$. In our extensive experiments, LoRA$+$ improves performance (1-2 $\%$ improvements) and finetuning speed (up to $\sim$ 2X SpeedUp), at the same computational cost as LoRA.

View on arXivView PDF

Code Implementations(1)

nikhilgsh/loraplusCommunity100%
MIT
23520Shell, PythonFeb 19, 20242 years agoMIT

Similar Papers

Cite this paper

@article{hayou2024lora,
  title  = {LoRA+: Efficient Low Rank Adaptation of Large Models},
  author = {Soufiane Hayou and Nikhil Ghosh and Bin Yu},
  year   = {2024},
  eprint = {2402.12354},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.12354v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.12354.svg)](https://codeofpaper.com/paper/2402.12354)

Discussion