arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.19159cs.CLcs.LG
收藏

在直接偏好优化中解耦长度与质量

Disentangling Length from Quality in Direct Preference Optimization

Stanford University(斯坦福大学)

Ryan Park, Rafael Rafailov, Stefano Ermon, Chelsea Finn

AI总结:

本文首次研究 DPO 对回答长度偏差的利用问题,并提出简单正则化方法,在摘要与对话任务中控制长度的同时保持质量提升,最高带来 20% 胜率改善。

摘要:

基于人类反馈的强化学习(RLHF)一直是近期大型语言模型成功的关键组成部分。然而,众所周知 RLHF 会利用人类偏好中的偏差,例如冗长性。一个格式良好、表达流畅的答案往往会获得用户更高评价,即使它的帮助性和客观性较弱。经典 RLHF 文献中已经开发出许多方法来控制这些偏差,但对于直接偏好优化(DPO)等直接对齐算法而言,该问题仍相对缺乏研究。与经典 RLHF 不同,DPO 不训练独立的奖励模型,也不直接使用强化学习,因此以往为控制冗长性而开发的方法无法直接应用于这一设定。我们的工作作出了若干贡献。我们首次研究了 DPO 设定中的长度问题,展示了 DPO 中显著的利用现象,并将其与分布外自举联系起来。随后,我们提出了一种有原则且简单的正则化策略,可防止长度利用,同时仍保持模型质量的提升。我们在摘要和对话数据集上证明了这些效果:在控制长度的情况下,尽管 GPT4 评判者存在众所周知的冗长偏差,我们仍实现了最高 20% 的胜率提升。

英文摘要:

Reinforcement Learning from Human Feedback (RLHF) has been a crucial component in the recent success of Large Language Models. However, RLHF is know to exploit biases in human preferences, such as verbosity. A well-formatted and eloquent answer is often more highly rated by users, even when it is less helpful and objective. A number of approaches have been developed to control those biases in the classical RLHF literature, but the problem remains relatively under-explored for Direct Alignment Algorithms such as Direct Preference Optimization (DPO). Unlike classical RLHF, DPO does not train a separate reward model or use reinforcement learning directly, so previous approaches developed to control verbosity cannot be directly applied to this setting. Our work makes several contributions. For the first time, we study the length problem in the DPO setting, showing significant exploitation in DPO and linking it to out-of-distribution bootstrapping. We then develop a principled but simple regularization strategy that prevents length exploitation, while still maintaining improvements in model quality. We demonstrate these effects across datasets on summarization and dialogue, where we achieve up to 20\% improvement in win rates when controlling for length, despite the GPT4 judge's well-known verbosity bias.

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

↑