[Paper Review] Gradient Regularization Prevents Reward Hacking in Reinforcement Learning from Human Feedback and Verifiable Rewards
The paper proposes gradient regularization (GR) to bias policy updates toward regions where proxy rewards are accurate, mitigating reward hacking in RLHF and RLVR and potentially replacing KL penalties.
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.
Motivation & Objective
- Motivate and formalize reward hacking in RLHF/RLVR settings where proxy rewards (PRs) are imperfect.
- Develop a theoretical link between reward accuracy and flatness of optimum, guiding REG-based training.
- Propose practical GR techniques (implicit via Reference Resets and explicit finite-difference GR) to maximize PR accuracy and true reward.
- Empirically validate GR against KL penalties across RLHF/RLVR tasks and demonstrate robustness to RM quality.
Proposed method
- Formulate RL with proxy reward eR and derive policy objective that combines expected PR with gradient regularization of the policy objective.
- Establish theoretical connections between flat optima, PR accuracy (via Bradley–Terry loss), and robustness in action space under Lipschitz PR assumptions.
- Introduce implicit GR via Reference Resets as a practical regularization mechanism and compare to KL-based penalties across benchmarks.
- Propose explicit GR using finite-difference gradient estimation and apply it to RLHF/RLVR with transformer blocks selectively perturbed for efficiency.
- Evaluate GR against standard baselines (DPO, DPO with reference resets, GRPO with KL) on TL;DR, AlpacaFarm, GSM8K, and MATH-style tasks with LLM judges and rule-based rewards.
- Show GR can replace KL penalties and improve PR accuracy and final policy performance.
Experimental results
Research questions
- RQ1Can gradient regularization bias policy updates toward regions where the proxy reward is accurate, thereby reducing reward hacking?
- RQ2What is the theoretical relationship between flatness of the optimization landscape and proxy-reward accuracy in RLHF/RLVR settings?
- RQ3How does implicit GR (Reference Resets) compare to explicit GR and KL penalties in terms of RLHF/RLVR performance and PR robustness?
- RQ4Is GR robust to varying proxy reward quality and reward-journal formats (LLM-as-a-judge vs rule-based rewards)?
- RQ5Can explicit GR replace KL penalties in practice while maintaining training stability and improving final metrics?
Key findings
- GR biases optimization toward flat maxima, which empirically correlates with higher proxy-reward accuracy and reduced reward hacking.
- Reference Resets (implicit GR) consistently outperform standard KL penalties across RLHF baselines and model scales.
- Explicit finite-difference GR matches or exceeds KL-based approaches, improving win rates and mitigating PR hacking in RLHF and RLVR tasks.
- GR reduces overemphasis on formatting or easy sub-rewards in rule-based and LLM-as-a-judge settings, leading to more robust performance across tasks like GSM8K and MATH when combined with RL post-training.
- GR demonstrates robustness to RM accuracy and hyperparameters, and can compensate for weaker RMs by enforcing gradient regularization during training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.