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

将LoRA初始化空间推向极端以保留预训练知识

Put the Space of LoRA Initialization to the Extreme to Preserve Pre-trained Knowledge

Pengwei Tang 1,2,3(唐鹏伟);Xiaolin Hu 4(胡晓林);Yong Liu 1,2,3(刘勇);Lizhong Ding 5(丁立忠);Dongjie Zhang 6(张东杰);Xing Wu 6,7(吴星);Debing Zhang 6(张德兵)

Pengwei Tang, Xiaolin Hu, Yong Liu, Lizhong Ding, Dongjie Zhang, Xing Wu, Debing Zhang

AI总结:

LoRA-Null通过在激活的空域中初始化LoRA,有效保留预训练知识并提升微调性能。

摘要:

低秩适应(LoRA)是大型语言模型(LLMs)参数高效微调的领先方法,但仍然存在灾难性遗忘的问题。最近的研究表明,专门的LoRA初始化可以缓解灾难性遗忘。目前有两种LoRA初始化方法旨在防止微调过程中的知识遗忘:(1)使残差权重接近预训练权重,(2)确保LoRA初始化空间与预训练知识正交。前者是当前方法试图实现的,而后者的重要性未被充分认识。我们发现,LoRA初始化空间是保留预训练知识的关键,而不是残差权重。现有方法如MiLoRA提出使LoRA初始化空间与预训练权重正交。然而,MiLoRA利用预训练权重的空域。与预训练权重相比,预训练知识的输入激活考虑了所有前一层的参数以及输入数据,而预训练权重只包含当前层的信息。此外,我们发现输入激活的有效秩远小于预训练权重的秩。因此,激活的空域比权重的空域更准确,且包含更少的预训练知识信息。基于此,我们引入LoRA-Null,即我们提出的方法,将LoRA初始化在激活的空域中。实验结果表明,LoRA-Null能够有效保留LLMs的预训练世界知识,同时实现良好的微调性能,这通过广泛的实验得到了验证。代码可在{https://github.com/HungerPWAY/LoRA-Null}获取。

英文摘要:

Low-Rank Adaptation (LoRA) is the leading parameter-efficient fine-tuning method for Large Language Models (LLMs), but it still suffers from catastrophic forgetting. Recent work has shown that specialized LoRA initialization can alleviate catastrophic forgetting. There are currently two approaches to LoRA initialization aimed at preventing knowledge forgetting during fine-tuning: (1) making residual weights close to pre-trained weights, and (2) ensuring the space of LoRA initialization is orthogonal to pre-trained knowledge. The former is what current methods strive to achieve, while the importance of the latter is not sufficiently recognized. We find that the space of LoRA initialization is the key to preserving pre-trained knowledge rather than the residual weights. Existing methods like MiLoRA propose making the LoRA initialization space orthogonal to pre-trained weights. However, MiLoRA utilizes the null space of pre-trained weights. Compared to pre-trained weights, the input activations of pre-trained knowledge take into account the parameters of all previous layers as well as the input data, while pre-trained weights only contain information from the current layer. Moreover, we find that the effective ranks of input activations are much smaller than those of pre-trained weights. Thus, the null space of activations is more accurate and contains less pre-trained knowledge information compared to that of weights. Based on these, we introduce LoRA-Null, our proposed method that initializes LoRA in the null space of activations. Experimental results show that LoRA-Null effectively preserves the pre-trained world knowledge of LLMs while achieving good fine-tuning performance, as evidenced by extensive experiments. Code is available at {https://github.com/HungerPWAY/LoRA-Null}.

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

↑