Introduction
Dense Passage Retrieval (DPR) has become a foundational component in modern information retrieval and Retrieval-Augmented Generation (RAG) systems. Despite its success, DPR models often struggle with the "semantic gap"—the linguistic discrepancy between user queries and document content. While Large Language Models (LLMs) can bridge this gap through document expansion (generating synthetic queries to enrich document representations), the computational cost of applying LLMs to millions of documents during indexing or search is often prohibitive. This paper proposes a novel framework that integrates LLM-based document expansion directly into the pre-training phase, transferring LLM "world knowledge" into a lightweight retriever without incurring online latency.
Methodology
The core innovation lies in moving the expensive LLM inference step from the retrieval stage to the pre-training stage. By generating high-quality synthetic datasets, the authors train the retriever to anticipate human-like queries.
LLM-Based Query Generation
The researchers utilized two primary models for synthetic data generation: Alpaca-LLaMA and tk-Instruct. These models were prompted to generate ten diverse search queries for each passage in the target corpus. This process transforms static text into a rich set of query-passage pairs that capture various facets of the document's information.
As shown in the figure above, the prompting strategies differ between models. LLaMA uses a direct instruction format, while tk-Instruct utilizes a more structured "Definition and Positive Example" approach to ensure query quality and relevance.
Pre-training Paradigms
Two distinct pre-training objectives were evaluated:
- Contrastive Pre-training: The model is trained to minimize the distance between a document and its synthetic queries in the vector space while maximizing the distance from unrelated "negative" documents.
- Bottlenecked Query Generation: Utilizing an encoder-decoder architecture, the encoder compresses a document into a single vector (the [CLS] token). The decoder is then tasked with reconstructing the LLM-generated queries from this bottlenecked representation, forcing the encoder to capture the most salient semantic features.
Two-Stage Curriculum Learning
To address the computational burden of LLM generation, the authors introduced a two-stage curriculum. Pre-training begins with "coarse-grained" data—simple, inexpensive random text spans. In the final stages, the model is refined using "fine-grained" LLM-generated queries. This approach allows the model to achieve state-of-the-art performance using 20x fewer LLM-processed documents compared to a full-corpus approach.
Experimental Results
The proposed method was evaluated on the MS-MARCO benchmark and the BEIR (Benchmarking IR) suite.
Zero-Shot Performance
One of the most significant findings was the model's zero-shot capability. Without any human-labeled training data, the contrastive pre-trained model (using Alpaca 13B queries) improved its MRR@10 on MS-MARCO from a baseline of 12.5 to 22.7—an 82% relative gain. This suggests that LLM-based pre-training effectively teaches the model the "intent" behind search queries.
State-of-the-Art Fine-Tuning
When fully fine-tuned on human labels, the model achieved an MRR@10 of 40.3 on MS-MARCO. This result outperforms established baselines such as RetroMAE and coCondenser, setting a new standard for dense retrievers.
Generalization and Robustness
On the BEIR benchmark, which tests out-of-domain performance across diverse fields like medicine and finance, the model showed substantial improvements. For instance, it achieved a +38.5 point gain on the TREC-COVID dataset, demonstrating that the "world knowledge" inherited from the LLM during pre-training generalizes well to niche domains.
Conclusion
By shifting LLM-based document expansion to the pre-training phase, this research provides a scalable way to enhance dense retrievers. The combination of synthetic query generation and curriculum learning allows for the creation of highly effective models that maintain the efficiency required for large-scale production environments. Future work may explore the impact of even larger LLMs, such as GPT-4 or LLaMA 2, and more advanced prompt engineering to further refine the pre-training signal.
Summary updated