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

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

Abstract

Recently, model-based retrieval has emerged as a new paradigm in text retrieval that discards the index in the traditional retrieval model and instead memorizes the candidate corpora using model parameters. This design employs a sequence-to-sequence paradigm to generate document identifiers, which enables the complete capture of the relevance between queries and documents and simplifies the classic index-retrieval-rerank pipeline. Despite its attractive qualities, there remain several major challenges in model-based retrieval, including the discrepancy between pre-training and fine-tuning, and the discrepancy between training and inference. To deal with the above challenges, we propose a novel two-stage model-based retrieval approach called TOME, which makes two major technical contributions, including the utilization of tokenized URLs as identifiers and the design of a two-stage generation architecture. We also propose a number of training strategies to deal with the training difficulty as the corpus size increases. Extensive experiments and analysis on MS MARCO and Natural Questions demonstrate the effectiveness of our proposed approach, and we investigate the scaling laws of TOME by examining various influencing factors.

Introduction

Traditional information retrieval systems rely on explicit indexing structures, such as inverted indices for BM25 or vector indices for dense retrieval. Model-based retrieval (generative retrieval) offers a promising alternative by "memorizing" the corpus within model parameters and generating document identifiers (docids) directly from queries. However, this paradigm faces two critical challenges: the Identifier Gap, where arbitrary docids (e.g., "doc_1234") do not align with pre-trained language model (PLM) vocabularies, and the Training-Inference Discrepancy, where models struggle with the shift from document-query association during training to query-only input during inference.

The TOME Architecture

TOME (TwO-stage Model-based rEtrieval) addresses these issues through two primary innovations. First, it utilizes tokenized URLs as identifiers. Unlike random strings, URLs contain natural language tokens (e.g., wikipedia.org/wiki/Nevada) that are already present in the PLM's vocabulary, bridging the semantic gap. Second, it employs a two-stage generation architecture to create a semantic buffer between the query and the final identifier.

Figure 1: The TOME two-stage generation architecture, mapping a query to a passage and then to a URL.

In the first stage, the model generates a relevant passage from the corpus based on the query, forcing it to memorize document content. In the second stage, a separate model maps this generated passage to its corresponding URL. This intermediate step acts as a "semantic bridge," allowing the system to tolerate minor errors in passage generation while still identifying the correct document.

Experimental Results

The effectiveness of TOME was evaluated on the MS MARCO and Natural Questions (NQ320K) benchmarks. On MS MARCO, TOME was tested across various corpus scales, from 100K passages to the full 8.8M set.

Table 1: Performance comparison of TOME against baseline methods on MS MARCO across different corpus scales.

As shown in Table 1, TOME significantly outperforms previous model-based methods like DSI and DSI-QG. On the MS MARCO 100K subset, TOME achieved a Hits@1 of 71.93, surpassing DSI-QG's 65.64. Furthermore, the two-stage approach consistently outperformed a single-stage (Query -> URL) baseline, validating the importance of the intermediate passage generation step. On NQ320K, TOME reached 66.64 Hits@1, outperforming both DSI-QG and the ngram-based SEAL.

Discussion and Scaling Laws

Analysis reveals that URLs serve as "natural" docids, leveraging the model's pre-trained knowledge. Qualitative studies showed that the URL generation stage is highly robust to noise in the generated passages. Additionally, the researchers investigated scaling laws, finding that larger models (e.g., T5-3B) not only perform better but also converge faster as corpus size increases. To handle larger corpora, strategies such as query augmentation and passage length reduction were employed to maintain efficiency.

Conclusion

TOME represents a significant step forward for generative retrieval by aligning docids with natural language and introducing a robust two-stage generation process. While it currently lags behind the most advanced dense retrievers on full-scale datasets and requires substantial computational resources, its ability to simplify the retrieval pipeline and capture deep semantic relevance makes it a compelling direction for future research in information retrieval.

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