arXiv:2410.21228cs.LGcs.CL2024-10NeurIPS被引 136

LoRA微调会引入新特征维度,导致模型遗忘,不如全量微调稳定。

LoRA vs Full Fine-tuning: An Illusion of Equivalence

  • 通过奇异值分解分析权重矩阵,发现LoRA产生新特征维度(称作'入侵维')
  • 入侵维主导遗忘现象,降低其奇异值可减少遗忘且保持下游性能
  • 连续微调中入侵维累积,使LoRA在持续学习中表现更差,适合关注稳定性研究者

微调是将预训练大语言模型适配下游任务的关键方法。近期低秩适应(LoRA)被证明能以极少可训练参数有效微调大模型,但其学习结果是否与全量微调等价?本文从谱特性视角分析模型权重矩阵,发现LoRA生成的权重矩阵具有新的高秩奇异向量,称为‘入侵维’,而全量微调无此现象。进一步发现,LoRA的遗忘主要集中在入侵维:通过因果干预调整这些维度的奇异值,可引发遗忘。降低入侵维奇异值虽小幅影响下游性能,却显著改善预训练分布建模。因此,入侵维累积有害,尤其在连续微调中,此时LoRA模型表现更差,凸显该发现的实际意义。

原文摘要 · Abstract (English)

Fine-tuning is a crucial paradigm for adapting pre-trained large language models to downstream tasks. Recently, methods like Low-Rank Adaptation (LoRA) have been shown to effectively fine-tune LLMs with an extreme reduction in trainable parameters. But, \emph{are their learned solutions really equivalent?} We study how LoRA and full-finetuning change pre-trained models by analyzing the model's weight matrices through the lens of their spectral properties. We find that LoRA and full fine-tuning yield weight matrices whose singular value decompositions exhibit very different structure: weight matrices trained with LoRA have new, high-ranking singular vectors, which we call \emph{intruder dimensions}, while those trained with full fine-tuning do not. Further, we extend the finding that LoRA forgets less than full fine-tuning and find its forgetting is vastly localized to the intruder dimension -- by causally intervening on the intruder dimensions by changing their associated singular values post-fine-tuning, we show that they cause forgetting. Moreover, scaling them down significantly improves modeling of the pre-training distribution with a minimal drop in downstream task performance. Given this, we should expect accumulating intruder dimensions to be harmful and lead to more forgetting. This will be amplified during continual learning because of sequentially fine-tuning, and we show that LoRA models do accumulate intruder dimensions here tend to perform worse in this setting, emphasizing the practicality of our findings.

微调模型遗忘持续学习低秩适应

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。