DynamicRetriever: A Pre-training Model-based IR System with Neither Sparse nor Dense Index

Yujia Zhou, Jing Yao, Zhicheng Dou, Ledell Wu, Ji-Rong WenarXiv 2022 · DOI

Abstract

Traditional Information Retrieval (IR) systems rely on external indices, either sparse (BM25) or dense (FAISS), to bridge the gap between queries and documents. This paper introduces DynamicRetriever, a novel framework that eliminates the need for external indices by "memorizing" the document corpus directly within the model's parameters. By treating document identifiers (docids) as predictable tokens in a generative task, DynamicRetriever achieves a direct mapping from queries to documents. Experimental results on the MS MARCO dataset demonstrate that DynamicRetriever significantly outperforms state-of-the-art dense retrieval models, offering a more integrated and effective approach to end-to-end retrieval.

Introduction: Moving Beyond the Index

For decades, the standard IR pipeline has followed a multi-stage "index-retrieve-rerank" process. This approach relies on a static index—either a sparse word-count index prone to vocabulary mismatch or a dense vector index requiring complex external infrastructure. The authors argue that this "middleman" index is often disconnected from the final ranking objective.

DynamicRetriever proposes a radical shift: What if the model itself was the index? By parameterizing the index within the neural network, the system transforms retrieval into a direct generative task, where the model outputs document identifiers (docids) directly from a query.

Comparison between the traditional Dual Encoder architecture and the proposed DynamicRetriever framework.

The DynamicRetriever Framework

The architecture of DynamicRetriever consists of two primary components:

  1. PLM Encoder: A pre-trained language model (e.g., BERT) that encodes the input query into a semantic vector.
  2. Docid Decoder: A projection matrix where each row corresponds to a unique document identifier (docid) in the corpus.

During inference, the model calculates a probability distribution over the entire docid vocabulary and retrieves the most likely documents. This end-to-end approach allows the model to learn document-level features—such as authority or popularity—that are difficult to capture with traditional term-based matching.

Training Strategies: Vanilla and OverDense

To effectively "memorize" a corpus, the authors propose two distinct training paradigms:

  • D-Vanilla: This model is trained from scratch using three self-supervised pre-training tasks: Passages (learning from text chunks), Sampled Terms (focusing on key terms), and N-grams (capturing local context).
  • D-OverDense: To address the difficulty of memorizing millions of arbitrary IDs, this version uses a "warm start." It initializes the Docid Decoder using vectors from a pre-existing dense retrieval model, providing a semantic foundation before fine-tuning on query-document pairs.
The pre-training and fine-tuning pipelines for Dense retrieval, the Vanilla DynamicRetriever, and the OverDense variant.

Experimental Evaluation

The system was evaluated on the MS MARCO dataset across various corpus sizes (100K to 300K documents).

Key Results

  • Superior Accuracy: On the 100K document subset, the D-OverDense model achieved a Recall@20 of 0.8861, outperforming the BERT-based dual-encoder baseline (0.8281) and significantly exceeding BM25 (0.5483).
  • Stability and Robustness: While the performance of the Vanilla model declined as the corpus size increased or became more diverse, the D-OverDense model remained stable, proving the value of semantic initialization for scaling.
  • Ranking Quality: Mean Reciprocal Rank (MRR) saw improvements of up to 35% over standard dense retrieval, indicating that the correct documents were ranked much higher in the results list.

Discussion and Future Directions

While DynamicRetriever offers a compelling alternative to indexed search, it faces scalability challenges related to memory. As the number of documents grows, the size of the Docid Decoder (the output layer) increases linearly.

Future research directions include:

  1. Distributed Architectures: Partitioning the corpus across multiple sub-models.
  2. Hierarchical Document Identifiers: Using structured "semantic addresses" to reduce the output space complexity.

By unifying indexing and ranking into a single model, DynamicRetriever represents a significant step toward more efficient and semantically aware information retrieval systems.

Summary updated

BibTeX
@misc{zhou2022dynamicretriever,
  author = {Yujia Zhou and Jing Yao and Zhicheng Dou and Ledell Wu and Ji-Rong Wen},
  title = {{DynamicRetriever: A Pre-training Model-based IR System with Neither Sparse nor Dense Index}},
  year = {2022},
  eprint = {2203.00537},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00537},
}
Figure