Evaluation and judges
Grading an uncertain system with another uncertain system is defensible — but only if you treat the judge as a component that must itself be validated.
10.1What a grader can and cannot license
Every evaluation ends in a scorer, and the scorer determines which claims the resulting number can support. Three families are in use, and confusing what each licenses is the most common error in applied evaluation.
Programmatic graders compute a verdict in code. A test passes or fails, a schema validates, a database ends in an expected state. They are deterministic, cost almost nothing per item, and run in milliseconds, so they can execute on every commit. They support the strongest claims available, because the verdict does not depend on anyone's judgement. Their limit is coverage: they check only properties expressible in code, which excludes most of what makes an answer good. A response can satisfy every schema check and still be useless.
Human graders apply judgement and are the reference standard for anything subjective. They are also the only source that establishes what good means for a task in the first place. The costs are the familiar ones — roughly a dollar to ten dollars per item, turnaround measured in days, and a noise floor set by how well the annotators agree with each other.
Model judges sit between the two, and their appeal is that they scale like code while handling open-ended output like a person. The correct framing is that a judge is a component of your system with its own error rate, and it must be evaluated exactly as any other component would be. A judge that has not been measured against human labels is an unvalidated classifier making release decisions.
A useful discipline over the life of a project is to move claims leftward in this table as they stabilise. A property first assessed by a human judge, then by a model judge, can often be pinned down precisely enough to become a programmatic check once the team understands what they are actually looking for. Each move makes the check cheaper, faster, and less arguable.
| FAMILY | COST PER ITEM | LATENCY | SUPPORTS THE CLAIM | CANNOT SUPPORT |
|---|---|---|---|---|
| Programmatic | Negligible | Milliseconds | Meets this specification | Is a good answer |
| Model judge | Fractions of a cent | Seconds | Ranks like humans, within measured agreement | Claims beyond the validated range |
| Human | Dollars | Days | Humans prefer this | Continuous checks on every commit |
10.2Validating a judge
A model judge is built from a model and a prompt, and it has an error rate in the same sense any classifier does. Teams that would never ship an unmeasured retrieval component routinely ship an unmeasured judge and then use its output to make release decisions about everything downstream. The error is invisible in a particular way: a judge that is systematically wrong produces clean, well-formatted, confidently worded scores that look identical to correct ones.
Validation means measuring agreement with human labels on the same items, under the same rubric, on the same scale. Sample between one and three hundred items from the real evaluation distribution, stratified to span the quality range. Stratification carries more weight here than sample size: a set drawn only from production traffic is dominated by easy passes, agreement looks excellent, and the judge stays unmeasured on the marginal cases where decisions actually get made.
Write the rubric before collecting labels, and give annotators the same text the judge receives. Where the two differ, agreement measures the difference in instructions rather than the judge's fidelity. Collect two or three independent labels per item from annotators who have not seen the judge's output, since showing them a score produces anchoring and destroys the independence the measurement depends on.
Compute human-human agreement first, before looking at the judge. That number is the ceiling. If two trained annotators agree on seventy-four per cent of items, a judge cannot meaningfully exceed seventy-four per cent agreement with a randomly chosen annotator, because the remainder consists of items where the human labels themselves conflict and no single label exists to agree with. Agreement reported above the ceiling is a signal to check the setup rather than evidence of a superhuman judge; the usual causes are label leakage, an easy stratum dominating the sample, or annotators who saw the judge's output.
Low human-human agreement is diagnostic rather than fatal. It says the rubric is underspecified, and the response is to revise it, retrain the annotators, and measure again. The criteria used to grade outputs tend to be refined by the act of grading them, so a first labelling pass frequently reveals that the written rubric did not mean what its author thought. Budget for a second pass.
The reference figures are worth knowing. On pairwise comparisons with ties excluded, a strong judge agreed with human experts on roughly eighty-five per cent of items, against a human-expert-to-human-expert agreement of about eighty-one per cent on the same benchmark. The claim that a good judge matches human agreement levels rests on those numbers, and it is worth being precise about their scope: eighty questions across eight categories, some three thousand expert votes, on chat responses. Agreement there does not transfer automatically to a domain-specific rubric over multi-step agent trajectories.
Aggregate agreement is necessary and insufficient. The disagreements have to be read individually — all of them, if there are fewer than fifty. This is the step teams skip and the one that yields nearly all the actionable information. Disagreements sort into cases where the human was wrong, cases where the judge was wrong in a patterned way, and cases where the rubric does not determine an answer. Only the second is a judge defect, and only reading them separates the three. An aggregate of eighty-two per cent is equally consistent with a uniformly slightly noisy judge and with one that is perfect on ninety per cent of the distribution and systematically inverted on a specific tenth.
Validation expires. When the judge's underlying model version changes, the component has been replaced and the measurement must be repeated. Provider-side updates, prompt edits, temperature changes, and modifications to the context the judge receives all invalidate prior agreement figures. Pin the judge version explicitly, treat a version bump as a code change requiring re-validation, and keep the labelled set under version control. Two hundred labelled items is a durable asset that turns an unbounded re-validation cost into a routine check.
items = stratified_sample(pool, n=200, strata=["good","mid","bad"])
H = collect_human_labels(items, rubric=RUBRIC, raters=3, blind=True)
ceiling = pairwise_agreement(H) # compute FIRST
J = {i: judge(i, rubric=RUBRIC, model=JUDGE_VERSION) for i in items}
judge_agree = agreement(J, majority(H))
assert judge_agree <= ceiling + 0.05, "above ceiling: check setup"
for i in items: # read every disagreement
if J[i] != majority(H)[i]:
emit_for_review(i, J[i], H[i], judge_rationale(i))10.3Judge biases and their mitigations
Judges exhibit systematic biases with measured magnitudes. These are stable properties rather than occasional slips, which means they shift aggregate scores in a consistent direction and survive averaging.
Position bias is larger than most practitioners assume. Measured by presenting the same pair in both orders and asking whether the verdict holds, one strong judge was consistent on sixty-five per cent of pairs, a weaker one on forty-six per cent, and a third on under a quarter. A judge consistent on a quarter of swapped pairs is close to deciding by position rather than by content. The mitigation is mechanical: run every comparison twice with the order reversed, and count a win only when the same response is preferred in both. Everything else is a tie. This doubles the judge cost and converts a large systematic bias into an explicit inconsistency measure worth tracking — a tie rate above thirty per cent means the rubric does not distinguish these responses.
Verbosity bias shows up starkly under an adversarial test. When a response was rewritten to be longer without adding content, two judges preferred the padded version in over ninety per cent of cases, while a stronger judge fell for it under nine per cent of the time. Since human raters also prefer longer answers to some degree, the bias is an exaggeration of a real tendency rather than an invention, which makes it harder to notice. State length expectations in the rubric and report response length as a covariate, so you can see whether a winning system simply wrote more.
Self-preference bias means a judge rates outputs from its own model family higher — measured at roughly ten points of win rate for one model and around twenty-five for another. The natural setup, using your best model as judge while evaluating systems built on that same model, maximises this. Use a judge from a different family than the systems under test, and where the stakes justify it, run two judges from different families and report both.
Reference-guided grading gives the judge a correct answer to compare against rather than asking it to assess quality unaided. On mathematical problems the effect is large: judge errors on a twenty-problem set fell from fourteen under default prompting to six with chain-of-thought and three with a reference. The mechanism explains why the gain concentrates on reasoning tasks. An unanchored judge must solve the problem itself to assess the answer, so its errors correlate with the errors of the system it is grading, and the evaluation is blind exactly where it matters most. Supplying the reference removes the judge's need to reason and turns the task into comparison.
Rubric decomposition replaces a holistic rating with a set of specific binary checks — whether the answer addresses the question asked, whether each claim is supported by a cited source, whether uncertainty is stated, whether the response contradicts the provided context. Each check is easier to apply consistently than an overall score, and the aggregate is more stable. Holistic scales also cluster badly in practice, with most responses landing on the same one or two values, which destroys the discrimination the scale was meant to provide.
| BIAS | MEASURED MAGNITUDE | MITIGATION | RESIDUAL COST |
|---|---|---|---|
| Position | Order-swap consistency from 24% to 65% depending on judge | Swap order; require agreement in both | Two judge calls per comparison |
| Verbosity | Padded answers preferred in over 90% of cases by weaker judges | Length in the rubric; report as a covariate | More rubric authoring |
| Self-preference | Roughly 10 to 25 points of win rate | Cross-family judge; dual judges | Cost and model access |
| Scale clustering | Most items land on one or two values | Binary decomposed checks | More rubric authoring |
10.4Pairwise, pointwise, and induced metrics
Pairwise comparison asks which of two responses is better. It is more reliable than absolute scoring, because relative judgements are easier to make consistently and there is no scale to calibrate. It costs a full ranking that grows quadratically in the number of systems, and it yields no absolute meaning — you learn that one system beats another, not whether either is acceptable.
Pointwise scoring produces a number you can threshold on, which is what a continuous integration gate needs. The scale drifts between judge versions and clusters heavily, so a pointwise number from one judge version cannot be compared against another. Use pairwise for choosing between candidate systems, and pointwise with a decomposed rubric for absolute quality gates, and do not mix the two.
Both approaches assume you know what to measure. Writing a rubric by hand encodes the dimensions the author thought of, which is a weak assumption when grading open-ended agent behaviour where the interesting failures are the ones nobody anticipated. Recent work attacks this by inducing metrics from data rather than authoring them.
One line of work generates candidate evaluators, retrieves related metrics from a bank of previously validated ones, and fits a regression from those metric values to observed human ratings, keeping the handful that carry the signal. Reported gains reach a third higher rank correlation with human judgement than a judge prompted directly, and the fit saturates at around eighty human feedback points — which is a practical number, well within a single annotation session.
A second line induces metrics from open-ended written feedback about agent behaviour. Annotators describe what an agent did well or badly in prose; the system grounds each comment in the specific behaviour that prompted it, clusters the comments into recurring dimensions, and emits those as an evaluation rubric. The induced metrics are themselves evaluated on coverage, meaning how much of the human feedback they account for, and on redundancy. Reported coverage reaches the high eighties on web-agent benchmarks, and using the induced metrics to select training trajectories improved task success by twenty points on one benchmark from fewer than twenty trajectories per stage.
The reason to care about metric induction is that hand-written rubrics encode a fixed hypothesis about what matters, and agent failures tend to be surprising. A rubric derived from what annotators actually noticed will name dimensions the author would not have thought to include.
| MODE | COST FOR n SYSTEMS | GIVES | USE WHEN |
|---|---|---|---|
| Pairwise | Quadratic, or n log n with sorting | A relative ranking | Choosing between candidates |
| Pointwise | Linear | An absolute, thresholdable score | Regression gates in CI |
| Reference-guided | Linear, plus authoring references | An anchored absolute score | A known good answer exists |
| Induced metrics | Annotation plus fitting | Dimensions you did not think to write | Open-ended agent behaviour |
10.5Evaluating agents rather than outputs
Everything so far applies to grading a response. Grading an agent differs because the object under evaluation is a trajectory — a sequence of decisions, tool calls, and observations — and the final state alone does not describe it.
Score the trajectory, not only the outcome. An agent that reaches the correct final state after deleting and restoring a production table has not performed acceptably, and a scorer that inspects only the end state records a pass. For any agent with side effects, the scorer must examine what happened along the way. This chapter takes no position on which actions should be permitted, which is Chapter 11's subject; the point here is narrower, that the scorer has to be able to see them.
Partial credit needs deciding deliberately. A binary pass over a twelve-step task discards most of the signal, since an agent that completed eleven steps and an agent that failed at the first both score zero. Step-level credit recovers that signal and introduces its own problem, because an agent can accumulate credit for progress along a path that was never going to succeed. The usual resolution is to score outcome and process separately and report both rather than blending them into one number whose composition is unrecoverable.
Agent runs are stochastic, so a single run measures very little. Two statistics summarise repeated runs and they answer opposite questions. One asks whether at least one of several attempts succeeded, which is the right question when a verifier selects the good attempt — code with tests is the standard case, since you can generate several candidates and ship whichever passes. The other asks whether every attempt succeeded, which is the right question when the agent acts unattended and its action takes effect on the first try.
The gap between them is severe and runs in the direction that flatters a demonstration. At an eighty per cent per-run success rate, the probability that at least one of five attempts succeeds is above ninety-nine per cent, while the probability that all five succeed is about a third. Same system, same underlying rate, and a threefold difference in the direction that matters. Most agent products are of the second kind, and most agent benchmarks report the first.
The question to ask is whether a wrong output is caught before it has an effect. If a test, a schema check, or a human review stands between the agent and the world, the first statistic applies. If the agent's action is itself the effect, the second applies, and it is the number that predicts what users experience. Independence across attempts is also an assumption, and usually a wrong one, since the same ambiguous instruction breaks every retry — so measured all-succeed rates typically fall below the arithmetic prediction.
| p | k = 3, AT LEAST ONE | k = 5, AT LEAST ONE | k = 3, ALL | k = 5, ALL |
|---|---|---|---|---|
| 0.95 | 0.9999 | 0.9999 | 0.857 | 0.774 |
| 0.90 | 0.999 | 0.9999 | 0.729 | 0.590 |
| 0.80 | 0.992 | 0.9997 | 0.512 | 0.328 |
| 0.60 | 0.936 | 0.990 | 0.216 | 0.078 |
10.6Harness design and the order of work
Everything above describes how to score one item. A harness is the surrounding machinery that turns scoring into a repeatable process: it holds the evaluation set, runs the system under test against pinned environments, invokes the scorers, stores results with enough metadata to reproduce them, and reports differences between runs. Teams generally build the scorer first and the harness last, which is the wrong order, because a scorer without a harness produces numbers nobody can reproduce a month later.
A workable build order starts with the smallest thing that can fail. Begin by writing down the claim the evaluation is meant to support, in one falsifiable sentence, because a suite assembled without one measures whatever was convenient. Collect a set of real cases next, drawn from actual traffic rather than authored by the team, and hold part of it back untouched. Only then write scorers, starting with programmatic checks for anything expressible in code, since those are free to run and settle arguments without appeal.
Add a model judge once the programmatic layer has stopped catching new failures, and validate it against human labels before trusting any number it produces. Wire the whole thing into continuous integration so that a regression surfaces on the commit that caused it rather than during a demonstration. Then instrument production sampling, because the evaluation set drifts away from real traffic the moment the product ships and only a sampling path notices.
Two properties separate a harness that survives contact with a team from one that decays. Every result must record what produced it — the system version, the judge model version, the evaluation set version, the date, and the random seed — so that a number can be traced to a configuration. And the suite should be split by purpose: a fast capability suite that runs on every commit and answers whether the system still works, and a slower regression suite covering historical failures that runs before release and answers whether anything previously fixed has broken again.
Cost discipline belongs in the harness rather than in individual scorers. A suite that costs more than a few dollars per run will be run less often, and an evaluation nobody runs provides no signal. Cache judge calls keyed on the input and judge version, sample rather than exhaustively scoring where the confidence interval permits it, and reserve the expensive human layer for periodic validation rather than routine measurement.
| STAGE | WHAT IT ANSWERS | RUNS WHEN |
|---|---|---|
| Written claim | What is this suite meant to establish? | Once, before anything is built |
| Real cases, held out | What does the system actually face? | Collected continuously |
| Programmatic scorers | Does it meet the specification? | Every commit |
| Validated model judge | Does it rank like a human, within measured agreement? | Every commit, after validation |
| Regression suite | Has anything previously fixed broken again? | Before release |
| Production sampling | Has real traffic drifted from the evaluation set? | Continuously |
Red-team an evaluation agent
Take a working judge and try to break it. Submit verbose but wrong answers, confidently phrased errors, and outputs that flatter the judge's own style. Report the attack that worked best and the guideline change that closes it.