[Paper Review] Repeatability Corner Cases in Document Ranking: The Impact of Score Ties
This paper investigates how score ties in document ranking—caused by non-deterministic internal document ID assignment during multi-threaded indexing in Lucene—undermine repeatability in IR experiments. It proposes breaking ties using stable external document IDs to ensure deterministic rankings, at the cost of measurable query performance degradation, and demonstrates that this trade-off is essential for reliable regression testing in IR systems.
Document ranking experiments should be repeatable. However, the interaction between multi-threaded indexing and score ties during retrieval may yield non-deterministic rankings, making repeatability not as trivial as one might imagine. In the context of the open-source Lucene search engine, score ties are broken by internal document ids, which are assigned at index time. Due to multi-threaded indexing, which makes experimentation with large modern document collections practical, internal document ids are not assigned consistently between different index instances of the same collection, and thus score ties are broken unpredictably. This short paper examines the effectiveness impact of such score ties, quantifying the variability that can be attributed to this phenomenon. The obvious solution to this non-determinism and to ensure repeatable document ranking is to break score ties using external collection document ids. This approach, however, comes with measurable efficiency costs due to the necessity of consulting external identifiers during query evaluation.
Motivation & Objective
- To investigate how non-deterministic score tie-breaking in multi-threaded Lucene indexing undermines repeatability in IR experiments.
- To quantify the impact of score ties on effectiveness metrics across diverse test collections.
- To evaluate the performance cost of ensuring deterministic ranking through external document ID-based tie-breaking.
- To advocate for external ID-based tie-breaking as a necessary practice for reliable regression testing in IR systems.
Proposed method
- Empirically compare non-repeatable (internal ID-based) and repeatable (external ID-based) ranking across multiple TREC collections using Anserini v0.1.0 and Lucene 6.3.0.
- Use standard IR evaluation metrics (AP, P30) to measure effectiveness differences due to score tie-breaking.
- Measure query evaluation latency differences between non-repeatable and repeatable configurations.
- Implement deterministic tie-breaking by sorting results using stable external document identifiers instead of internal Lucene document IDs.
- Use existing Lucene abstractions to control sort order, ensuring consistent results across runs.
- Analyze results across diverse document types: newswire, microblog, and web collections.
Experimental results
Research questions
- RQ1To what extent do score ties due to non-deterministic internal document IDs affect the repeatability of document ranking in Lucene-based systems?
- RQ2How significant are the effectiveness differences (in AP and P30) caused by arbitrary score tie-breaking across different IR test collections?
- RQ3What is the performance overhead of ensuring repeatable rankings by using external document IDs for tie-breaking?
- RQ4How does the performance cost vary across different query types and collections?
Key findings
- Score ties due to non-deterministic internal document ID assignment cause measurable, non-trivial differences in effectiveness metrics, with maximum delta in AP reaching 0.0027 and in P30 reaching 0.0027 across collections.
- The largest effectiveness differences were observed in the TREC 2005 Robust Track (AQUAINT), where P30 differences reached 0.0027 for QL+RM3 and 0.0020 for BM25+RM3.
- Query evaluation latency increased by up to 90% for QL+RM3 on the TREC 2013/2014 Microblog Track when using repeatable tie-breaking.
- On average, repeatable runs were 18–26% slower than non-repeatable runs, with the highest overhead on short, high-precision microblog queries.
- The performance cost is most pronounced for complex queries like BM25+RM3, which require scanning more postings and scoring more documents.
- Despite small absolute differences in effectiveness, the non-determinism poses a serious threat to regression testing and reproducibility in IR research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.