Retrieval-Augmented Retrieval: Large Language Models are Strong Zero-Shot Retriever

Tao Shen, Guodong Long, Xiubo Geng, Chongyang Tao, Yibin Lei, Tianyi Zhou, Michael Blumenstein, Daxin Jiang

Introduction

In the field of Information Retrieval (IR), "zero-shot" scenarios represent a significant challenge. These situations occur when a system must search a massive document collection—such as a specialized medical database or a new corporate wiki—without any human-labeled examples for training.

Traditional methods like BM25 rely on literal keyword matching, which often fails to capture semantic context. Conversely, modern "dense retrievers" use neural networks to understand meaning but frequently struggle in zero-shot settings because they lack exposure to the specific vocabulary or "vibe" of the target dataset. Recent attempts to leverage Large Language Models (LLMs) for query expansion, such as HyDE, involve asking the LLM to generate a hypothetical answer to a query. However, this often leads to hallucinations or "toxic" query expansions that do not match the style of the target database, ultimately degrading search performance.

The LameR Framework

To address these issues, researchers introduced LameR (Large language model as Retriever), a pipeline that utilizes a "Retrieval-Augmented Retrieval" process. Instead of generating answers in a vacuum, LameR provides the LLM with context from the target database itself.

The LameR pipeline: A two-stage retrieval process using BM25 for candidate selection and LLMs for query augmentation.

The LameR process consists of four main steps:

  1. Candidate Retrieval: A fast, initial search using BM25 retrieves the top 10 candidate snippets from the actual target collection.
  2. Candidate-Prompted Generation: The original query and these 10 candidates are fed into the LLM. The prompt instructs the LLM to synthesize a correct answer based on these potentially relevant (or even incorrect) snippets.
  3. Query Augmentation: The LLM generates multiple potential answers, which are concatenated with the original query to form an augmented "super-query."
  4. Final Retrieval: This augmented query is used for the final search against the collection using a transparent lexicon-based method like BM25.

Key Insights and Ideas

The "In-Domain" Advantage

A core innovation of LameR is using retrieved candidates as in-context demonstrations. Even if the first-pass results are not perfectly accurate, they show the LLM the specific "genre," domain-specific units, and stylistic conventions of the database. This prevents out-of-domain hallucinations and ensures the generated expansion is grounded in the target collection's reality.

Performance (nDCG@10) on DL19 as a function of the number of passages retrieved for the demonstration prompt.

Bypassing the Neural Bottleneck

The researchers found that self-supervised dense retrievers (like Contriever) can act as a bottleneck because they compress information into fixed vectors, losing the nuance of the LLM's generated text. By using BM25 for the final step, the retrieval procedure remains "transparent" to the LLM, allowing its internal knowledge to be matched directly against the index.

Key Results

LameR sets a new benchmark for zero-shot retrieval performance:

  • Outperforming HyDE: On the DL19 dataset, LameR achieved an nDCG@10 of 69.1, significantly surpassing the previous state-of-the-art LLM method, HyDE (61.3).
  • Surpassing Supervised Models: Remarkably, this zero-shot method outperformed several models fully supervised on the MS-MARCO training set, including DPR and ANCE.
  • Scaling with Model Intelligence: Performance improved as the underlying LLM was upgraded. Using GPT-4, LameR reached an nDCG@10 of 65.9 on the DL20 dataset.
  • Efficiency: Despite the two-stage approach, LameR remains efficient in terms of latency and storage because it relies on fast BM25 indexing rather than heavy dense retrieval systems.

Limitations and Future Work

While powerful, LameR is sensitive to prompt engineering and the computational cost of calling high-end LLMs like GPT-4 for every query. Additionally, the current implementation uses document truncation (128 tokens) to maintain efficiency, which may impact performance on datasets with longer documents. Future research will explore using smaller, specialized LLMs to reduce costs and methods to better handle "hard negatives" during the prompting stage.

Summary updated

BibTeX
@inproceedings{shen2024retrieval,
  author = {Tao Shen and Guodong Long and Xiubo Geng and Chongyang Tao and Yibin Lei and Tianyi Zhou and Michael Blumenstein and Daxin Jiang},
  title = {{Retrieval-Augmented Retrieval: Large Language Models are Strong Zero-Shot Retriever}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.943},
}
Figure