Sub topic 14
When Optimizing for the Judge Stops Improving Quality
This chapter assumes you can read Python, have prompted an LLM, and know what an evaluation set is. It also assumes you have seen the earlier chapters on rubrics, judge biases, and validating a judge against human labels.
The problem: a proxy under pressure
A judge score is a proxy for human judgment. Goodhart's law describes what happens when you push on a proxy: once a measure becomes a target, it stops being a good measure.
In practice, a team tunes prompts, picks models, or fine-tunes against the judge's score. Each change that raises the score is kept. Some of those changes raise real quality. Others only exploit the judge's quirks, such as its taste for long answers or a particular tone. The score keeps rising while real quality stays flat or falls.
Common ways it shows up
- Length drift. Answers grow longer because the judge prefers them (verbosity bias). Users see padding.
- Style mimicry. Outputs copy phrasing the judge likes, such as confident hedging or bulleted structure.
- Rubric lawyering. The system satisfies the literal rubric wording and misses its intent. A faithfulness rubric can be met by answers that quote the context and say nothing useful.
- Overfitting to the evaluation set. Prompts are tuned until they pass the same few hundred examples. The score rises on that set and not on new inputs.
- Self-preference loops. If the judge and the system share a model family, tuning pulls outputs toward what that family rates highly.
Detecting divergence
You cannot detect this from judge scores alone, because the judge is what is being gamed. You need an independent signal.
- Keep a held-out set that you never tune against. Compare the judge score on it with the score on the tuning set.
- Re-label a fresh sample with humans on a schedule. Compute agreement with the judge on the new outputs, not only on the original validation set.
- Track side metrics the judge does not see, such as average answer length, refusal rate, and deterministic checks.
The check below flags a suspicious pattern: the judge score went up while the human score did not.
def divergence_alert(judge_before, judge_after, human_before, human_after, min_gain=0.03):
"""Scores are pass rates between 0 and 1."""
judge_gain = judge_after - judge_before
human_gain = human_after - human_before
return judge_gain >= min_gain and human_gain < judge_gain / 2
print(divergence_alert(0.70, 0.82, 0.68, 0.69)) # True: judge rose 0.12, humans rose 0.01
print(divergence_alert(0.70, 0.78, 0.68, 0.75)) # False: both improvedWith small samples, a gap can be noise. Use the confidence intervals from the previous chapter before you raise an alarm.
Reducing the risk
- Change the judge prompt or rubric rarely, and re-validate each time.
- Use several narrow criteria instead of one overall score, so a gain on one cannot hide a loss on another.
- Cap or control known biases, for example by reporting a length-matched comparison.
- Rotate or refresh the evaluation set so the system cannot memorize it.
- Treat a large judge gain with no human-visible change as a warning, not a win.
Exercise
A team raises its judge faithfulness pass rate from 71% to 90% over six weeks. Average answer length doubled over the same period, and a fresh human review shows no change in faithfulness. Name the likely cause and two checks you would run.
Show answer
The likely cause is optimization against the judge, probably exploiting verbosity bias, so the score no longer tracks quality. Checks: (1) compare the judge score on a held-out set that was never used for tuning, and (2) compare answers of matched length, or re-run the judge with a length-controlled comparison. Also compute judge-human agreement on the new outputs.