Composite scenario, not a real company. Assembled from common industry patterns; every number is illustrative and its assumptions are listed at the end.
This case belongs to Evaluating AI systems.
Context
- A regional public agency handles benefit appeals. Each case holds a long thread of letters, forms and call notes.
- A summarisation feature gives the caseworker a brief of at most 150 words: the facts, dates, amounts, deadlines and what the citizen is asking for.
- The caseworker opens the source when anything matters. The agency wants a cheaper model.
Problem statement
Nobody could say whether the cheaper model was as good, because nobody agreed what "good" was. Caseworkers wanted short briefs, legal wanted every deadline, and communications wanted plain language.
| Measure | Start | Target |
|---|---|---|
| Two caseworkers rate 100 summaries | Agree on 71 (Cohen's kappa 0.37, defined below) | Written rubric, kappa above 0.8, a judge checked against humans |
| Model-change decision | Opinion | Numbers with intervals |
Constraints
- Fixed: case content holds personal data, so only approved providers receive it, via the model gateway, with redaction.
- Fixed: the caseworker stays responsible; the brief links to its source.
- Limit: reviewers label about 100 summaries per round.
Why the traditional approach fell short
| Approach | Where it breaks |
|---|---|
| Template brief from form fields | Exact, but cannot read a deadline inside a sentence |
| Extractive tools (first and last paragraphs) | Miss the middle of long threads |
| Overlap scores against a reference summary | Reward wording, not whether a deadline is present |
| Manual reading | Gives a verdict per reader, and readers disagreed |
Options considered
| Option | Verdict | Reason |
|---|---|---|
| A. Structured fields plus the first and last paragraph (non-AI) | Kept | The comparison baseline and the fallback if the model is down |
| B. Ship on demo impressions and thumbs up | Rejected | No definition of good, no regression signal |
| C. Rubric, human labels, calibrated judge, pairwise checks, spot checks | Accepted | A repeatable measure, and how far to trust it |
| D. Humans review every summary | Rejected | Removes the saving the feature exists for |
Solution architecture
Figure 1. Evaluation loop around the summariser
How to read this: the Eval service reaches the model only through the same gateway as production, and human labels are the only thing that flows back into the labelled set.
Figure 2. A model change, judged in both orders
How to read this: each pair is judged twice with the order swapped, and the judge's verdicts are only used while a human sample still agrees with it.
How AI solved it, step by step
Step through the model comparison, then switch to "Without the fix".
Under the hood
Cohen's kappa corrects raw agreement for chance (scikit-learn's documentation, citing Cohen 1960): 1 is complete agreement, 0 is none beyond chance. Here p_o is observed agreement and p_e the agreement expected if each rater labelled at random with their own label frequencies.
kappa = (p_o - p_e) / (1 - p_e)
The Stanford IR book's rules of thumb for relevance judges: above 0.8 good, 0.67 to 0.8 fair, below 0.67 a dubious basis for evaluation. Cutoffs depend on purpose, and its worked example pools label frequencies; this page uses each rater's own.
Worked case: the judge and the consensus labels agree on 84 of 100. The judge passes 74 and the humans 66.
p_o = 0.84
p_e = 0.74 x 0.66 + 0.26 x 0.34 = 0.5768
kappa = (0.84 - 0.5768) / (1 - 0.5768) = 0.62
An 84% agreement hides that the judge passes 12 of the 34 summaries humans failed.
Judges are models with documented biases. The MT-Bench paper (Zheng et al.) reports over 80% agreement between a strong judge and humans on chat questions. That was measured on chat, not on this agency's briefs, so agreement is measured locally.
| Bias in the paper | Mitigation here |
|---|---|
| Position: favours certain positions | Call the judge twice with the order swapped; count a win only when both orders agree, as the paper does |
| Verbosity: favours longer text | The rubric caps length at 150 words, checked in code |
| Self-enhancement: may favour answers it generated (the paper's data could not settle it) | Judge with a different model than generates, as a code comment in Anthropic's evaluation guide recommends |
The candidate's rubric pass rate is gated on its interval's lower bound (two-sided 95%), with a bar of 70%. Set passes to 78: the lower bound falls to 68.9% and the gate fails.
The candidate's 80 of 100 gives 71.1% to 86.7% and passes. The mechanism is in Under the hood: Calibrating a judge against human labels.
What went wrong / failure modes
| Failure | What happened and the mitigation |
|---|---|
| Lenient judge | First calibration: kappa 0.62, 12 of 34 false passes. Itemise yes or no criteria, reason before the verdict, recalibrate on a held-out set |
| Overfitted judge prompt | Tuning on the calibration set inflates agreement. Confirm on 100 unseen summaries |
| Order effects | 40 of 100 pairs were ties (the verdict changed with the order, or both said tie). Count only agreeing orders. In the paper's test, the strongest judge was consistent in 65.0% of cases |
Results
All results are illustrative targets, not measurements.
| Measure | Start | Target |
|---|---|---|
| Human agreement | 71 of 100, kappa 0.37 | 91 of 100, kappa 0.82 with the rubric |
| Judge versus humans | kappa 0.62, 12 of 34 false passes | kappa 0.77, 7 of 34, held-out set |
| Candidate rubric pass rate | Unknown | 80 of 100 (71.1% to 86.7%); bar: lower bound at least 70% |
| Candidate versus current, pairwise | Opinion | 36 wins to 24 among 60 decided pairs (60%, 47.4% to 71.4%) |
The reading: the candidate is not shown to be worse or better.
Tradeoffs and when NOT to use this approach
- Small volume. People can read a few hundred summaries a month; skip the judge.
- Decisions about people. If a summary drives a benefit decision, a human reads the source.
- No stable rubric. If stakeholders will not agree on criteria, there is nothing to calibrate.
- Close models. With 40% ties, collect more pairs.
Design rules extracted
- Write the rubric first, and measure human agreement with kappa before building a judge.
- A judge is a model: calibrate it against human labels on data it was not tuned on, then recheck on a schedule.
- Compare models in pairs, in both orders; report an interval, not a winner.
- Keep checkable criteria, such as length, in code.
- Keep humans sampling the judge's passes and fails.
Assumptions
All numbers are illustrative.
- Round 1, two raters, 100 summaries: both pass 50, rater 1 only 12, rater 2 only 17, both fail 21. p_o = 0.71; the raters pass 62 and 67; p_e = 0.62 x 0.67 + 0.38 x 0.33 = 0.5408; kappa = 0.1692 / 0.4592 = 0.37. Round 2 with the rubric, a fresh 100: 52, 5, 4, 39. p_o = 0.91; p_e = 0.5084; kappa = 0.82.
- Judge against consensus, 100 summaries: both pass 62, judge only 12, human only 4, both fail 22 (kappa 0.62 above). Revised judge, held-out 100: 63, 7, 3, 27. p_o = 0.90; judge passes 70, humans 66; p_e = 0.564; kappa = 0.77. False passes 7 of 34.
- Pairwise, 100 sources judged in both orders: candidate wins both 36, current wins both 24, ties (order-dependent or tied) 40; decided pairs 60.
- Wilson 95% interval, z = 1.96: 80 of 100 gives 0.7112 to 0.8666; 78 of 100 gives 0.6893 to 0.8500; 36 of 60 gives 0.4737 to 0.7143.
- The 70% bar, the 0.67 kappa floor (a textbook rule of thumb applied as a gate), the 30 + 30 review sample, the sample sizes and dropping ties from the pairwise share are choices, not standards. Two-sided 95% intervals make the 70% bar effectively a 97.5% one-sided bound, stricter than the lesson's one-sided 95% gates.
- The agency, the rubric and all counts are invented.
Last verified: 2026-10-22