PracticeEvaluation & Safety
Judge Alignment (TPR, TNR, Cohen's Kappa)
At a glance
Raw agreement hides a judge that passes everything, so alignment needs separate error rates.
- Who this is for
- Engineers and technical readers learning the terms used in AI systems.
- Topics
- Evaluation & Safety
- Practice
In short
Cohen's kappa scores how often a model judge and a human expert agree after removing the agreement chance alone would give, and judge alignment reads it beside the judge's true positive and true negative rates. Bigcircle will not gate a release on a judge until that check has a number, oversamples failures in the label set, and reruns it when the judge model, the rubric or the task changes. Our guide on how to build LLM evals gates at a kappa of 0.6, because raw agreement looks strong whenever most cases pass.
Key facts
Definition
Judge alignment is the measured match between a model judge and a human expert, reported as true positive rate, true negative rate and Cohen's kappa so an always-pass judge cannot look competent.
How Bigcircle does it
- Bigcircle labels a hundred to a hundred and fifty cases with failures deliberately oversampled, because a uniform draw from traffic that fails ten percent of the time leaves too few failures to trust the true positive rate.
- Below a kappa of 0.4, have a second person label thirty cases before editing the judge prompt, because disagreement between two experts means the task is underspecified.
- On RepliCoach, Bigcircle let a schema-driven rubric set the score and the model write only the qualitative read, because a model upgrade would otherwise shift every historical comparison.
Comparison
Raw percent agreement stays high on a set where most cases pass, even for a judge that never reads the input, while Cohen's kappa subtracts chance agreement and scores that always-pass judge at zero.
Key number
With 180 of 200 cases passing, an always-pass judge agrees 90% of the time and has a kappa of zero, while a judge catching 15 of 20 failures agrees 93% of the time and has a kappa of about 0.64.
Cohen's kappa is a score for how often two raters agree, after removing the agreement they would reach by chance. A kappa of 1 is perfect agreement and 0 is no better than chance. In LLM evaluation the two raters are a model judge and the domain expert whose standard it stands in for, and judge alignment is the check that the judge makes the same calls the expert would. We do not let a judge gate a release until that check has a number, because an unchecked judge still produces green builds, and the team reads them as evidence.
Why does raw agreement lie?#
Suppose 180 of 200 cases pass, and the judge agrees with the expert's labels 90% of the time. That sounds like a working judge.
Now take a judge that returns pass for every input without reading anything. It also scores 90%, because on an imbalanced set the majority class carries the score. This is the most common way a team convinces itself a judge works: the number is high, easy to compute, and stays high however badly the judge handles the cases that matter.
Two error rates, counted separately#
The true positive rate is recall on failures: of the cases the expert failed, how many did the judge catch? The true negative rate is its mirror: of the cases the expert passed, how many did the judge pass?
Report them apart because they cost different amounts. A false alarm costs an engineer ten minutes of investigation. A missed failure reaches a user. When the two trade against each other, tune the judge toward catching failures and accept the extra false alarms.
How is Cohen's kappa calculated?#
Kappa compares the agreement you observed with the agreement you would expect if each rater labelled at random in its own proportions:
kappa = (observed agreement - chance agreement) / (1 - chance agreement)
Take the 200 cases again, 180 passed and 20 failed by the expert. A judge that catches 15 of the 20 failures and passes 171 of the 180 good answers agrees on 186 cases, 93%. It says pass 176 times and fail 24 times, so chance agreement is 0.88 x 0.90 + 0.12 x 0.10 = 0.804, and kappa is (0.93 - 0.804) / (1 - 0.804), about 0.64. The always-pass judge has observed agreement 0.90 and chance agreement 0.90, so its kappa is zero. Raw agreement put those two judges three points apart. Kappa puts them at 0.64 and 0. Python's scikit-learn computes it with cohen_kappa_score, so nobody needs to do this by hand.
What kappa is good enough to gate on?#
The bands most people quote come from Landis and Koch's 1977 paper, where 0.41 to 0.60 is "moderate" and 0.61 to 0.80 "substantial". Those labels describe agreement in general. They do not say what a release gate can stand on, so this is how we read kappa for one.
| Kappa | How we read it |
|---|---|
| below 0.4 | The judge is not measuring your rubric |
| 0.4 to 0.6 | Usable for direction, not for a gate |
| 0.6 to 0.8 | Fine for a gate with a margin |
| above 0.8 | As good as a second labeller |
The 0.6 line is the same one our guide on how to build LLM evals uses. Read kappa next to the two error rates, never instead of them. A kappa of 0.64 with a true positive rate of 75% still lets a quarter of the real failures through, and whether that is acceptable depends on what a failure costs you.
Check the humans before the judge#
Below 0.4, do not start tuning the judge prompt. Have a second person label thirty cases and compute kappa between the two humans first.
If two domain experts only agree at 0.5, no judge will beat that, and what you have found is an underspecified task rather than a broken evaluator. That is a product question about what good means, and prompt engineering does not resolve it. Pick one expert to own the standard, split the criterion into questions both people can answer the same way, and measure again.
How many labels does the check need?#
Validate on a hundred to a hundred and fifty labels with failures deliberately oversampled. A uniform sample of a hundred on traffic that fails ten percent of the time gives you ten failures, and a true positive rate computed from ten cases is too noisy to gate on.
Re-run the check whenever the judge model, the rubric or the task changes, since provider updates move judge behaviour silently and nothing in the pipeline announces it. On RepliCoach, our sales-roleplay coach, we took the number away from the model for the same reason: a schema-driven rubric sets the score and the model writes only the qualitative read, because if the model both writes the feedback and sets the number, a model upgrade shifts every historical comparison.