基于人类反馈的强化学习(Reinforcement Learning from Human Feedback, RLHF)利用库尔贝克-莱布勒(Kullback-Leibler, KL)散度损失来稳定训练并防止过拟合。然而在GRPO等方法中,其实现可能受数值价值估计相关原则的指导,这种做法忽略了该项作为优化损失的功能作用。为分析这一问题,我们构建了一个统一框架,将两种看似截然不同的实现方式关联起来:一种是将数学项$k_n$作为策略得分函数的分离系数(“奖励中的$k_n$”),另一种是将其作为直接损失函数用于梯度传播(“$k_n$作为损失”)。我们证明后者始终可以通过前者中的等效梯度系数进行分析,从而统一了两种视角。通过该框架,我们证明传统的“奖励中的$k_1$”(如PPO中的实现)是反向KL(Reverse KL, RKL)正则化的原则性损失形式。我们进一步得到一项关键发现:在同策略(on-policy)条件下,“$k_2$作为损失”的公式实际上与“奖励中的$k_1$”梯度等价。这一等价性由本研究首次证明,确认了二者都是RKL目标的理论合理实现。相比之下,我们证明近期采用的“$k_3$作为损失”(如GRPO中的实现)仅仅是原则性损失的一阶有偏近似。此外,我们指出“$k_n$作为损失”方法的常见异策略(off-policy)实现因忽略重要性采样而存在偏差,并提出了一种原则性的修正方案。我们的发现为KL正则化的选择与正确实现提供了全面的、基于梯度的理论依据,为构建更鲁棒、更有效的RLHF系统铺平了道路。
英文摘要:
Reinforcement Learning from Human Feedback (RLHF) leverages a Kullback-Leibler (KL) divergence loss to stabilize training and prevent overfitting. However, in methods such as GRPO, its implementation may be guided by principles from numerical value estimation-a practice that overlooks the term's functional role as an optimization loss. To analyze this issue, we establish a unified framework that connects two seemingly distinct implementation styles: using the mathematical term $k_n$ as a detached coefficient for the policy's score function ('$k_n$ in reward') or as a direct loss function through which gradients are propagated ('$k_n$ as loss'). We show that the latter can always be analyzed via an equivalent gradient coefficient in the former, unifying the two perspectives. Through this framework, we prove that the conventional '$k_1$ in reward' (like in PPO) is the principled loss for Reverse KL (RKL) regularization. We further establish a key finding: under on-policy conditions, the '$k_2$ as loss' formulation is, in fact, gradient-equivalent to '$k_1$ in reward'. This equivalence, first proven in our work, identifies both as the theoretically sound implementations of the RKL objective. In contrast, we show that the recently adopted '$k_3$ as loss' (like in GRPO) is merely a first-order, biased approximation of the principled loss. Furthermore, we argue that common off-policy implementations of '$k_n$ as loss' methods are biased due to neglected importance sampling, and we propose a principled correction. Our findings provide a comprehensive, gradient-based rationale for choosing and correctly implementing KL regularization, paving the way for more robust and effective RLHF systems.
$f$-Divergence Regularized RLHF: Two Tales of Sampling and Unified Analyses
Department of Electrical and Computer Engineering, University of Virginia, Virginia, United States(弗吉尼亚大学电气与计算机工程系);Princeton Language and Intelligence, Princeton University, New Jersey, United States(普林斯顿大学语言与智能)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
University of Pennsylvania(宾夕法尼亚大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));National University of Singapore(新加坡国立大学);Peking University(北京大学);Joint corresponding authors(联合通讯作者)
Uncertainty-Penalized Reinforcement Learning from Human Feedback with Diverse Reward LoRA Ensembles
National University of Defense Technology(国防科技大学);State Key Laboratory of Complex & Critical Software Environment(复杂与关键软件环境国家重点实验室);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室)
Position Paper: Rethinking Privacy in RL for Sequential Decision-making in the Age of LLMs
Centre for Frontier AI Research (CFAR)(前沿人工智能研究所在);Institute of High Performance Computing (IHPC)(高性能计算研究所);Agency for Science, Technology and Research(科技研究局);D-ITET;ETH Zurich(苏黎世联邦理工学院);CCDS, Nanyang Technological University(南洋理工大学CCDS)
Rethinking Entropy Regularization in Large Reasoning Models
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Fudan University(复旦大学);Shanghai Jiao Tong University(上海交通大学);Chinese University of Hong Kong(香港中文大学)
Towards Reward Fairness in RLHF: From a Resource Allocation Perspective
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Beijing Key Laboratory of Research on Large Models and Intelligent Governance(北京大型模型与智能治理研究重点实验室);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(下一代智能搜索与推荐工程技术研究中心,教育部);Kuaishou Technology(快手科技);University of Chinese Academy of Sciences(中国科学院大学)
Distortion of AI Alignment Revisited: RLHF is a Decent Utilitarian Aligner
University of California, Berkeley(加州大学伯克利分校);Center for Advanced Intelligence Project, RIKEN(RIKEN先进智能项目中心);The Institute of Statistical Mathematics and the Graduate University for Advanced Studies(统计数理研究所与综合研究大学院大学);Tohoku University(东北大学)
Rethinking Probability-Based Reinforcement Learning From Posterior Concentration
National University of Singapore(新加坡国立大学);The Hong Kong University of Science and Technology(香港科技大学);University of Science and Technology of China(中国科学技术大学)
Mitigating Reward Over-Optimization in RLHF via Behavior-Supported Regularization
College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);The State Key Lab of Brain-Machine Intelligence, Zhejiang University(浙江大学脑机智能国家重点实验室);LLM Safety Centre, Beijing Academy of Artificial Intelligence(北京人工智能研究院大语言模型安全中心);Center for AI Safety and Governance, Peking University(北京大学人工智能安全与治理中心)
École Polytechnique(巴黎综合理工学院);HSE University(高等经济大学);Google DeepMind(谷歌DeepMind);Mohamed Bin Zayed University of AI(穆罕默德·本·扎耶德人工智能大学);IDEMIA(Morpho公司(IDEMIA));ENS Lyon(里昂高等师范学院)