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

线性化解释大语言模型中的微调

Linearization Explains Fine-Tuning in Large Language Models

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Nokia Bell Labs(诺基亚贝尔实验室)

Zahra Rahimi Afzal, Tara Esmaeilbeig, Mojtaba Soltanalian, Mesrob I. Ohannessian

AI总结:

本文通过线性化视角揭示了大语言模型微调的机制,分析了正则化对NTK特征值谱的影响,并通过LoRA实验证明了微调优化的改进。

摘要:

参数高效微调(PEFT)是一种流行的技术类别,旨在以可扩展和资源高效的方式适应大型模型。然而,其训练性能和泛化能力背后的机制仍鲜为人知。在本文中,我们通过线性化的视角提供了对这种微调的几种见解。微调后的模型往往被隐式鼓励保持接近预训练模型。通过在参数空间中使用欧几里得距离归纳偏差,我们证明微调动态等同于学习正定神经切线核(NTK)。我们特别分析了完全线性和线性化微调优化之间的接近程度,基于正则化的强度。这使我们能够务实评估在微调大型语言模型(LLMs)时模型线性化的质量。当线性化是良好模型时,我们的发现揭示了NTK的特征值谱与模型适应性能之间的强相关性。受此启发,我们给出了由微调所选层引起的NTK的谱扰动界。我们在低秩适应(LoRA)上对LLMs进行了实证验证。这些见解不仅刻画了微调,还可能增强PEFT技术,为LLMs的更好指导和更灵活的适应铺平道路。

英文摘要:

Parameter-Efficient Fine-Tuning (PEFT) is a popular class of techniques that strive to adapt large models in a scalable and resource-efficient manner. Yet, the mechanisms underlying their training performance and generalization remain underexplored. In this paper, we provide several insights into such fine-tuning through the lens of linearization. Fine-tuned models are often implicitly encouraged to remain close to the pretrained model. By making this explicit, using an Euclidean distance inductive bias in parameter space, we show that fine-tuning dynamics become equivalent to learning with the positive-definite neural tangent kernel (NTK). We specifically analyze how close the fully linear and the linearized fine-tuning optimizations are, based on the strength of the regularization. This allows us to be pragmatic about how good a model linearization is when fine-tuning large language models (LLMs). When linearization is a good model, our findings reveal a strong correlation between the eigenvalue spectrum of the NTK and the performance of model adaptation. Motivated by this, we give spectral perturbation bounds on the NTK induced by the choice of layers selected for fine-tuning. We empirically validate our theory on Low Rank Adaptation (LoRA) on LLMs. These insights not only characterize fine-tuning but also have the potential to enhance PEFT techniques, paving the way to better informed and more nimble adaptation in LLMs.

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

↑