arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.06854cs.CL
收藏

LoRA$^2$:用于大语言模型微调的多尺度低秩近似

LoRA$^2$ : Multi-Scale Low-Rank Approximations for Fine-Tuning Large Language Models

School of Electronic and Electrical Engineering, Shanghai University of Engineering Science(上海工程技术大学电子与电气工程学院)

Jia-Chen Zhang, Yu-Jie Xiong, He-Xi Qiu, Dong-Hai Zhu, Chun-Ming Xia

AI总结:

针对大语言模型单尺度LoRA微调的不足,提出多尺度低秩近似方法LoRA²,通过正交平面训练与改进的重要性评分剪枝,在参数远少于全量微调及基线的情况下仍保持优异性能。

摘要:

以高参数效率对大语言模型(LLMs)进行微调以适配下游任务已成为新范式。低秩适配(Low-Rank Adaptation, LoRA)大幅减少了微调所需的可训练参数数量。尽管其表现出了可观的性能,但在单一尺度内更新参数对于复杂下游任务而言可能并非最优选择。\n本文将LoRA扩展至多尺度,命名为LoRA$^2$。我们首先结合正交投影理论,在两个相互正交的平面中训练一组LoRA。随后我们改进了重要性评分算法,将参数敏感度评分的计算量降低了约98.5%。通过剪枝重要性评分较低的奇异值,进而增强了对各类下游任务的适配能力。\n我们在两个广泛使用的预训练模型上开展了大量实验,以验证LoRA$^2$的有效性。结果表明,与全量微调相比,该方法将可训练参数数量大幅降至仅0.72%,同时仍能取得极为出色的性能。即便参数进一步缩减至0.17M,其效果仍与参数规模为其8倍的基线模型相当。我们的代码可在此处获取:https://anonymous.4open.science/r/LoRA-2-5B4C

英文摘要:

Fine-tuning large language models (LLMs) with high parameter efficiency for downstream tasks has become a new paradigm. Low-Rank Adaptation (LoRA) significantly reduces the number of trainable parameters for fine-tuning. Although it has demonstrated commendable performance, updating parameters within a single scale may not be the optimal choice for complex downstream tasks.In this paper, we extend the LoRA to multiple scales, dubbed as LoRA$^2$. We first combine orthogonal projection theory to train a set of LoRAs in two mutually orthogonal planes. Then, we improve the importance score algorithm, which reduce parameter sensitivity score calculations by approximately 98.5\%. By pruning singular values with lower importance scores, thereby enhancing adaptability to various downstream tasks. Extensive experiments are conducted on two widely used pre-trained models to validate the effectiveness of LoRA$^2$. Results show that it significantly reduces the number of trainable parameters to just 0.72\% compared to full fine-tuning, while still delivering highly impressive performance. Even when the parameters are further reduced to 0.17M, it still achieves comparable results to the baseline with 8 times more parameters. Our code is available here: https://anonymous.4open.science/r/LoRA-2-5B4C

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

↑