Unit 5 of 9 · about 5 hours · implement, measure
Executable verifiers, completeness, soundness and verifier error tests
Verifiable tasks replace noisy human scores with exact checks, but every verifier has a parser boundary. Policy optimization finds that boundary fast, so tests must cover it first.
You'll be able to
- Implement a deterministic verifier with explicit parser boundaries and report completeness and soundness separately.
- Build false-positive and false-negative verifier tests, including equivalent-answer and format-deviation cases.
- State what a verifier cannot establish and which failures need hidden tests outside training.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Verifiable rewards with a runnable verifierHands-on Modern RL - RLHF Evaluation and Process Rewards
Section 15.3.2 (determinism, correctness and efficiency; parser boundary cases); Section 15.3.4 (extract, grade and reward functions with
extract_boxed_answerandreward_rlvr); Gap from Production Implementations; Section Summary (page read 2026-10-14) - Step boundaries and formal checking vocabularyHands-on Modern RL - RLHF Evaluation and Process Rewards
Section 1.3 (step boundaries must be decided before scoring) and Section 4.1 (discriminative, generative and formal feedback with Lean and Coq proof checkers) (page read 2026-10-14)
- Deterministic verifier with hidden adversarial testsLLM Post-Training Laboratory - Reward and Adversarial Evaluation
Core requirements and Architecture constraints (deterministic verifier, version binding, immutable rollouts); Milestones C and D (verifier tests, loophole injection, proxy-improves-behavior-worsens case)
Focus on
- A usable verifier promises three properties: determinism on identical inputs, correctness against true answer quality, and speed that never bottlenecks training. Correctness is the subtle one.
- Completeness accepts correct answers and soundness rejects wrong ones. Report both rates, because a strict parser can be sound yet incomplete and a lenient matcher the reverse.
- Parser boundaries decide rewards as much as math does. Boxed-answer extraction, numeric tolerance and symbolic equivalence each accept and reject different equivalent forms.
- Verifiers cover only checkable slices. Math, code tests and formal proofs qualify; politeness, creativity and safety do not, and training tests must stay separate from hidden release tests.
Common mistakes · 3
- Counting a missing box as a math failure. The page's boxed-only extractor returns no answer and reward 0, which trains format compliance, not reasoning; fix the parser contract or teach format separately.
- Equating string equality with answer equivalence. Fractions, decimals, factored and expanded forms need tolerance or symbolic checks, or correct answers fail.
- Shipping one verifier as complete evaluation. Visible tests leak into training incentives, so release needs hidden tests the policy never optimized against.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.What do completeness and soundness measure for a verifier?Answer
Completeness is the rate at which correct answers pass; soundness is the rate at which wrong answers fail. A verifier can be perfect on one and poor on the other.
2.The model derives the right number but omits the boxed format and gets 0. Is the math wrong?Answer
Not necessarily. The parser boundary rejected it before grading. The reward conflates format and math, so either widen the parser or train format as its own objective.
3.What separates the minimal classroom verifier from a production math verifier?Answer
Production adds symbolic equivalence checks, LaTeX parsing and multiple accepted formats where the minimal version uses string matching plus float tolerance.
4.What must accompany every verifier score at release?Answer
Held-out problems plus adversarial and hidden tests with version binding. Training reward is never the sole release metric.
Practice
- Hands-on Modern RL 15.3: runnable RLVR verifier with error tests
Run
code/chapter09_grpo_rlvr/rule_based_reward.pyat commit 9231bab without any model and compare its extraction (boxed answer, then answer phrases, then the last number) with the page's boxed-onlyextract_boxed_answer. Then add false-negative cases (equivalent forms such as 1/2 versus 0.5, format deviations) and false-positive cases (a wrong number the fallback picks up, tolerance edges) (page read 2026-10-14)Runs on CPU. Record completeness and soundness separately for both extractors; keep the training cases and the hidden cases in different files.
You're done when
Your verifier passes hidden equivalent-answer and format-deviation cases with separate completeness and soundness rates, and you can name what it cannot check.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 8 more in the section
- 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/chapterNNfolders do not follow the site chapter numbers. - 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.
Also in this 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.
- 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.
- 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.
- 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.