TOME: A Two-stage Approach for Model-based Retrieval

Ruiyang Ren, Wayne Xin Zhao, Jing Liu, Hua Wu, Ji-Rong Wen, Haifeng Wang

Introduction

Traditional information retrieval (IR) systems typically rely on explicit indices, such as inverted indices or vector databases, to fetch relevant documents. Recently, a new paradigm called model-based retrieval (or generative retrieval) has emerged. In this approach, a model "memorizes" the entire corpus within its parameters and generates document identifiers (docids) directly in response to a query. While promising, this method faces significant challenges regarding how documents are identified and how models bridge the gap between short queries and long documents.

The Identifier Gap and Training Discrepancy

Two major hurdles currently limit the effectiveness of generative retrieval:

  1. The Identifier Gap: Most systems use arbitrary strings or random numbers (e.g., "doc_772") as identifiers. These strings do not appear in the natural language data used during a model's pre-training, forcing the model to learn a completely new, non-semantic vocabulary for retrieval.
  2. The Training-Inference Discrepancy: During training, models often have access to both queries and full documents. However, at inference, they must generate a specific identifier based only on a short query. This lack of context makes it difficult for the model to accurately "recall" the specific document it needs.

The TOME Framework

The authors propose TOME (TwO-stage Model-based rEtrieval) to address these issues. TOME introduces two primary innovations: the use of tokenized URLs as identifiers and a two-stage generation architecture.

URLs as Identifiers

Instead of arbitrary strings, TOME uses tokenized URLs (e.g., en.wikipedia.org/wiki/Nevada). Because URLs are composed of natural language tokens that the model encountered during pre-training, the retrieval task becomes a natural extension of the model's existing linguistic knowledge. URLs often contain semantic keywords that help the model associate the identifier with the document's content.

Two-Stage Generation Architecture

To bridge the context gap, TOME splits the retrieval process into two distinct steps:

  • Stage 1 (Passage Generation): Given a query, a T5 model generates a relevant passage or snippet from the corpus. This forces the model to first recall the semantic content associated with the query.
  • Stage 2 (URL Generation): A second T5 model takes the generated passage as input and maps it to the corresponding URL. This stage acts as a robust lookup mechanism.
The two-stage TOME architecture: generating a passage first, then mapping it to a URL identifier.

One of the most significant findings was the resilience of Stage 2. Even if the first stage generates a passage that is not a perfect word-for-word match of the original document, the URL generation model can often still recognize the context and produce the correct identifier.

Experimental Results

TOME was evaluated on the MS MARCO benchmark across three scales (100K, 1M, and 8.8M passages) and the Natural Questions (NQ320K) dataset.

As shown in the results below, TOME demonstrated significant gains over previous state-of-the-art generative models. On MS MARCO 100K, TOME achieved a Hits@1 of 71.93%, outperforming the previous best model-based approach, DSI-QG (65.64%), and even slightly surpassing the dense retrieval baseline, DPR (71.84%).

Performance comparison on MS MARCO across different corpus scales (100K, 1M, and Full).

On the NQ320K dataset, TOME reached 66.64% Hits@1, surpassing NCI (66.23%), which utilizes a much more complex and tailored architecture. These results suggest that aligning retrieval targets with natural language patterns significantly improves the accuracy of model-based search.

Scaling and Limitations

Despite its success at smaller scales, TOME highlights a "capacity bottleneck" in generative retrieval. As the corpus grows to the full 8.8 million passages of MS MARCO, the model's perplexity (uncertainty) fails to converge to low levels. Consequently, TOME still lags behind top-tier dense retrievers like ANCE or DPR at the "Full" scale.

Furthermore, the computational cost of training these models is high, requiring significant GPU resources (up to 32 NVIDIA A100s) and long training times, which raises concerns regarding energy consumption and accessibility.

Conclusion

TOME represents a significant step forward for generative retrieval by leveraging the semantic power of URLs and a two-stage "recall-then-identify" process. While the memorization bottleneck remains a challenge for web-scale retrieval, TOME proves that bridging the gap between pre-training and retrieval tasks is a viable path toward more efficient and accurate model-based search engines.

Summary updated

BibTeX
@inproceedings{ren2023tome,
  author = {Ruiyang Ren and Wayne Xin Zhao and Jing Liu and Hua Wu and Ji-Rong Wen and Haifeng Wang},
  title = {{TOME: A Two-stage Approach for Model-based Retrieval}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.336},
}
Figure