Measure how incomplete judgments distort retrieval comparisons using synthetic rankings, judged coverage, condensed scoring and pool depth.
A test set built by the system you want to replace
Most retrieval evaluation sets in companies are built the same way. Someone runs the current retriever over a list of real queries, people judge the top results as relevant or not, and the judged pairs become the test set. Every later change is scored against those judgments. It is a sensible way to start, and it hides a bias that grows with every improvement: the judgments only cover documents the old system retrieved. A new retriever that finds different relevant documents gets no credit for them, because nobody ever judged them. In the standard scoring, an unjudged document counts as not relevant.
Information retrieval research met this problem decades ago in the TREC evaluations, where judges could only read a pool made of the top documents from the participating systems. Zobel's 1998 study asked how reliable such pooled judgments are for systems that did not contribute to the pool. Buckley and Voorhees in 2004 proposed bpref, a measure designed for incomplete judgments, and Sakai in 2007 showed that simply removing unjudged documents from a ranking before computing standard measures, a condensed list, often works as well. The lesson for an engineering team is shorter: a candidate can be penalized for relevant results absent from the pool. How much its comparison changes depends on pool coverage, ranking and relevance; novelty alone does not establish a bias magnitude.
Worked example: a new retriever for the help-desk knowledge base
Belgavi's Book Store has a help-desk knowledge base. The evaluation team built a test set of 50 queries by judging the top 10 results of the current keyword retriever, called A here. Each query has 8 relevant articles in the collection. The candidate, B, combines keyword and embedding search. In the companion lab and the example retrieval_pool_bias, the generator starts with target relevant counts of 4 for A and 6 for B, jitters each by at most one, and places them among ranks 1 through 14. The target overlap is 50 percent. Counts are capped by the eight-document relevant set, so these controls are not promised top-10 hit counts. These are synthetic rankings designed to show the mechanism, not measurements of any real retriever.
| Judgments | Scoring | Measured A | Measured B | Judged share of B top 10 | Queries where the measured order is reversed |
|---|---|---|---|---|---|
| True relevance (all documents known) | Precision at 10 | 29.0% | 36.6% | not applicable | not applicable |
| Top 10 of A only | Unjudged counts as not relevant | 29.0% | 13.4% | 13.4% | 18 |
| Top 10 of A only | Condensed list | 29.0% | 23.4% | 13.4% | 8 |
| Top 10 of A and of B | Unjudged counts as not relevant | 29.0% | 36.6% | 100.0% | 0 |
With the old judgments, B looks less than half as good as A. In truth it is better. The third row shows what condensing does: it removes unjudged documents and lets judged documents from lower ranks move up, which narrows the gap but scores B on a list users never see. Only judging B's own results gives the true comparison.
Precision at 10 counts relevant documents in the first ten. Here every judged document is judged correctly; the bias comes entirely from what was left unjudged.
Report judged coverage next to every score
The cheapest safeguard is a coverage number. Judged at 10 is the share of a system's top 10 documents that have a judgment. The ir-measures library implements it as Judged@10. Report coverage when comparing scores. Similar coverage is useful but insufficient: the missing judgments can still differ systematically in relevance. In the example, B's judged share of 13.4 percent is a warning in itself: most of what B returns has never been looked at.
def judged_at_k(run: dict[str, list[str]], qrels: dict[str, dict[str, int]], k: int = 10) -> float:
"""Share of the top-k documents, over all queries, that have any judgment."""
seen = judged = 0
for query, ranking in run.items():
known = qrels.get(query, {})
for doc in ranking[:k]:
seen += 1
judged += doc in known
return judged / seen if seen else 0.0
def precision_at_k(run, qrels, k=10, condensed=False):
"""Unjudged documents count as not relevant unless condensed=True removes them first."""
total = 0
for query, ranking in run.items():
known = qrels.get(query, {})
ranked = [d for d in ranking if d in known] if condensed else ranking
total += sum(1 for d in ranked[:k] if known.get(d, 0) > 0)
return total / (k * len(run)) if run else 0.0Fixing the test set, not the metric
Coverage tells you that a comparison is unfair; it does not make it fair. The durable fix is to judge the candidate's results before trusting its score.
- Run both systems on the evaluation queries and collect the top documents of each.
- Judge every unjudged document in the candidate's top 10, or in a random sample of them when the volume is large, using the same instructions as the original judges.
- Add the new judgments to the shared set, with the date and the system that surfaced them, so later candidates are compared against a set that both systems contributed to.
- Re-score both systems and report the change in each score next to the change in coverage.
Pool depth matters as much as pooled systems. In the lab, judging only the top 3 of both systems gives A 11.6 percent and B 12.0 percent, both far below their true values. Shallow pools understate every system, and the understatement is not equal across systems.
If people cannot judge everything, a model can pre-judge the unjudged documents as a triage step, with people checking a sample and every disagreement. Treat those labels as a separate, lower-trust layer and report results with and without them. An LLM judge introduces its own biases; it does not remove the need to know how many results were judged by whom.
Reading a per-query table before the average
An average hides which queries moved. Export one row per query with the true and measured counts for each system, the number of judged documents in each top 10 and a flag when the measured order is the reverse of the true order. In the example, 18 of the 50 queries reverse order when only A was judged. Those rows are where a reviewer should look first: open the unjudged documents in B's top 10 for a handful of them and judge them by hand. If most turn out relevant, the offline loss was coverage, not quality.
The same table also guards against the opposite mistake. A candidate whose measured score rises after new judgments may only have gained because its own documents were now judged while the baseline's lower-ranked documents were not. Judge both systems to the same depth before comparing, and report the number of new judgments that each system contributed.
When the tool you already use supports it, compute the scores both ways from one run file. The ir-measures library documents a judged_only option on several measures that discards unjudged documents, which gives the condensed variant, alongside Judged for coverage. Keeping both numbers in the same report makes the size of the coverage effect visible to everyone reading it.
Failure modes in practice
- Retiring the candidate after an offline loss that is entirely coverage. Always look at judged at 10 before reading a precision or nDCG difference.
- Reusing a set across years while the collection changes. New articles are never judged, so any system that surfaces them looks worse.
- Judging only the documents a system got right in an A/B click log. Clicks come from what was shown, so they share the same pooling bias.
- Comparing recall. Recall needs the number of relevant documents per query, which an incomplete pool undercounts for every system.
- Condensing silently. If you report condensed scores, say so; they answer a different question from the one users experience.
When you do not need this
If the candidate is a small change to the current system, such as a tuned threshold, its results overlap almost completely with the judged pool and the bias is small. The coverage number will confirm it. The concern grows with how different the candidate is, which is why it matters most for the change that would matter most.
How to verify it
Compute judged at 10 for every system in every report. Run the comparison twice, once with the original judgments and once after judging the candidate's unjudged top 10, and record how far the gap moved. In the companion lab, change the pool, the depth and the scoring rule to see each effect separately, and export the per-query rows to check which queries flip.
Interactive experiment
Retrieval eval pooling: judged depth and unjudged documents. Synthetic browser-local fixtures, adjustable inputs, decision traces and JSON export.