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

使用 DPO 隐式奖励进行语言模型的自举

Bootstrapping Language Models with DPO Implicit Rewards

Singapore Management University(新加坡管理大学);Sea AI Lab(Sea AI实验室);National University of Singapore(新加坡国立大学);Rutgers University(罗格斯大学)

Changyu Chen, Zichen Liu, Chao Du, Tianyu Pang, Qian Liu, Arunesh Sinha, Pradeep Varakantham, Min Lin

AI总结:

本研究提出 DICE 方法,利用 DPO 训练后的隐式奖励模型进行自举,通过构建偏好数据集并结合长度正则化奖励塑造和经验回放,在不依赖外部反馈的情况下显著提升了 LLM 的人类对齐效果。

摘要:

大型语言模型(LLMs)的人类对齐是一个活跃的研究领域。最近的一项开创性工作——直接偏好优化(DPO),通过绕过强化学习从人类反馈(RLHF)中的奖励学习阶段,极大地简化了以往 RLHF 的流程。DPO 在训练后会提供一个隐式奖励模型。在本研究中,我们提出了一个新颖的观察:这个隐式奖励模型本身可以以自举的方式被使用,以进一步对齐 LLM。我们的方法是使用当前 LLM 的奖励来构建偏好数据集,然后在后续的 DPO 轮次中使用它。我们引入了两项改进以进一步提升我们的方法:1)长度正则化的奖励塑造,使偏好数据集长度无偏;2)经验回放,以增强偏好数据集的质量。我们的方法命名为基于 DPO 隐式奖励的自对齐(DICE),在对齐方面显示出巨大的改进。对于我们尝试的所有不同的基础模型,它在 AlpacaEval 2 上的长度控制胜率提高了超过 8%,而无需依赖外部反馈。我们的代码可在 https://github.com/sail-sg/dice 获取。

英文摘要:

Human alignment in large language models (LLMs) is an active area of research. A recent groundbreaking work, direct preference optimization (DPO), has greatly simplified the process from past work in reinforcement learning from human feedback (RLHF) by bypassing the reward learning stage in RLHF. DPO, after training, provides an implicit reward model. In this work, we make a novel observation that this implicit reward model can by itself be used in a bootstrapping fashion to further align the LLM. Our approach is to use the rewards from a current LLM to construct a preference dataset, which is then used in subsequent DPO rounds. We incorporate two refinements to further improve our approach: 1) length-regularized reward shaping to make the preference dataset length-unbiased; 2) experience replay to enhance the quality of the preference dataset. Our approach, named self-alignment with DPO ImpliCit rEwards (DICE), shows great improvements in alignment. It achieves an increase of more than 8$\\%$ in lengthcontrolled win rate on AlpacaEval 2 for all the different base models that we tried, without relying on external feedback. Our code is available at https://github.com/sail-sg/dice.

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

↑