Skip to content

    AI Architect Case Files

    Case File: Summarisation Quality With a Calibrated Judge

    A public agency's case-note summariser had no shared meaning of good. A rubric, a calibrated judge and pairwise checks made model changes testable.

    By Published 8 min read

    • ai-architect
    • case-file
    • industry-public-sector
    • pattern-eval-design
    • failure-quality-regression
    • kind-composite
    Share

    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

    Evaluation loop around the summariserClient app to Orchestrator; Orchestrator to Model gateway; Model gateway to LLM provider; Orchestrator to Trace store; Eval service to Trace store; Eval service to Model gateway (judge); Eval service to Document store; Eval service to Client app (samples); Client app to Document store (human labels)AGENCY BOUNDARYClient app: caseworkerClient appcaseworkerOrchestratorOrchestratorModel gatewayModel gatewayLLM provider: approved listLLM providerapproved listTrace storeTrace storeEval serviceEval serviceClient app: reviewer consoleClient appreviewer consoleDocument store: labelled setDocument storelabelled setjudgesampleshuman labels

    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

    sequenceDiagram accTitle: Model change evaluated by rubric and pairwise judge accDescr: The worker starts a comparison. The Eval service loads sources, has both models summarise them, judges each summary against the rubric, and judges each pair in both orders. It then samples summaries for human review and returns a verdict, or suspends the judge if its agreement with humans has dropped. participant WK as Worker participant EV as Eval service participant DS as Document store participant MG as Model gateway participant LP as LLM provider participant RC as Reviewer console WK->>EV: Compare candidate model with current EV->>DS: Load 100 held-out sources EV->>MG: Summarise with both models MG->>LP: Requests LP-->>MG: Summaries MG-->>EV: Summaries EV->>MG: Judge each summary on the rubric EV->>MG: Judge each pair, A then B and B then A MG-->>EV: Verdicts EV->>RC: 30 judged pass and 30 judged fail RC-->>EV: Human labels alt kappa of judge and humans at least 0.67 EV-->>WK: Verdict with intervals else agreement fell EV-->>WK: Judge suspended, humans label this round end

    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".

    Comparing a cheaper model (interactive when JavaScript is on)

    As designed

    1. Propose and start. Cost review proposes a cheaper model. The Worker asks the Eval service to compare it with the current one.
    2. Load held-out sources. The Eval service loads 100 sources never used to write or tune the judge prompt.
    3. Summarise with both. Both models summarise each source through the Model gateway.
    4. Judge on the rubric. The judge grades four yes or no criteria, reasoning first: key facts present, no unsupported statement, the citizen's request stated, at most 150 words in plain language. A summary passes only if all four pass.
    5. Judge each pair twice. The judge compares each pair in both orders. A win counts only if the same summary wins both; otherwise the pair is a tie.
    6. Decision: report with intervals. The Eval service reports the rubric pass rate and the win share among decided pairs, each with a 95% interval.
    7. Check the judge against humans. Reviewers label 30 judged-pass and 30 judged-fail summaries. The Eval service recomputes kappa, weighting the two groups back to their shares of the judge's verdicts because the sample is not random.
    8. Suspend if agreement fell. If kappa has dropped below 0.67, the judge is suspended and humans label the round. The Trace store keeps model, rubric and judge-prompt versions.

    Without the fix

    1. Propose. Cost review proposes the cheaper model. No definition of good exists.
    2. Demo and thumbs up. A few summaries are read and thumbs-ups compared. Each team judges by its own priority: short, every deadline, or plain language.
    3. Labels disagree. Two caseworkers rating the same 100 summaries agree on 71 (kappa 0.37), so even human labels cannot anchor a decision.
    4. Decide on opinion. The change is approved or refused with no number, and a later regression goes unseen.

    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.

    Candidate model rubric gate (interactive when JavaScript is on)
    Observed pass rate80.0%
    Interval (z = 1.96)71.1% to 86.7%
    Gate: lower bound at least 70.0%pass

    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

    1. Write the rubric first, and measure human agreement with kappa before building a judge.
    2. A judge is a model: calibrate it against human labels on data it was not tuned on, then recheck on a schedule.
    3. Compare models in pairs, in both orders; report an interval, not a winner.
    4. Keep checkable criteria, such as length, in code.
    5. 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

    Ask about this article

    Get answers grounded in this post. AI-generated — based on this article, and may be imperfect.

    Scaled AI Weekly

    Enjoyed this? Get more like it every Monday.

    Real architecture decisions, LLMOps patterns that survive production, and engineering leadership advice — from 12+ years of building at enterprise scale. Free. No spam. Unsubscribe anytime.

    Get new articles by email

    Free. We email a confirmation link first, and you can unsubscribe from any email.

    Join engineers building production AI systems

    Comments