Topic 50 of 62 · Post-training
Reward gains vs real improvement
HardYour RL-tuned model’s reward-model score climbed 30%, but you need to decide whether to ship it. What evidence do you require?
1 · Start with the intuition
A learned reward model (or LLM judge) is an imperfect proxy for human utility. When you optimize a policy directly against that proxy—Goodhart’s Law—the policy eventually discovers out-of-distribution quirks that score high on the reward model without actually helping users, such as extreme verbosity, sycophantic phrasing, markdown bullet stuffing, or repetitive formatting. A rising training reward only proves the optimizer worked; shipping requires independent, bias-controlled evaluation across held-out slices.
2 · How the mechanism works
Mechanism step 1 of 3 · no question to answer
Separate optimizer proxy from eval
Never use the training reward model as your sole ship criterion; evaluate with independent verifiers, task benchmarks, and blinded human/judge pairs.
Next, we will look at: Control position & length confounds. Move on when this operation makes sense.
Visualizing the behavior
Goodhart’s law: the proxy keeps rising, true quality peaks
Illustrative- proxy reward-model score
- true (gold) quality
Paired comparison against a baseline (100 prompts)
Derived- Wins (55)
- Ties (15)
- Losses (30)
3 · The governing equation
Order-balanced win rate = ½ [ WinRate(A first, B second) + WinRate(B first, A second) ] Tie-adjusted score = (Wins + 0.5 × Ties) / N_pairs
Notation: Running both presentation orders cancels symmetric position bias in pairwise judges; stratifying by length isolates verbosity bias.
When a reward score jumps during RL, the first three diagnostics to plot against training step are: (1) KL(πθ ‖ π_ref), which shows how far the policy has drifted into regions where the reward model is uncalibrated; (2) average response length in tokens, since verbosity is the most common reward-hacking exploit; and (3) deterministic capability benchmarks (code execution, math verifiers) plus safety/over-refusal slices. If overall win rate rises 10% while response length doubles and length-controlled win rate is flat at 50%, the model only learned to be wordier.
4 · Put concrete numbers on it
Illustrative scenario5 · Common misconception to avoid
Treating a rising reward-model curve or a single unstratified LLM-judge win rate as proof of improvement without checking response length, presentation order bias, or capability regressions.
In practice · implementation & engineering rule of thumb
Always run pairwise LLM-judge evaluations in both presentation orders ((A,B) and (B,A)) and report length-stratified win rates alongside average output token counts.
# Position-debiased pairwise judge evaluation: verdict_ab = judge(prompt, response_A=cand, response_B=base) # "A", "B", or "tie" verdict_ba = judge(prompt, response_A=base, response_B=cand) # Only count a clean win when both orders agree on the same underlying response: cand_score = 0.5 * ((verdict_ab == "A") + (verdict_ba == "B")) + 0.25 * ((verdict_ab == "tie") + (verdict_ba == "tie"))
Go one level deeper
Follow-ups that often come after a correct first answer.
- Put an interval on every win rate
- With 100 pairs, the paired scores here have a standard deviation of ≈ 0.444, so SE ≈ 0.044 and the 95% CI is ≈ ±8.7 points. A "62.5% vs 58%" comparison at this sample size is not a meaningful difference.
- LLM-as-judge biases
- Judges show position bias, verbosity bias and self-preference. Mitigate by swapping the answer order and averaging, controlling for length, and checking agreement against a human-labelled subset before trusting the judge.
6 · Self-check & interview synthesis
Explain it in your own words first
Before revealing the reference answer, try answering the opening question aloud in four beats: what it is → how the math works → what trade-off it makes → a concrete number or failure mode.
Follow-up question interviewers often ask next
MediumHow do you test whether a +12% pairwise win-rate improvement is just length bias?
Show follow-up reasoning
Plot win rate bucketed by the length difference (len(candidate) − len(baseline)), or evaluate on length-matched pairs (and test a prompt-length-constrained baseline). If the win rate on roughly equal-length pairs drops back near 50%, the aggregate +12% gain was driven by the judge’s preference for longer outputs.