Topic 3 of 5 · 6 min read
Calibrating judges against human labels
Goal: Measure a judge's agreement with human labels using true-positive and true-negative rates and decide if it is fit to use.
A judge is a measuring instrument, so calibrate it: compare its verdicts with expert labels, report its true-positive and true-negative rates, and only then trust its pass rate. A judge you never tested is a guess with good grammar.
Check yourself · 1 of 3
A judge says PASS to every item. 95% of items are truly passing. What is its true-negative rate?
Why it matters
The judge says 92% of replies pass. Is that good? It depends on how often the judge is wrong. If it passes bad replies, the real rate is lower. The research on this, including the "Who Validates the Validators?" paper, shows that people refine their own criteria as they read outputs, so you cannot write the rubric once and assume it matches what you want.
How to do it
- Get human labels. One domain expert labels 50-100 real traces as pass or fail, with a one-line reason. Aim for a mix that includes enough failures. If failures are rare, sample more of them.
- Split the labels. Use a small train set for the examples inside the prompt, a dev set to tune the prompt, and a test set you touch only at the end. This stops you from tuning until the judge looks perfect on the data you measured it on.
- Compute two rates on dev, then test.
- True-positive rate (TPR): of the items humans marked pass, the share the judge also passed.
- True-negative rate (TNR): of the items humans marked fail, the share the judge also failed. Accuracy alone hides lopsided errors. If 95% of items pass, a judge that always says PASS scores 95% accuracy and a TNR of 0.
- Read every disagreement. Fix the rubric or the examples, and rerun on dev.
- Correct the pass rate. If the judge reports an observed pass rate
p_obs, the corrected estimate is(p_obs + TNR - 1) / (TPR + TNR - 1). Report it with the TPR and TNR beside it.
Before and after
Weak: "The judge agrees with our reviewer 90% of the time, so it's fine."
Fixed: "On 40 test items with 12 failures, TPR is 0.96 and TNR is 0.75. The judge misses a quarter of real failures, so we report corrected pass rates and read the judge's passes on high-risk items by hand."
What goes wrong
- Tuning on the test set. The numbers look excellent and mean nothing.
- Too few failures. With 3 failing items, TNR can only be 0, 0.33, 0.67 or 1.
- Judging fitness by overall accuracy. Class imbalance hides a judge that never fails anything.
- Calibrating once. Rerun it when the rubric, the product or the judge model changes.
Examples
Accurate and useless
A judge checks for unsupported claims. In the labeled set, 56 of 60 replies pass. The judge says PASS for all 60. Accuracy is 93%, TPR is 1.0 and TNR is 0. It never catches a failure. Overall accuracy made it look fine.
Correcting a pass rate
Observed pass rate is 0.80, TPR is 0.95 and TNR is 0.70. Corrected: (0.80 + 0.70 - 1) / (0.95 + 0.70 - 1) = 0.50 / 0.65, about 0.77. The judge is lenient enough that the headline number was too rosy.
Key points
- Calibrate a judge on expert pass or fail labels before trusting any pass rate it reports.
- Split the labels: a few examples for the prompt, a dev set to tune on, and a test set kept untouched until the end.
- Report the true-positive and true-negative rates separately; overall accuracy hides a judge that never fails anything.
- Read every disagreement between judge and expert and fix the rubric from what you find.
- Correct the observed pass rate with the judge's rates, and recalibrate whenever the rubric, product or judge model changes.
Common mistakes
- Reporting only overall accuracy, which hides the failure the judge is meant to catch.
- Tuning the prompt on the same items you use to report its quality.
- Labeling too few failing items to estimate the true-negative rate.
- Treating calibration as a one-time job and never revisiting it.
Check yourself · 2 of 3
You tuned a judge prompt until it matched human labels on all 80 labeled items. What is the problem with reporting that match?
Check yourself · 3 of 3
A judge's TPR is 0.97 and its TNR is 0.55. What does that mean in practice?
Practice items, not counted towards your mastery.
Start here
- Evaluating the Effectiveness of LLM-Evaluators (Eugene Yan) (opens in a new tab)ArticleFree
A survey of how teams use LLM judges, with the pairwise, pointwise and reference-based set-ups side by side.
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al.) (opens in a new tab)PaperFree
The paper that names position, verbosity and self-enhancement bias and measures judge agreement with humans.
- Creating a LLM-as-a-Judge That Drives Business Results (Hamel Husain) (opens in a new tab)ArticleFree
A step-by-step recipe: expert pass/fail labels with critiques, then a judge aligned to them.
More for this topic
- Who Validates the Validators? (Shankar et al.) (opens in a new tab)PaperFree
Shows that people refine their criteria while grading, so judges need validating against human labels.