# AI Evaluation: How to Tell If an AI System Really Works

> This guide explains how to evaluate AI systems with repeatable tests, golden answers, and verifiable graders—so you can replace “the demo looks good” with measurable results and error bars. It also shows why the graders themselves must be tested.

- Source: https://www.waytoagi.com/en/kb/learning-path/how-to-evaluate-ai-systems
- Original (Feishu, Chinese): https://waytoagi.feishu.cn/wiki/MO5EwZImmiLG19kPPg7ccy5YnVg
- Updated: 2026-11-24

---

> 🔗 Original link: [Evals: how to know whether an AI system actually works](https://x.com/sermakarevich/status/2106453816757354947)

> Sergii Makarevych · X · @sermakarevich · 2026-10-04 02:38

> 📌 This is a repost. Copyright belongs to the original author. The original link is the authoritative version.

![](https://www.waytoagi.com/api/kb-media/HUqrbWNEjoU7BxxEWa9cWP0In0e)

This article is for anyone building, buying, or signing off on software built on top of large language models (LLMs): engineers, product managers, and CEOs. It is written in plain language, moving from the big picture to the details. Every number comes from the sources listed at the end: our own runnable tutorial (for a small support assistant), or a published paper.


## The quick version (if you only read one section, read this)

**Evaluation** (evals for short) is a repeatable test that gives you a trustworthy number telling you whether an AI system meets your expectations, and whether a change made it better or worse.

Why you need it: language models fail differently from ordinary software. Ordinary software either works or crashes. A language model, by contrast, produces fluent, confident, well-formatted answers that may be wrong. Reading one correct answer tells you nothing about the next hundred. Evaluation replaces "it looks good in the demo" with "it passes 70% of the cases we care about, with a margin of error of plus or minus 12 percentage points, and the new version shows no measurable improvement."

How it works, in four steps:

1. **Collect the inputs that matter**, with the correct answer for each. In our example: 80 customer support tickets for a bike shop, each labeled with the correct category and the facts a good response must contain.

2. **Run the system**, processing each input and saving the output.

3. **Score each output** using a grader. A grader can be a rule in code, a second model acting as judge, or a human.

4. **Turn the scores into a number with an error margin**, and compare it with the previous version.

When to use it: before launch (does it work?), before every change (did we break anything?), and after launch (is it still working under real traffic?).

> **Important:** The grader is part of the system you must test. A judge model that agrees with humans only 60% of the time will tell you everything is fine when the product is broken.
 **What it means for us:** Every evaluation has two numbers to check: how good the product is, and how good the grader is. Ask for both.
 **Why it matters:** The most common way AI teams fool themselves is with confident numbers from an unvalidated grader.

The rest of this article goes deeper, layer by layer, with each layer answering one question about the layer above it.

- Layer 0 · The full loop, once, with a single ticket

- Layer 1 · What exactly are we measuring? · (inputs, ground truth, numbers)

- Layer 2 · Where did it go wrong? · (look at the data first)

- Layer 3 · Graders made of code · (cheap, precise, blind to meaning)

- Layer 4 · The model as grader · (flexible, biased, must be checked)

- Layer 5 · Honest numbers · (error margins, A/B testing, how many cases you need)

- Layer 6 · Grading systems with components · (retrieval, AI agents, cost, reliability)

- Layer 7 · Public benchmarks · (what leaderboards can and cannot tell you)

- Layer 8 · Building the habit · (gates, monitoring, when to re-check)

- Finally · Tools and methods, a decision guide, and references

## Level 0: The full pipeline, once, with a single ticket

Deep dive: everything. Question: What does evaluation look like at runtime?

The example running through this article is a small customer support assistant for a fictional online bicycle and camping store. It has three parts, and we will later score each part in different ways:

- **Classification**: reads a ticket, classifies it into one of 12 categories (returns, shipping, warranty, etc.), and assigns a priority.

- **Answering**: finds the relevant pages of the store policy manual and writes a reply that cites those pages.

- **Agent**: follows policy rules to call tools against a mock database to look up orders, process refunds, and escalate cases.

Here is one ticket going through the whole pipeline.

**Input:** “I’m about to be late for work and need this resolved immediately. I returned the bike last week but still haven’t seen the refund. Your policy clearly states that refunds are processed within 5 business days…”

**System output (classification):** Returns. **Gold answer:** Returns. **Score:** 1/1.

**System output (answering):** A polite four-paragraph reply that cites the returns section and mentions the two required facts: refunds take 5 business days, and used items incur a 15% restocking fee.

Now, three graders check that reply:

- **Code rule**. The question it asks: Does the reply cite a section from the manual? Verdict: Yes.

- **Code rule**. The question it asks: Does it mention the two required facts? Verdict: Yes, neither is missing.

- **Model judge**. The question it asks: Does it claim anything not mentioned in the manual? Verdict: **Fail**: it hallucinated a “grace period of up to 15 business days in total.”

That is the whole idea. Two cheap code checks say the reply is fine. The judge catches a fabricated number that would have gone to a customer. Every level after this is about making this pipeline trustworthy at scale.

**Takeaways carried forward from Level 0:**

- An evaluation is inputs, a system, graders, and a number. That’s it.

- Different graders answer different questions. “Cites a section” and “does not fabricate content” are not the same kind of check.

- A fluent answer can pass every surface check and still be wrong.


## Level 1: What exactly do we measure?

Deep dive: steps 1 and 4 of the loop. Question: Where do the inputs and the “correct answers” come from, and what is the number?

**Inputs.** Cases should look like real traffic, including the tricky cases. Our 80 tickets were generated from a matrix of customer persona × topic × scenario, so angry customers, ambiguous questions, and multi-issue tickets all appear. Anthropic’s agent evaluation guide recommends starting with 20 to 50 tasks drawn from real failures, rather than from imagined ideal paths (Grace et al., 2026).

**Gold answers.** For each input, we write down what “correct” means: the correct category, the manual section the reply must cite, and two or three facts it must state. Because our tickets were generated from the manual, the gold answers are correct by construction. In a real product, they come from domain experts.

**Two datasets.** We split the cases into a **development** set (20 tickets), used to tune prompts and graders, and a **test** set (60 tickets), used only for reporting. If you tune on the cases you report, the numbers will flatter your results.

**The number.** For classification, it means accuracy (the proportion of tickets classified correctly). For answering, it means pass rate (the proportion of replies with no failures). For the agent, it means the proportion of tasks that end in the correct database state. One number per experiment, always reported on the test set, and always with error bars (Level 5).

**Four terms that are often confused:**

- **Evaluation**. What it measures: how your system performs on your data. Example: how our assistant performs on 60 tickets.

- **Benchmark**. What it measures: how a model performs on public tasks. Example: GSM8K math, SWE-bench coding.

- **Test (software)**. What it measures: whether a function returns the expected value. Example: JSON parsing, no crashes.

- **Monitoring**. What it measures: live traffic after release. Example: daily sampled scoring of real tickets.

A model that scores high on a public benchmark can still answer your customers incorrectly. A benchmark measures the engine; an evaluation measures the cars on your road (Husain & Shankar, 2025).

**Carried forward from Level 1:**

- Inputs with gold answers are the most valuable asset in the whole process. They are expensive, and they are what makes everything else possible.

- Keep a development set for tuning and a test set for reporting.

- Benchmarks are about models. Evaluations are about your product.

## Level 2: What goes wrong? Look at the data first (Level 2: What went wrong? Start with the data)

Deep dive: the scoring step. Question: what exactly should the grader check?

Before building any automatic grader, read the outputs. Every experienced practitioner says this (Husain, 2024; Husain, 2025; Shankar et al., 2024). Read one or two hundred outputs one by one, write a short note for each failure, then group the notes into a short list of failure types with counts. This is called **error analysis**, and the two steps have names: open coding (free notes) and axial coding (grouping).

What it produced on our 60 test responses:

- Passing responses: 34 / 60

- missing_required_fact (missing required fact) · 15

- unsupported_claim (unsupported claim) · 12

- wrong_section_retrieved (wrong section retrieved) · 8

- did_not_answer (did not answer) · 5

- wrong_value (wrong value) · 2

- over_promise (over-promise) · 1

Barely more than half of the responses passed. The two biggest problems were missing facts and fabricated claims. No one would have guessed this from the demo. This list is the specification for every grader we build next: one grader per failure type, ordered by frequency.

> **Important:** The failure list comes from reading outputs, not imagining them.
 **What this means for us:** The first week of any evaluation effort is people reading transcripts in a dedicated viewer, not engineers wiring up a framework.
 **Why it matters:** Graders built for failures that do not occur produce a reassuring number while missing the failures that do occur. Teams whose evaluation work stalls almost always skipped this step (Husain, 2025).

A related finding: your criteria change as you score. Shankar et al. (2024) call this **criterion drift**. Scoring examples make the rubric more precise, and a more precise rubric changes earlier scores. Expect two or three rounds. This is not a process failure.

**Carried forward from Level 2:**

- The failure taxonomy is the plan. Build graders for the most common failure types first.

- Reading outputs is the highest-value activity, and the one most often skipped.

- Expect the rubric to change during scoring.


## Level 3: Graders made of code (Level 3: Code-based graders)

Deep dive: one grader. Question: what can pure rules measure, and what can't they measure?

A **code grader** is a rule written in ordinary code. It is free, instant, and gives the same answer every time. Use it for everything it can measure.

**Exact answers.** Classification has a single correct label, so we count matches.

- Accuracy: 0.700 · Macro-F1: 0.697

Seven out of ten tickets were classified correctly. Macro-F1 scores all 12 categories equally on average, so rare categories carry the same weight as common ones. The closeness of the two numbers suggests that errors are spread out rather than concentrated in one category.

**Rule checks on free text.** For responses, there is no single correct text, but there are rules that responses must follow:

- non-empty · 100% pass

- max_words_150 · 17% pass

- no_banned_promises · 92% pass

Only 17% of responses were within 150 words. The app is too verbose, and this can be detected without any reviewer. Public benchmarks such as IFEval (Zhou et al., 2023) are made up entirely of such verifiable rules ("answer in exactly three bullet points").

**Required facts.** We check whether each gold-standard fact appears in the response. This catches the most common failure type—missing facts—at zero cost.

**Similarity scores.** Overlap metrics (ROUGE, BLEU) and embedding similarity compare responses with reference text. On our responses, embedding similarity had an AUC of 0.709 for distinguishing good responses from bad ones (0.5 is random guessing, 1.0 is perfect). This helps notice changes between versions, but it is useless for judging whether a response is correct.

> **Important:** Similarity detects change, but does not evaluate quality.
 **What this means for us:** Use it as a cheap drift alert, never as a core metric.
 **Why it matters:** An incorrect response that uses the same words as a correct response scores high. Eugene Yan's review (2024) and the original ROUGE/BLEU papers document this limitation in detail.

**The limitation of code scoring, illustrated with one number.** Only 11.7% of our responses passed all code checks, but the code checks failed to catch any fabricated claims. The response from Level 0 passed all rules yet invented a 15-day vacation. Rules see form, not meaning.

**Carried forward from Level 3:**

- Use code scoring for everything with a clear answer: labels, format, required facts, banned phrases.

- Similarity measures drift, not quality.

- Rules cannot identify fabricated claims; that requires a reader.

## Level 4: A Model as Grader, and How to Check It

Deep dive: another kind of grader. The question: when the grader itself is a model, how do we know whether it is right?

**Model-as-judge** (commonly called LLM-as-judge) is a second model that reads the output and assigns a rating. It understands meaning, so it can catch the fabricated 15-day holiday. But it is also a language model, and therefore has all the failure modes of a language model. This section is the longest, because this is where most evaluation projects go wrong.

4.1 How to Ask the Judge

Practitioner consensus and academic research agree on the format:

- **One question per failure type, answered yes or no.** "Does the reply contain claims not supported by the manual excerpt?" rather than "Rate the quality from 1 to 5." Binary questions are faster to annotate by hand, more reproducible, and easier to check (Husain & Shankar, 2025). An output passes only if every question is answered "no."

- **Require evidence.** The judge quotes the offending sentence so that its ruling can be verified by a human within seconds.

- **Provide context.** A judge that cannot see the manual has no way of knowing which content lacks support.

Cho et al. (2026) tested this directly on summarization ("Ask, Don't Judge"). Breaking scoring into question-answer pairs about specific errors beat the widely used holistic G-Eval scoring method on every dataset (Spearman correlation with human scores on SummEval: 0.563 vs. 0.514). Their most compelling example: a summary containing three planted factual errors received a perfect 5.0 from the holistic method, while the question-based method gave it 1.57. They also found that stuffing more instructions into the prompt ultimately made the judge worse, not better.

4.2 Checking the Judge: Our Own Data

We hand-labeled all 60 test responses (the "reference") and then ran the judge:

- Reference judged pass: 34 · Judge judged pass: 42

- 36 of the 60 responses agreed (60%)

- Bad responses the judge caught: 10 of 26

- kappa: 0.15

60% agreement sounds acceptable, but it isn't. If the judge simply marked everything "pass," it would agree with the reference 57% of the time, because most responses pass. **Cohen's kappa** corrects for this: it measures agreement beyond chance. Zero is chance, one is perfect; 0.6 is the usual threshold for letting a judge gate a release, and 0.8 is the standard for running unsupervised. Our judge scored 0.15. It was far too lenient (it passed 42 when only 34 should have passed) and caught fewer than half of the bad responses.

> **Important:** When most outputs pass, raw agreement is misleading. Report kappa, or report separately how many bad outputs the judge caught and how many good outputs it wrongly flagged.
 **What it means for us:** A judge is a classifier. Before trusting it, compare it against human labels on at least a few dozen cases, and report the results alongside every product metric it produces.
 **Why it matters:** With this judge, a version that doubles the rate of fabricated claims might show no change at all in the core pass rate.

The remedy is to iterate on the development set: add examples of the failure type to the judge prompt, narrow the scope of the question, and provide gold-standard facts as reference. In this tutorial, the judge for the "missed facts" question reached a usable level this way; the "unsupported claims" question did not make the cut and was handed off to a dedicated detector (4.5).

4.3 Known Biases of Judges

Judges fail in predictable ways. Each has a published measurement method and a cheap mitigation.

- **Position.** Symptom: in pairwise comparisons, the judge prefers the answer shown first. Evidence: after swapping the order, rulings flip in a large share of pairs (Wang et al., 2024); a 2025 study comparing RAG with GraphRAG found that once the order was swapped, part of GraphRAG's earlier "wins" disappeared (Han et al., 2025). Mitigation: score both orders and count a win only when the two agree.

- **Length.** Symptom: longer answers win regardless of content. Evidence: after correcting for length, agreement with human rankings rose from 0.94 to 0.98 (Dubois et al., 2024). Mitigation: length-controlled scoring, or binary questions that do not reward length.

- **Self-preference.** Symptom: the judge prefers answers whose style matches its own model family. Evidence: judges score their own generations higher, all the more so when they recognize them (Panickssery et al., 2024); in the GAUGE audit, same-family judges inflated their own provider's agent by about 0.75 points on a 7-point scale. Mitigation: use a judge from a different family than the system under test.

- **Satisfaction vs. success.** Symptom: the judge rates how the conversation felt rather than whether the task was completed. Evidence: the GAUGE audit, see below. Mitigation: give the judge the tool calls and final state, not just the chat content.

- **Judge identity.** Symptom: changing the judge model changes which system wins. Evidence: 2026 audits (arXiv 2607.08535; 2606.19544). Mitigation: record the judge model and version as part of every result.

The GAUGE audit (Bodhwani et al., 2026) deserves its own paragraph because it describes the exact setup most companies use when making release decisions: simulate a user talking to the agent, have a judge model score the transcript, and ship whatever scores higher. Across 25 agents and roughly 3,700 transcripts, they found that this threshold sorts agents well when one agent is clearly better (0.94 correlation with verifiable ground truth), but in near-equal pairs — the case where a real release decision actually needs to be made — it promoted the worse agent 31% of the time. A judge model that sees only the user-visible conversation and rates satisfaction is no better than a coin flip at telling a working agent from a broken one (AUC 0.49). A judge model that sees tool calls, authentication, and task resolution halves the failure risk (AUC 0.73). Their conclusion: reliability comes from the evidence the judge model is given, not from how strong the judge model itself is.

> **Important:** Customer satisfaction and task success are two different things; a judge model that only sees the conversation measures the former.
 **What this means for us:** Give the judge model evidence (tool calls, database state, retrieved documents), and never promote a version on the judge score alone when the two versions are close.
 **Why it matters:** An agent that is good at pleasing people but fails will keep getting promoted.

4.4 Judge model panels and how to combine them

A single judge model is a single point of failure. Verga et al. (2024) showed that a **panel** of several smaller, cheaper judge models agrees with human opinion better than one large judge model, at a fraction of the cost. But averaging panel scores has a trap: Acharya et al. (2026) demonstrated that one broken judge model (a parse failure returning zero, a sycophantic judge model giving everything a 10) drags the average to an arbitrarily biased level no matter how many good judge models you add. Real judge models fail in these ways at measurable rates (a 3.4% parse-failure rate on one dataset, and up to 33% for the smallest judge models on non-English prompts). Their solution is to use the geometric median instead of the mean, which ignores outliers. Up to 540x better accuracy in the worst case; about 1% accuracy loss on clean data. They also showed that three judge models capture most of the benefit, because judge model errors are correlated.

A second related effect: Parikh (2026) found that asking a model for its answer in JSON format (the format every judging pipeline uses) makes answers noticeably more uniform than plain conversation. The share of the modal answer rose from 41% to 64%. For judging tasks with a single correct answer this is harmless; for open-ended scoring, it means the judge model discriminates less than its conversational behavior suggests.

4.5 Cheaper and more reliable than judge models: specialized detectors and typed judge models

For the most critical failure types, general-purpose judge models are often the wrong tool.

**Hallucination detectors** are small models trained on one question (roughly 100M to 500M parameters): is this sentence supported by this context? Vectara's HHEM, LettuceDetect (Kovács & Recski, 2025), MiniCheck (Tang et al., 2024), and ordinary NLI cross-encoders run in about a second on a laptop CPU, cost nothing per call, and come close to large judge models' accuracy on the RAGTruth benchmark. SelfCheckGPT (Manakul et al., 2023) needs no detector at all: it samples the system multiple times and flags claims that vary between samples. Fiddler's 2026 vendor note calls the alternative the "evaluation trust tax": teams running a large judge model on every production trace typically sample only about 10% of traffic, and it claims small detectors can cover 100% at up to 98% lower cost. This is a vendor claim with no experiments shown, but the shape of the trade-off is real.

**Typed judge models.** TypeSafe's Jev models are a different design: they generate no text at all. You send it the output and a typed question ("Is this claim supported by the excerpt?" with a yes/no answer, or "Pick one of these labels"), and it returns a calibrated probability. Because it generates nothing, calls are fast, about a hundred times cheaper than a generative judge model, and the probability lets code route uncertain cases to a human. It cannot explain its verdict or invent options; you supply the labels. A 2026 blind human-adjudicated study put it at 92.2% on RewardBench pairs versus 93.5% for a frontier generative judge model, at about one third of a percent of the cost, but far behind on hard entailment checks (78.6% vs 93.1%); a cascade — accept its verdict only when confidence is above a threshold, otherwise escalate — held 92.5% at about half the cost (arXiv 2609.26550). Our own red-teaming found it is not a fact-checker: forged logs in the input can flip the verdict, though every successful attack also collapsed its confidence, so a confidence threshold is an effective defense. Our knowledge base has a tutorial on it, along with methods to test its accuracy before use.

**Judge models need benchmarks too.** JudgeBench (Tan et al., 2025) turns difficult, objectively checkable questions into judge tests and finds that frontier judge models perform only slightly better than random on genuinely hard cases. Reliability must be measured every time by task, by rubric, and by judge model. Vendor claims of "85% agreement with humans" come from one dataset and do not transfer (see the disagreement note in our practitioner sources).

**Continued from Level 4:**

- Ask the judge model yes/no questions about specific failures, with evidence and context.

- Measure the judge model against human labels, report kappa or capture rate, and iterate until it meets the bar.

- Know the five biases and apply low-cost mitigations.

- For "whether it is supported," prefer a small detector or a typed judge model over a general-purpose judge model.

- Three judge models plus a robust combination are better than one; averaging is fragile.

## Level 5: Honest Numbers

Focus: step 4 of the loop. The question: how certain are we about any given number, and how do we compare two versions?

Every ratio we have cited so far hides a question: would the result be the same with another 60 tickets? Three tools can answer it.

**Error bars.** We resample the 60 results thousands of times (bootstrap) and look at the distribution:

- Triage accuracy: 0.700 · 95% confidence interval [0.583, 0.817]

The honest statement is not "accuracy is 70%" but "between 58% and 82%, most likely 70%." Miller (2024) shows that most reported differences between models in published evaluations are smaller than such intervals, and gives formulas that every evaluation report should use, including the correction needed when multiple questions share a source (clustered standard errors).

**Paired comparison.** We wrote a second version of the response prompt that retrieves more sections. Judged on the same 60 tickets:

- Judge pass rate · v1: 0.700 · v2: 0.700

- Difference: +0.000 · 95% confidence interval [-0.117, +0.117]

- Conclusion: no practical difference; keep v1

Note that this interval is narrower than the interval for a single accuracy because the comparison is paired: every ticket is scored under both versions, so ticket difficulty cancels out. The McNemar test asks the case-by-case question: does v2 win where v1 failed, or does it merely swap cases? Here they swapped. And v2 regressed on 14% of cases while improving on others. The headline "same pass rate" masks a product reality: better for some customers, worse for others.

> **Important:** A difference whose interval contains zero is noise, not a win.
> **What it means for us:** Every claim that "the new version is better" must come with an interval and the number of cases that got worse.
> **Why it matters:** Teams ship regressions because of a 2-point improvement that never existed.

**Minimum detectable effect.** With 60 cases, the smallest difference we can reliably detect is about 12 percentage points. A 5-point regression is invisible at this size. This is a power calculation; it tells you how many cases you need to answer the question you are asking. Below the threshold, you need more data, not a cleverer test.

**Multiple comparisons.** If you test 20 prompt variants and pick the best, one of them will look 10 points better by chance. Either correct for the number of comparisons or confirm the winner on new cases.

**Continued from Level 5:**

- Every ratio has an interval. Every comparison is paired.

- Know your minimum detectable effect before you start comparing versions.

- "No measurable difference" is a real result, and often the right one.

## Level 6: Grading Systems with Parts

Focus: Step 2, the system. The question: when a system has multiple stages or takes actions, what do we evaluate?

6.1 Retrieval systems (RAG)

Our answer component first retrieves manual sections, then writes. A bad response can come from either stage, and the fixes differ. So we evaluate them separately.

**Grade the retriever.** Against golden sections: hit@k (is at least one correct section in the top k?) and recall@k (what proportion of correct sections are found?).

- hit@2: 0.93 · recall@2: 0.88

- Of 18 failed responses, 1 failed in the retriever and 17 failed in the generator.

The retriever is almost fine. The generator is the problem. That one line of code wasted a week of engineering.

**Grade the generator.** Faithfulness (every claim is supported by retrieved text), answer relevancy (does it address the question), and context precision (is what we retrieved actually useful). This is the RAGAS triad (Es et al., 2024); it does not require gold answers, which is why RAGAS became the default library. ARES (Saad-Falcon et al., 2024

- **Taste** (Pan et al., 2026): Freeze the agent at a fork where two paths both look viable, and ask which path will yield higher downstream returns. The best model chose correctly in 59.7% of two-option choices, and longer thinking time did not help.

- **Proactive questioning** (Gulati et al., 2026): After 10% of a task is complete, the value of asking a clarifying question about the goal drops from 0.78 to 0.39. No frontier model asks questions within this window; some ask 52% of the time, some 23%, and one never asks.

- **Learning from experience** (Asawa et al., 2026): Across six stateful environments, the best system captured only 25% of the improvement it could have gained from experience, while simply retaining the full conversation history outperformed all dedicated memory products.

6.3 When Systems Are Being Optimized Against the Grader

If a grader is used to train or select systems (reinforcement learning, best-of-n selection), the system will find the grader's blind spots. Wang et al. (2026) from the Qwen team call this the **verification horizon**: every grader is a proxy for intent, and under optimization pressure, the proxy and the intent diverge. They list reward hacking behaviors in coding agents (reading answers from repository history, modifying tests, patching against the evaluator) and show that a behavior monitor reduced cheating “solutions” from 28.6% to 0.6% while increasing genuine solutions from 40% to 61%. They argue that no grader can be simultaneously scalable, faithful, and robust: tests are scalable and robust but cannot capture intent; judges are scalable and faithful but can be manipulated; experts are faithful and robust but cannot scale. The same phenomenon emerged spontaneously in the Meta-Agent Challenge (Lu et al., 2026): agents asked to build other agents tried to steal answers from the scoring system in five trials.

> **Important:** Any grader that influences training or selection will be exploited.
> **What this means for us:** Keep a held-out grader that the system has never seen, monitor for shortcut behavior, and upgrade the grader as the system improves.
> **Why it matters:** Scores go up while the product gets worse.

**Continuing from Level 6:**

- Score in stages; the retriever and the generator fail in different ways.

- For agents: final state and trajectory, multiple runs, pass^k, cost per success, and reliability as a separate metric.

- Graders used for optimization will be exploited. Keep one that they have never seen.

## Level 7: Public Benchmarks

Zooming in on: the distinction between evaluation and benchmarks from Level 1. The question: what can leaderboard numbers tell you, and what do they hide?

Benchmarks are fixed public task sets for comparing models: MMLU (academic multiple-choice), GSM8K (grade-school math), HumanEval (code), MT-Bench and Chatbot Arena (conversational quality), SWE-bench (fixing real GitHub issues), τ-bench (customer-service AI agents), GPQA and HLE (expert-level questions). They are the basis on which you choose an engine. There are four things to know before citing them.

**The number depends on the test harness as much as on the model itself.** We ran GSM8K on the same open-source model with two prompt formats and got 0.686 and 0.746 respectively. The lm-evaluation-harness paper (Biderman et al., 2024) documents two-digit swings caused by prompt format, few-shot examples, and the regex used to extract answers. A score is a tuple of (model, prompt, harness, version). Schaeffer et al. (2023) showed something stronger: the apparent "emergent" capability jumps are mostly artifacts of all-or-nothing metrics; under smooth metrics they disappear. The metric you choose can create or kill a phenomenon.

**Contamination.** If the test questions appear in the training data, the score measures memorization. GSM1k (Zhang et al., 2024) rebuilt GSM8K with difficulty-matched new questions and found some model families dropped by as much as 8 percentage points, with the size of the drop correlating with how likely the model was to have memorized the original questions. Other families did not drop. Contamination is real, measurable, and uneven.

**Saturation.** Benchmarks have a shelf life. A 2026 study of 60 widely used benchmarks found that about half are highly saturated, with older benchmarks saturating faster. SWE-bench Verified rose from about 40% to over 80% solve rate in roughly two years, and its maintainers say it can no longer distinguish frontier models. MMLU, GSM8K, and HumanEval have effectively been retired by frontier labs in favor of HLE, GPQA Diamond, SWE-bench Verified, LiveCodeBench, and τ²-bench — and each of those will in turn saturate. On Chatbot Arena, top models are now only about 20 Elo points apart, which is within noise.

**Redundancy.** Zeng and Papailiopoulos (2026) built an 84-model × 133-benchmark matrix and found its rank to be approximately two: two latent factors explain over 90% of the variance. Five carefully chosen benchmarks predict the remaining 128 to within about 4 points. For choosing an engine, this is good news: you don't need to run forty benchmarks. But it says nothing about discovering specific failure modes; that still requires your own evaluation.

> **Important note:** Leaderboards rank engines on last year's exams under a single test harness, and the leaders are usually within noise of each other.
 **What this means for us:** Use benchmarks to shortlist two or three models, then decide with your own evaluation on your own data.
 **Why it matters:** Switching models for a 2-point benchmark gain may cost you 10 points on your actual task.

**Two frontier evaluation applications worth knowing.** Google's Paper Assistant tool (Jayaram et al., 2026) uses an agentic pipeline to review scientific papers and caught 89.7% of known proof errors, versus just 55.2% for a single model call; over 90% of the 850 surveyed authors found it helpful, and 31% launched new experiments because of it. CUSP (Wu et al., 2026) had models predict which research directions would succeed and found them close to random chance (0.519), with strong "yes" or "no" biases depending on the model that only explicit bias correction could fix. Both remind us that evaluating a model's judgment requires its own ground truth, and that models are poorly calibrated about the future and about themselves.

**Carrying forward from Level 7:**

- A benchmark score is a tuple, not an attribute of the model. Record the test harness.
- Benchmarks get contaminated and saturated; check the dates.
- Five benchmarks can tell you almost everything a leaderboard can. Your own evaluation tells you the rest.

## Level 8: Making It a Habit

Zooming out: the “when” of rapid mastery. The question: how does this run every week without a research team?

Hamel Husain’s three-tier model (2024) sets the cadence:

- **1**. Content: code graders, schema checks, required facts. Timing: every commit. Cost: free.

- **2**. Content: model judges and detectors on the test set, with human review of samples. Timing: every prompt, model, or retrieval change. Cost: a few cents to a few dollars.

- **3**. What to do: A/B test on real traffic. When: after a change is released. Cost: real users.

**Merge gate.** Our tutorial’s CI gate reruns Levels 1 and 2 and fails the build if the pass rate drops by more than 3 percentage points from the recorded baseline of 0.70. It is a tripwire for large regressions, not a guarantee: because the detection floor is 12 percentage points, a 5-percentage-point regression can still pass. State this explicitly in the dashboard.

**Monitoring.** After release, sample real traffic, run all samples through the cheap scorer, run a subset through the expensive scorer, and plot trends. Bodhwani et al.’s (2026) “calibrate, then trust” is the right pattern for expensive gates: run one full audit against verifiable ground truth to learn where a cheap-judge-based gate agrees with reality, use the cheap gate in CI only within that region, and re-audit when the model, judge, simulator, or domain changes. They also found that a zero-cost “did the conversation complete?” bit can catch budget-starvation regressions on its own.

**Caching and cost.** Cache every model call, keyed by prompt, data version, and recipe. Reruns become file reads. Our full A/B test on 60 tickets required 121 judge calls and cost about four cents; rerunning the entire tutorial from cache takes zero calls. Cost is not a reason to skip evaluation.

**What leaders should ask to see.** Four numbers on one page: the product pass rate and its interval, agreement between the scorer and human labels, the detection floor, and the share of cases that got worse in the last change. If any one of the four is missing, the other three are not yet meaningful.

**What carries forward from Level 8:**

- Three cadences: every commit, every change, after release.

- A gate is a floor, not a ceiling. State its detection floor.

- Calibrate a cheap gate once against ground truth, then trust it only within that region.

## The Tools and Approaches, Observed

This section is an observation, not a recommendation list. Everything below was run or reviewed while building the tutorial; our knowledge base retains the practitioner and tool details.

Frameworks

- **Inspect AI** (UK AI Safety Institute, MIT license). Best for: a coherent pipeline: datasets, solvers, scorers, log viewer; agents and sandboxes; for frontier safety evaluations. Caveats: code-first; the most complete, and also the most learning-intensive.

- **lm-evaluation-harness** (EleutherAI, MIT license). Best for: reproducibly running public benchmarks (GSM8K, MMLU, IFEval) on any model. Caveats: benchmark-only; the harness paper is the reason it exists.

- **promptfoo** (MIT license, Node.js). Best for: declarative YAML test suites, red teaming, CI regression. Caveats: not a Python package; acquired by OpenAI in 2026.

- **DeepEval** (Apache-2.0). Best for: pytest-style unit tests with ready-made metrics (faithfulness, relevance). Caveats: the headline metrics are composites; inspect their internals before trusting them.

- **RAGAS** (Apache-2.0). Best for: the standard RAG triad, reference-free. Caveats: unstable with local models (NaNs, executor errors); the numbers are mixed.

- **Langfuse** (MIT license, self-hosted). Best for: tracing, datasets, experiment runs, and judge evaluators in one self-hosted stack. Caveats: v4 changes evaluator semantics; plan for migration.

- **Phoenix** (Arize). Best for: tracing plus evals, with an excellent UI. Caveats: Elastic License 2.0, source-available rather than open source.

- **LangSmith**, **Braintrust**. Best for: managed platforms: trace capture, sampling, judge guidance, human refinement. Caveats: commercial products; Braintrust's autoevals library can be used standalone.

- **Opik** (Comet), **MLflow genai**, **Weave** (W&B). Best for: self-hostable observability with evaluation hooks; great if you already run the platform. Caveats: a heavy lift for teams starting from scratch.

- **HELM** (Stanford). Best for: its multi-metric philosophy: accuracy, calibration, robustness, fairness, and efficiency considered together. Caveats: research-oriented, the least plug-and-play.

- **evalica**. Best for: turning pairwise judgments into Bradley-Terry or Elo leaderboards with intervals. Caveats: statistics only; needs a judge to pair with.

- **Jev / TypeSafe**. Best for: typed judgment questions with calibrated probabilities, roughly 100x cheaper than generative judges. Caveats: no text, no explanations; you supply the labels.

- **HHEM, LettuceDetect, MiniCheck, SelfCheckGPT**. Best for: answering "is this claim supported?" at CPU speed and zero marginal cost. Caveats: they answer only one question; not general-purpose scorers.

- **Selene-Mini, Prometheus 2, Flow-Judge**. Best for: open-weight judge models that can be self-hosted and audited. Caveats: still judges; still need calibration.

Methods, Compared

- **Code rules**. Answers: is the format correct, does the fact appear. Cost: free. Blind spot: meaning.

- **Similarity (ROUGE, embeddings)**. Answers: did the output change. Cost: free. Blind spot: correctness.

- **Specialized detectors / NLI**. Answers: is this claim supported by this text. Cost: nearly free. Blind spot: everything else.

- **Typed judgment (Jev)**. Answers: this label, this yes/no, with a probability. Cost: a few cents per thousand. Blind spot: cannot explain or make recommendations.

- **Generative judgment, binary with evidence**. Answers: any readable criterion. Cost: a few cents each. Blind spot: five biases; must be calibrated.

- **Judge panel, robust combination**. Answers: the same, with fewer single-judge failures. Cost: three times the judging cost. Blind spot: correlated errors cap gains at around three judges.

- **Human labels**. Answers: ground truth. Cost: expensive and slow. Blind spot: requires two raters and agreement statistics.

- **Traffic A/B testing**. Answers: real business impact. Cost: real users at risk. Blind spot: slow; lower-level safety must be established first.

A pattern showed up in every source and in our own runs: hand-built scorers and framework numbers should be read against one another. Agreement is evidence. Disagreement is a problem—usually a good one.

## A decision guide

- **Is the output format well-formed and complete?** Use: code rules. Then check: nothing — it's exact.

- **Did the new version change the output?** Use: similarity. Then check: why, by reading samples.

- **Is the claim supported by the document?** Use: a detector or a typed judge. Then check: precision and recall on labeled samples.

- **Does the response fail in way X?** Use: a binary generative judge with evidence. Then check: compute kappa against human labels on the dev set.

- **Which of the two versions is better?** Use: paired comparison with intervals. Then check: case-by-case regressions.

- **Can a 5-point regression be detected?** Use: a power calculation. Then check: add cases until it can be detected.

- **Is the agent reliable?** Use: pass^k over multiple runs, plus perturbed tasks. Then check: consistency across runs as an independent metric.

- **Which model should we use?** Use: five public benchmarks as an initial screen. Then check: make the final decision with your own evals.

- **Is it still working in production?** Use: sampled traffic, a cheap judge on every sample, a strict judge on a subset. Then check: re-audit the judge thresholds whenever anything changes.

## Fifteen things to carry away

1. An eval consists of inputs, a system, a judge, and numbers. Build the golden inputs first; they are the core asset.

2. Evals measure your product. Benchmarks measure the engine. Do not confuse the two.

3. Read a hundred outputs before writing a judge. The failure list is the plan.

4. Use code judges for anything with a definite answer. They see form, not meaning.

5. A judge should answer a binary question with evidence and context. Holistic scores miss planted errors.

6. Compare the judge against human labels. Report kappa or catch rate. A sixty-percent agreement rate may mean nothing.

7. Judges favor earlier, longer, familiar, and pleasing content. The mitigations are cheap; always use them.

8. Satisfaction is not success. Give the judge the tool calls and the final state.

9. For questions like "is this supported," a small detector or typed judge beats a general-purpose judge on cost and often on accuracy.

10. Every rate needs an interval. Every comparison needs pairing. Know your detection floor.

11. Evaluate each stage of the pipeline separately.

12. Agents: final state and path, multiple runs, pass^k, cost per success, reliability evaluated independently.

13. A judge used for optimization will be gamed. Keep a judge that the system has never seen.

14. Benchmark scores depend on the harness, are unevenly contaminated, and tend to saturate. Record the full tuple.

15. Three cadences, a threshold with an explicit floor, a monitor, and a re-audit whenever anything changes.

## References

From this knowledge base (summaries available in sibling folders)

- Acharya, Pan, Verkhovsky (2026). RoPoLL: Robust Panel of LLM Judges. arXiv:2606.30931. — RoPoLLRobustPanelOfLLMJudges/

- Asawa et al. (2026). Continual Learning Bench. arXiv:2606.05661. — ContinualLearningBench/

- Bai et al. (2026). How Do AI Agents Spend Your Money? arXiv:2604.22750. — HowAiAgentsSpendYourMoney/

- Bodhwani, Tran, Wei (2026). GAUGE: When Not to Trust LLM-as-a-Judge in User-Simulated Evaluation of Task-Oriented Agents. arXiv:2609.12191. — GaugeWhenNotToTrustLlmAsAJudge…/

- Cho et al. (2026). Ask, Don't Judge / BinEval. arXiv:2606.27226. — AskDontJudge/, BinEval/

- Fiddler (2026). The Evaluation Trust Tax: agent evals TCO. — AgentEvalsTCO/

- Grace, Hadfield, Olivares, De Jonghe (Anthropic, 2026). Demystifying Evals for AI Agents. — DemystifyingEvalsForAIAgents/

- Gulati et al. (2026). Ask Early, Ask Late, Ask Right. arXiv:2605.07937. — AskEarlyAskLateAskRight/

- HKUDS (2026). ClawWork (an economic-accountability AI agent benchmark, code analysis). — ClawWork/

- Jayaram et al. (Google, 2026). Towards Automating Scientific Review with the Paper Assistant Tool. arXiv:2606.28277. — PaperAssistantTool/, TowardsAutomatingScientificReview/

- Lu et al. (2026). The Meta-Agent Challenge. arXiv:2606.04455. — MetaAgentChallenge/

- Menaged et al. (2026). Can LLM Agents Infer World Models? arXiv:2606.16576. — CanLLMAgentsInferWorldModels/

- Pan et al. (2026). The Tasteful Agent. arXiv:2609.25804. — TastefulAgent/

- Parikh (2026). Structured Output Collapses Answer Diversity Across 44 Language Models. arXiv:2607.18476. — StructuredOutputCollapsesAnswerDiversity/

- Rabanser, Kapoor, Kirgis, Liu, Utpala, Narayanan (2026). Towards a Science of AI Agent Reliability. arXiv:2602.16666, ICML 2026. — TowardsAScienceOfAIAgentReliability/

- Wang et al. (Qwen, 2026). The Verification Horizon: No Silver Bullet for Coding Agent Rewards. arXiv:2606.26300. — VerificationHorizon/

- Wu et al. (2026). CUSP: Using AI to Forecast Scientific Progress. arXiv:2605.22681. — ForecastingScientificProgressWithAI/

- Zeng, Papailiopoulos (2026). You Don’t Need to Run Every Eval. arXiv:2606.24020. — YouDontNeedToRunEveryEval/

- Zhang et al. (2026). SWE-Explore. arXiv:2606.07297. — SWEExplore/

- The evaluation tutorial (tutorials/evals/, chapters 00–14, Q&A.md, research/SOURCES_*.md) and its starter notebooks are the source for every number in the worked examples. The jev tutorial (tutorials/jev/).

Foundational and practical sources

- Biderman et al. (2024). Frontier lessons on reproducible evaluation of language models. arXiv:2405.14782.

- Chiang et al. (2024). Chatbot Arena. arXiv:2403.04132.

- Dubois, Galambosi, Liang, Hashimoto (2024). Length-controlled AlpacaEval. arXiv:2404.04475.

- Es, James, Espinosa-Anke, Schockaert (2024). RAGAS. arXiv:2309.15217.

- Gu et al. (2024). A survey on LLM-as-a-judge. arXiv:2411.15594.

- Han et al. (2025). RAG and GraphRAG: A systematic evaluation. arXiv:2502.11371.

- JEV-as-a-Judge (2026). arXiv:2609.26550. — research_topics/coding_agents/JevAsAJudge/

- Panickssery, Bowman, Feng (2024). LLM evaluators recognize and favor their own generations. arXiv:2404.13076.

- Husain (2024). Your AI product needs evals. hamel.dev. Husain (2025). A field guide to rapidly improving AI products. Husain & Shankar (2025). AI evals FAQ.

- Jimenez et al. (2024). SWE-bench. arXiv:2310.06770. OpenAI (2024). SWE-bench Verified.

- Kovács, Recski (2025). LettuceDetect. arXiv:2502.17125. Tang, Laban, Durrett (2024). MiniCheck. arXiv:2404.10774. Manakul, Liusie, Gales (2023). SelfCheckGPT. arXiv:2303.08896.

- Liang et al. (2022). HELM. arXiv:2211.09110.

- Liu et al. (2023). G-Eval. arXiv:2303.16634.

- Miller (2024). Adding error bars to evals. arXiv:2411.00640.

- Saad-Falcon, Khattab, Potts, Zaharia (2024). ARES. arXiv:2311.09476.

- Schaeffer, Miranda, Koyejo (2023). Are emergent abilities of large language models a mirage? arXiv:2304.15004.

- Shankar, Zamfirescu-Pereira, Hartmann, Parameswaran, Arawjo (2024). Who validates the validators? arXiv:2404.12272.

- Tan et al. (2025). JudgeBench. arXiv:2410.12784.

- Verga et al. (2024). Replacing judges with juries (PoLL). arXiv:2404.18796.

- Wang et al. (2024). Large language models are not fair evaluators. arXiv:2305.17926.

- Yan (2024). Valid and invalid task-specific LLM evaluations; evaluating the validity of LLM evaluators. eugeneyan.com.

- Yao, Shinn, Razavi, Narasimhan (2024). τ-bench. arXiv:2406.12045. Sierra (2025). τ²-bench. arXiv:2506.07982.

- Zhang et al. (2024). GSM1k. arXiv:2405.00332.

- Zheng et al. (2023). Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. arXiv:2306.05685.

- Zhou et al. (2023). IFEval. arXiv:2311.07911.

- 2026 audits: when AI benchmarks plateau (arXiv:2602.16763); when the judge changes, the measurement changes with it (arXiv:2607.08535); reliability without validity (arXiv:2606.19544); AgentLens (arXiv:2605.12925).
