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

揭示DPO的奥秘:DPO与RL算法之间的联系

Reveal the Mystery of DPO: The Connection between DPO and RL Algorithms

School of Mathematics and Statistics(数学与统计学院);Beijing Jiaotong University(北京交通大学);University of Science and Technology of China(中国科学技术大学);School of information(信息学院);School of Management(管理学院);Renmin University of China(中国人民大学);Fudan University(复旦大学);Academy of Mathematics and Systems Science(数学与系统科学研究院)

Xuerui Su, Yue Wang, Jinhua Zhu, Mingyang Yi, Feng Xu, Zhiming Ma, Yuting Liu

AI总结:

本文通过提出统一框架UDRRA,从损失函数构造、收敛目标分布和关键组件影响三方面揭示DPO与RL及RLHF算法的内在联系,为改进现有算法提供新见解。

摘要:

随着大语言模型(LLMs)的快速发展,大量基于人类反馈的强化学习(RLHF)算法被提出,以提升模型安全性及与人类偏好的对齐程度。这些算法可根据训练时是否需要显式奖励(或价值)函数分为两大框架:基于演员-评论家的近端策略优化(PPO)和基于对齐的直接偏好优化(DPO)。DPO与PPO之间的不一致性,例如DPO使用由人类偏好数据驱动的分类损失,引发了关于DPO是否应被归类为强化学习(RL)算法的困惑。为解决这些模糊之处,我们聚焦于与DPO、RL及其他RLHF算法相关的三个关键方面:(1)损失函数的构造;(2)算法收敛到的目标分布;(3)损失函数中关键组成部分的影响。具体而言,我们首先基于损失函数的构造建立了一个名为UDRRA的统一框架,将这些算法联系起来。接着,我们在该框架内揭示了它们的目标策略分布。最后,我们研究了DPO的关键组成部分,以理解它们对收敛速度的影响。我们的工作为DPO、RL及其他RLHF算法之间的关系提供了更深入的理解,并为改进现有算法提供了新的见解。

英文摘要:

With the rapid development of Large Language Models (LLMs), numerous Reinforcement Learning from Human Feedback (RLHF) algorithms have been introduced to improve model safety and alignment with human preferences. These algorithms can be divided into two main frameworks based on whether they require an explicit reward (or value) function for training: actor-critic-based Proximal Policy Optimization (PPO) and alignment-based Direct Preference Optimization (DPO). The mismatch between DPO and PPO, such as DPO's use of a classification loss driven by human-preferred data, has raised confusion about whether DPO should be classified as a Reinforcement Learning (RL) algorithm. To address these ambiguities, we focus on three key aspects related to DPO, RL, and other RLHF algorithms: (1) the construction of the loss function; (2) the target distribution at which the algorithm converges; (3) the impact of key components within the loss function. Specifically, we first establish a unified framework named UDRRA connecting these algorithms based on the construction of their loss functions. Next, we uncover their target policy distributions within this framework. Finally, we investigate the critical components of DPO to understand their impact on the convergence rate. Our work provides a deeper understanding of the relationship between DPO, RL, and other RLHF algorithms, offering new insights for improving existing algorithms.

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

↑