Skip to main content
QUICK REVIEW

[论文解读] Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive

Arka Pal, Deep Karkhanis|arXiv (Cornell University)|Feb 20, 2024
Decision-Making and Behavioral EconomicsDecision Sciences被引用 6
一句话总结

论文识别 Direct Preference Optimisation (DPO) 的一个失败模式,即微调可能降低偏好完成的概率,并引入 DPO-Positive (DPOP) 以缓解;使用 DPOP 微调得到的 Smaug 开源 LLM 在开放模型中达到最优性能。

ABSTRACT

Direct Preference Optimisation (DPO) is effective at significantly improving the performance of large language models (LLMs) on downstream tasks such as reasoning, summarisation, and alignment. Using pairs of preferred and dispreferred data, DPO models the relative probability of picking one response over another. In this work, first we show theoretically that the standard DPO loss can lead to a reduction of the model's likelihood of the preferred examples, as long as the relative probability between the preferred and dispreferred classes increases. We then show empirically that this phenomenon occurs when fine-tuning LLMs on common datasets, especially datasets in which the edit distance between pairs of completions is low. Using these insights, we design DPO-Positive (DPOP), a new loss function and training procedure which avoids this failure mode. Surprisingly, we find that DPOP outperforms DPO and other fine-tuning procedures across a wide variety of datasets and downstream tasks, including datasets with high edit distances between completions. Furthermore, we find that the DPOP-tuned model outperforms the DPO-tuned model (all else equal) on benchmarks independent of the fine-tuning data, such as MT-Bench. Finally, using DPOP, we create and open-source Smaug-34B and Smaug-72B, with the latter becoming the first open-source LLM to surpass an average accuracy of 80% on the HuggingFace Open LLM Leaderboard.

研究动机与目标

  • 解释并表征 Direct Preference Optimisation (DPO) 在使用接近编辑的偏好对进行微调时的一个失败模式。
  • 提出并验证 DPO-Positive (DPOP),一种在偏好完成概率退化方面起缓解作用的损失函数。
  • 基于新的成对偏好数据集,使用 DPOP 训练并创建并发布新的开源 LLM(Smaug-7B、Smaug-34B、Smaug-72B)。
  • 在标准开源基准(HuggingFace Open LLM Leaderboard、MT-Bench)上对 Smaug 模型进行评估,以在开源模型中确立最先进的性能。

提出的方法

  • 从理论上分析 DPO 损失,揭示在何种条件下偏好完成的概率可能下降。
  • 通过在 DPO 损失中增加惩罚项以保持偏好对数似然,提出 DPO-Positive (DPOP)。
  • 推导 DPOP 的梯度行为,显示它促使令牌朝向偏好完成前进。
  • 基于 ARC、HellaSwag 和 MetaMath 创建新的成对偏好数据集,并应用 DPOP 训练。
  • 使用 DPOP 在新数据集上对 Smaug-7B、Smaug-34B 和 Smaug-72B 进行微调;在标准基准上报告评估结果。

实验结果

研究问题

  • RQ1当编辑距离较小时时,标准 DPO 是否有时会降低偏好完成的对数似然?
  • RQ2一种修改后的损失(DPOP)是否能在保留 DPO 框架的同时防止偏好完成的退化?
  • RQ3用 DPOP 训练的开源 Smaug 模型是否在流行基准上超过 DPO 基线?
  • RQ4DPOP 在偏好完成之间具有不同编辑距离(低与高)的数据集上的表现如何?

主要发现

  • DPO 可能在偏好对之间的编辑距离较小的情况下灾难性地退化性能。
  • DPOP 能缓解这一失败模式,甚至在高编辑距离的数据集上也常常优于 DPO。
  • Smaug-72B 在 HuggingFace Open LLM Leaderboard 上的平均准确率达到 80.48%,成为首个超过 80% 的开源模型。
  • Smaug-34B 在同尺寸级别的模型中在 Leaderboard 上实现了同类最佳性能。
  • 在消融研究中,DPOP 在 ARC、HellaSwag、MetaMath 数据集以及 MT-Bench 和 MMLU 基准测试上均优于 DPO。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。