SBoRA: Low-Rank Adaptation with Regional Weight Updates

Lai-Man Po, Yuyang Liu, Haoxuan Wu, Tianqi Zhang, Wing-Yin Yu +3 more
7/7/2024
6 citations
cs.AIcs.CLcs.LG
lora-peft-merging

Official code: cityuhkai/SBoRA (11 stars, Python, last commit 2024-09-09).

Abstract

This paper introduces Standard Basis LoRA (SBoRA), a novel parameter-efficient fine-tuning approach for Large Language Models that builds upon the pioneering works of Low-Rank Adaptation (LoRA) and Orthogonal Adaptation. SBoRA reduces the number of trainable parameters by half or doubles the rank with the similar number of trainable parameters as LoRA, while improving learning performance.

Show full abstract

By utilizing orthogonal standard basis vectors to initialize one of the low-rank matrices (either $\mathbf{A}$ or $\mathbf{B}$), SBoRA facilitates regional weight updates and memory-efficient fine-tuning. This results in two variants, SBoRA-FA and SBoRA-FB, where only one of the matrices is updated, leading to a sparse update matrix $\mathrmΔ \mathbf{W}$ with predominantly zero rows or columns. Consequently, most of the fine-tuned model's weights $(\mathbf{W}_0+\mathrmΔ \mathbf{W})$ remain unchanged from the pre-trained weights, akin to the modular organization of the human brain, which efficiently adapts to new tasks. Our empirical results demonstrate the superiority of SBoRA-FA over LoRA in various fine-tuning tasks, including commonsense reasoning and arithmetic reasoning. Furthermore, we evaluate the effectiveness of QSBoRA on quantized LLaMA models of varying scales, highlighting its potential for efficient adaptation to new tasks. Code is available at https://github.com/cityuhkai/SBoRA

View on arXivView PDF

Code Implementations(1)

cityuhkai/SBoRAOfficial100%
111Python, ShellJul 6, 20242 years ago
low-rank-adaptationnatural-language-processingparameter-efficient-fine-tuning

Similar Papers

Cite this paper

@article{po2024sbora,
  title  = {SBoRA: Low-Rank Adaptation with Regional Weight Updates},
  author = {Lai-Man Po and Yuyang Liu and Haoxuan Wu and Tianqi Zhang and Wing-Yin Yu and Zhuohan Wang and Zeyu Jiang and Kun Li},
  year   = {2024},
  eprint = {2407.05413},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.05413v3}
}

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/2407.05413.svg)](https://codeofpaper.com/paper/2407.05413)

Discussion