Evaluating Extrapolation Performance of Dense Retrieval

Jingtao Zhan, Xiaohui Xie, Jiaxin Mao, Yiqun Liu, Min Zhang, Shaoping Ma

TL;DR

Neural retrieval models often achieve high scores on benchmarks by memorizing training data rather than truly understanding search intent. This paper introduces a novel resampling protocol to separate a model's ability to "interpolate" (handle queries similar to training) from its ability to "extrapolate" (handle novel queries), revealing that popular benchmarks are heavily biased toward interpolation and that different model architectures vary wildly in their ability to generalize.

What Problem Does This Paper Address?

In the world of Information Retrieval (IR), neural models have become the gold standard, dominating leaderboards for datasets like MS MARCO. However, a nagging question remains: are these models actually "learning" how to rank, or are they just very good at memorizing the massive amounts of training data they are fed?

The authors distinguish between two types of performance:

  1. Interpolation: How well a model handles test queries that are similar to what it saw during training.
  2. Extrapolation: How well a model handles queries that are distinct from its training data.

The challenge is that existing benchmarks don't distinguish between these two. If a test set is full of queries that look just like the training set, a model might look impressive while being completely brittle when faced with real-world, novel search requests.

Methods

The authors propose two resampling methods to create "clean" interpolation and extrapolation testbeds from existing datasets without needing new manual annotations:

  • ReSTrain (ReSampling Training Queries): Used for small test sets (like TREC DL). It keeps the test set fixed but selects either similar training queries (for interpolation) or dissimilar training queries (for extrapolation) to train the model.
  • ReSTTest (ReSampling Training and Test Queries): Used for large test sets (like MS MARCO Dev). It clusters all queries into $k$ buckets. To test extrapolation, it trains on $k-1$ buckets and tests on the remaining one, repeating this process to cover the whole set.

Schematic diagrams of the proposed ReSTrain and ReSTTest resampling methods. Visualization of the ReSTTest clustering approach.

To determine "similarity," they use embedding-based distance, which they validated against manual annotations of query intent and entities.

Datasets

The study utilizes the most prominent benchmarks in modern neural IR:

  • MS MARCO: A massive dataset with ~0.5 million training queries.
  • TREC Deep Learning Tracks (2019 & 2020): Smaller, more deeply annotated test sets that share the MS MARCO training data.
  • BEIR: A heterogeneous benchmark used to validate that their "extrapolation" metric actually aligns with zero-shot out-of-distribution (OOD) performance.

Key Insights and Ideas

  • Benchmarks are "Leaky": The authors found an alarming amount of overlap in current benchmarks. Over 90% of test queries in TREC DL share entities with training queries, and nearly 80% share the exact same relevant passages. Many "test" queries are essentially duplicates of training queries (see Figure 6 below).
  • Architecture Matters for Generalization: Interaction-based models (like ColBERT), which look at term-level interactions between query and document, are much more robust. Representation-based models (like standard Dense Retrieval or SPLADE), which compress queries into single vectors, suffer significantly when moving from interpolation to extrapolation.
  • Pretraining > Fine-tuning: For dense retrieval, advanced pretraining techniques (like coCondenser) are the most effective way to improve extrapolation. In contrast, popular fine-tuning tricks like hard negative mining or distillation primarily improve interpolation but do little to help the model handle novel queries.
  • Extrapolation as a Proxy for OOD: The authors proved that a model's extrapolation score on a single dataset is a much better predictor of its performance on entirely different domains (like COVID-19 research or financial QA) than its standard benchmark score.
Table 4: Examples of duplicate test and training queries.

Key Results

  • Performance Degeneration: On TREC DL, standard dense retrieval models saw their NDCG@10 drop by 14% when forced to extrapolate. In contrast, interaction-based models like ColBERT only saw a 2% drop.
  • The Power of Pretraining: Initializing a model with coCon-marco (a pretraining method tailored for retrieval) reduced the interpolation-extrapolation gap to 0% for Recall@100 on TREC DL, whereas random initialization led to a massive 30% gap.
  • Correlation with OOD: Extrapolation performance showed a high Spearman correlation (up to 0.935) with performance on out-of-distribution datasets in BEIR, while interpolation correlation was significantly lower.

Scatter plots showing that extrapolation performance (left) correlates much better with out-of-distribution performance on TREC-COVID than interpolation performance (right). Interpolation correlation plot.

Limitations and Future Work

  • Static Corpus: The study focuses on query dynamics. In the real world, the document corpus also changes. Future work could incorporate "document extrapolation"—handling entirely new types of content.
  • Model-Agnostic Definitions: The current definitions of interpolation and extrapolation are based on query similarity, not the internal mechanics of specific models. Customizing these definitions for different architectures might provide even deeper insights.
  • Robust Optimization: The authors suggest that training models to be robust to extrapolation could be viewed as a "min-max" game, opening a new avenue for designing more reliable retrieval systems.

Summary updated

BibTeX
@inproceedings{zhan2022evaluating,
  author = {Jingtao Zhan and Xiaohui Xie and Jiaxin Mao and Yiqun Liu and Min Zhang and Shaoping Ma},
  title = {{Evaluating Extrapolation Performance of Dense Retrieval}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557312},
}
Figure