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

在LLM微调中的对齐动力学

Alignment Dynamics in LLM Fine-Tuning

Shanghai Qi Zhi Institue & University of Tokyo(上海启智研究院 & 东京大学);College of AI, Tsinghua University(清华大学人工智能学院)

Yuhan Huang, Huanran Chen, Yinpeng Dong

AI总结:

本文研究了在LLM微调过程中对齐的动态特性,提出了一种可计算的对齐评分,并推导了其在微调过程中的闭式更新公式,从而建立了对齐动态的统一框架。通过将对齐更新分解为两种竞争成分:反弹力和驱动力,解释了为何先前的对齐可能被后续微调逆转,以及为何更狭窄的后验结构会增强这种逆转。此外,该框架预测了‘复习强化效应’,即先前的对齐会在重新暴露时留下潜在的后验印记,从而增强驱动力,导致更快的重新对齐。

摘要:

尽管大型语言模型(LLMs)通过监督微调和人类反馈强化学习实现了强大的对齐,但在后续微调中对齐往往容易崩溃。现有的解释要么将对齐脆弱性归因于梯度几何,要么将其描述为模型输出的分布转移,但很少有研究能提供一个统一的框架,将参数空间的学习动态与函数空间的对齐行为联系起来。在本文中,我们引入了一个可计算的对齐评分,并推导了其在微调过程中的闭式更新公式,从而建立了对齐动态的统一框架。我们的分析将对齐更新分解为两个竞争成分:一种由当前对齐状态和模型分布狭窄性共同决定的“反弹力”,以及一种由训练分布与条件后验对齐和非对齐完成的后验对齐程度决定的“驱动力”。这种分解解释了为何先前的对齐可能被后续微调逆转,以及为何更狭窄的后验结构会增强这种逆转。此外,我们的框架预测了“复习强化效应”:先前的对齐会在重新暴露时留下潜在的后验印记,从而增强驱动力,导致更快的重新对齐。我们通过安全对齐、新兴不一致和情感设置验证了这些预测,展示了在重新暴露下一致的对齐逆转和加速的重新对齐。此外,安全对齐的受控实验确认了预测的反弹强度与后验狭窄性之间的依赖关系。这些结果共同提供了一个统一的动态视角,说明在LLM微调过程中对齐是如何被破坏和重新激活的。

英文摘要:

Although Large Language Models (LLMs) achieve strong alignment through supervised fine-tuning and reinforcement learning from human feedback, the alignment is often fragile under subsequent fine-tuning. Existing explanations either attribute alignment fragility to gradient geometry or characterize it as a distributional shift in model outputs, yet few provide a unified account that bridges parameter-space learning dynamics with function-space alignment behavior during fine-tuning. In this work, we introduce a tractable alignment score and derive its closed-form update during fine-tuning, yielding a unified framework for alignment dynamics. Our analysis decomposes alignment updates into two competing components: a Rebound Force, governed jointly by the current alignment state and the narrowness of model distribution, and a Driving Force, determined by how the training distribution aligns with outcome-conditioned posteriors over aligned and non-aligned completions. This decomposition explains why prior alignment can be reversed by later fine-tuning and why narrower posterior structure strengthens such reversal. Moreover, our framework predicts a Rehearsal Priming Effect: prior alignment leaves a latent posterior imprint that amplifies the effective Driving Force upon re-exposure, leading to faster re-alignment. We validate these predictions across safety alignment, emergent misalignment, and sentiment settings, demonstrating consistent alignment reversal and accelerated re-alignment under re-exposure. In addition, controlled experiments in safety alignment confirm the predicted dependence of rebound strength on posterior narrowness. Together, these results provide a unified dynamical perspective on how alignment is disrupted and reactivated during LLM fine-tuning.

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

↑