Human evaluation & annotation
Domain experts are your source of truth: they label a few hundred examples under written guidelines, you verify they agree (Cohen's kappa), and those labels validate your automated judges instead of grading everything.
Analogy: Like setting a national exam's marking scheme: senior examiners grade the same sample papers and argue until their marks agree, then that agreed key trains and audits every other grader.
How it works
- For anything domain-specific, use subject-matter experts, not crowd workers; their labels are the ground truth.
- Write short guidelines with PASS/FAIL examples and edge cases; prefer binary labels plus a free-text critique.
- In calibration sessions, annotators label the same 20–50 items, discuss disagreements and update the guidelines.
- Cohen's kappa corrects agreement for chance; low kappa means an ambiguous task, not careless raters.
- Spend expert time finding failure modes, building golden datasets and periodically re-auditing a sample.
Check yourself
Answer to mark it learned; your answers aren't scored.
Two experts grade answers on a 1–5 scale. Their kappa is low, and in review they argue mostly about whether an answer is a 3 or a 4. Which change most improves consistency?
Go deeper
Full explanation
Human evaluation means people judging model outputs — for anything domain-specific, subject-matter experts (SMEs), not crowd workers. It is the ground truth every automated metric is measured against.
What makes it reliable:
- Guidelines — a short doc defining each label with PASS/FAIL examples and the edge cases you have argued about. Prefer binary labels plus a free-text critique over 1–5 scales.
- Calibration sessions — annotators label the same 20–50 items, discuss disagreements and update the guidelines. Expect criteria drift: people refine what "good" means as they read outputs.
- Inter-annotator agreement (IAA) — measured on an overlap set. Cohen's kappa corrects two raters' agreement for chance:
κ = (p_o − p_e) / (1 − p_e). On the Landis–Koch scale, >0.6 is substantial and >0.8 almost perfect. For more raters use Fleiss' kappa or Krippendorff's alpha. Low kappa means the task is ambiguous, not that people are careless. - Side-by-side (SxS) — showing two outputs and asking which is better is faster and more consistent than absolute scores.
Experts are slow and expensive, so don't use them to grade every run. Use them to find failure modes, build Golden datasets & test sets and validate the LLM-as-a-judge, then re-audit a sample periodically. Tools: Label Studio, Argilla, or the annotation queues in LangSmith and Langfuse.
Code Agreement between experts, then judge vs gold
import pandas as pd
from sklearn.metrics import cohen_kappa_score, confusion_matrix
# Overlap set: the same ~120 traces labeled independently by two SMEs and the judge
# columns: trace_id, sme_a, sme_b, adjudicated, judge (values: PASS / FAIL)
df = pd.read_csv("overlap_labels.csv")
# 1) Is the task well defined? Human-human agreement, corrected for chance
k = cohen_kappa_score(df.sme_a, df.sme_b)
print(f"SME vs SME kappa: {k:.2f}") # < 0.6 -> fix the guidelines first
# 2) Disagreements feed the next calibration session, not a coin flip
disputed = df[df.sme_a != df.sme_b]
print(f"{len(disputed)} items for the next calibration session")
# 3) Gold = agreed label, else the adjudicated one; then grade the judge
gold = df.sme_a.where(df.sme_a == df.sme_b, df.adjudicated)
# labels order makes FAIL the positive class: we want to catch failures
tn, fp, fn, tp = confusion_matrix(gold, df.judge, labels=["PASS", "FAIL"]).ravel()
print(f"judge TPR on failures: {tp / (tp + fn):.2f} TNR: {tn / (tn + fp):.2f}")
print(f"judge vs gold kappa: {cohen_kappa_score(gold, df.judge):.2f}")Real example
A legal-tech team evaluates contract summaries. Two lawyers label the same 50 summaries: Cohen's kappa is 0.42, because they disagree on whether omitting a minor clause is a failure. One calibration session produces a rule — any missed obligation with a deadline = FAIL — and kappa on a fresh 50 rises to 0.74. They then label 300 summaries (~25 lawyer-hours) and use them to calibrate an LLM judge that grades every nightly run. Lawyers now review ~40 judge-flagged summaries a week instead of everything.
Trade-offs +3 · −3
+ You gain
- The only real ground truth for subjective or domain-specific quality.
- Finds failure modes no metric was designed to catch.
- Produces the labels you need to calibrate and audit every automated grader.
− You pay
- Slow and expensive: expert hours, scheduling, and days of latency per round.
- Noisy without guidelines and calibration, and criteria drift over time.
- Doesn't scale to every commit or to all production traffic.
Use it when
Bootstrapping a golden set, defining what "good" means, validating an LLM judge, high-stakes domains (legal, medical, finance), and periodic audits of automated scores.
Avoid it when
As the per-commit regression gate or to grade all production traffic: too slow and costly. If a deterministic check or a calibrated judge suffices, use that.
Numbers to know 3
- Landis & Koch (1977) kappa bands: 0.41–0.60 moderate, 0.61–0.80 substantial, 0.81–1.00 almost perfect.
- Why kappa: if both raters mark ~90% PASS, chance agreement is 82%, so 90% raw agreement is only κ ≈ 0.44.
- Rule of thumb: ~50 double-labeled items to estimate agreement; ~100–200 labels to calibrate a judge.
Common pitfalls 4
- Using crowd workers for expert judgments: they can agree with each other and still be wrong.
- Likert 1–5 scales: annotators disagree on what a 3 means; binary labels plus a critique are more consistent.
- Reporting percent agreement instead of kappa: with skewed labels, most of it is chance.
- Never re-labeling: the product and the guidelines move, and the golden set goes stale.
Interview questions 2
Answer out loud first, then reveal.
You have budget for 500 expert labels. How do you spend it?Show answer
Not uniformly. First, 50 items labeled by two experts — 100 labels — to measure kappa and fix the guidelines; below ~0.6, more labeling just buys noise. Then ~250 items chosen to cover the slices and failure modes from error analysis, oversampling rare but costly cases. That becomes the golden set and the calibration set for the LLM judge. I hold back ~150 for audits: periodic re-labels that catch drift in the judge and in the product.
Your annotators' kappa is 0.35. What do you do?Show answer
I treat it as a problem with the task, not the people. I pull the disagreements into a calibration session and usually find the label is overloaded — "helpful" hides three criteria — or an edge case is undefined. I split it into binary, specific criteria, add the contested cases to the guidelines as examples, and re-measure on a fresh overlap set. I don't average the labels or calibrate a judge on them: a judge can't agree with humans who don't agree with each other.