A MINI-COURSEnine units · one maths appendix · five metaphors
LLM Judges, mapped
An LLM judge reads a model's output and grades it. This course is about whether to believe the grade: what the judge is told good means, how it is asked, whether judges agree, whether they track the truth, how they go wrong, and how to check one before trusting it.
Like everything in ML, nothing here is new. People have graded without an answer key for centuries. Interviewers decide who to hire, managers rate a half-year of work, wine judges award medals, radiologists decide who to call back, umpires call strikes. Each of those fields has already found how judges disagree, drift and flatter, and has statistics for it: Cohen's kappa came from psychology, sensitivity, specificity and Youden's J from diagnostic medicine, the halo effect from officers rating soldiers. An LLM judge inherits all of it. The menu at the top switches every example on the site between those five worlds; the concepts and the numbers stay the same.
Running example
one casebook, same numbers
Key statistics
κ, α, J, AUC
Tick a unit when you have read it; this browser remembers.
THE FIVE METAPHORS
One concept, five rooms
Every unit tells its examples in the domain you pick. This table is the key: the same slot in each world. Click a column heading, or use the menu at the top, to switch the whole site. You are reading job interviewsperformance reviewswine judgingmedicineumpires and referees.
The domains differ most in the row that matters most: where truth comes from. Pitch calls can be checked against a camera, mammograms against biopsy; hiring learns the truth late and only for people it hired; wine quality and performance ratings have nothing outside other judges. LLM tasks spread across the same range, and unit 01 places them on it.
ARC 0
Nothing here is new
Why anyone uses a judge, why it is a measuring instrument, and the two questions every instrument must answer. After this arc you can separate reliability from validity and say where the truth for a task comes from.
01
why judges · reliability and validity · where truth comes from
The judge as the newest member of an old profession: anonymous exam scripts, the halo effect, reader variability, kappa and replicate pours all came first. Reliability against validity, and a single axis from no outside truth (wine quality) to measured truth (pitch calls) with LLM tasks placed on it.
ARC 1
What are we asking?
Before measuring a judge, fix what it is told and how it is asked. After this arc you can write a policy a stranger would apply the same way, and pick between scoring, comparing and checking against a reference.
02
rubrics · anchors · binary vs scales · criteria drift
A judge is only as good as the written policy it applies. What a policy contains, why anchored and binary criteria beat vague scales, why people must read real outputs before anything is automated, and how disagreement gets fixed in the policy rather than in the judge.
03
pointwise · pairwise · reference-guided
Absolute scores and how judges use scales differently; pairwise preferences and how they become a ranking; reference answers and how they anchor. When to use which.
ARC 2
Measuring the judge
Reliability, then validity. After this arc you can compute and read kappa, alpha, sensitivity, specificity, Youden's J and an ROC curve, and say what each one hides.
04
percent agreement · Cohen's κ · Fleiss' κ · Krippendorff's α
Why 75% agreement can be a kappa of 0.49 and 92% a kappa of 0.29; three or more judges; confidence intervals; and the bar that matters: a judge should agree with people about as well as people agree with each other.
05
sensitivity · specificity · J · precision · base rates · ROC/AUC
The casebook judge at sensitivity 0.80 and specificity 0.85 (J = 0.65); why its precision falls from 0.70 to 0.22 when the thing it looks for gets rare; thresholds, the ROC curve and choosing a cut-off by cost.
ARC 3
How judges go wrong
The failure modes, each with its LLM form, its older human form and its fix. After this arc you can name the bias behind a suspicious score and the check that exposes it.
06
position · order · verbosity · anchoring · contrast
Biases from presentation: the answer shown first wins, longer looks better, a prior score anchors the next, and the last few decisions shape the next one.
07
self-preference · leniency · halo · drift · Goodhart
Biases from the judge and its incentives: favouring its own kind, a shifted or squashed scale, one trait colouring the rest, fatigue and silent version changes, and what happens when people optimise against the judge.
ARC 4
Using a judge
From theory to a checklist. After this arc you can validate a judge on your own task, put error bars on it, and say when its grade should only be a flag.
08
gold sets · train/dev/test · bias checks · error bars · routing · audits
The practical loop: humans label first, measure their agreement, treat the judge as a classifier, run the bias checks, report intervals, route the uncertain middle to people, and keep auditing.
09
no agreement · self-grading · Goodhart · rare events · single items · injection
The cases where a grade should not be used or should only start a second look, and the remedies older fields use: second opinions, panels, appeals and calibration committees.
APPENDIX
The maths, worked
Every statistic on the site, derived and worked on the same casebook numbers.
A
κ · Scott's π · Fleiss · Krippendorff's α · weighted κ · J · Bayes · ROC/AUC · confidence intervals · sample size
Formulas with the arithmetic shown: chance agreement, the coincidence matrix, Youden's J on the ROC, precision from prevalence, the trapezoid AUC and its Mann–Whitney reading, Wilson intervals and how many items a given error bar needs.
SOURCES
Where to start reading
Evals with no right answer: a recipeIgor Dvorkin's nine-step loop: define a policy, calibrate the humans, build a stand-in, grade the grader. This course fills in steps 1, 2, 4 and 5.
Humans don't agree eitherIgor's sourced list of how often expert people agree: peer review, mammograms, biopsies, summaries, preference labels.
Zheng et al. 2023, Judging LLM-as-a-JudgeMT-Bench and Chatbot Arena; model judges measured against human experts; position, verbosity and self-enhancement bias.
Hamel Husain on building an LLM judgeA practitioner's guide to writing critiques, labelling data and aligning a judge with a domain expert.
Cohen 1960, A coefficient of agreement for nominal scalesWhere kappa comes from.
Youden 1950, Index for rating diagnostic testsWhere J comes from.