Relevance Judgments and Pooling

To measure a retrieval system you need to know which documents are relevant to each test query. That knowledge comes from relevance judgments, collected in a file usually called qrels (query relevance judgments): one row per (query, document) pair with a label. Every metric that uses relevance, such as recall, MRR, and nDCG, is computed from those labels, so the labels bound what the metrics can say.

Binary and graded labels

A judgment can be binary (relevant or not) or graded, for example 0 = not relevant, 1 = related, 2 = relevant, 3 = perfect answer. Graded labels let nDCG distinguish a perfect passage from a marginal one; binary labels are enough for recall and MRR. The unit judged must be the unit the system returns. If the index stores chunks, the labels are for chunks, or documents are mapped to chunks by an explicit rule, because a relevant document does not make each of its chunks relevant.

Why you cannot judge everything

A collection with a million documents and a hundred queries has a hundred million pairs. Exhaustive judging was feasible for the small Cranfield collection, but not for modern ones. The standard remedy is pooling: run several different retrieval systems on each query, take the union of their top \(k\) results (the pool), and have assessors judge only the pool. Manning, Raghavan, and Schรผtze describe this in their textbook, and it is how TREC collections were built. Documents outside the pool are never seen by an assessor and are treated as non-relevant.

Using several different systems matters. If only one system chose what to judge, its own results would be favored because everything it retrieves is labeled and everything else is not.

The unjudged-document problem

Pooling judges every document in the pool, so the contributing systems have complete judgments for the top \(k\) results that went into it; their results below that depth, and everything a non-contributing system retrieves outside the pool, remain unjudged. The next program builds a hypothetical pool from three systems' top 3 results for one query, in which documents named r1 to r4 are truly relevant and x1 to x4 are not. The fourth relevant document, r4, is retrieved by none of the three systems.

S1=["r1","x1","x2"]; S2=["r2","r1","x3"]; S3=["x4","r3","x1"]
pool=sorted(set(S1+S2+S3)); print("pool size",len(pool),pool)
judged_relevant={d for d in pool if d.startswith("r")}
print("judged relevant:",sorted(judged_relevant))
new=["r4","r1","r2"]            # a new system that finds r4
prec=lambda run:sum(d in judged_relevant for d in run)/len(run)
print("P@3 of S2",round(prec(S2),3),"P@3 of new system",round(prec(new),3))

Output:

pool size 7 ['r1', 'r2', 'r3', 'x1', 'x2', 'x3', 'x4']
judged relevant: ['r1', 'r2', 'r3']
P@3 of S2 0.667 P@3 of new system 0.667

The new system has three relevant documents in its top 3, which would give a precision of 1.0. Because r4 was never judged, the metric counts it as a miss and reports 0.667, the same as the older system. A system that finds relevant documents the earlier systems missed is penalized for it. How large the penalty is depends on how many unjudged relevant documents it retrieves, on the metric, and on where they appear in its ranking.

Practical consequences

  • Treat a document with no label as unjudged, not as non-relevant, when reading results. Report the fraction of each system's top-\(k\) results that have a label. For precision@\(k\), counting unjudged documents as non-relevant underestimates precision when some are truly relevant. This is not a general lower-bound rule: recall also uses the incomplete set of known relevant documents as its denominator. Retrieving the one judged relevant document but missing one unjudged relevant document gives reported recall 1.0 and true recall 0.5.
  • When the stakes are high, judge a sample of unjudged documents that the new system retrieves and recompute.
  • When building judgments for your own application, pool across diverse retrievers, for example lexical, dense, and a baseline, and across query variants.
  • Labels are noisy. Manning et al. report that chance-corrected agreement (kappa) between human judges in TREC evaluations is typically 0.67 to 0.8, but that the choice of assessor can change absolute scores considerably while having little effect on the relative ranking of systems. A set that ranks systems well may still give unreliable absolute numbers.
  • Judgments from a language model are possible, but they inherit the same incompleteness and must be checked against human labels on a sample before use.

References


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.