SBoRA: Low-Rank Adaptation with Regional Weight Updates

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Po, Lai-Man, Liu, Yuyang, Wu, Haoxuan, Zhang, Tianqi, Yu, Wing-Yin, Wang, Zhuohan, Jiang, Zeyu, Li, Kun
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917797212192768
author Po, Lai-Man
Liu, Yuyang
Wu, Haoxuan
Zhang, Tianqi
Yu, Wing-Yin
Wang, Zhuohan
Jiang, Zeyu
Li, Kun
author_facet Po, Lai-Man
Liu, Yuyang
Wu, Haoxuan
Zhang, Tianqi
Yu, Wing-Yin
Wang, Zhuohan
Jiang, Zeyu
Li, Kun
contents 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. 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
format Preprint
id arxiv_https___arxiv_org_abs_2407_05413
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SBoRA: Low-Rank Adaptation with Regional Weight Updates
Po, Lai-Man
Liu, Yuyang
Wu, Haoxuan
Zhang, Tianqi
Yu, Wing-Yin
Wang, Zhuohan
Jiang, Zeyu
Li, Kun
Artificial Intelligence
Computation and Language
Machine Learning
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. 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
title SBoRA: Low-Rank Adaptation with Regional Weight Updates
topic Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2407.05413