ContentsRAG from Scratch to TRECAdisak Sukul · Iowa State University

Start here

Part 1 · Foundations

Part 2 · Finding the evidence

Part 3 · Writing the answer

Part 4 · Judging RAG

Part 5 · TREC and the 2026 tracks

Part 6 · Case studies: our submissions

Part 7 · Beyond text: video

Part 8 · Streams and advanced RAG

Back matter

Part 4 · Judging RAG · Chapter 21

Judging the judge

In one sentence: an automatic judge is itself a system, so it must be tested, and the usual test is whether it puts a set of systems in the same order as trusted human judgments do.

Why you should care

Chapter 20 gave you a judge. Before you believe its numbers you need evidence that it works. A judge that always prefers the longer answer will produce clean tables and wrong conclusions. In 2026 TREC opened a whole track for this question, Auto-Judge, and we took part. This chapter gives you the tools: how to compare two rankings, how to compare two sets of labels, and three traps.

Words you need

Meta-evaluation
Evaluating an evaluation method.
Leaderboard
A list of systems ordered by score.
Reference ranking
The leaderboard you trust, usually built from human judgments.
Kendall's tau (τ)
A number from −1 to 1 that says how alike two orderings are. 1 is the same order, −1 the reverse, 0 no relation.
tau-AP (τAP)
A version of tau that punishes mistakes near the top of the list more.
Cohen's kappa (κ)
Agreement between two labellers on single items, corrected for the agreement that chance alone would give.
Circularity
Testing a judge against a reference that was made, in part, by the same kind of judge.
Named measure
The one measure a judge commits to before any result is seen.

Core The idea

Two levels of agreement

A judge can agree with people at two levels. At the label level, it gives the same verdict on the same sentence or nugget. At the system level, it puts the systems in the same order. The system level is easier and is usually what you need, because single errors average out over many topics. A judge can be wrong on a third of the single labels and still rank systems well, as long as its errors do not favour one system.

Kendall's tau by hand

Five systems, A to E. The reference ranks them A, B, C, D, E. Your judge ranks them A, C, B, E, D. Look at every pair of systems. There are ten pairs. The judge has two of them the wrong way round: B with C, and D with E.

τ = (pairs in the same order − pairs in the opposite order) ÷ all pairs = (8 − 2) ÷ 10 = 0.6

Why the top matters more: tau-AP

Tau counts every swapped pair the same. In practice a mistake at the top of a leaderboard matters more than one at the bottom. Take two judges that each make one swap.

Judge's orderMistakeττAP
B, A, C, D, Ethe top two swapped0.800.50
A, B, C, E, Dthe bottom two swapped0.800.875

Tau-AP walks down the judge's list. At each system after the first, it asks what share of the systems placed above it truly belong above it. It averages those shares and rescales the result to run from −1 to 1. In the first row, the second system, A, has one system above it and that one does not belong there, so its share is 0. The other three shares are 1. The average is 0.75, and τAP = 2 × 0.75 − 1 = 0.50.

Agreement on labels: kappa

Two judges label 100 sentences as supported or not. They agree on 85. That sounds good. But one judge says “supported” 90 times and the other 85 times, so they would agree often by chance alone.

chance agreement = 0.90 × 0.85 + 0.10 × 0.15 = 0.78
κ = (0.85 − 0.78) ÷ (1 − 0.78) = 0.32
85% raw agreement, and a kappa of only 0.32. When one label is very common, always report kappa with the raw figure.

Three traps

  • Circularity. If a language model helped to make the reference, a judge built on the same model will agree with it for the wrong reason. It is partly marking its own homework.
  • Picking the best measure afterwards. A judge can output twenty measures. If you report whichever one agrees best with the reference, you are reporting luck. The maximum of many noisy numbers is always flattering.
  • Few systems, few topics. With six systems there are only 15 pairs, and one swap moves tau by 0.13. A tau from a small set is a rough reading.

Watch and read

How we did it at TREC 2026

The Auto-Judge task

The track gave every team the system runs of two host tracks, RAG 2026 and RAGTIME 2026, with the systems' names hidden. A judge had to give each system a score on one or more measures. The organizers then compared each judge's leaderboard with the host track's official one, using Kendall's tau and a tau-AP variant that allows ties. Teams could submit ten judges.

One measure, named first

The track's own rule scores a judge by the best of all the measures it outputs. We read that rule as a risk: adding measures can never lower such a score, so a high score may come from the number of measures and not from the judge. So each of our ten runs named one primary measure for each host track before any result existed, and we report each run at that measure. We wrote the plan down on 25 September 2026, before the first pilot upload: the targets, the rule for choosing the main judge, and the role of each run.

RunWhat it isWhy it is there
1The open-weight panel of Chapter 20Our main judge
3, 4The same panel, naming a content measure or a support measureHedges: is content or support the better guide?
5The panel plus pairwise battlesDoes preference add to nuggets?
6One judge model per track, with a measure that mirrors the track's ownDoes copying the official recipe win?
7The panel with a different primary measureVariety
8Our first simple judge, frozenA baseline from before the plan
2, 9Our code run by the organizers on small open modelsDoes the method survive a small model?
10One large open model aloneThe fallback: is a panel needed at all?

All choices were made on last year's data from four pilot collections. Feedback from the 2026 test data was not allowed to guide any choice.

The results arrived on 13 November. They go into this book once the organizers agree.

A small case from the RAG track

Chapter 18 showed our six generation runs under assessor nuggets and automatic nuggets. The two orders are identical, a Kendall's tau of 1.0. The scores differ by a factor of two to four. This is the system level and the label level in one table: perfect agreement on the order, none on the level. With six runs it is only an illustration.

What surprised us

We could not rule out circularity, and we could not test self-preference. By the organizers' account, one pilot's reference scores were produced with an automatic tool that uses Llama-3.3-70B. Our panel has that model as a member, and one of our runs uses it alone. On that pilot, such judges may agree with the reference because they share a model with it. Our plan made those results count for less when choosing. That lowers the risk and does not remove it. Self-preference was out of reach for a different reason: the systems' names were hidden, and trying to find out which model wrote a run is against the track's rules. The honest report lists both as open.

Try it

  1. Rank six systems by a human-made score, then by your own judge. Compute Kendall's tau by counting pairs.
  2. Compute tau-AP for the same two orders. Is it higher or lower than tau, and why?
  3. Take 50 single verdicts from your judge and label the same items yourself. Compute raw agreement and kappa.
  4. Let your judge output five measures. Report tau for the one you named first, then the best of the five. How large is the gap?

Check yourself

  1. What is the difference between agreement at the label level and at the system level?
  2. The reference order is A, B, C, D. A judge gives B, A, C, D. Compute Kendall's tau.
  3. Two judges each make one swap, one at the top and one at the bottom. Which has the lower tau-AP?
  4. Two labellers agree on 90% of items. Why might kappa still be low?
  5. Why did we name one measure per run in advance?
Answers
  1. Label level: the same verdict on single items. System level: the same ordering of systems.
  2. Six pairs, one swapped: (5 − 1) ÷ 6 = 0.67.
  3. The one with the swap at the top.
  4. If one label is very common, much of the agreement would happen by chance.
  5. Because the best of many measures is partly luck. A score at a measure named first can be believed.

Go deeper

  • Ties. When two systems have the same score, plain tau is not defined for that pair. Tau-b is the usual tie-corrected form, and the track's tau-AP variant handles ties too.
  • Uncertainty of tau. In our pilots the reference had 22 and 16 judged topics, and we estimated a standard error of about 0.06 to 0.07 for one tau. Differences smaller than that between two judges mean little.
  • Optimism from choosing. Even with a plan, we chose among many candidates on the pilot data. The winner of such a search looks better there than it will later. We put our own expected optimism at about 0.04 in tau.
  • Which reference? A host track may publish several official measures. A judge can track one and miss another, so the choice of reference measure is part of the result.
  • Can models replace assessors? The papers above disagree. A common middle view: models may extend human judgments to more systems, and a fresh human reference is still needed to know whether they did it well.
  • Project idea. Take a public track with human nugget scores. Build two judges and report tau, tau-AP and kappa for each, at a measure you name before you run them.