The Impact of Score Ties on Repeatability in Document Ranking

Jimmy Lin, Peilin Yang

Introduction

In information retrieval (IR) research, repeatability is a fundamental requirement of the scientific method. Ideally, executing the same model on the same dataset should yield identical results. However, modern search engines often exhibit non-deterministic behavior due to "score ties"—instances where multiple documents receive the same relevance score. This paper investigates how these ties, often broken using unstable internal identifiers, undermine experimental repeatability and quantifies the performance costs associated with fixing them.

The "Heisenbug" of Score Ties

The root of the problem lies in the multi-threaded indexing processes of modern search engines like Lucene. To handle large datasets efficiently, documents are processed in parallel. Consequently, they are assigned internal document IDs based on the order in which processing completes, which is inherently non-deterministic. When a search engine encounters a score tie, it typically defaults to using these internal IDs as a tie-breaker. Because these IDs change with every index rebuild, search rankings can shift, leading to "phantom" improvements or regressions that complicate regression testing and can even invalidate "State-of-the-Art" (SOTA) claims.

Methodology

The study was conducted using Anserini, an open-source IR toolkit built on Lucene. The authors compared two ranking conditions:

  1. Default (Non-Repeatable): Ties are broken using Lucene’s default, non-deterministic internal document IDs.
  2. Repeatable: Ties are broken using stable, external collection identifiers (e.g., unique strings like DOC123) or chronological order for social media data.

Implementation of the repeatable version utilized Lucene’s Sort abstraction, allowing for custom tie-breaking logic. The researchers evaluated both the effectiveness (retrieval quality) and efficiency (query latency) of these approaches across diverse TREC collections, including Newswire (Robust 04/05, Core 17), Social Media (Microblog 11-14), and Web (ClueWeb09b, ClueWeb12-B13).

Effectiveness Variability

The impact of score ties varies significantly depending on the document collection and retrieval model. For long-form content like newswire and web documents, the variability is generally minor, with differences in metrics like Average Precision (AP) or NDCG typically remaining below 0.001.

Table showing low variability in effectiveness metrics for standard collections.

However, the issue is far more pronounced in social media collections. Tweets are short and often share similar lengths or terms, leading to a higher frequency of score ties. Furthermore, multi-stage retrieval models like RM3 (Relevance Feedback) amplify this effect; a tie in the initial retrieval stage can change the set of documents used for query expansion, leading to a "butterfly effect" in the final rankings. In Microblog tasks, variability in P30 reached as high as 0.0058.

Table showing high variability in effectiveness metrics for Microblog tasks, particularly with RM3.

The Efficiency Penalty

Ensuring repeatability comes at a significant computational cost. While internal IDs are integers optimized for memory locality, external IDs are typically strings that require additional lookups or mapping tables. This "pointer chasing" disrupts CPU cache efficiency. For simple bag-of-words queries, query latency increased by approximately 20%. For more complex models like RM3 on tweet collections, the latency penalty was a staggering 90%.

Conclusion

While the impact of score ties on effectiveness metrics may seem small, it is often larger than the margins used to claim SOTA improvements in modern IR and NLP literature. The authors recommend a pragmatic approach: while non-repeatable ranking is acceptable for rapid prototyping, repeatable ranking should be mandatory for final experimental results and permanent code contributions to maintain scientific integrity.

Summary updated

BibTeX
@inproceedings{lin2019impact,
  author = {Jimmy Lin and Peilin Yang},
  title = {{The Impact of Score Ties on Repeatability in Document Ranking}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2019},
  doi = {10.1145/3331184.3331339},
}
Figure