How do you calibrate an LLM judge against human labels?

Answered by Falk Gottlob · Reviewed · 2 min read

THE SHORT ANSWER

Calibrate an AI judge by comparing its verdicts with a trusted expert's labels on the same cases. Have the expert label 100 to 200 examples for one failure type. Show 10 to 20% of them to the judge as examples. Use 40 to 45% to tune its prompt. Keep the last 40 to 45% for one honest final test. Report two numbers: the share of real failures the judge catches, and the share of good outputs it passes. Skip plain agreement. Then put a date on the next check, because judges drift.

An AI judge is a second large language model (LLM) that grades your product's output. A judge you haven't checked is a guess with a number on it. Calibration is how you find out what it actually measures.

Start with one failure type and one yes or no question. "Does the reply promise anything outside the refund policy?" is a good one. "Is this reply good?" isn't.

Then get labels from a person whose judgment you'd bet the product on. Hamel Husain, who teaches the best known evals course with Shreya Shankar, calls this the principal domain expert. The expert marks each case pass or fail and writes a short critique. Good critiques become the examples in the judge's prompt.

Split the labeled cases into three groups. A small group goes into the prompt as examples. A bigger group is for tuning the prompt. The last group stays locked until the end. Run the judge on it once. That's your honest score. If you tune on it, it stops being honest.

Read the result as two numbers. Out of the failures your expert found, how many did the judge catch? Out of the good outputs, how many did it pass? Eugene Yan suggests putting the catch rate on failures first. A missed failure usually costs more than a false alarm.

Then date the next check. I once shipped a classifier that scored 89% on held-out data and 61% in real use within six weeks. The customers changed and the test set didn't. My fix is a small card per judge, with a re-check date, in The Threshold Card.

Product managers own whether the grader can be trusted, as Evals for Product Managers explains. User experience (UX) researchers who train human raters will find the agreement math in Evals for UX Researchers. The basics are in Evals From Zero, and the whole series is on the AI evals hub.

SOURCES

THE LONG VERSION

RELATED ANSWERS

If this was useful, The AI Product Transformation is where I share more of it.

One email every Monday with the week's best posts and what changed on the site.

Unsubscribe anytime. Read past issues.