人类反馈强化学习(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.
Your Pre-trained LLM is Secretly an Unsupervised Confidence Calibrator
Department of Statistics and Data Science, Southern University of Science and Technology(统计与数据科学系,南方科技大学);Department of Computer Sciences, University of Wisconsin-Madison(计算机科学系,威斯康星大学麦迪逊分校)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);Beijing Key Laboratory of Big Data Management and Analysis Methods(北京大数据管理与分析方法重点实验室);Huawei Noah’s Ark Lab(华为诺亚实验室)
Distance Metric Learning Loss Functions in Few-Shot Scenarios of Supervised Language Models Fine-Tuning
Warsaw University of Technology(华沙理工大学);NASK - National Research Institute(NASK国家研究所)
本文分析了距离度量学习(DML)损失函数对分类任务的语言模型的监督微调的影响。我们使用来自SentEval Transfer Tasks的已知数据集进行了实验。我们的实验表明,应用DML损失函数可以提高Few-Shot场景中RoberTa大型模型的下游分类任务的性能。使用SoftTriple损失进行微调的模型可以比使用标准分类交叉熵损失函数的模型获得更好的结果,从0.04到13.48个百分点,具体取决于训练数据集。此外,我们完成了一个全面的分析与解释性技术,以评估模型的可靠性和解释他们的结果。