Unit 12 of 13 · about 4 hours · measure

Independent reasoning, capability, safety and agent evaluation, and reward hacking

Training reward is a proxy. Independent tasks, held-out shifts and attack tests decide whether the behavior is real.

You'll be able to

  • Evaluate a reasoning policy with an independent harness kept separate from training rewards and prompts.
  • Plant verifier and judge attacks and show which ones the current evaluator accepts.
  • Explain a reward-hacking case with training versus held-out evidence and a rollback rule.

Covers

Independent reasoning, capability, safety and agent evaluationReward hacking, specification gaming and held-out environment shifts
1

Read

In this order, only the parts listed

0 of 3 done

  1. Over-optimization and proxy failureRLHF Book - Reasoning, Synthetic Data, Tools and Evaluation

    Managing Proxy Objectives: Goodhart shape with training reward climbing while downstream peaks and declines, verbosity and sycophancy examples; Quantitative Over-Optimization: train versus test reward split failing near 150K samples with KL distance on the axis (page read 2026-10-14)

  2. Independent evaluation and contaminationRLHF Book - Reasoning, Synthetic Data, Tools and Evaluation

    Why Many External Comparisons Are Unreliable: 0.25 to 1.5 point std at fixed setup with prompt and sampling effects larger; Contamination: 8-gram Tulu 3 overlaps including UltraFeedback with TruthfulQA and NuminaMath with MATH; Agentic Evaluations: harness plus sandbox components (page read 2026-10-14)

  3. Reward-hacking probes and data flywheelHands-on Modern RL - Reasoning, Agentic RL and Safety

    Extended practice with reward-hacking probes through the flawed_reward plus reward_hacking_report experiment and the failure-to-data flywheel: route each failure back to its cause (page read 2026-10-14)

2

Focus on

  • Training reward cannot be the release metric. Freeze an independent harness with its own prompts, versions and judges.
  • Attack with hardcoded answers, length and style hacks, and leaked tests. Record which attacks score.
  • Judge bias (position, length, identity, self-preference) is measured with swapped-order and blinded pairs, not assumed away.
  • Contamination is checked with overlap probes plus perturbation sets. A no-hit report is bounded, not proof.
Common mistakes · 3
  • Hillclimbing on the public set and reporting it as generalization. Hold out tasks the curriculum never saw.
  • Tuning prompts until the score moves, then comparing against untuned baselines. Fix prompts across methods.
  • Reading a judge win rate as capability. Blind the judge, swap orders, and keep a human-reviewed sample.
3

Try it yourself

Closed-book, before checking anything

From a blank file, plant three attacks on a fixed verifier: a hardcoded answer, a length hack, and a leaked test. Show which the verifier accepts. Then draw the over-optimization shape: training reward climbing while held-out quality peaks and declines.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.What is the over-optimization shape?Answer

    Training reward keeps climbing while held-out quality peaks then declines. The proxy diverged from the goal.

  2. 2.Why test on a held-out environment shift, not just held-out prompts?Answer

    Specification gaming survives prompt splits when the environment stays fixed. Shifts expose hacks tied to tool or task setup.

  3. 3.How do you audit a judge for position bias?Answer

    Swap answer order on the same pairs with blinded identities and compare win rates. A biased judge follows position.

  4. 4.An 8-gram probe finds no overlap. Is the model clean?Answer

    Not proven. Probes miss paraphrases and number changes. Add perturbation sets and report the bound.

5

Practice

  • Hands-on Modern RL: reward-hacking probe set

    Reward-hacking probes with the flawed_reward plus reward_hacking_report experiment on fixed completions: length, style and hardcoded-answer attacks with accepted-or-rejected verdicts per attack

    Keep one hacked regime with its postmortem for the section mini-project. Pin walkinglabs/hands-on-modern-rl at 9231bab.

You're done when

Your probe set accepts at least one planted hack, your held-out shift moves the score, and your report names the rollback rule.

Only when you can do this without notes.

Leads to

Notes

Resources · 2 for this unit, 11 more in the section
  • RLHF Book - Reasoning, Synthetic Data, Tools and EvaluationNathan Lambert · primary

    Study Chapter 7 (reasoning and inference-time scaling), Chapter 12 (synthetic data and on-policy distillation), Chapter 13 (tool use), Chapter 14 (over-optimization) and Chapter 16 (evaluation). Build a claim map separating RLVR learning, inference-time search, on-policy distillation, tool trajectories, reward overoptimization and independent evaluation.

  • Hands-on Modern RL - Reasoning, Agentic RL and SafetyWalking Labs · support

    Use the build-an-agentic-training-system page (a from-scratch trainer exercise), one reasoning or search control and the reward-hacking evaluation chapter selectively. Skip the pages that need API keys or several GPUs and the frontier surveys. 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 5, 7, 11 and 12Nathan Lambert · required

    Use Lecture 5 (the rise of reasoning models), Lecture 7 (synthetic data and modern post-training), Lecture 11 (tool use and the road to agents) and Lecture 12 (frontier model evaluation). Tie every mechanism to a distinct data and compute budget.

  • DeepSeek-R1 Technical ReportDeepSeek AI · required

    Read version 2 of the report (January 2026; the Nature 2025 paper is the peer-reviewed version): the R1-Zero and R1 training pipeline, reward design, observed behaviors and limitations. Reproduce only a reduced verifier-driven question and test whether longer sampling or selection explains the observed gain.

  • Build a Reasoning Model (From Scratch) - Chapters 3, 6 and 8Sebastian Raschka (Manning) · support

    Use Chapter 3 (a math verifier: boxed-answer extraction, normalization and equivalence checks), Chapter 6 (RLVR with GRPO on a MATH subset) and Chapter 8 (distillation from filtered rollouts) as the smallest verifier-to-distillation path on Qwen3 0.6B.

  • Tulu 3: Pushing Frontiers in Open Language Model Post-TrainingLambert et al. (Ai2, 2024) · support

    Read the RLVR section: verifiable rewards for math, instruction following and constraints, and how the RLVR stage sits after SFT and DPO. Compare its recipe with R1-Zero on what is rewarded and what is held out.

  • STaR: Bootstrapping Reasoning With ReasoningZelikman et al. (NeurIPS 2022) · support

    Read the generate, filter by correctness and fine-tune loop and the rationalization step. Use it as the rejection fine-tuning control that an RL method must beat at matched samples.

  • RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement LearningWang et al. (2025) · support

    Read the multi-turn trajectory formulation and the training instabilities it reports for agent RL (collapse into repetitive reasoning). Use it to design the diagnostics for a small multi-turn environment.

  • Stanford CS224R 2026 LLM RL Default Project - ExtensionStanford University · required

    Use the specification sections on SFT, IPO, RLOO, evaluation and one extension such as off-policy sampling, test-time inference, exploration, self-play or tool reasoning. Build independent code on a distinct task and respect all course restrictions.

  • Berkeley CS 185/285 Deep Reinforcement Learning (Spring 2026) - LLM RL Default Final ProjectUC Berkeley · support

    Read the default project for open-ended instruction following: offline DPO, IPO and AOT, online GRPO, Dr. GRPO and GSPO, and judge-based win rates against a frozen base. Use it as a second extension menu; its compute assumes cloud GPUs and a paid judge model.

  • veRLByteDance · support

    Inspect the hybrid-controller architecture, worker roles, supported algorithms and examples at commit 8718ca3 after single-device losses pass. Trace one rollout from generation through reward and update, record policy lag and run only hardware-compatible examples.

  • LLM Post-Training Laboratory - Final IntegrationRoadmap-Final · required

    Finish the bounded rollout and verification queue, reasoning or tool extension, independent clean and adversarial evaluation, reward-hacking postmortem, policy-lag and throughput records, clean reproduction and one prespecified negative or positive result.

  • Reinforcement Learning CheckpointRoadmap-Final · support

    Take the checkpoint closed-note after the integrated project. Pass the estimator and state reconstruction, unseen failure diagnosis, matched-budget comparison, external evaluation and research-readiness clauses.