Sub topic 15
Pinning and Re-validating the Judge Over Time
This chapter assumes you can read Python and know how a judge is validated against human labels, using agreement and Cohen's kappa. It covers a failure that appears after validation: the judge changes while your tests stay the same.
Why judges drift
Judge drift is a change in a judge's scoring behavior that you did not make on purpose. Common causes:
- The provider updates the model behind an alias such as
latest. - The provider retires a model version, and you migrate to a replacement.
- Someone edits the rubric or prompt "just a little".
- Sampling settings change, for example temperature or the maximum output length.
Drift is hard to see because the score still looks plausible. A pass rate moving from 78% to 71% might mean your system got worse. It might also mean the judge got stricter. Without a record of the judge's version, you cannot tell which.
Pin everything that affects a verdict
A verdict depends on the model, the prompt, the rubric, and the settings. Pin all four and store them with every result.
from dataclasses import dataclass
@dataclass(frozen=True)
class JudgeConfig:
model: str # dated snapshot, not a moving alias
temperature: float
prompt_version: str
rubric_version: str
JUDGE = JudgeConfig("example-judge-2026-06-01", 0.0, "p3", "r2")
def check_drift(golden, new_verdicts, min_agreement=0.9):
"""golden: id -> verdict from the last validated run."""
same = sum(golden[k] == new_verdicts[k] for k in golden)
agreement = same / len(golden)
return agreement, agreement >= min_agreement
golden = {1: "pass", 2: "fail", 3: "pass", 4: "pass", 5: "fail"}
rerun = {1: "pass", 2: "fail", 3: "fail", 4: "pass", 5: "fail"}
print(check_drift(golden, rerun))The check prints (0.8, False). One of five verdicts flipped, which is below the threshold. Save JUDGE next to every score you report.
Keep a golden set
A golden set is a fixed group of examples with human labels and the judge's verdicts from the last validated run. It has two jobs:
- It detects drift. Re-run the judge on the golden set and compare against the stored verdicts, as
check_driftdoes. - It re-validates accuracy. Compare the new verdicts against the human labels with agreement and kappa.
Include borderline cases in the golden set. Clear passes and clear failures rarely change, so they hide drift.
The re-validation loop
Treat every change as a trigger. This includes a provider's deprecation notice, a prompt edit, and a scheduled monthly check.
Comparing across judge versions
Scores from two judge versions are not directly comparable. If you need a trend line across a judge change, re-score a sample of old outputs with the new judge, so both versions grade the same items. Otherwise, mark the change on your charts and start a new series.
Common mistakes
- Pinning the model but not the prompt, so the prompt drifts through casual edits.
- Re-validating only when scores look wrong. Drift often shows up as a number that looks normal.
- Using a golden set of only easy cases.
- Comparing a new judge's scores against old numbers without re-scoring.
Exercise
Your team's reported pass rate drops from 82% to 74% the week after a provider updates the model behind your judge's alias. What do you do first, and why?
Show answer
Re-run the judge on the golden set and compare against both the stored verdicts and the human labels. If agreement fell, the judge drifted and the drop may not reflect real quality. Then pin a dated model version and re-score a sample of old outputs before comparing the two numbers.