Introduction
Dense retrieval has become the cornerstone of modern search systems, moving beyond keyword matching to semantic vector representations. Historically, encoder-only models like BERT and T5 defined the state-of-the-art. However, these architectures face a "capacity ceiling," struggling with zero-shot generalization to new domains, long-form document processing, and complex instruction following. This study investigates whether Large Language Models (LLMs) can serve as superior foundations for dense retrieval, systematically deconstructing the factors—scaling, pre-training, and alignment—that drive their performance.
Methodology
The researchers evaluated over 15 backbone encoders, spanning from 0.1B to 32B parameters, including families such as Llama-2/3, Qwen1.5, Phi, and Gemma. To adapt these generative models for retrieval, the authors employed Low-Rank Adaptation (LoRA), a parameter-efficient fine-tuning technique. The evaluation framework covered six dimensions: in-domain accuracy (MS MARCO), zero-shot generalization (BEIR), data efficiency, lengthy retrieval (NarrativeQA), instruction-following, and multi-task learning.
Results and Analysis
In-Domain Performance and Scaling
A primary finding is that retrieval performance correlates strongly with model size and pre-training sufficiency. As shown in Figure 3, larger LLMs significantly outperform traditional encoders. For instance, Qwen1.5-32B achieved an MRR@10 of 42.6 on MS MARCO, a substantial improvement over the 33.8 recorded for BERT-large.
Generalization and Data Efficiency
LLMs demonstrate remarkable zero-shot capabilities. On the BEIR benchmark, Llama-3-8B reached an average NDCG@10 of 51.4, far exceeding BERT-large's 42.2. Furthermore, LLMs are highly data-efficient; Llama-2-7B can surpass a fully-trained BERT-large model after only a fraction of the training steps, suggesting that the extensive pre-training of LLMs provides a superior starting point for retrieval tasks.
Handling Long Contexts
One of the most significant advantages of LLMs is their ability to handle long documents. While BERT is limited to 512 tokens, LLMs pre-trained with large context windows naturally generalize to longer sequences during retrieval. Figure 1 illustrates this trend on the NarrativeQA dataset, where performance improves as the test length increases up to 8,192 tokens.
Instruction Following and Multi-Tasking
The study found that LLM-based retrievers benefit from specific search instructions, whereas traditional models often see performance degradation when queries become more descriptive. Additionally, larger models proved more resilient to "task interference" during multi-task training, maintaining high performance across diverse intents like conversational search and multi-hop reasoning.
Conclusion
This empirical assessment confirms that LLMs represent a significant leap forward for dense retrieval. Their ability to scale with data and model size, handle long contexts natively, and follow complex instructions makes them ideal candidates for next-generation search engines. While computational costs remain a consideration for real-time deployment, the performance gains in accuracy and generalization are undeniable. Future work will focus on optimizing the efficiency of these large-scale retrievers and exploring their robustness in multilingual and noisy environments.
Summary updated