arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.05413cs.AIcs.CLcs.LG
收藏

SBoRA:带有区域权重更新的低秩适配

SBoRA: Low-Rank Adaptation with Regional Weight Updates

City University of Hong Kong(香港城市大学)

Lai-Man Po, Yuyang Liu, Haoxuan Wu, Tianqi Zhang, Wing-Yin Yu, Zhuohan Wang, Zeyu Jiang, Kun Li

AI总结:

本研究提出基于标准基的低秩适配方法SBoRA,通过单低秩矩阵更新实现区域权重高效微调,在多推理任务上优于LoRA,且量化版本适配不同规模LLaMA模型效果良好。

摘要:

本文提出了标准基低秩适配(Standard Basis LoRA,SBoRA),这是一种面向大语言模型的新型参数高效微调方法,建立在低秩适配(Low-Rank Adaptation,LoRA)和正交适配的开创性工作基础之上。SBoRA可将可训练参数数量减少一半,或是在可训练参数数量与LoRA相近的情况下将秩翻倍,同时提升学习性能。通过利用正交标准基向量初始化其中一个低秩矩阵($\boldsymbol{A}$或$\boldsymbol{B}$),SBoRA实现了区域权重更新和内存高效的微调。由此产生了SBoRA-FA和SBoRA-FB两个变体,二者仅更新其中一个矩阵,从而得到主要由零行或零列构成的稀疏更新矩阵$\boldsymbol{\u0394 W}$。因此,微调后模型的大部分权重$(\boldsymbol{W}_0+\boldsymbol{\u0394 W})$与预训练权重相比保持不变,类似于人脑的模块化组织方式,能够高效适配新任务。我们的实验结果表明,在包括常识推理和算术推理在内的多种微调任务中,SBoRA-FA的性能优于LoRA。此外,我们还在不同规模的量化LLaMA模型上评估了QSBoRA的有效性,凸显了其高效适配新任务的潜力。代码可在https://github.com/cityuhkai/SBoRA获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑