arXiv:2410.11677cs.CLcs.AI2024-10被引 10

发现直接对齐算法中过优似然会损害模型泛化能力

Understanding Likelihood Over-optimisation in Direct Alignment Algorithms

  • 分析主流直接对齐方法的似然优化机制
  • 高似然未必提升性能,反而降低输出多样性
  • 提出熵与概率质量下降作为过优化预警信号

直接对齐算法(DAAs),如直接偏好优化(DPO)和身份偏好优化(IPO),已成为替代在线人类反馈强化学习(RLHF)的方案,无需显式建模奖励。这类方法旨在提升优质完成项的生成似然,同时抑制劣质完成项,且保持与原始模型行为接近。本文研究了当前顶尖DAAs中完成项似然与模型性能的关系,揭示了一个关键问题:似然过优化。出人意料的是,更高优质完成项似然及更大优劣完成项似然差距,并不必然带来更好性能,甚至可能导致性能下降。分析显示,虽然更高似然有助于记忆事实知识模式,但略低似然反而提升输出多样性,从而增强对未见场景的泛化能力。此外,我们识别出两个能预警过优化导致性能下降的关键指标:Top-k 令牌熵下降与 Top-k 概率质量减弱。实验验证这些指标在不同正则化下均能可靠反映性能衰减,有助于防止过优化并改善与人类偏好的对齐。

原文摘要 · Abstract (English)

Direct Alignment Algorithms (DAAs), such as Direct Preference Optimisation (DPO) and Identity Preference Optimisation (IPO), have emerged as alternatives to online Reinforcement Learning from Human Feedback (RLHF) algorithms such as Proximal Policy Optimisation (PPO) for aligning language models to human preferences, without the need for explicit reward modelling. These methods generally aim to increase the likelihood of generating better (preferred) completions while discouraging worse (non-preferred) ones, while staying close to the original model's behaviour. In this work, we explore the relationship between completion likelihood and model performance in state-of-the-art DAAs, and identify a critical issue of likelihood over-optimisation. Contrary to expectations, we find that higher likelihood of better completions and larger margins between better and worse completion likelihoods do not necessarily lead to better performance, and may even degrade it. Our analysis reveals that while higher likelihood correlates with better memorisation of factual knowledge patterns, a slightly lower completion likelihood tends to improve output diversity, thus leading to better generalisation to unseen scenarios. Moreover, we identify two key indicators that signal when over-optimised output diversity begins to harm performance: Decreasing Entropy over Top-k Tokens and Diminishing Top-k Probability Mass. Our experimental results validate that these indicators are reliable signs of declining performance under different regularisations, helping prevent over-optimisation and improve alignment with human preferences.

对齐算法似然优化泛化能力模型评估

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