arXiv:2507.15507cs.LGcs.AI2025-07中稿 · COLM被引 6

解决强化学习中奖励模型因分布偏移导致的过优化问题

Off-Policy Corrected Reward Modeling for Reinforcement Learning from Human Feedback

  • 用重要性加权迭代修正奖励模型,避免分布偏移影响
  • 实验显示新方法在摘要和对话任务上显著优于标准RLHF
  • 无需新增标注数据,适合长期训练语言模型的场景

从人类反馈中进行强化学习(RLHF)可使语言模型(LMs)遵循复杂的人类偏好。在针对语言模型的RLHF中,首先通过监督微调训练模型,生成响应对,获取人类反馈,并利用这些数据训练奖励模型(RM)。随后使用强化学习方法训练语言模型以最大化奖励模型给出的奖励。随着训练进行,语言模型生成的响应逐渐偏离奖励模型训练时所见的分布,导致奖励模型失准。尽管奖励分数持续上升,但模型行为已不再符合人类偏好,这一现象称为过优化。本文从分布偏移的角度研究过优化问题,指出偏移会导致奖励模型参数估计不一致,进而引发策略梯度估计偏差。为此提出离策略纠正奖励建模(OCRM),通过重要性加权迭代修正奖励模型,无需新增标注或样本。实验证明该方法能获得更准确的奖励模型,从而提升最终策略性能。在摘要和聊天机器人数据集上的实验表明,其效果显著优于标准RLHF方法和基线。代码已公开于https://github.com/JohannesAck/OffPolicyCorrectedRewardModeling。

原文摘要 · Abstract (English)

Reinforcement Learning from Human Feedback (RLHF) allows us to train models, such as language models (LMs), to follow complex human preferences. In RLHF for LMs, we first train an LM using supervised fine-tuning, sample pairs of responses, obtain human feedback, and use the resulting data to train a reward model (RM). RL methods are then used to train the LM to maximize the reward given by the RM. As training progresses, the responses generated by the LM no longer resemble the responses seen by the RM during training, leading to the RM becoming inaccurate. The score given by the RM keeps increasing, but the learned behavior no longer matches the human preferences. This issue is known as overoptimization. We investigate overoptimization from the point of view of distribution shift and show that the shift results in an inconsistent estimate of the RM parameters, leading to an inconsistent estimate of the policy gradient. We propose Off-Policy Corrected Reward Modeling (OCRM), which iteratively off-policy corrects the RM using importance weighting, without requiring new labels or samples. This results in a more accurate RM, which empirically leads to an improved final policy. We validate our approach in experiments with summarization and chatbot datasets and show that it performs significantly better than standard RLHF methods and baselines. Our implementation is available at https://github.com/JohannesAck/OffPolicyCorrectedRewardModeling

强化学习奖励建模语言模型分布偏移

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。