Retrieval

The Power of Noise: Redefining Retrieval in RAG

First page
The Power of Noise: Redefining Retrieval in RAG
Paper summary

A study stress-testing the retriever component of RAG systems with surprising results about what actually helps generation.

Ask this paper

Key points
01

Position matters: Relevant documents must be placed near the query for the LLM to attend to them - bury them and the model effectively ignores the evidence.

02

Related ≠ helpful: Documents that are topically related but not directly relevant can actively hurt RAG accuracy, counter to the common "retrieve broadly" heuristic.

03

Noise can help: Adding seemingly irrelevant or noisy passages in the right positions can boost accuracy, suggesting retrieval acts partly as a distractor regularizer.

04

Design implication: Retriever design should optimize for positional placement and document distinctiveness, not just topical similarity to the query.

Abstract

Retrieval-Augmented Generation (RAG) has recently emerged as a method to extend beyond the pre-trained knowledge of Large Language Models by augmenting the original prompt with relevant passages or documents retrieved by an Information Retrieval (IR) system. RAG has become increasingly important for Generative AI solutions, especially in enterprise settings or in any domain in which knowledge is constantly refreshed and cannot be memorized in the LLM. We argue here that the retrieval component of RAG systems, be it dense or sparse, deserves increased attention from the research community, and accordingly, we conduct the first comprehensive and systematic examination of the retrieval strategy of RAG systems. We focus, in particular, on the type of passages IR systems within a RAG solution should retrieve. Our analysis considers multiple factors, such as the relevance of the passages included in the prompt context, their position, and their number. One counter-intuitive finding of this work is that the retriever's highest-scoring documents that are not directly relevant to the query (e.g., do not contain the answer) negatively impact the effectiveness of the LLM. Even more surprising, we discovered that adding random documents in the prompt improves the LLM accuracy by up to 35%. These results highlight the need to investigate the appropriate strategies when integrating retrieval with LLMs, thereby laying the groundwork for future research in this area.

Every Monday
Get next week’s papers.
Subscribe on Substack