Statistics and judge calibration for search and RAG evaluation
TL;DR. Search and RAG evaluations compare a few systems on a few dozen to a few thousand items, often with an LLM judge. Use four tools together:
- Paired tests over topics or questions.
- Rank agreement (Kendall τ, especially among the top systems) when a judge replaces humans.
- Chance-corrected agreement (Cohen κ) at the label level.
- Prediction-powered inference (PPI) to correct a judge’s estimate with a small human sample.
Each tool answers a narrower question than papers usually claim.
Why it matters now. LLM judges are cheap enough to run on every item, so the bottleneck is no longer labels. It is knowing how much the judge’s error moves the conclusions. The TREC RAG experience shows the gap: run-level τ near 0.9 can coexist with per-topic τ near 0.55 (UMBRELA).
Paired tests
Section titled “Paired tests”All systems answer the same items, so analyse the per-item differences , not two independent means.
- Paired t-test on , with .
- Randomisation (permutation) test. Flip the sign of each at random. The p-value is the share of flips with .
- Paired bootstrap. Resample the with replacement and read off the interval for .
- Sign test. Count only which system wins each item. It is robust but has low power.
For TREC runs, Smucker, Allan and Carterette (CIKM 2007) recommended the randomisation test or the t-test over the sign and Wilcoxon tests.
Finite-population correction. General AgentBench (2602.18998) evaluates of benchmark instances without replacement. It puts a one-sided lower bound on the paired gain:
The factor shrinks the standard error by about 5% at and 29% at . It is correct only if the claim is about those fixed instances. If the claim is about the task distribution they came from, drop it. With a single agent run per item, the bootstrap mixes item sampling with the agent’s own randomness. The paper notes that these two sources cannot be separated when .
Multiple comparisons. independent tests at give a chance of at least one false positive: 40% at . Eight systems give 28 pairs. Use Holm (family-wise) or Benjamini–Hochberg (false-discovery rate).
Rank agreement: Kendall τ
Section titled “Rank agreement: Kendall τ”For systems ranked by two judges, with concordant and discordant pairs and no ties,
Some reference points:
- A τ of 0.9 means 5% of pairs swap. A τ of 0.5 means 25% swap.
- The top matters. Clarke and Dietz (2412.17156) report TREC 2024 UMBRELA vs manual τ of 0.89 overall and 0.85 among the top 60 systems (8% swaps), but 0.51 among the top 20 (24% swaps). When systems also use UMBRELA as a re-ranker, τ among the top 5 becomes −0.40. Top-weighted variants such as τ_AP exist for this reason.
- Run-level vs per-topic. The TREC 2024 deployment study (2411.08275) reports nDCG@20 τ of 0.890 at the run level but 0.553 averaged per topic.
- Topic count. Re-sampling 2/3 or 1/3 of the 27 topics (100 Monte Carlo trials) gives run-level τ of 0.811 ± 0.06 and 0.768 ± 0.08 (Table 2). The authors read this as “reasonable” correlation with as few as ~10 topics, but per-topic τ stays near 0.55 whatever the count.
Report τ with the number of systems, the number of topics, and the subset (all or top-k).
Label agreement: Cohen κ
Section titled “Label agreement: Cohen κ”Here is observed agreement and is the agreement expected from the two label marginals alone.
In the TREC 2025 Relevance Judgment task (2603.09891), the best runs agreed with NIST on 0.30–0.34 of items. Their κ ranged from 0.21 down to 0.00 at almost the same raw agreement. Raw agreement on a skewed 0–4 scale is mostly marginals.
The useful reference point is the human–human ceiling. MT-Bench (2306.05685) reports GPT-4–human agreement of 85% against 81% human–human (setup S2, no ties). A judge “as good as humans” is bounded by how much humans agree with each other.
Correcting a judge: prediction-powered inference
Section titled “Correcting a judge: prediction-powered inference”Let be the judge, with judge-only items and items with human labels . PPI (2301.09633) estimates a mean as
with 95% interval
The second term is the rectifier. It is the judge’s average error measured on the human sample.
The guarantee needs two assumptions:
- Labelled and unlabelled items are i.i.d. from the same distribution. The paper also gives finite-population and distribution-shift variants.
- is independent of the labelled data. The paper’s example is a model trained on other data.
The interval beats the human-only interval, whose variance is , only when . The condition is necessary but not sufficient when is finite. A bad judge makes the interval wider.
Worked example (illustrative numbers). A binary judge scores N = 2,000 answers from one system and passes 70% of them. Humans label a representative random sample of n = 200 of that system’s answers; on it, the judge’s mean error f − Y is 0.08 (it is too lenient).
- Point estimate: 0.70 − 0.08 = 0.62.
- Suppose the judge says pass where the human says fail on 10% of labelled items, and the reverse on 2%. Then f − Y has mean 0.10 − 0.02 = 0.08 and variance 0.12 − 0.08² ≈ 0.114. The judge variance is 0.70 × 0.30 = 0.21, and the human-label variance is 0.62 × 0.38 ≈ 0.236.
- PPI variance: 0.114/200 + 0.21/2,000 ≈ 0.00057 + 0.000105 ≈ 0.000675, so the 95% half-width is 1.96 × √0.000675 ≈ 0.051.
- Human-only variance: 0.236/200 ≈ 0.00118, so the half-width is 1.96 × √0.00118 ≈ 0.067.
PPI wins here because 0.114 + (200/2,000) × 0.21 ≈ 0.135 is below 0.236. The 0.08 correction applies to this system only; another system needs its own representative labelled sample.
ARES applies PPI to RAG judges and shows the failure mode: transfer breaks under large domain shifts.
Limitations & open questions
Section titled “Limitations & open questions”- Calibration per system. PPI corrects the mean judge error, but judge bias often depends on the system (style, length, self-preference). Calibrating per system costs labels, and pooling them hides the bias.
- Ceilings for nugget evaluation. Few studies report human–human agreement for nugget assignment at the item level, so “close to human” is hard to interpret. See open problems.
- Agentic variance. Repeated runs per item are expensive, but without them, agent randomness is folded into item sampling.
Connections
Section titled “Connections”- LLM-as-a-judge covers judge bias types and position-swap debiasing.
- AutoNuggetizer has run-level vs per-topic τ for nugget scores.
- Retrieval vs reasoning uses these tests for a crossed design.
- ARES is the original PPI-for-RAG-judges paper; RCP-nDCG is a rubric-calibrated judge metric whose rankings can differ from classic nDCG.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
In the TREC 2025 Relevance Judgment task, one run agrees with NIST labels on 34% of items with Cohen κ = 0.21, while another agrees on 32% with κ = 0.00. Back out the chance agreement implied for each run, and explain how two runs with almost the same raw agreement can differ this much in κ.
What a strong answer covers
- κ = (p_o − p_e)/(1 − p_e), so p_e = (p_o − κ)/(1 − κ).
- Run 1: p_e = (0.34 − 0.21)/0.79 ≈ 0.165. Run 2: p_e = 0.32, so all observed agreement is at chance level.
- Chance agreement depends on both label marginals; a run that puts most labels in the most common human grade can match 32% of items while carrying no information beyond the marginals.
- On a 0–4 scale an unweighted κ treats a 3-vs-4 disagreement like 0-vs-4; a weighted κ or a rank metric over systems (Kendall τ on run scores) answers a different question.
- Derive / compute
Kendall τ between UMBRELA and manual system rankings is 0.85 among the top 60 TREC 2024 systems and 0.51 among the top 20. Convert each to the fraction of system pairs that swap order, explain why the top-20 τ is the more relevant number for a leaderboard, and say what the 0.890 → 0.811 → 0.768 sequence in the TREC 2024 UMBRELA study tells you about topic counts.
What a strong answer covers
- Without ties, τ = (C − D)/(C + D), so the discordant fraction is (1 − τ)/2: 7.5% at 0.85 and 24.5% at 0.51, matching the 8% and 24% swaps that Clarke and Dietz report.
- A τ over many systems is dominated by easy pairs (strong vs weak systems); decisions are made among the top systems, where differences are small and swaps are frequent.
- Run-level nDCG@20 τ vs fully manual qrels was 0.890 on all 27 topics, 0.811 ± 0.06 on random 2/3 subsets and 0.768 ± 0.08 on 1/3 subsets (100 Monte Carlo trials each).
- Agreement with human rankings degrades as topics shrink, so a τ measured on one topic set does not transfer to a smaller evaluation.
- Mechanism
Prediction-powered inference corrects an LLM judge's estimate with a small human-labelled sample. Write the estimator and its interval, then list the assumptions under which the interval is valid and give one realistic way each assumption is broken in RAG evaluation.
What a strong answer covers
- Estimator: mean judge score on N unlabelled items minus the mean judge error on n labelled items; interval width from the variances of f − Y over n and of f over N.
- Assumption 1: labelled and unlabelled items are i.i.d. from the same distribution; broken when humans label an easier or older subset, or a different system's outputs.
- Assumption 2: the judge f is fixed independently of the labelled data; broken when the judge prompt or threshold is tuned on the same human labels.
- Per-system estimates need labels drawn from each system's outputs; a rectifier measured on system A does not correct the judge's bias on system B.
- PPI narrows the interval only when Var(f − Y)/n + Var(f)/N < Var(Y)/n. Var(f − Y) < Var(Y) is necessary but not sufficient when N is finite; a weak judge widens the interval.
- Critique
A paper reports a gain of 2 points on a 500-question subset of a 2,000-question benchmark, using a paired bootstrap with a finite-population correction, one agent run per question, and 12 baseline comparisons. Identify what the significance claim does and does not cover.
What a strong answer covers
- With n/N = 0.25 the correction shrinks the standard error by about 13%; it is valid only if the target is the 2,000 fixed questions, not the task distribution they were drawn from.
- With one run per question, sampling variance and the agent's own stochasticity are not separately identifiable; the bootstrap targets their sum.
- Twelve comparisons at α = 0.05 give about a 46% chance of at least one false positive if all nulls are true; use Holm or Benjamini–Hochberg.
- The judge's error is not in the interval unless it is propagated, e.g. via PPI or by re-judging with a second judge.
- Design
Design an evaluation protocol for comparing 8 RAG systems with an LLM judge, a budget of 400 human labels, and 50 topics. Specify how you allocate the labels, which tests you run, and what you report so that a reader can tell judge error from system differences.
What a strong answer covers
- Allocate human labels stratified by system (about 50 per system) so that each system has its own rectifier; sample items at random, not from the hardest cases.
- Report PPI-corrected means with intervals per system, and the raw judge means, so the size of the correction is visible.
- Compare systems with paired tests over topics (randomisation or paired bootstrap), correct for the 28 pairwise comparisons, and report effect sizes.
- Report run-level and per-topic agreement (τ, κ) on the labelled subset, plus a judge position-swap or order-swap consistency rate.
- Freeze the judge prompt before looking at the human labels, and release per-item judge outputs.