Retrieval Evaluation

How to tell whether one retrieval system is better than another. Test collections and relevance judgments, precision and recall, ranked measures such as MAP and nDCG, assessor agreement, statistical significance, online experiments with users, and code to compute it all.

Every technique in this course so far has claimed to improve retrieval, from stemming to TF-IDF. In the vector space model topic, a weighting scheme was judged by whether two documents out of four came out on top. A real collection is far too large for that. Deciding fairly and repeatably that one system is better than another takes two things: a fixed set of documents, information needs and judgments that every system is run against, and a measure computed from each system's output. This topic sets out both.

Measurement has been unusually central to retrieval's progress. Since the Cranfield experiments, the field has advanced mainly by building test collections, running systems against them, and comparing the scores. A method that cannot show a gain on a test collection is rarely adopted. This topic is about how that measurement works and where it can mislead.

A test collection has three parts: documents, written statements of information needs, and judgments of which documents are relevant to each need. From these, a system's output can be scored. For an unordered set, the scores are precision, the fraction of what was retrieved that is relevant, and recall, the fraction of what is relevant that was retrieved. For a ranked list, the scores reward placing relevant documents near the top. Each measure answers a slightly different question, and choosing one is a statement about what users care about.

Here is the route. First we see how a test collection is built and used fairly. Then come the measures, from sets to rankings: precision and recall, rank-based measures, mean average precision, nDCG for graded judgments, and the models of a reader from which measures can be derived. Finally we turn to the judgments themselves and to comparisons. Assessors disagree, collections are too large to judge completely, and differences between systems can be smaller than the variation between queries. The later articles cover agreement, pooling, statistical tests, and experiments with live users.

The method rests on the simplified notion of relevance: topical, judged by an assessor, one document at a time. The measures are worked on the thesis student's six Arctic documents from what information retrieval is and on the Cranfield collection. Every number comes from a script in the site's repository.

Articles

The method

  • Test collections and the Cranfield paradigm: a fair comparison needs fixed documents, topics and judgments. The three parts and why judgments are made against needs; how the Cranfield collection was built and what it contains, measured; the major collections from Cranfield to TREC and MS MARCO; and the rules for using them fairly, with an experiment on tuning against the test topics.

Measures

  • Precision, recall, and the F measure: the quality of a retrieved set is two numbers, and one when they are combined. The contingency table, why accuracy is the wrong measure for retrieval, the trade-off traced on a Cranfield query, and the F measure derived as a weighted harmonic mean, with the equivalence of its two forms proved.
  • Evaluating ranked results: when the output is a list, the measures reward relevant documents for appearing early. Precision and recall at each rank, precision-recall curves and interpolation, precision at k and its ceiling, recall and success at k, R-precision and the break-even point, reciprocal rank, and why ROC curves are rarely used.
  • Mean average precision: one number that summarizes a whole ranking. Average precision for one query, its mean over many, the exact effect of moving one document, and the geometric mean for hard queries.
  • Discounted cumulative gain and nDCG: a measure for judgments in which some relevant documents matter more than others. Graded relevance, position discounts, normalization by the ideal ranking, and how the gain formula can reverse a comparison.
  • User models behind retrieval metrics: RBP and ERR: a measure can be derived from a stated model of how a user reads a ranking. Precision at k and the DCG discount as position models, rank-biased precision and its residual derived from the persistence model, expected reciprocal rank derived from the cascade model, average precision under Robertson's model, and all of them on the worked ranking and on Cranfield.

Judgments and comparisons

  • Relevance judgments, pooling, and agreement: assessors decide what is relevant, for part of a collection, and they disagree. How judgments are collected, pooling simulated on Cranfield and its biases, bpref and the other measures for incomplete judgments worked in full, the kappa statistic derived and worked, what a change of assessor does to the ranking of systems, and crowdsourced and model-generated judgments.
  • Comparing systems with significance tests: a difference in MAP is tested against the variation between topics. Paired tests over topics, five tests stated exactly and worked on one example they disagree about, the stemmer on Cranfield, how many topics are needed, and multiple comparisons.
  • Online evaluation: live users show how a system is used, which judgments cannot. A/B tests and how many users they need, position bias in clicks, team-draft interleaving with its fairness property proved and an interactive demo, and how online and offline evaluation relate.

Doing it

  • Implementing evaluation measures: two correct programs can disagree on ties, interpolation, unjudged documents and missing topics. The TREC formats for judgments and runs, a tested Python implementation of the main measures, worked cases against trec_eval, and standard tools.

Course materials

The course had no programming assignment for this topic. Evaluation was practiced by hand, computing measures for small rankings. The implementation article provides the code that an assignment would have produced.

References

  • Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, chapter 8. Cambridge University Press. record · 102 pages
  • Sanderson, M. (2010). Test collection based evaluation of information retrieval systems. Foundations and Trends in Information Retrieval, 4(4), 247–375. record
  • Voorhees, E. M., and Harman, D. K. (Eds.) (2005). TREC: Experiment and Evaluation in Information Retrieval. MIT Press. record · 3 pages

Reviewed: verified, 16 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 16 Nov 2026 · 6 revisions