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

在对数空间中进行锐度感知最小化以高效提升直接偏好优化

Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization

Monash University(墨尔本大学);Swinburne University of Technology(斯威本科技大学)

Haocheng Luo, Zehang Deng, Thanh-Toan Do, Mehrtash Harandi, Dinh Phung, Trung Le

AI总结:

本文提出logits-SAM方法,通过在对数空间中建模坐标动态,缓解直接偏好优化中的挤压效应,提升模型性能。

摘要:

直接偏好优化(DPO)因其简单性和训练稳定性而成为对齐预训练大语言模型与人类偏好的一种流行算法。然而,DPO面临最近发现的挤压效应(也称为似然位移),即在训练过程中首选响应的概率会意外降低。为理解并缓解这一现象,我们开发了一个理论框架,该框架建模了对数空间中的坐标动态。我们的分析揭示了负梯度更新会导致残差在高曲率方向上迅速扩展,这导致了挤压效应,而锐度感知最小化(SAM)通过其曲率正则化效应可以抑制这种行为。基于这一见解,我们研究了logits-SAM,一种计算高效且仅扰动输出层的变体,其计算开销极低。在Pythia-2.8B、Mistral-7B和Gemma-2B-IT等多个数据集和基准上的广泛实验表明,logits-SAM一致提高了DPO的有效性,并与其他DPO变体无缝集成。代码可在https://github.com/RitianLuo/logits-sam-dpo上获得。

英文摘要:

Direct Preference Optimization (DPO) has emerged as a popular algorithm for aligning pretrained large language models with human preferences, owing to its simplicity and training stability. However, DPO suffers from the recently identified squeezing effect (also known as likelihood displacement), where the probability of preferred responses decreases unintentionally during training. To understand and mitigate this phenomenon, we develop a theoretical framework that models the coordinate-wise dynamics in logit space. Our analysis reveals that negative-gradient updates cause residuals to expand rapidly along high-curvature directions, which underlies the squeezing effect, whereas Sharpness-Aware Minimization (SAM) can suppress this behavior through its curvature-regularization effect. Building on this insight, we investigate logits-SAM, a computationally efficient variant that perturbs only the output layer with negligible overhead. Extensive experiments on Pythia-2.8B, Mistral-7B, and Gemma-2B-IT across multiple datasets and benchmarks demonstrate that logits-SAM consistently improves the effectiveness of DPO and integrates seamlessly with other DPO variants. Code is available at https://github.com/RitianLuo/logits-sam-dpo.

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

↑