arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.12358cs.LG
收藏

从 $r$ 到 $Q^*$:你的语言模型本质上是一个Q函数

From $r$ to $Q^*$: Your Language Model is Secretly a Q-Function

Stanford University(斯坦福大学)

Rafael Rafailov, Joey Hejna, Ryan Park, Chelsea Finn

AI总结:

该研究修正了DPO与标准RLHF的理论差异,证明DPO是token级MDP下满足贝尔曼方程的逆Q学习算法,并通过实证揭示其信用分配能力、搜索算法等价性及参考策略对隐式奖励的影响,拓展了语言模型对齐的理论与应用边界。

摘要:

人类反馈强化学习(Reinforcement Learning From Human Feedback, RLHF)是最新一代生成式AI模型取得成功的关键。针对经典RLHF流程的复杂特性,直接偏好优化(Direct Preference Optimization, DPO)等直接对齐算法作为替代方案应运而生。尽管DPO与标准RLHF设置求解的是同一目标,但两种方法之间存在不匹配:标准RLHF在特定的token级马尔可夫决策过程(MDP)中部署强化学习,而DPO则是作为赌博机问题推导而来,将模型的整个回复视为单个臂。在本研究中,我们修正了这一差异。我们从理论上证明,可以在token级MDP中将DPO推导为一种满足贝尔曼方程的通用逆Q学习算法。基于我们的理论结果,我们提出了三项具体的实证发现。第一,我们表明由于其token级的解释性,DPO能够执行某种类型的信用分配。第二,我们证明在token级公式下,近期被应用于语言生成领域的经典搜索算法(如蒙特卡洛树搜索MCTS)等价于在DPO策略上进行基于似然的搜索。实证结果显示,简单的束搜索相比基础DPO策略能带来显著的性能提升。第三,我们揭示了参考策略的选择如何导致训练过程中隐式奖励下降。最后我们讨论了本研究的应用场景,包括多轮对话中的信息引导、推理、智能体应用以及多模型系统的端到端训练。

英文摘要:

Reinforcement Learning From Human Feedback (RLHF) has been critical to the success of the latest generation of generative AI models. In response to the complex nature of the classical RLHF pipeline, direct alignment algorithms such as Direct Preference Optimization (DPO) have emerged as an alternative approach. Although DPO solves the same objective as the standard RLHF setup, there is a mismatch between the two approaches. Standard RLHF deploys reinforcement learning in a specific token-level MDP, while DPO is derived as a bandit problem in which the whole response of the model is treated as a single arm. In this work we rectify this difference. We theoretically show that we can derive DPO in the token-level MDP as a general inverse Q-learning algorithm, which satisfies the Bellman equation. Using our theoretical results, we provide three concrete empirical insights. First, we show that because of its token level interpretation, DPO is able to perform some type of credit assignment. Next, we prove that under the token level formulation, classical search-based algorithms, such as MCTS, which have recently been applied to the language generation space, are equivalent to likelihood-based search on a DPO policy. Empirically we show that a simple beam search yields meaningful improvement over the base DPO policy. Finally, we show how the choice of reference policy causes implicit rewards to decline during training. We conclude by discussing applications of our work, including information elicitation in multi-turn dialogue, reasoning, agentic applications and end-to-end training of multi-model systems.

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

↑