Evaluating model releases
hard 6 minAn evaluation is a task distribution, a procedure and a measurement rule.
Video lesson · Chapter 1 of 4
Eighty-six correct, release blocked
Theory
Read or listen first. About 2 min.
What it is
An evaluation is a task distribution, a procedure and a measurement rule. A judge may compare responses, tests may execute outputs, and human reviewers may label borderline cases. The result only supports conclusions about what was actually sampled and measured.
Why it exists
Set release gates before inspecting outcomes. Compare models on paired cases, evaluate rare high-impact categories separately and use independent checks to calibrate automatic scores. A favorable average can hide a costly failure mode.
A higher average hides a failed release
Inside this chapter
Chapter sources- LLM-as-a-Judge
- A model judge scores outputs against a rubric. Validate the judge against human-labeled examples and measure agreement by task type. Shuffle presentation order in pairwise comparisons. Position, verbosity and shared model biases can make a judge reward an answer for the wrong reason.
A judge model is a measuring instrument, and like any instrument it needs calibrating against something trusted, usually a set of human-labelled examples per task type. Known biases include favouring the first or second slot, favouring longer answers, and favouring text that resembles its own style. Swapping order, matching length and using a rubric with concrete criteria reduce these. Report agreement with humans by slice, because a judge that is reliable on tone may be poor on factual accuracy.
Example. Swap the positions of an answer pair without changing either answer. A judge that changes its preference systematically exhibits position bias.
Another example. A team grades support replies with a model judge and checks it monthly against 100 human-labelled pairs. Agreement on policy accuracy falls from an illustrative 88% to 74% after a judge upgrade, so the new judge is held back.
Swap test for position bias
Run every pair in both orders. The rate of flipped verdicts is itself a quality metric for the judge. - Benchmarks (MMLU, HumanEval)
- MMLU measures performance on multiple-choice questions across subject areas. HumanEval measures synthesis of small programs through tests. Neither substitutes for an application evaluation. Record the prompt, sampling settings, scoring method and contamination risks before comparing model releases.
Benchmark numbers are only comparable when the prompt template, number of examples, sampling settings and scoring rule match. Small changes, such as letter labels versus full-text answers, can shift a score. Popular benchmarks also leak into training data over time, so a high score may partly reflect memorisation. Treat them as a coarse filter and make the decision on your own cases.
Example. A candidate gains eight points on a broad quiz yet fails three additional invoice exceptions. Inspect the application slice before authorizing release.
What each benchmark actually measures
Evaluation Task format Scoring Main caveat MMLU multiple-choice questions across subjects accuracy on the chosen option prompt format and contamination move scores HumanEval write a small Python function pass rate on unit tests short, well-known problems Your application set real tickets, invoices, edge cases your own rubric or tests must be built and maintained Public benchmarks compare models broadly. Release decisions need the application set. - pass@k for generated code
- pass@k is the probability that at least one of k sampled programs passes the tests. It is estimated from n samples per problem, of which c pass, using an unbiased formula rather than literally drawing k.
The fraction under the bracket is the chance that a random choice of k samples contains no passing one. Larger k rewards a model that sometimes gets it right, which suits a workflow with a test runner that can pick the passing candidate. If users only ever see one answer, pass@1 is the number that matches their experience.
Example. With n = 10 samples and c = 3 passing, pass@1 is 0.3 and pass@5 is about 0.917.
Unbiased pass@k estimate
n = 10, c = 3, k = 5: 1 - C(7,5)/C(10,5) = 1 - 21/252, about 0.917. For k = 1 it reduces to c/n = 0.3. - Contamination checks
- Contamination means test items, or close copies, appeared in training data, so a score partly measures recall. Checks look for overlap, test with fresh or rewritten items, and compare old against new questions.
You rarely have the training data of a third-party model, so the practical tests are behavioural: fresh items, paraphrases and items dated after the model's training. For your own models, keep evaluation sets in a separate store, deduplicate training data against them, and record the check in the manifest.
Example. A model scores far higher on a benchmark's original questions than on freshly written ones of the same difficulty. That gap is a warning sign of leakage.
Four contamination probes - 1Overlap searchlong n-gram matches with training text
- 2Canary stringsunique markers placed in private sets
- 3Rewritten variantssame skill, new wording and numbers
- 4Time-split itemswritten after the training cutoff
No single probe proves cleanliness. A large drop on rewritten or newer items is the strongest signal.
How it works
Step through the idea, or press Play.
Paired tasks. 80 routine · 20 exception cases
Understand it
Worked example
A higher average hides a failed release
- 1
80 routine · 20 exception cases
Use the same questions and scoring policy for both releases. Record which cases changed outcome, not only the group totals.
- 2
78 routine · 8 exceptions correct
The aggregate is 86%. The rare group is only 40% correct. A release criterion for exceptions can change the decision even when the overall result improved.
- 3
Require ≥ 75% on exceptions
Check judge calibration on the relevant slice and inspect representative failures. The stricter gate prevents promoting this candidate.
Aggregate versus slice accuracy
Follow the handoffs
The same release, read two ways
| Slice | Cases | Correct | Accuracy | Gate |
|---|---|---|---|---|
| Routine | 80 | 78 | 97.5% | no slice gate |
| Exceptions | 20 | 8 | 40% | needs 75%: fail |
| Overall | 100 | 86 | 86% | looks healthy |
Release gate with a slice rule
Summary
The whole topic in one minute.
The acceptance requirement applies to the exception slice. An aggregate score cannot satisfy a per-slice requirement.
Set release gates before inspecting outcomes. Compare models on paired cases, evaluate rare high-impact categories separately and use independent checks to calibrate automatic scores. A favorable average can hide a costly failure mode.