Skip to content

Scaling Laws for Reward Model Overoptimization

Skip →METR on frontier reward hacking
main track #13corefrontierpaperrubric 12/122022 · ~50 min

Leo Gao, John Schulman, Jacob Hilton

Status

TL;DR. Optimising against a learned reward model first improves the true objective and then makes it worse. Gao, Schulman and Hilton measure this with a synthetic “gold” RM and find that gold score versus d = √KL follows simple functional forms. The coefficients change smoothly with RM size, so over-optimisation is predictable rather than random noise.

Why it matters now. Every RLHF pipeline, every LLM-judge reward, and every best-of-n reranker optimises a proxy. This paper gives the standard picture (proxy keeps rising, gold peaks then falls) and the standard x-axis (√KL from the initial policy). Later work on DPO, ensembles and verifiers reports its results against this picture.

Use a 6B reward model as the gold standard. It labels 100k synthetic comparisons, and proxy RMs from 3M to 3B parameters are trained on those labels. A 1.2B policy is then optimised against each proxy with best-of-n (BoN) or PPO, and the gold RM scores the result. With d=DKL(π ∥ πinit)d = \sqrt{D_{\mathrm{KL}}(\pi \,\|\, \pi_{\mathrm{init}})} the paper fits (§3.1):

Rbon(d)=d (αbon−βbon d),RRL(d)=d (αRL−βRLlog⁡d).R_{\mathrm{bon}}(d) = d\,(\alpha_{\mathrm{bon}} - \beta_{\mathrm{bon}}\, d), \qquad R_{\mathrm{RL}}(d) = d\,(\alpha_{\mathrm{RL}} - \beta_{\mathrm{RL}} \log d).

For BoN the KL is computed analytically as log⁡n−n−1n\log n - \tfrac{n-1}{n}. That is about 6 nats at n=1000n = 1000 and about 10 nats at n=60,000n = 60{,}000. The BoN form fitted on n≤1000n \le 1000 predicted the gold score out to n=60,000n = 60{,}000.

Goodhart curve: proxy reward keeps rising while the true (gold) reward peaks and falls X axis is optimisation pressure against a proxy reward (KL from the initial policy, or best-of-n). The proxy reward curve rises monotonically. The gold reward rises at first, peaks, then declines. The gap between them is over-optimisation. optimisation pressure → (√KL to the start policy, or best-of-n) reward proxy reward (what the optimiser sees) gold / true reward peak: best place to stop over-optimisation gap proxy and goal agree optimiser finds where the proxy is wrong (regressional / extremal Goodhart)
Proxy reward keeps rising with optimisation pressure (√KL), while gold reward peaks and then declines. Gao et al. fit the gold curve with d(α − βd) for best-of-n and d(α − β log d) for RL.
  • Both functional forms fit well across RM sizes. The BoN fit extrapolates far beyond the n used to fit it (§3.1).
  • RL is far less KL-efficient than BoN (§3.5). It needs much more KL for the same gold gain. Plotted against proxy score instead of KL, the two methods look more similar.
  • Policy size (§3.4): a 6B policy gains less from optimisation than a 1.2B policy, but it does not overoptimise more. Both peak at about the same KL.
  • RM loss as a predictor (§3.3): two RMs with equal validation loss showed similar robustness. The authors call this weak evidence.
  • Iterated RLHF (§4.3): if α and β stay fixed and d adds up across k rounds, retraining the RM gives an extra βRL dlog⁡k\beta_{\mathrm{RL}}\, d \log k. The α part does not improve.

The authors put the paper’s thesis this way: “optimizing its value too much can hinder ground truth performance, in accordance with Goodhart’s law” (Gao et al., abstract).

  • The gold standard is itself a reward model. It does not capture the gap between the gold RM and real human intent, and proxy and gold may share errors (§4.5).
  • Single environment, no adversarial Goodhart. The policies are too weak to manipulate the RM on purpose. The authors warn the laws may break for capable systems.
  • No fitted coefficients in the text. The values appear only in figures, so the derive questions above use illustrative numbers.
  • The BoN KL formula is treated as exact here. Later work calls it an upper bound or approximation.
  • Open: do these forms hold for verifiable rewards, LLM judges, or agents with tools? Can the peak be predicted from proxy-side statistics alone?

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Best-of-n has an analytic KL to the initial policy, log n − (n−1)/n. Compute KL and d = √KL for n = 4, 16 and 64. Then use the paper's BoN form R(d) = d(α − β·d) with illustrative coefficients α = 1, β = 0.25 (not fitted values from the paper) to get the gold score at each n, the peak d*, the peak score, and the n at which the peak occurs.

    What a strong answer covers
    • n = 4: KL = 1.386 − 0.75 = 0.636 nats, d ≈ 0.80. n = 16: KL = 2.773 − 0.9375 = 1.835, d ≈ 1.35. n = 64: KL = 4.159 − 0.984 = 3.175, d ≈ 1.78.
    • Gold score with α = 1, β = 0.25: R ≈ 0.64, 0.90 and 0.99. Each 4× increase in n adds less, because KL grows only like log n.
    • dR/dd = α − 2βd = 0 gives d* = α/(2β) = 2, so KL* = 4 nats and R* = α²/(4β) = 1.
    • Solve log n − (n−1)/n = 4: n ≈ 148 (log 148 ≈ 5.00, minus 0.993). Beyond that, a larger n lowers the gold score even though the proxy score keeps rising.
    • Caveat: later papers (for example Helping or Herding and WARM) treat log n − (n−1)/n as an upper bound or approximation of the true BoN KL, so d may be overestimated in practice.
  2. Derive / compute

    For RL the paper fits R(d) = d(α − β·log d). With illustrative coefficients α = 1, β = 0.5, find the peak d*, the KL at the peak, the peak gold score, and the d at which the gold score falls back to zero. Then use the paper's iterated-RLHF result, R = d(α − β·log d + β·log k), to compute the gain from k = 4 rounds at d = d*.

    What a strong answer covers
    • dR/dd = α − β·log d − β = 0, so d* = exp(α/β − 1) = e ≈ 2.72 and KL* = d*² ≈ 7.39 nats.
    • At the peak, α − β·log d* = β, so R* = β·d* ≈ 1.36.
    • R = 0 again when log d = α/β, i.e. d = e² ≈ 7.39, which is KL ≈ 54.6 nats. The RL curve falls much more slowly than the BoN curve, which is quadratic in d.
    • Iterated gain = β·d·log k = 0.5 · 2.72 · 1.386 ≈ 1.88. This needs the paper's assumptions: α and β constant across rounds, and d additive across rounds.
    • The α term is untouched by iteration. Fresh RMs reduce only the β (extremal) part of Goodhart, not the regressional part.
  3. Mechanism

    The paper maps regressional Goodhart to α and extremal Goodhart to β. Using its toy model X̂ = X + Z, explain what each term means for what the policy is optimising, why regressional Goodhart alone can never make gold score fall, and why a larger RM should shrink β.

    What a strong answer covers
    • With X and Z independent and Gaussian, E[X | X̂] moves by only Var(X)/(Var(X)+Var(Z)) per unit of proxy. Part of the optimisation pressure is spent selecting noise.
    • This only lowers the slope, so it shows up as a gap between the proxy slope and α. Gold still rises monotonically with proxy, so it cannot produce a peak.
    • The peak needs extremal Goodhart. As the policy moves away from the RM's training distribution, proxy–gold correlation weakens (for example "longer is better" learned in-distribution), and the β term grows with distance.
    • Larger RMs generalise further from their training data, so the out-of-distribution failure sets in later. This matches the smooth decrease of β with RM size in §3.2.
    • Adversarial Goodhart, where the policy actively manipulates the proxy, is outside the model. The authors warn the laws may break for more capable policies.
  4. What if…

    In §3.6 the KL penalty is varied for RL. The gold score turns out to depend only on the KL actually reached, so the penalty works like early stopping. What does this imply about the common belief that "the KL penalty prevents reward hacking", and what would you check before trusting it in your own setup?

    What a strong answer covers
    • The penalty does not move the gold–KL frontier. It only stops the policy at a smaller KL. Any KL-matched checkpoint without the penalty is equally good.
    • So the penalty is a way of choosing where to stop on a fixed curve, not a fix for a bad RM. It also widens the proxy–gold gap at a given gold score.
    • Caveat from the paper: PPO's clipping already limits KL to π_old, and the KL penalty here is to π_init, so the two effects are different.
    • Check: run several penalties, plot gold (or held-out human/judge) score against KL, and see whether the curves collapse. If they do not, your RM or task breaks the paper's finding.
    • The setup is synthetic, with one RM family and one task. Whether the result holds with real human labels or for verifiable rewards is an open question.
  5. Critique

    The "gold" reward is a 6B reward model, and proxies are trained on its labels. Name two ways this synthetic setup could make the scaling laws look cleaner than real RLHF, and design an experiment that could falsify the functional forms in a real setting.

    What a strong answer covers
    • Proxy and gold are both learned RMs from related pretraining. Their errors may be correlated, which hides failures that real humans would catch. The authors list this correlation as a limitation.
    • Labels are deterministic (the higher gold score wins), with no annotator noise or disagreement, and there is no gap between the gold RM and real human intent.
    • There is one environment and no adversarial Goodhart, so the fits may not transfer to agents or tool use.
    • Falsification test: train proxy RMs on real human or strong-judge labels, then collect fresh human labels on policies at a grid of KL values (BoN and RL). Fit both forms and test held-out predictions at a larger KL, as the paper did by fitting BoN on n ≤ 1000 and predicting up to n = 60,000.
  6. Design

    You train a deep-research search agent with RL against an LLM-judge reward that scores the final report. You can only afford a small number of human or nugget-based audits. How would you use this paper's framework to choose a KL budget and checkpoint, and which signal would warn you that you have passed the peak?

    What a strong answer covers
    • Log KL to the initial policy and use d = √KL as the x-axis, not training steps. Audit a small sample at several KL values to sketch the gold curve.
    • Before RL, use best-of-n against the judge as a cheap probe. KL is known in closed form (log n − (n−1)/n), and a peak in audited quality versus n shows the judge's limit early.
    • Warning sign: judge score keeps rising while nugget recall or citation precision from the audits stops rising or falls. A growing judge–audit gap means you are past d*.
    • Levers that move the peak: a larger or better-trained judge (smaller β), more judge training data, or refreshing the judge on policy samples (the iterated-RLHF gain β·d·log k).
    • Caveat: an agent can find adversarial hacks such as fake citations or prompt injection in retrieved text. These are outside the paper's taxonomy and the curve may not warn about them.

Done with this page?

Status