Rethinking the Role of Token Retrieval in Multi-Vector Retrieval

Jinhyuk Lee, Zhuyun Dai, Sai Meher Karthik Duddu, Tao Lei, Iftekhar Naim, Ming-Wei Chang, Vincent Y. Zhao

TL;DR

XTR (ConteXtualized Token Retriever) simplifies multi-vector information retrieval by scoring documents using only the tokens retrieved in the initial search stage, completely eliminating the need to load all document embeddings. This approach achieves a staggering 4,000x reduction in scoring FLOPs compared to models like ColBERT while simultaneously setting a new state-of-the-art on the BEIR benchmark.

What Problem Does This Paper Address?

Dense retrieval has traditionally been a trade-off between efficiency and expressivity. Dual encoders (like DPR) are fast because they represent queries and documents as single vectors, allowing for efficient Maximum Inner Product Search (MIPS). However, they lack the nuance of token-level interactions. Multi-vector models (like ColBERT) bridge this gap by storing embeddings for every token, achieving superior accuracy through "late interaction" scoring.

The catch? Multi-vector models are computationally expensive at scale. Their standard inference pipeline involves three stages:

  1. Token Retrieval: Use query tokens to find a set of candidate documents.
  2. Gathering: Load every token embedding for those candidate documents from disk/RAM.
  3. Scoring: Perform an exhaustive "sum-of-max" similarity calculation across all query and document tokens.

The "gathering" and "scoring" stages are the bottlenecks. The authors of this paper ask: Can we achieve high performance using only the tokens we already retrieved in the first stage?

Methods

The authors introduce XTR, which rethinks the role of token retrieval to streamline the entire process.

1. Rethinking the Pipeline

Unlike ColBERT, which uses token retrieval only to find candidate documents, XTR uses the retrieved tokens for the final score. As shown in Figure 1, this removes the expensive gathering stage entirely.

Figure 1: Overview of XTR. ColBERT has the three-stage inference combining (a) the token retrieval, (b) the gathering and (c) the scoring stages (§2.2). XTR leverages the token retrieval for both training and inference. XTR efficiently obtains the score of each candidate document by applying fXTR (or fXTR′) on the retrieved tokens, completely removing the gathering stage (§3.2).

2. In-Batch Token Retrieval Training

Standard multi-vector training (like ColBERT's) often results in "over-confident" token scores that don't differentiate well between relevant and irrelevant contexts (see Figure 2). XTR introduces a new objective function that simulates the retrieval process during training. It encourages the model to assign high scores only to the most salient document tokens that are likely to be retrieved in the top-$k$ results.

Figure 2: Density histogram of 4,000 token retrieval scores (cosine similarity). Training with fColBERT (T5-ColBERT; §4) causes many document tokens to have extremely high scores regardless of their actual relevance with respect to the input query tokens. XTR mitigates this problem with a better training objective.

3. Missing Similarity Imputation

During inference, a query token might not retrieve any tokens from a specific candidate document. To maintain the "sum-of-max" logic without loading all document tokens, XTR "imputes" a score for these missing interactions. It uses the similarity score of the $k'$-th retrieved token (the last one in the global retrieval list) as a tight upper bound for any non-retrieved token in that document. This is illustrated in Figure 3.

Figure 3: Comparison of fColBERT in eq. (1) and fXTR′ in eq. (4). Assume that Da and Db were selected as initial candidate documents from the token retrieval stage. fColBERT loads all token vectors of Da and Db and exhaustively recomputes pairwise token similarity to obtain the max values (red boxes). On the other hand, fXTR′ does not load any token vectors and reuses retrieval scores from the first-stage token retrieval. Assume that, with the top-2 token retrieval results, the first query token retrieved each max score of Da and Db, but the second query token retrieved two tokens only from Da but not Db. We impute the missing similarity m for Db (denoted as yellow dashed box) by finding its upper bound using the top-2 score (denoted as s2) of the second query token (i.e., m ≤s2 ≤s1).

Datasets

  • Training: MS MARCO (a large-scale English passage retrieval dataset).
  • Evaluation:
  • BEIR: A diverse benchmark of 13 zero-shot information retrieval tasks.
  • LoTTE: A dataset for long-tail topic evaluation.
  • EntityQuestions: Focused on entity-centric queries.
  • MIRACL: A multilingual retrieval benchmark covering 18 languages.

Key Insights and Ideas

  • Context over Lexical Match: Standard models often over-rely on exact keyword matches. XTR's training objective forces it to learn better contextual representations. Analysis shows XTR retrieves "gold" (relevant) tokens with much higher probability than ColBERT, even when it relies less on exact lexical matches (see Figure 4).
  • Efficiency is Accuracy: By making the scoring stage 4,000x cheaper, XTR can afford to look at a much larger pool of candidate tokens ($k'=40,000$) during the retrieval stage, which significantly boosts overall recall (see Figure 5).
  • The Power of Imputation: Simple upper-bound imputation works remarkably well. It allows the model to approximate the full "sum-of-max" interaction without the I/O overhead of loading full document representations.
Gold vs. Lexical token retrieval performance

Key Results

  • State-of-the-Art Performance: XTR advances the SOTA on the BEIR benchmark by 2.8 nDCG@10 without any distillation or complex hard-negative mining.
  • Massive Speedup: The scoring stage is two-to-three orders of magnitude cheaper in terms of FLOPs compared to ColBERT.
  • Multilingual Superiority: On the MIRACL benchmark, XTR significantly outperforms previous models like mContriever, demonstrating strong cross-lingual generalization.
  • Recall Gains: XTR achieves much higher recall at the token retrieval stage, which is the foundation for its strong final ranking performance.

Limitations and Future Work

  • Training Data Dependency: Most experiments were conducted using MS MARCO for fine-tuning. The authors note that future work could explore removing this dependency, perhaps through LLM-based synthetic data generation.
  • Convergence Issues: The authors found that training directly with the inference scoring function ($f_{XTR'}$) currently fails to converge, leaving an interesting open problem for optimization research.
  • Index Size: While inference is faster, XTR still requires storing multiple vectors per document, which leads to larger index sizes compared to dual encoders. Exploring vector quantization or pruning within the XTR framework is a natural next step.

Summary updated

Abstract

Multi-vector retrieval models such as ColBERT [Khattab and Zaharia, 2020] allow token-level interactions between queries and documents, and hence achieve state of the art on many information retrieval benchmarks. However, their non-linear scoring function cannot be scaled to millions of documents, necessitating a three-stage process for inference: retrieving initial candidates via token retrieval, accessing all token vectors, and scoring the initial candidate documents. The non-linear scoring function is applied over all token vectors of each candidate document, making the inference process complicated and slow. In this paper, we aim to simplify the multi-vector retrieval by rethinking the role of token retrieval. We present XTR, ConteXtualized Token Retriever, which introduces a simple, yet novel, objective function that encourages the model to retrieve the most important document tokens first. The improvement to token retrieval allows XTR to rank candidates only using the retrieved tokens rather than all tokens in the document, and enables a newly designed scoring stage that is two-to-three orders of magnitude cheaper than that of ColBERT. On the popular BEIR benchmark, XTR advances the state-of-the-art by 2.8 nDCG@10 without any distillation. Detailed analysis confirms our decision to revisit the token retrieval stage, as XTR demonstrates much better recall of the token retrieval stage compared to ColBERT.
BibTeX
@inproceedings{lee2023rethinking,
  author = {Jinhyuk Lee and Zhuyun Dai and Sai Meher Karthik Duddu and Tao Lei and Iftekhar Naim and Ming-Wei Chang and Vincent Y. Zhao},
  title = {{Rethinking the Role of Token Retrieval in Multi-Vector Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ZQzm0Z47jz},
}
Figure