Large Language Models as Foundations for Next-Gen Dense Retrieval: A Comprehensive Empirical Assessment

Kun Luo, Minghao Qin, Zheng Liu, Shitao Xiao, Jun Zhao, Kang Liu · DOI

Abstract

Traditional dense retrieval systems have long relied on small-scale pre-trained encoders such as BERT and T5. However, these models often encounter a capacity ceiling, limiting their performance in zero-shot generalization and long-context scenarios. This paper presents an extensive empirical study of over 15 models, ranging from 0.1B to 32B parameters, to evaluate Large Language Models (LLMs) as backbones for dense retrieval. Our findings indicate that LLMs significantly surpass traditional encoders in accuracy, data efficiency, and the ability to follow natural language instructions.

Introduction

Dense retrieval involves mapping queries and documents into a shared vector space to facilitate semantic matching. While BERT-based models have been the standard, they struggle with domain shifts, lengthy documents, and diverse search intents. This research systematically explores how parameter scaling, pre-training volume, and model architecture influence retrieval performance, providing a roadmap for the next generation of retrieval systems.

Methodology

The study evaluates a diverse set of backbone encoders, including BERT, T5, and modern LLM series such as Llama, Phi, Gemma, and Qwen.

  • Architecture: The assessment covers encoder-only, encoder-decoder, and decoder-only structures.
  • Fine-tuning: Models were optimized using InfoNCE loss with hard negatives. To manage the computational demands of larger models, Low-Rank Adaptation (LoRA) was employed.
  • Evaluation Framework: Performance was measured across six dimensions: in-domain accuracy (MS MARCO), zero-shot generalization (BEIR), data efficiency, lengthy retrieval (NarrativeQA), instruction following, and multi-task learning.

Key Insights and Ideas

The Data Efficiency Advantage

One of the most significant findings is the correlation between model scale and data efficiency. Larger models require substantially fewer labeled examples to achieve high performance. For instance, a 7B Llama-2 model surpasses the peak accuracy of a fully trained BERT model after only a fraction of the training steps.

Comparison of data efficiency between BERT-large, Llama2-7b, and Qwen-0.5b on MS MARCO.

Scaling for Generalization

While both model size and pre-training data contribute to in-domain success, parameter count is the primary driver for zero-shot generalization. Larger LLMs leverage their extensive "world knowledge" to navigate niche domains, such as legal or medical texts, without requiring domain-specific fine-tuning.

Instruction Following and Multi-tasking

LLMs demonstrate a unique ability to utilize natural language search instructions to refine retrieval. Conversely, smaller models like BERT often experience performance degradation when presented with such instructions. Furthermore, larger LLMs effectively mitigate "task interference" during multi-task training, allowing a single model to handle various retrieval intents simultaneously.

Key Results

In-domain and Zero-shot Superiority

The empirical results highlight a clear performance gap. Qwen1.5-32B achieved a state-of-the-art MRR@10 of 42.6 on MS MARCO, significantly outperforming BERT-large (33.8). Even smaller modern models, such as Qwen-0.5B, demonstrated superior zero-shot performance on the BEIR benchmark compared to older, larger architectures.

In-domain accuracy (MRR@10) on MS MARCO across various model architectures and sizes.

Long-Context Capabilities

On the NarrativeQA benchmark, Llama-3-8B maintained robust performance across context windows up to 8,192 tokens. In contrast, traditional encoders like BERT are constrained by a 512-token limit, making them unsuitable for long-form document retrieval.

Conclusion

This study confirms that LLMs provide a superior foundation for dense retrieval. Their ability to scale performance with data efficiency and handle complex instructions marks a paradigm shift from traditional BERT-based approaches. While inference costs remain a challenge, the gains in accuracy and flexibility position LLMs as the definitive choice for future retrieval architectures. Future research should focus on optimizing these models for production environments and exploring specialized pre-training objectives.

Summary updated

BibTeX
@inproceedings{luo2024large,
  author = {Kun Luo and Minghao Qin and Zheng Liu and Shitao Xiao and Jun Zhao and Kang Liu},
  title = {{Large Language Models as Foundations for Next-Gen Dense Retrieval: A Comprehensive Empirical Assessment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.80},
}
Figure