The Power of Noise: Redefining Retrieval for RAG Systems
Сила шума: переосмысление поиска для систем RAG
2024-07-10
SCID: 54.1/ackvgfta
Discuss with AI
information retrievallarge language modelsrandom documentsretrieval strategyretrieval-augmented generation
Figures from the paper
Abstract (AI)
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.
Key Findings
1
Adding random documents to the prompt can improve language-model accuracy by up to 35%, revealing a counter-intuitive benefit of retrieval noise.
2
Highest-scoring retrieved documents that are not directly relevant to the query can negatively affect the language model’s effectiveness.
3
RAG effectiveness depends on multiple retrieval-context factors, including passage relevance, passage position, and the number of passages supplied.
4
The findings demonstrate that retrieval integration strategies require careful investigation beyond conventional relevance ranking.
5
The study provides the first comprehensive, systematic examination of retrieval strategies in Retrieval-Augmented Generation systems.
Research Object
retrieval-augmented generation (RAG) systems
Research Subject
the effects of retrieved passage relevance, position, and number—including irrelevant and random passages—on large language model effectiveness and accuracy
Publication Details
Publication Date
2024-07-10
Journal
Publisher
ISSN
Cited by
205
Open access PDF
Access Type
Author Information
Download PDF
Subscribe to digest