Unit 6 of 9 · about 4 hours · explain, measure

Length and style shortcuts, reward shift and overoptimization

Optimizing a learned reward exploits its blind spots by design. Without a proxy-versus-behavior check, rising reward reads as progress while the product gets worse.

You'll be able to

  • Explain proxy-versus-gold overoptimization: train reward rises while true quality peaks then falls with KL distance, with different curves for RL and best-of-n.
  • Measure length, template and format shortcuts with reward-length correlation and phrase-frequency checks.
  • Distinguish overoptimization from overfitting and state the rollback rule when proxy and behavior diverge.

Covers

Format, verbosity, style and response-length shortcutsReward distribution shift as the policy changesReward overoptimization and proxy regression
1

Read

In this order, only the parts listed

0 of 4 done

  1. Overoptimization, proxy objectives and qualitative failure signsRLHF Book - Reward Models, Preferences and Evaluation

    Managing Proxy Objectives (Goodhart, proxy versus true objective, verbosity and rare-token exploits); Over-Refusal and Too Much RLHF; Quantitative Over-Optimization (KL distance axis, train and test reward-model split); Misalignment and the Role of RLHF (sycophancy)

  2. Proxy-versus-gold scaling curvesScaling Laws for Reward Model Overoptimization

    arXiv:2210.10760v1, Sections 1 to 4 (gold-standard reward as the human stand-in, proxy training, best-of-n and RL curves against KL distance, effects of data and parameters) and Section 3.6 (Effect of KL Penalty)

  3. Reward-hacking detection and controlled experimentHands-on Modern RL - RLHF Evaluation and Process Rewards

    Reward Hacking Specialized Checks (reward_hacking_signals with length correlation and phrase counts); Reward Hacking Controlled Experiment (flawed_reward, hand calculation, anomaly curves); Reward hacking diagnosis flow; Training-Time Monitoring checkpoint table (page read 2026-10-14)

    Recompute the worked win rates with ties as half-wins and run flawed_reward on the two strings yourself. The page example table divides by wins plus losses only, and its printed reward totals do not match character-length scoring, but the ordering verdict (verbose beats concise) is what you must reproduce.

  4. Data biases that become shortcutsRLHF Book - Reward Models, Preferences and Evaluation

    Bias: Things to Watch Out For (verbosity, formatting habits, sycophancy and prefix bias)

2

Focus on

  • Overoptimization differs from overfitting. Overfitting degrades the same task on held-out data; overoptimization improves the proxy while the true goal peaks then falls, so plot quality against KL distance, not just steps.
  • In the paper setup, gold score follows different functional forms in KL distance for RL and best-of-n, with RL spending far more KL, while gold against proxy score looks similar for both. A fixed gold model stands in for humans, so label the curves synthetic overoptimization evidence, never human results.
  • Length bias is load-bearing evidence, not folklore. On TL;DR, length explains about a third of the gap between the 6.7B human-feedback and supervised models in the summarization work, and in a train and test reward-model split the book shows, test reward stops following train reward as optimization continues.
  • Fixes combine data, rubric and constraints. Penalizing length alone treats a symptom; the durable fix feeds bad cases back as rejected pairs, retrains the reward model and holds the KL constraint.
Common mistakes · 3
  • Reading the page win-rate table as ties-count-half. Its rows divide wins by wins plus losses, so recompute as wins plus half ties over all outcomes before quoting a rate.
  • Trusting printed flawed-reward totals exactly. Character-length scoring on the page strings gives larger totals than printed, but both rank the verbose empty answer above the concise accurate one; run the function.
  • Calling the KL penalty a fix by itself. The book says a higher penalty reduces overoptimization at a given KL distance but needs more steps, and in the Gao et al. RL setup the penalty left the gold versus KL frontier unchanged, acting like early stopping. Either way it is a brake, not a repair of the reward model.
3

Try it yourself

Closed-book, before checking anything

Closed-book, sketch train-reward rising while gold quality rises then falls against KL distance for RL and best-of-n, then run the flawed length-plus-format reward on one concise and one verbose answer and show the verbose one wins.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.How does overoptimization differ from overfitting?Answer

    Overfitting memorizes training examples so the same task degrades on held-out data. Overoptimization genuinely improves the proxy while the true goal degrades, because the metric itself diverges from the goal.

  2. 2.What does the gold-versus-proxy setup establish, and what are its limits?Answer

    A fixed gold model stands in for humans while a proxy trains on its labels; optimizing the proxy traces different curve forms for RL and best-of-n against KL distance. It models human feedback synthetically, so it cannot set human constants.

  3. 3.Reward correlates 0.8 with length and mean length tripled while reward rose. What is the call?Answer

    Length hacking. Roll back, add concise-chosen versus long-filler-rejected pairs, retrain the reward model, and require the length correlation and manual review to pass before resuming.

  4. 4.Why is a length penalty alone an incomplete fix?Answer

    It suppresses one exploit without repairing the reward model or the rubric. The policy shifts to the next blind spot such as templates or confident jargon, so pair the penalty with flywheel data and KL control.

5

Practice

  • Hands-on Modern RL 13.6: flawed-reward hacking experiment

    Run the full Reward Hacking Controlled Experiment: score both worked answers with flawed_reward, log reward, length, distinct n-grams and KL across steps, then apply the multi-dimensional safer_reward fix (page read 2026-10-14)

    Runs on CPU. Keep every run including the hacked regime; the table shape matters more than any single number.

You're done when

You can run the flawed-reward experiment, read the reward, length and diversity curves together, and issue a rollback with the data fix instead of tuning the penalty alone.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 7 more in the section
  • RLHF Book - Reward Models, Preferences and EvaluationNathan Lambert · primary

    Study Chapter 5 (reward modeling: Bradley-Terry loss, outcome, process and generative reward models), Chapters 10 and 11 (preferences and preference data), Chapter 14 (over-optimization) and Chapter 16 (evaluation). Implement the pairwise reward loss, compare outcome, process and generative reward roles, and build an adversarial feedback audit covering preference bias, reward shift and overoptimization.

  • Scaling Laws for Reward Model OveroptimizationGao, Schulman and Hilton (ICML 2023) · required

    Read the gold-reward setup and the proxy-versus-gold curves for best-of- and RL as the KL distance grows. Reproduce the shape at toy scale: a small proxy reward model, a known gold reward and best-of- selection.

  • Hands-on Modern RL - RLHF Evaluation and Process RewardsWalking Labs · support

    Use the outcome-versus-process page (its discounted ORM and PRM returns are worth recomputing by hand) and the process-reward and search chapter as an implementation map for verifier tests. Check claims against the original sources. Pin commit 9231bab of walkinglabs/hands-on-modern-rl; its code/chapterNN folders do not follow the site chapter numbers.

Also in this section

  • RLHF Book Course - Lectures 2, 8 and 9Nathan Lambert · required

    Use Lecture 2 (instruction tuning, reward models and rejection sampling), Lecture 8 (preferences and preference data) and Lecture 9 (over-optimization). Reproduce the reward-data-to-score path and keep rejection sampling as a non-RL selection baseline for later online optimization.

  • Deep Reinforcement Learning from Human PreferencesDeepMind and OpenAI · required

    Study the preference-query, reward-learning and policy-optimization loop. Reproduce a tiny preference model or simulator and measure how label noise or policy shift changes reward accuracy and control quality.

  • Learning to Summarize from Human FeedbackStiennon et al. (NeurIPS 2020) · support

    Read the reward-model and policy-training protocol, the KL penalty and the length analysis. Use it as the first full example of a reward model trained on comparisons and then optimized against.

  • Let's Verify Step by StepLightman et al. (2023) · support

    Read how process supervision labels steps, how the process reward model scores a solution and how outcome and process supervision compare under best-of- selection. Define step boundaries for your own task before training any process scorer.

  • Constitutional AI: Harmlessness from AI FeedbackAnthropic · support

    Study supervised self-critique, AI preference feedback and RL from AI feedback. Implement a bounded rubric-conditioned comparison exercise and test judge correlation and principle ambiguity rather than reproducing the full pipeline.

  • Stanford CS224R 2026 - Reward LearningStanford University · support

    Study Lecture 08 (reward learning, slides/08_cs224r_reward_learning_2026.pdf) with its Christiano et al. reading, and Section 1.2 of the default project guidelines for preference and verifier datasets. Use fixed chosen and rejected examples and a hidden adversarial split; write independent implementations.

  • LLM Post-Training Laboratory - Reward and Adversarial EvaluationRoadmap-Final · required

    Complete the pairwise reward model, held-out and calibration analysis, deterministic verifier, judge-bias audit, reward-hacking probes and the required case where proxy reward improves while independent behavior worsens.