Özer Cem KELAHMETKELAHMET
AI Simulations · Agents

Can you trust your LLM judge? Agreement with human labels and Cohen's kappa

An LLM judge is only useful if it agrees with the people it stands in for. Score twenty answers with a judge and with humans, move the judge's threshold and see agreement, chance-corrected kappa, and the answers it gets wrong in each direction.

Download Markdown

Interactive simulation. It needs JavaScript; the text below explains what it shows.

What you are looking at

Each row is one answer from an agent. The judge column is the score an LLM judge gave it, between 0 and 1, and the human column is the verdict people gave the same answer: 1 for pass, 0 for fail. The orange columns show whether the judge passes the answer at your threshold, whether it agrees with the humans, and whether a disagreement is a false pass or a false fail.

On the chart, each dot sits at its judge score along the bottom and at the human verdict up the side. The orange step is the judge's decision: everything at or right of the threshold passes. Dots at height 0 to the right of the step are answers the judge passes and people failed. The bars show the judge's score for each answer.

The algorithm

Using an LLM as a judge means asking a model to grade outputs with a rubric. DeepEval's G-Eval, LangSmith's LLM evaluators and many custom setups produce a score, which a threshold turns into pass or fail. Before trusting those verdicts across thousands of runs, you check them against people on a sample.

Observed agreement is the share of answers where judge and humans give the same verdict. It overstates reliability, because two raters agree sometimes by chance. If humans pass half the answers and the judge passes 60%, random guessing at those rates would still agree 50% of the time.

Cohen's kappa corrects for that: it is the agreement above chance, divided by the most agreement above chance that was possible. A kappa of 1 is perfect agreement, 0 is no better than chance. A widely used rough scale (Landis and Koch) calls 0.21 to 0.40 fair, 0.41 to 0.60 moderate and above 0.6 substantial.

With the defaults the judge agrees with the humans on 70% of answers. Chance agreement is 50%, so kappa is 0.40: fair at best. The judge wrongly passes 4 answers and wrongly fails 2. Moving the threshold between 0.3 and 0.7 keeps kappa at 0.40 but trades one error for the other: at 0.3 it never fails a good answer but passes 6 bad ones, at 0.7 it passes only 2 bad answers but fails 4 good ones. Above 0.7 kappa drops to 0.30. The threshold cannot fix a judge whose scores overlap this much; only a better rubric, examples or a stronger judge can.

Things to try

  • Move the threshold from 0.3 to 0.7 and watch kappa stay flat while false passes turn into false fails.
  • Decide which error is worse for your product: a judge that passes bad answers hides regressions; one that fails good answers creates noise.
  • Set the scores of items 4, 8 and 10 to 0.45, as a better judge might: agreement rises to 85% and kappa to 0.70, substantial.
  • Paste a sample of your own judge scores and human labels; 50 to 200 items give a far more reliable kappa than 20.
  • Download the CSV to review every disagreement with the rubric author.

How it works in real systems

Teams calibrate judges by labelling a sample, measuring agreement, then improving the judge: clearer rubrics, a few labelled examples in the prompt, asking for reasoning before the score, pairwise comparisons instead of absolute scores, or a stronger model. Known biases include favouring longer answers, answers in the first position and answers from the same model family. Once kappa is acceptable, the judge runs at scale in DeepEval tests, LangSmith or Langfuse experiments, and a small human sample keeps checking it over time.

Sources

Last updated Nov 23, 2026
Type to search.
    ↑↓ navigate↵ open