Reward Overoptimization & Goodhart’s Law
Scaling laws for reward hacking, and how to resist it.
Optimize a learned reward and the quantity it was meant to measure first rises, then falls, while the learned reward keeps climbing. Gao, Schulman and Hilton measured this curve and found that it follows simple laws in the square root of the KL divergence from the starting policy. This lesson derives what the terms of those laws mean, separates the ways a proxy can fail, states when a proxy can be safe to optimize (almost never), computes best-of-n's KL cost exactly, and weighs the mitigations.
What you’ll learn
- State Gao et al.'s functional forms for best-of-n and RL, locate their peaks, and describe how they changed with reward-model size, data and the KL penalty.
- Prove that purely regressional Goodhart with Gaussian errors makes the true reward of best-of-n grow without bound, so a decline needs another mechanism.
- State Skalse et al.'s theorem on unhackable reward functions and explain why it makes overoptimization generic.
- Compute best-of-n's KL divergence exactly in a discrete case, explain when is only an upper bound, and evaluate KL penalties, early stopping, ensembles, retraining and constrained RLHF.
Gold, proxy and the square root of KL
Measuring overoptimization needs a ground truth that can be queried as often as needed. Gao, Schulman & Hilton (2023) built one synthetically: a 6-billion-parameter "gold" reward model plays the part of the human raters and labels the comparisons, and proxy reward models with 3 million to 3 billion parameters are trained on those labels. A policy is optimized against a proxy, by best-of-n sampling or by PPO, and both rewards are tracked against the distance traveled, . The gold reward, relative to the initial policy, fit
Best-of-: vanishes at
RL: vanishes at
Past its peak the best-of- curve bends down with a slope that falls linearly in , the RL curve with a slope that falls only like . In both, the term is the initial gain and the term is the damage. Both forms were fitted to one synthetic setup; nothing guarantees that they hold elsewhere.
Gao et al.'s main findings, all in this synthetic setup:
- Reward-model size. The coefficients changed smoothly, roughly logarithmically, with the proxy's parameter count; larger reward models overoptimized less and reached higher peaks.
- Data. Below about 2,000 comparisons the proxies were close to chance; above that more data helped, and larger reward models improved faster with it.
- Policy size. A larger policy gained less from optimizing against the proxy but did not overoptimize more: both sizes peaked at almost the same KL.
- The KL penalty. Adding a KL penalty to the RL reward made the gold score converge earlier but did not improve the gold-versus-KL frontier: it acted like early stopping, a result the authors note may be sensitive to hyperparameters.
- KL is not a common currency. RL was far less KL-efficient than best-of-, consuming much more KL for the same optimization, so equal KL does not mean equal optimization across methods.
Four ways a proxy fails
| Kind (Manheim & Garrabrant, 2018) | Mechanism | In RLHF |
|---|---|---|
| Regressional | the proxy is the goal plus independent error, so the most extreme proxy values are partly extreme errors | the reward model's random errors; Gao et al. tie it to the term |
| Extremal | the relation between proxy and goal changes in regions the proxy was never fitted on | unusually long or unusual responses; Gao et al. expect it to cause most of the decline (the term) |
| Causal | the proxy tracks a correlate of the goal, and pushing on the correlate does not move the goal | length, confident tone, agreement with the user |
| Adversarial | the optimized system influences the measurement itself | outputs that mislead the evaluator; not studied by Gao et al. |
is jointly Gaussian, so the regression of on is linear:
The samples are independent, so given all proxy values the gold reward of the selected sample depends only on its own proxy value, the maximum. By the tower property, with ,
increases with , since an extra sample can only raise the maximum, and is asymptotic to .
In this Gaussian model with , best-of-16 raises the proxy by about 2.50 (in reward units). By how much does it raise the gold reward?
Show the answer
1.25
With equal variances the regression coefficient is , so the gold gain is half the proxy gain: (exactly , since ). Half of every unit of proxy gain is selected noise, but the other half is real, and it keeps growing with : at the gold gain is about 2.29.
Best-of- costs about nats for large , so and the gold gain in this model grows roughly linearly in : Gao et al.'s term with no downturn. A falling gold reward therefore needs something regression to the mean cannot produce, such as errors that grow away from the training distribution (extremal Goodhart).
Heavy tails are another route. Kwa, Thomas & Garriga-Alonso (2024) show that if the reward model's error is light-tailed, KL-regularized optimal policies achieve arbitrarily high true utility as the penalty is relaxed, but if it is heavy-tailed, some policies obtain arbitrarily high proxy reward with no more true utility than the base model ("catastrophic Goodhart"). Their measurements of reward models found tails consistent with light-tailed error.
Can a proxy be safe to optimize?
Skalse et al. (2022) asked when increasing a proxy reward can never decrease the true one. Fix an MDP and write for the expected return of policy under reward .
In a finite MDP, is linear in the policy's occupancy measure . Two rewards are two linear functionals on the set of occupancy measures, and the occupancy measures of an open set of policies contain an open subset of an affine space (the technical step of the proof).
Let and be the two functionals' gradients within that affine space. If some direction in it has and , then for and small the pair , lies in and is a hack.
Such a always exists unless with : if are linearly independent, solve , ; if with , take . Non-triviality excludes and , so , and positively proportional linear functionals order every point the same way.
The theorem is about the set of all reachable policies, not a prediction for a given training run. It says that a learned reward model, which simplifies human judgment and is never exactly equivalent to it, cannot be safe against unlimited optimization over stochastic policies. Practical defenses therefore limit how much optimization the proxy receives, or restrict which policies are reachable: exactly what KL penalties, early stopping and constraints do. The Artificial Intelligence course's lesson on specification gaming proves a simplified version of the result.
A proxy reward is a simplification of the true reward: it ignores some features the true reward cares about, and it is not constant. Over the set of all stochastic policies, what does Skalse et al.'s theorem imply?
- The pair is unhackable, because a simplification never reverses the order of two policies
- The pair is hackable: some two policies are ordered one way by the proxy and the other way by the true reward
- The pair is unhackable once the proxy is learned from enough data
- Hackability depends only on the discount factor
Show the answer
B. The pair is hackable: some two policies are ordered one way by the proxy and the other way by the true reward
Ignoring features makes the proxy non-equivalent, and it is non-trivial, so on an open set of policies it cannot be unhackable. Some direction in occupancy space raises the proxy while lowering the true return, and an optimizer can move along it.
The KL budget of best-of-n, exactly
Take a prompt with only two possible responses, equally likely under , with different rewards. Best-of- returns the better one unless all draws are the worse one:
The exact divergence is therefore
At this is 0.131 nats against the formula's 0.193; at it is 0.693 against 1.835. However large is, the divergence cannot exceed , the cost of putting all the mass on one of two equally likely responses. The formula's derivation assumes the selected response's quantile is exactly uniform, which fails when has atoms. For open-ended prompts no single response carries much probability and the formula is close; for low-entropy prompts such as "What is the capital of France?", Beirami et al. (2025) found it loose already at .
In the same two-response example, what is the exact KL divergence of best-of-4, in nats? (The formula gives 0.636.)
Show the answer
0.46 nats
and , so nats, well below 0.636.
Beirami et al. (2025) also bound best-of-'s win rate against the reference by and propose a tighter estimator of its KL. The yardstick matters because, as Gao et al. found, RL is far less KL-efficient than best-of-: KL budgets are comparable within a method, not across methods.
Mitigations, and what each buys
| Mitigation | What it does | Evidence and limits |
|---|---|---|
| KL penalty to | limits how far the policy moves | acted like early stopping in Gao et al.'s setup, not as a better frontier |
| Early stopping on fresh evaluation | stops near the peak, judged by new human ratings or a held-out judge | needs an evaluation that is not itself the proxy; expensive |
| Reward-model ensembles | optimize the worst case, or the mean minus a variance penalty, over several reward models (Coste et al., 2024) | practically eliminated overoptimization for best-of- in a synthetic setup; members share error patterns even across different pretraining seeds (Eisenstein et al., 2024) |
| Retraining on the new policy's outputs | moves the reward model's training distribution to where the policy now is | iterated "online" RLHF with weekly updates (Bai et al., 2022); costs fresh labels each round |
| Constrained RLHF | for a reward built from several component reward models, keeps each component at or below its "proxy point", beyond which a held-out evaluation score falls (in their experiments an average of automatic text metrics, standing in for human ratings), with Lagrange multipliers as learned weights (Moskovitz et al., 2024) | needs those thresholds, which the authors find with a gradient-free search within one training run |
| Pessimism | optimizes a lower confidence bound on the reward (Zhu, Jordan & Jiao, 2023) | guarantees under coverage assumptions; hard to make tight for large models |
Key takeaways
- Gao et al. fit the gold reward against as for best-of- and for RL, peaking at and . Larger reward models and more data moved the peak later and higher; the KL penalty acted like early stopping.
- Pure regressional Goodhart with Gaussian errors cannot make the true reward fall: best-of-'s gold reward grows like . The downturn needs extremal effects, errors that grow off-distribution, or heavy-tailed errors.
- Skalse et al.: on an open set of stochastic policies, unhackable non-trivial reward pairs are equivalent. A proxy that simplifies the true reward can be hacked, so defenses limit how far optimization goes.
- Best-of- costs nats only when the reward has a continuous distribution under ; in general that is an upper bound, and with two equally likely responses the cost never exceeds .
- KL penalties, early stopping on fresh evaluations, ensembles, retraining on new outputs and constrained RLHF each delay or bound overoptimization; none removes it.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
For the best-of- form , at what distance is the gold reward largest?
- It never peaks
Show the answer
B.
at , with value . At the gold gain is back to zero.
If a reward model's error is Gaussian, independent of the true reward and the same everywhere, what happens to the true reward under best-of- as grows?
- It peaks and then falls, like Gao et al.'s curves
- It stays at its initial value, because all the gain is noise
- It falls immediately
- It keeps increasing, roughly like
Show the answer
D. It keeps increasing, roughly like
Under joint Gaussianity the expected gold reward of the selected sample is the regression coefficient times its proxy value, and the expected maximum proxy grows with . Pure regressional Goodhart makes selection inefficient, never harmful; the downturn needs extremal or heavy-tailed errors.
In Gao et al.'s experiments, what did adding a KL penalty to the RL reward do?
- It made the gold score converge earlier without improving the gold-versus-KL frontier, much like early stopping
- It improved the gold reward achievable at each KL
- It eliminated overoptimization
- It made RL as KL-efficient as best-of-
Show the answer
A. It made the gold score converge earlier without improving the gold-versus-KL frontier, much like early stopping
The penalty changed where training stopped moving, not the gold reward reached at a given KL. The authors note the result may depend on hyperparameters, but it means a KL penalty is best seen as a way to stop early, not a fix for the proxy.
gives probability to each of two responses with different rewards. What is best-of-1,000's KL divergence from , approximately?
- nats
- 0 nats
- nats
- 1,000 nats
Show the answer
C. nats
Best-of-1,000 returns the better response with probability , essentially a point mass on one of two equally likely responses, whose divergence from is . The formula assumes no response carries positive mass; with atoms it is only an upper bound.
Further reading
- L. Gao, J. Schulman & J. Hilton, "Scaling laws for reward model overoptimization," ICML (2023).
- D. Manheim & S. Garrabrant, "Categorizing variants of Goodhart's law," arXiv:1803.04585 (2018).
- J. Skalse, N. H. R. Howe, D. Krasheninnikov & D. Krueger, "Defining and characterizing reward gaming," NeurIPS (2022); arXiv title "Defining and characterizing reward hacking."
- T. Coste, U. Anwar, R. Kirk & D. Krueger, "Reward model ensembles help mitigate overoptimization," ICLR (2024).
- A. Beirami, A. Agarwal, J. Berant, A. D'Amour, J. Eisenstein, C. Nagpal & A. T. Suresh, "Theoretical guarantees on the best-of-n alignment policy," ICML (2025).