Lesson 18.3 · 3 of 5 · 4 min read · Reviewed 24 Nov 2026
Calibrating a judge against humans
By the end, you can
- Calibrate a model grader against human judgement.
- Measure agreement and fix disagreements.
The process
- Sample 50 to 100 outputs across your slices.
- Human labels. Two people label each, using the same rubric as the graderGrader: The part of an eval that decides whether an output passes, using code, a model or a person.. Where they disagree, discuss and settle. This also tests whether the rubricRubric: A written set of criteria and score levels that a grader applies to each output. is clear.
- Run the grader on the same outputs.
- Compare.
human pass human fail
grader pass 41 6 <- grader too lenient here
grader fail 3 50
agreement = (41 + 50) / 100 = 91%
- Read disagreements. Are they rubric gaps, missing context, or grader bias?
- Fix and rerun. Add examples to the rubric, give the grader the source document, split the criterion.
What’s good enough
It depends on the stakes. For must-pass safety criteria, look closely at the cases where the grader says pass and people say fail; those are the dangerous misses. Overall agreement close to how often two people agree with each other is a sensible target.
Keep calibrating
Recheck when you change the grader model or prompt, or when the product changes a lot. A grader calibrated last year on different traffic may have drifted.
Key points
- A grader is only useful if it agrees with careful people; measure that before relying on it.
- Have people label a sample, run the grader on the same sample, and compare verdicts.
- Read the disagreements and tighten the rubric or examples; repeat until agreement is good enough.
Calibrate a judge against human labels
Measure how often a model judge agrees with careful people, and find the dangerous misses.
You will have: A confusion table, an agreement percentage and a list of judge-pass, human-fail case ids.
Steps
- Read the paired human and judge labels for 20 cases.
- Count the four cells: both pass, both fail, judge pass and human fail, judge fail and human pass.
- Compute agreement as the diagonal over the total.
- List the judge-pass, human-fail ids: these are the cases to read first.
Done when
- Agreement prints as 80%.
- The dangerous misses list has 2 ids, c3 and c14.
- The table shows all four cells.
Open in the Playground No API key needed.
Starter code (Python)
HUMAN = "PPFPPFFPPPFPPFPPPFPP"
JUDGE = "PPPPPFFPPFFPPPPPFFPP"
def confusion(human, judge):
cells = {"pass/pass": 0, "fail/fail": 0, "judge pass, human fail": 0, "judge fail, human pass": 0}
# TODO: walk the two strings together and count each cell
return cells
cells = confusion(HUMAN, JUDGE)
for k, v in cells.items():
print(f"{k:24} {v}")
agreement = 0 # TODO: (pass/pass + fail/fail) / total
print(f"agreement = {agreement:.0%}")
dangerous = [] # TODO: case ids (c1, c2, ...) where the judge said pass and the human said fail
print("read these first:", dangerous)
Show a solution
HUMAN = "PPFPPFFPPPFPPFPPPFPP"
JUDGE = "PPPPPFFPPFFPPPPPFFPP"
def confusion(human, judge):
cells = {"pass/pass": 0, "fail/fail": 0, "judge pass, human fail": 0, "judge fail, human pass": 0}
for h, j in zip(human, judge):
if h == j == "P":
cells["pass/pass"] += 1
elif h == j == "F":
cells["fail/fail"] += 1
elif j == "P":
cells["judge pass, human fail"] += 1
else:
cells["judge fail, human pass"] += 1
return cells
cells = confusion(HUMAN, JUDGE)
for k, v in cells.items():
print(f"{k:24} {v}")
agreement = (cells["pass/pass"] + cells["fail/fail"]) / len(HUMAN)
print(f"agreement = {agreement:.0%}")
dangerous = [f"c{i + 1}" for i, (h, j) in enumerate(zip(HUMAN, JUDGE)) if j == "P" and h == "F"]
print("read these first:", dangerous)