Skip to main content
QUICK REVIEW

[论文解读] Gradient Regularization Prevents Reward Hacking in Reinforcement Learning from Human Feedback and Verifiable Rewards

Johannes Ackermann, Michael Noukhovitch|arXiv (Cornell University)|Feb 20, 2026
Explainable Artificial Intelligence (XAI)Computer Science被引用 0
一句话总结

论文提出梯度正则化(GR)以将策略更新偏向代理奖励准确的区域,从而缓解 RLHF 和 RLVR 中的奖励劫持,并可能替代 KL 罚项。

ABSTRACT

Reinforcement Learning from Human Feedback (RLHF) or Verifiable Rewards (RLVR) are two key steps in the post-training of modern Language Models (LMs). A common problem is reward hacking, where the policy may exploit inaccuracies of the reward and learn an unintended behavior. Most previous works address this by limiting the policy update with a Kullback-Leibler (KL) penalty towards a reference model. We propose a different framing: Train the LM in a way that biases policy updates towards regions in which the reward is more accurate. First, we derive a theoretical connection between the accuracy of a reward model and the flatness of an optimum at convergence. Gradient regularization (GR) can then be used to bias training to flatter regions and thereby maintain reward model accuracy. We confirm these results by showing that the gradient norm and reward accuracy are empirically correlated in RLHF. We then show that Reference Resets of the KL penalty implicitly use GR to find flatter regions with higher reward accuracy. We further improve on this by proposing to use explicit GR with an efficient finite-difference estimate. Empirically, GR performs better than a KL penalty across a diverse set of RL experiments with LMs. GR achieves a higher GPT-judged win-rate in RLHF, avoids overly focusing on the format in rule-based math rewards, and prevents hacking the judge in LLM-as-a-Judge math tasks.

研究动机与目标

  • 在 RLHF/RLVR 设置中,当代理奖励(PRs)不完美时,动机并形式化奖励劫持。
  • 建立奖励准确性与最优解平坦性之间的理论联系,指导基于 REG 的训练。
  • 提出实用的 GR 技术(通过 Reference Resets 的隐式正则化和显式有限差分 GR)以最大化 PR 的准确性与真实奖励。
  • 在 RLHF/RLVR 任务上对 GR 与 KL 罚项进行对比的经验验证,并展示对 RM 质量的鲁棒性。

提出的方法

  • 将 RL 表述为带有代理奖励 eR 的优化问题,并推导将期望 PR 与策略目标的梯度正则化相结合的策略目标。
  • 在 Lipschitz PR 假设下,建立平坦最优解、PR 准确性(通过 Bradley–Terry 损失)与动作空间鲁棒性之间的理论联系。
  • 通过 Reference Resets 引入隐式 GR 作为实用的正则化机制,并在基准测试中与基于 KL 的罚项进行比较。
  • 提出使用有限差分梯度估计的显式 GR,并将其应用于对 RLHF/RLVR 的 Transformer 模块进行选择性扰动以提高效率。
  • 在 TL;DR、AlpacaFarm、GSM8K 和 MATH 风格任务上,使用带 LLM 评判者和基于规则的奖励的基线(DPO、带参考重置的 DPO、带 KL 的 GRPO)来评估 GR 的表现。
  • 展示 GR 可以替代 KL 罚项,提升 PR 精度和最终策略性能。

实验结果

研究问题

  • RQ1梯度正则化是否能将策略更新偏向代理奖励更准确的区域,从而降低奖励劫持?
  • RQ2在 RLHF/RLVR 设置中,优化景观的平坦性与代理奖励准确性之间的理论关系是什么?
  • RQ3隐式 GR(Reference Resets)在 RLHF/RLVR 的性能与鲁棒性方面,与显式 GR 和 KL 罚项相比有何差异?
  • RQ4GR 是否对不同的代理奖励质量和奖励日志格式(LLM 作为评判者 vs 基于规则的奖励)具有鲁棒性?
  • RQ5将在实践中用显式 GR 替代 KL 罚项,同时保持训练稳定性并提升最终指标吗?

主要发现

  • GR 将优化偏向平坦极大值,这在经验上与更高的代理奖励准确性和减少奖励劫持相关。
  • Reference Resets(隐式 GR)在 RLHF 基线和模型规模上始终优于标准 KL 罚项。
  • 显式有限差分 GR 达到或超过基于 KL 的方法,提升在 RLHF 与 RLVR 任务中的胜率并减缓 PR 劫持。
  • GR 在基于规则和以 LL M 为评判者的设置中降低对格式化或简单子奖励的过度强调,在与 RL 后训练结合时,使 GSM8K 与 MATH 等任务的性能更具鲁棒性。
  • GR 对 RM 的准确性和超参数具有鲁棒性,并且在训练中通过梯度正则化可以弥补较弱的 RM。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。