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

更早的Token贡献更大:从时间衰减视角学习直接偏好优化

Earlier Tokens Contribute More: Learning Direct Preference Optimization From Temporal Decay Perspective

Meituan Inc.(美团公司);University of Chinese Academy of Sciences(中国科学院大学)

Ruichen Shao, Bei Li, Gangao Liu, Yang Chen, Xiang Zhou, Jingang Wang, Xunliang Cai, Peng Li

AI总结:

针对DPO存在长度偏差、现有方法忽略序列奖励时间动态的问题,提出带gamma控制时间衰减因子的增强偏好优化方法,优先早期token权重,在多个基准上性能优于 vanilla DPO且不损害通用能力。

摘要:

直接偏好优化(DPO)作为人类反馈强化学习(RLHF)的高效替代方案,因能让大语言模型(LLM)对齐人类偏好而受到关注。尽管DPO具备优势,但它存在长度偏差问题,生成的回复比参考模型的回复更长。现有解决方案如SimPO和SamPO虽能解决该问题,但它们统一对待整个序列的奖励贡献,忽略了时间动态特性。为此,我们提出一种增强型偏好优化方法,该方法引入了由gamma参数控制的时间衰减因子。这种动态加权机制会根据每个奖励在序列中的位置调整其影响,优先考虑对对齐更关键的更早token。通过自适应地聚焦更相关的反馈,我们的方法减轻了对相关性较低数据的过拟合,同时仍能对不断变化的人类偏好做出响应。在多个基准上的实验结果表明,在不同模型架构和规模下,我们的方法在AlpacaEval 2上始终优于 vanilla DPO 5.9-8.8分,在Arena-Hard上优于3.3-9.7分。此外,在数学与推理基准(MMLU、GSM8K和MATH)上的额外实验证实,我们的方法在提升性能的同时不会损害通用能力。我们的代码库将发布于https://github.com/LotuSrc/D2PO。

英文摘要:

Direct Preference Optimization (DPO) has gained attention as an efficient alternative to reinforcement learning from human feedback (RLHF) for aligning large language models (LLMs) with human preferences. Despite its advantages, DPO suffers from a length bias, generating responses longer than those from the reference model. Existing solutions like SimPO and SamPO address this issue but uniformly treat the contribution of rewards across sequences, overlooking temporal dynamics. To this end, we propose an enhanced preference optimization method that incorporates a temporal decay factor controlled by a gamma parameter. This dynamic weighting mechanism adjusts the influence of each reward based on its position in the sequence, prioritizing earlier tokens that are more critical for alignment. By adaptively focusing on more relevant feedback, our approach mitigates overfitting to less pertinent data and remains responsive to evolving human preferences. Experimental results on several benchmarks show that our approach consistently outperforms vanilla DPO by 5.9-8.8 points on AlpacaEval 2 and 3.3-9.7 points on Arena-Hard across different model architectures and sizes. Furthermore, additional experiments on mathematical and reasoning benchmarks (MMLU, GSM8K, and MATH) confirm that our method enhances performance without compromising general capabilities. Our codebase would be available at \url{https://github.com/LotuSrc/D2PO}.

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

↑