How to check your LLM judge agrees with humans
To check that an LLM judge agrees with humans, label a sample of your own outputs by hand and have the judge rate the same items. Then compute chance-corrected agreement, such as Cohen’s kappa, and a confusion matrix against the human labels, and fix the disagreements before you trust the judge’s pass rate.
Updated
The check, step by step
- Build a labeled set. Sample 100 to 200 outputs from your own traffic or test set, not from a public benchmark. Include known failures on purpose. Write down what each label means before anyone starts.
- Double-label, then adjudicate. Have two people label the same items without seeing each other’s labels, on the whole set or a slice of it. Record how often they agree. Settle each split by discussion or a third person, and keep the settled label as the reference.
- Run the judge. Give it the same items and the same rubric text the people used. Fix the model version, the prompt and the temperature, and store the judge’s reasoning next to its verdict.
- Compute the metrics. Raw agreement, a chance-corrected measure such as Cohen’s kappa, and a confusion matrix against the reference labels.
- Read the disagreements. Open every item where the judge and the reference differ. Tag each one: unclear rubric, judge error or label error. Fix the rubric or the labels, then run the judge again.
- Decide the pass bar. Before you look at the judge’s results, write down the kappa and the share of real failures it must catch. A judge that clears the bar on the interval, not only on the point estimate, passes.
For the rubric itself, see how to write an LLM-as-judge rubric.
Which agreement metric to use
| Metric | Use it when | Watch for |
|---|---|---|
| Raw agreement | A first look at any labels | It looks high when most labels are the same |
| Cohen’s kappa | Two raters, unordered labels such as pass/fail | It moves with the label mix, so report the mix too |
| Weighted kappa | Two raters, an ordered scale such as 1 to 4 | Pick linear or quadratic weights before you look |
| Fleiss’ kappa | More than two raters on every item | The statsmodels version reports no variance |
| Krippendorff’s alpha | Missing labels, or any scale type | Set the level of measurement to match your labels |
| Confusion matrix | Always, against the reference labels | Read the fail row: missed failures and false fails |
Why raw agreement misleads. Say people pass 180 of 200 outputs and fail 20. A judge that passes everything agrees with them on 180 of 200 items, 0.90, and catches no failures. Cohen’s kappa corrects for that: κ = (po − pe) / (1 − pe), where po is the observed agreement and pe is the agreement expected by chance from each rater’s label mix. For the pass-everything judge, pe is also 0.90, so kappa is 0.
A worked example. Now the judge catches 15 of the 20 failures and fails 9 good outputs. It agrees on 186 of 200 items (0.93). Chance agreement from the two label mixes is 0.804, so kappa is (0.93 − 0.804) / (1 − 0.804) ≈ 0.64. The confusion matrix shows what kappa hides: the judge caught 15 of 20 failures (fail recall 0.75), and 15 of its 24 fail calls were right (fail precision 0.625). The 5 misses are false passes, the costly kind, because a broken output ships. The 9 false fails cost review time.
Code. The scikit-learn confusion_matrix puts the human label in rows and the judge in columns. The statsmodels cohens_kappa function takes that square table, and its wt argument gives linear or quadratic weights. fleiss_kappa takes items in rows and label counts in columns. The krippendorff package takes raters in rows, items in columns, and NaN for a missing label. The numbers below are illustrative.
import numpy as np
from sklearn.metrics import confusion_matrix
from statsmodels.stats.inter_rater import cohens_kappa, fleiss_kappa, aggregate_raters
import krippendorff
# Illustrative: 200 items, people failed 20.
# The judge caught 15 of them and failed 9 good outputs.
human = ["fail"] * 20 + ["pass"] * 180
judge = ["fail"] * 15 + ["pass"] * 5 + ["fail"] * 9 + ["pass"] * 171
cm = confusion_matrix(human, judge, labels=["fail", "pass"]) # rows: human, columns: judge
(caught, missed), (false_fail, _) = cm
print("raw agreement", np.trace(cm) / cm.sum()) # 0.93
print("kappa", cohens_kappa(cm).kappa) # 0.643
print("fail recall", caught / (caught + missed)) # 0.75
print("fail precision", caught / (caught + false_fail)) # 0.625
# Ordered 1 to 4 labels: weighted kappa
cm4 = confusion_matrix([1, 2, 2, 3, 4, 4, 3, 1], [1, 2, 3, 3, 4, 3, 3, 2], labels=[1, 2, 3, 4])
print("weighted kappa", cohens_kappa(cm4, wt="quadratic").kappa)
# Three raters (two people and the judge), one row per item
table, _ = aggregate_raters(np.array([[0, 0, 0], [1, 1, 0], [1, 1, 1], [0, 1, 0], [1, 1, 1]]))
print("fleiss kappa", fleiss_kappa(table))
# Missing labels: raters in rows, items in columns, np.nan where a rater skipped
data = np.array([[0, 1, 1, np.nan, 1], [0, 1, 1, 0, 1], [0, 0, 1, 0, np.nan]])
print("alpha", krippendorff.alpha(reliability_data=data, level_of_measurement="nominal"))Compare with people, not with a band. Published bands that name kappa ranges are conventions, not rules. Measure the agreement between your two labelers on the same items. That human-human number is the ceiling to compare the judge against. Set your bar relative to it, and write the bar down before you run the judge.
How many human labels you need
Start with 100 to 200 labeled examples, the range the cheaper LLM judge guide uses. Then count the fail labels. The total sets the interval on overall agreement; the number of failures sets the interval on how many failures the judge catches, and that is the number that decides whether a broken output ships.
The normal-approximation interval for a proportion p from n items is p ± 1.96 × √(p(1 − p) / n) at 95 percent confidence (NIST/SEMATECH e-Handbook, section 7.2.4.1). It is plain arithmetic:
- Agreement of 0.90 on 200 items: ±0.042, so about 0.86 to 0.94. On 100 items: ±0.059.
- Fail recall of 0.75 on 20 labeled failures: ±0.19, so about 0.56 to 0.94. That range covers both a judge you would keep and one you would drop.
- The same recall on 100 labeled failures: ±0.085.
The handbook recommends the Wilson interval for almost any sample size and proportion, and an exact binomial interval when failures or items are very few; for 15 of 20 the Wilson interval is about 0.53 to 0.89. Hamel Husain’s guide to building a judge suggests about 100 examples per failure mode, with enough pass and fail examples to measure both, and warns that below 60 the intervals are often too wide to act on. If failures are rare, add known failures on purpose. For the sample-size formula and tables, see how many examples an LLM eval needs.
Bias checks you can run cheaply
Zheng and co-authors (June 2023) found that strong judges matched human preferences about as well as people matched each other, and named position, verbosity and self-enhancement bias as limits. Each has a test that reuses your labeled set.
- Position bias. In pairwise comparisons, the order of the two answers can change the verdict. Wang and co-authors (May 2023) showed a ranking could flip by swapping the order, and proposed running both orders and combining them. Test: run every pair twice with the order swapped and count the flips. Treat a flipped pair as a tie, or report both orders.
- Verbosity bias. Saito and co-authors (October 2023) found a judge preferred longer answers more than people did, at similar quality. Test: take passing answers, pad them with accurate but irrelevant text, and re-run. Also plot answer length against the judge’s verdict on your labeled set.
- Self-preference. Panickssery, Bowman and Feng (April 2024) found judges could recognize their own outputs, and that the stronger that recognition, the more a judge favored its own outputs. Test: if the judge and the system under test share a model family, run a judge from another family on the same set and compare how many failures each catches.
- Prompt, format and sampling. Thakur and co-authors (June 2024) found judges sensitive to prompt complexity and length, with a tendency toward leniency. Schroeder and Wood-Doughty (December 2024) found that a fixed temperature does not make a judge reliable and that a single sample can mislead. Test: run the judge several times on the same items, and once with the scale labels renamed (1 to 4 as A to D), and count the verdicts that change.
Thakur and co-authors also found that judges with high percent agreement could still give ratings far from human ones, which is why this page reports kappa and the confusion matrix next to raw agreement. JUDGE-BENCH (Bavaresco and co-authors, ACL 2025) tested 11 models on 20 datasets with human labels, found large variation across models and datasets, and concluded that a judge should be validated against human labels before use.
When to check again
- The judge model or its version changes, including a provider update behind the same name.
- You edit the rubric or the judge prompt.
- The inputs change: a new data source, product feature, language or user group.
- On a schedule: label a small rolling sample of recent outputs and compare it with the judge.
- Agreement on that rolling sample drops. Re-run the full check before you trust the judge’s pass rate again.
Shankar and co-authors (April 2024) found that people refine their criteria as they label outputs, which they call criteria drift. Expect the rubric and the labels to change after the first round, and re-run the check when they do.
Questions
How do I validate an LLM judge against human labels?
Label 100 to 200 of your own outputs by hand, with two people on at least part of the set. Run the judge on the same items with the same rubric. Compare the two with Cohen’s kappa and a confusion matrix, read every item where they disagree, and fix the rubric or the labels before you rely on the judge.
What is a good Cohen’s kappa for an LLM judge?
There is no universal cutoff. Published bands that name kappa ranges are conventions, not rules. Measure the agreement between two of your own labelers on the same items: that is the ceiling. A judge close to that ceiling, with an interval that clears the bar you set before you looked, is good enough for that task.
How many human labels do I need to validate an LLM judge?
Start with 100 to 200 labeled examples, and count the fail labels, not only the total. The interval on how many failures the judge catches depends on how many failures you labeled: 20 fail labels give an interval about 0.19 wide on each side. The guide on how many examples an LLM eval needs has the formula and tables.
Is percent agreement enough to trust an LLM-as-judge?
No. When most outputs pass, a judge that passes everything agrees with people on most items and catches no failures. Report Cohen’s kappa, which corrects for chance agreement, and the confusion matrix, which shows the failures the judge missed and the good outputs it failed.
Should I use Cohen’s kappa or Krippendorff’s alpha?
Use Cohen’s kappa for two raters on pass/fail labels, weighted kappa for two raters on an ordered scale, and Fleiss’ kappa when more than two raters label every item. Use Krippendorff’s alpha when some raters skipped some items or when you need one measure across scale types.
When should I re-check my LLM judge?
Re-check it when the judge model or its version changes, when you edit the rubric or the judge prompt, and when your inputs change, such as a new product feature or a new user group. Between those events, label a small rolling sample on a schedule and re-run the full check if agreement on it drops.
Sources
Checked
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, Lianmin Zheng and co-authors. NeurIPS 2023 Datasets and Benchmarks Track. arXiv:2306.05685 (June 2023).
- A 2023 paper on position bias in LLM judges and a calibration fix, Peiyi Wang and co-authors. arXiv:2305.17926 (May 2023).
- Verbosity Bias in Preference Labeling by Large Language Models, Keita Saito and co-authors. arXiv:2310.10076 (October 2023).
- A 2024 paper on how LLM judges recognize and favor their own outputs, Arjun Panickssery, Samuel R. Bowman and Shi Feng. arXiv:2404.13076 (April 2024).
- Who Validates the Validators?, Shreya Shankar and co-authors. arXiv:2404.12272 (April 2024).
- Judging the Judges, Aman Singh Thakur and co-authors. A study of thirteen judge models against human labels. arXiv:2406.12624 (June 2024).
- LLMs instead of Human Judges? (the JUDGE-BENCH paper), Anna Bavaresco and co-authors. ACL 2025. arXiv:2406.18403 (June 2024).
- Can You Trust LLM Judgments? Reliability of LLM-as-a-Judge, Kayla Schroeder and Zach Wood-Doughty. arXiv:2412.12509 (December 2024).
- A Survey on LLM-as-a-Judge, Jiawei Gu and co-authors. arXiv:2411.15594 (November 2024).
- cohens_kappa (Cohen’s kappa, with optional weights), statsmodels 0.15.0 documentation. Accessed 16 November 2026.
- fleiss_kappa (Fleiss’ kappa), statsmodels 0.15.0 documentation. Accessed 16 November 2026.
- confusion_matrix, scikit-learn documentation. Accessed 16 November 2026.
- Fast Krippendorff (the krippendorff Python package), pln-fing-udelar on GitHub. Accessed 16 November 2026.
- NIST/SEMATECH e-Handbook of Statistical Methods, section 7.2.4.1, Confidence intervals for a proportion. National Institute of Standards and Technology. Accessed 16 November 2026.
- Hamel Husain, a guide to building an LLM-as-a-judge. Hamel’s Blog, published 29 October 2024, modified 1 September 2026. Accessed 16 November 2026.
Where Slancha fits
Slancha builds models that predict where a model has gaps, so a team can run fewer, targeted evals instead of the whole set. Slancha sells those models, not eval software: keep your existing eval or observability platform.
Pilots by arrangement.
More on judges: the ways to make AI evals cheaper.
Related guides
- How to measure LLM output consistency when the same prompt gives different answers
- How to test a model upgrade before you switch
- How to reduce token spend in an AI agent pipeline
- How to build agent evals from production traces
- How much do LLM evals cost?
- How many examples does an LLM eval need?
- Can a cheaper LLM judge replace an expensive one?
- How to write an LLM-as-judge rubric that catches real failures
- Eval cost guide
- Eval speed guide
- Eval cost calculator
- Eval sample size calculator
- LLM eval glossary
- All guides