Rater Reliability Metrics and Validating an LLM Grader
Machine LearningModel answerLast updated
Explain how to quantify labeler reliability beyond raw agreement, when each metric fails, and how to decide whether an LLM can stand in for human graders.
You are building an evaluation pipeline for a model whose outputs are scored by people, and your team wants to replace some of those people with an LLM grader. Before that happens, you are asked to explain the reliability story behind the labels.
Answer the following in a structured way.
- Definition. What does it mean for annotators to "agree" on a labeling task? How does reliability differ from validity, and why is raw percent agreement not enough?
- Metrics. Describe Cohen's kappa, Fleiss' kappa and Krippendorff's alpha. For each one, state when you would use it, what kind of chance agreement it adjusts for, and what it assumes about the raters and the label scale.
- Failure modes. Discuss how agreement numbers can mislead you in these situations:
- heavily skewed class distributions and prevalence effects
- raters with different label biases
- ordinal versus nominal labels
- multi-label items
- annotator expertise differences
- vague or underspecified guidelines
- Humans versus LLM graders. Compare the two along cost, speed, consistency, bias and fairness, domain expertise, privacy and security, and transparency.
- Making an LLM grader trustworthy. Propose concrete techniques for improving it and for monitoring it over time, including how you would report its reliability.
Include a small numeric example where appropriate, and be clear about the trade-offs behind your recommendations.
Hints
Hint 1
All chance-corrected metrics share the form (observed - expected) / (1 - expected). The difference between them lies in how the expected term is computed and which data shapes they support.
Hint 2
Try a 2x2 table where 90 percent of the items fall in one class and the raters mostly agree on that class. Compute raw agreement and kappa and see why they diverge sharply.
Hint 3
Treat the LLM as one more rater: compare LLM-vs-human agreement with human-vs-human agreement on the same items, and think about which known LLM biases (position, verbosity, self-preference) you would test for.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Core framing
Agreement measures reliability: whether independent raters produce the same labels. It says nothing about validity, meaning whether those labels are correct. It matters twice: label noise caps what a trained model can learn, and human-human agreement is the realistic ceiling for any judge, human or LLM.
Raw observed agreement, p_o, is misleading because raters agree by chance some of the time, and under class skew chance agreement can be very high.
Chance-corrected metrics
All share one form: (observed - expected) / (1 - expected). 1 means perfect agreement, 0 means chance level, and negative means worse than chance.
Cohen's kappa (two raters, nominal labels)
- kappa = (p_o - p_e) / (1 - p_e), with p_e = sum over classes of p_A(k) * p_B(k), using each rater's own marginals.
- The same two raters must label every item.
- Weighted kappa (linear or quadratic) gives partial credit to near misses on ordinal scales.
Fleiss' kappa (many raters, nominal labels)
- Averages per-item pairwise agreement and compares it with chance computed from pooled class proportions.
- Assumes raters are interchangeable and each item gets the same number of ratings. It is a generalization of Scott's pi, not of Cohen's kappa.
Krippendorff's alpha (any number of raters, any scale)
- alpha = 1 - D_o / D_e, where D_o is observed disagreement and D_e is expected disagreement.
- Uses a distance function (nominal, ordinal, interval, ratio, or set-based for multi-label).
- Handles missing ratings and unequal numbers of raters per item. It is the most flexible choice and the default when the design is messy.
Worked example: the prevalence paradox
Two raters label 100 items. Both say positive on 85, both say negative on 5, and they split 5/5 on the disagreements.
- p_o = 0.90
- Each rater has marginals of 0.9 / 0.1, so p_e = 0.81 + 0.01 = 0.82
- kappa = (0.90 - 0.82) / 0.18, about 0.44
Raw agreement looks excellent, yet the raters agree on the rare class only half the time. Kappa exposes that, while percent agreement hides it.
Where the numbers mislead
- Skew and prevalence. As one class dominates, p_e approaches 1 and kappa becomes unstable and low despite high p_o. Report the confusion matrix, per-class positive and negative agreement, and optionally PABAK, instead of one number.
- Rater bias. Raters with different marginal distributions change p_e and can inflate kappa. Check marginal homogeneity (for example Stuart-Maxwell).
- Ordinal vs nominal. Unweighted kappa treats 1-vs-5 the same as 4-vs-5. Use weighted kappa or ordinal alpha, and ICC or interval alpha for continuous scores.
- Multi-label. Either compute agreement per label as a binary task and macro-average, or use alpha with a set distance such as Jaccard or MASI.
- Expertise variance. Pooled metrics hide a few strong experts mixed with lenient novices. Compute per-annotator agreement against gold items and consider models such as Dawid-Skene or MACE that estimate annotator reliability.
- Guideline ambiguity. Low agreement often means the task is underspecified. For genuinely subjective tasks, disagreement is signal, so keep the label distribution rather than forcing a majority vote. Refine guidelines with adjudicated edge cases.
- Thresholds. Landis-Koch bands are conventions. The acceptable level depends on the stakes and the task.
- Uncertainty. Always give confidence intervals (bootstrap over items). With a few hundred items, kappa intervals can be wide.
Humans vs LLM judges
| Dimension | Humans | LLM judges |
|---|---|---|
| Cost | High per item, training overhead | Low per item |
| Speed | Hours to weeks | Seconds, usable in CI regression evals |
| Consistency | Fatigue, drift, inter-rater variance | Stable at low temperature but sensitive to prompt wording and option order |
| Bias | Cultural and demographic bias, anchoring | Position, verbosity and self-preference bias, sycophancy |
| Expertise | Experts are reliable in medicine, law, code | Confidently wrong on niche or recent facts, weak at checking long reasoning |
| Privacy/security | Data exposed to people, needs vetting | Data may leave the org via API, prompt-injection risk from judged content; self-hosting mitigates |
| Transparency | Can explain and debate reasoning | Rationales may be post-hoc, behavior shifts silently with model updates |
The key principle: validate the LLM as another rater. Compute LLM-human agreement and compare it with human-human agreement on the same items. If they are close, the LLM is roughly as good as swapping in another human. If it is far below, it is not ready, regardless of how plausible its rationales sound.
Improving an LLM judge
- Clear rubrics and short scales. Define each score with observable criteria (for example "3 = correct but omits one required step"). Prefer binary, 1-4 or 1-5 scales, or per-criterion checks, over a holistic 1-10.
- Few-shot exemplars and references. Anchor each score level, especially borderline cases. Supply a gold reference answer for factual tasks so the judge compares rather than recalls.
- Structured outputs. Use a JSON schema with criterion scores, rationale and final score, and constrain decoding so outputs always parse. Have the rationale come before the score.
- Temperature and randomness. Use low temperature for stability. Randomize or swap option order to cancel position bias.
- Self-consistency and adjudication. Sample multiple judgments and take the majority or mean. Escalate to a stronger model or a human when votes disagree.
- Gold checks and disagreement flags. Seed known-answer items into every run to catch drift. Flag low-confidence or split-vote items for human review.
- Periodic human audits. Sample a fixed percentage (for example 5 percent) every release and re-measure kappa or alpha. Re-validate whenever the judge model, prompt, or data distribution changes.
- Report reliability honestly. Give judge-human agreement with bootstrap confidence intervals, broken down by slice (class, difficulty, length), next to the human-human baseline.
Common mistakes
- Quoting percent agreement alone.
- Using Cohen's kappa for many raters or missing data, or unweighted kappa for ordinal scales.
- Treating the LLM as ground truth, or letting a model grade its own family without a bias check.
- Forcing consensus on subjective tasks and discarding useful disagreement.
- Never re-validating after a judge model update.
- Reporting a single point estimate on a small sample.