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

PeriodicLoRA:打破LoRA优化中的低秩瓶颈

PeriodicLoRA: Breaking the Low-Rank Bottleneck in LoRA Optimization

Peking University(北京大学)

Xiangdi Meng, Damai Dai, Weiyao Luo, Zhe Yang, Shaoxiang Wu, Xiaochen Wang, Peiyi Wang, Qingxiu Dong, Liang Chen, Zhifang Sui

AI总结:

本文提出PeriodicLoRA(PLoRA),通过分阶段累积低秩更新矩阵并将其卸载到主干参数中,突破LoRA低秩瓶颈,在不增加内存的情况下将学习能力最高提升至LoRA的1.8倍,并引入动量卸载策略缓解训练不稳定。

摘要:

监督微调是使大语言模型(LLMs)适应下游任务的最常用方法,但对LLMs进行全量微调需要大量计算资源。近年来,参数高效微调(PEFT)方法因其成本效益而受到广泛研究。LoRA是使用最广泛的方法之一,它假设优化过程本质上是低维的。尽管LoRA微调有效,但与全量微调相比仍存在性能差距,因为其权重更新被限制在低秩矩阵内。为了打破LoRA优化中的低秩瓶颈,我们提出了PeriodicLoRA(PLoRA),该方法多次累积低秩更新矩阵以实现更高的更新秩。PLoRA具有多个训练阶段。在每个阶段中,我们仍然只更新LoRA权重。然而,在每个阶段结束时,我们将LoRA权重卸载到主干参数中,然后重新初始化LoRA状态。实验结果表明,PLoRA具有更强的学习能力,最高约为LoRA学习能力的1.8倍,但不会增加内存使用。此外,我们为PLoRA引入了一种基于动量的卸载策略,以缓解训练不稳定性。

英文摘要:

Supervised fine-tuning is the most common method to adapt large language models (LLMs) to downstream tasks, but full fine-tuning LLMs requires massive computational resources. Recently, parameter-efficient fine-tuning (PEFT) methods have been widely studied due to its cost-effectiveness. LoRA is one of the most widely used methods, which assumes that the optimization process is essentially low-dimensional. Although LoRA fine-tuning is effective, there is still a performance gap compared to full fine-tuning, since its weight update is limited to low-rank matrices. In order to break the low-rank bottleneck in LoRA Optimization, we propose PeriodicLoRA (PLoRA), which accumulates low-rank update matrices multiple times to achieve a higher update rank. PLoRA has multiple training stages. During each stage, we still update only the LoRA weights. However, at the end of each stage, we unload the LoRA weights into the backbone parameters and then reinitialize the LoRA states. Experimental results show that PLoRA has stronger learning ability, approximately 1.8 times that of LoRA's learning ability at most, but it does not increase memory usage. Further, we introduce a momentum-based unloading strategy for PLoRA to mitigate the training instability.

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

↑