Reward Hacking › Summary

Michael BrenndoerferDecember 25, 20252 min read
Language AI HandbookAll chapters
Part 37 of 67Alignment and RLHF
Chapter 276Reward Hacking › Summary
Reading section 10 of 11 · Summary · 2 minSection 10 of 11 · 2 min

Book contents

Section 10 of 11 · 2 min read

Reward Hacking › SummaryOne section · Sections in this chapter10 / 11 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Reward hacking represents a basic challenge in aligning language models with human preferences. When we optimize against a learned reward model, the optimization process can discover ways to achieve high scores without creating the outputs humans want. This happens because the reward model is an imperfect proxy for true human preferences, and optimization is agnostic about this imperfection: it exploits errors in the proxy just as readily as it captures useful quality signals.

The key mechanisms driving reward hacking are:

  • Proxy-truth mismatch: The learned reward model RϕR_\phi approximates but does not equal the true human preference R∗R^*, and the error term ϵ(x,y)=Rϕ−R∗\epsilon(x, y) = R_\phi - R^* has exploitable structure.
  • Distribution shift: As optimization pushes the policy away from the reference distribution, the reward model must extrapolate into unfamiliar territory where its predictions become unreliable.
  • Over-optimization: Continued optimization past the quality peak compounds small errors into large ones, following the scaling law R∗≈αDKL−βDKLR^* \approx \alpha\sqrt{D_{\text{KL}}} - \beta D_{\text{KL}}.
  • Behavioral exploits: Specific patterns like length inflation, sycophancy, format gaming, and question-echoing emerge from spurious correlations learned by the reward model.

Mitigation strategies include KL divergence penalties to constrain policy drift, reward model ensembles to reduce individual model vulnerabilities, uncertainty estimation to discourage exploration into unreliable regions, iterative reward model updates to maintain alignment between training and policy distributions, and best-of-N sampling as a conservative alternative to direct optimization. No single strategy is sufficient; in practice, effective RLHF systems combine several of these approaches.

As we move into the upcoming chapters on policy gradient methods and PPO, understanding reward hacking will be important. The techniques for optimizing language model policies are designed with these failure modes in mind, incorporating constraints and regularization specifically to prevent the optimization pathologies we have examined here. The KL divergence penalty, in particular, will play a central role in making RLHF optimization stable and effective despite the inherent limitations of learned reward models.