arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.04315cs.LGcs.AI
收藏

RoRA: 面向秩自适应的可靠性优化实现大语言模型高效微调

RoRA: Efficient Fine-Tuning of LLM with Reliability Optimization for Rank Adaptation

Northeastern University(东北大学);Carnegie Mellon University(卡内基梅隆大学);Massachusetts Institute of Technology(麻省理工学院);University of Georgia(佐治亚大学);Florida International University(佛罗里达国际大学)

Jun Liu, Zhenglun Kong, Peiyan Dong, Changdi Yang, Xuan Shen, Pu Zhao, Hao Tang, Geng Yuan, Wei Niu, Wenbin Zhang, Xue Lin, Dong Huang, Yanzhi Wang

AI总结:

针对LoRA微调中缩放因子随秩增大限制性能的问题,提出用$α/\sqrt{r}$替换原缩放因子的RoRA方法,在未压缩和剪枝LLM微调的精度与鲁棒性上均超现有SOTA。

摘要:

微调有助于大语言模型(LLM)恢复退化信息并提升任务性能。尽管低秩自适应(LoRA)在微调中应用广泛且效果显著,但我们观察到,随着秩规模增大,其缩放因子会限制甚至降低性能。为解决该问题,我们提出RoRA(秩自适应可靠性优化),这是一种优化LoRA缩放因子的简单有效方法。通过将$α/r$替换为$α/\sqrt{r}$,RoRA确保性能随秩规模增大而提升。此外,RoRA在微调未压缩模型时增强了低秩自适应效果,在更具挑战性的剪枝模型微调精度恢复任务中表现优异。大量实验证明了RoRA在微调未压缩和剪枝模型时的有效性。RoRA在LLaMA-7B/13B、LLaMA2-7B和LLaMA3-8B上的平均精度和鲁棒性均超越当前最优(SOTA),在LLaMA-7B上分别比LoRA和DoRA高出6.5%和2.9%。在剪枝模型微调中,RoRA优势显著;对于剪枝率81.4%的LLaMA-7B变体SHEARED-LLAMA-1.3,RoRA的平均精度比LoRA高5.7%,比DoRA高3.9%。

英文摘要:

Fine-tuning helps large language models (LLM) recover degraded information and enhance task performance. Although Low-Rank Adaptation (LoRA) is widely used and effective for fine-tuning, we have observed that its scaling factor can limit or even reduce performance as the rank size increases. To address this issue, we propose RoRA (Rank-adaptive Reliability Optimization), a simple yet effective method for optimizing LoRA's scaling factor. By replacing $α/r$ with $α/\sqrt{r}$, RoRA ensures improved performance as rank size increases. Moreover, RoRA enhances low-rank adaptation in fine-tuning uncompressed models and excels in the more challenging task of accuracy recovery when fine-tuning pruned models. Extensive experiments demonstrate the effectiveness of RoRA in fine-tuning both uncompressed and pruned models. RoRA surpasses the state-of-the-art (SOTA) in average accuracy and robustness on LLaMA-7B/13B, LLaMA2-7B, and LLaMA3-8B, specifically outperforming LoRA and DoRA by 6.5% and 2.9% on LLaMA-7B, respectively. In pruned model fine-tuning, RoRA shows significant advantages; for SHEARED-LLAMA-1.3, a LLaMA-7B with 81.4% pruning, RoRA achieves 5.7% higher average accuracy than LoRA and 3.9% higher than DoRA.

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

↑