arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.14887cs.IRcs.CL
收藏

噪声的力量:重新定义 RAG 系统的检索

The Power of Noise: Redefining Retrieval for RAG Systems

Sapienza University of Rome(罗马第一大学);Technology Innovation Institute(技术创新研究院);University of Pisa(比萨大学)

Florin Cuconasu, Giovanni Trappolini, Federico Siciliano, Simone Filice, Cesare Campagnano, Yoelle Maarek, Nicola Tonellotto, Fabrizio Silvestri

AI总结:

本文首次系统考察RAG系统的检索策略,发现与查询不直接相关的最高分文档会损害大语言模型效果,而在提示中加入随机文档反而可将准确率提升高达35%,揭示了重新定义检索策略的必要性。

摘要:

检索增强生成(RAG)最近作为一种扩展大语言模型预训练知识的方法而出现,其方式是通过信息检索(IR)系统检索到的相关段落或文档来增强原始提示。RAG 对生成式人工智能解决方案日益重要,尤其是在企业环境中,或在知识不断更新且无法在大语言模型中记忆的任何领域中。我们在此提出,RAG 系统的检索组件,无论是稠密检索还是稀疏检索,都值得研究界给予更多关注,因此,我们对 RAG 系统的检索策略进行了首次全面且系统的考察。我们特别关注 RAG 解决方案中的 IR 系统应当检索哪类段落。我们的分析考虑了多个因素,例如提示上下文中包含的段落的相关性、它们的位置以及它们的数量。本项工作一个反直觉的发现是,检索器给出的与查询不直接相关(例如不包含答案)的最高分文档会对大语言模型的有效性产生负面影响。更令人惊讶的是,我们发现,在提示中加入随机文档可将大语言模型的准确率提高多达35%。这些结果凸显了在将检索与大语言模型集成时研究适当策略的必要性,从而为该领域的未来研究奠定了基础。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑