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

潘多拉魔盒还是阿拉丁神灯:揭示RAG噪声在大语言模型中作用的综合分析

Pandora's Box or Aladdin's Lamp: A Comprehensive Analysis Revealing the Role of RAG Noise in Large Language Models

Department of Automation, Tsinghua University(自动化系,清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心)

Jinyang Wu, Shuai Zhang, Feihu Che, Mingkuan Feng, Chuyuan Zhang, Pengpeng Shao, Jianhua Tao

AI总结:

本文从语言学视角定义七种RAG噪声类型并构建NoiserBench评估框架,通过对八种LLMs的实证分析,揭示噪声可分为有益与有害两类,有益噪声可增强模型能力,为开发更稳健的RAG解决方案提供见解。

摘要:

检索增强生成(RAG)已成为解决大语言模型(LLMs)幻觉问题的关键方法。尽管近期研究将RAG模型扩展至复杂噪声场景,但这些探索往往局限于有限的噪声类型,并预设噪声对LLMs本质上是有害的,这可能偏离实际检索环境并限制实用性。本文从语言学视角定义了七种不同噪声类型,并建立了Noise RAG Benchmark(NoiserBench),这是一个涵盖多个数据集和推理任务的综合评估框架。通过对八种具有不同架构和规模的代表性LLMs进行实证评估,我们发现这些噪声可进一步分为两组:对LLMs有益的噪声(即有益噪声)和对LLMs有害的噪声(即有害噪声)。有害噪声通常会损害性能,而有益噪声可能增强模型能力的多个方面及整体性能。我们的分析为开发更稳健、适应性更强的RAG解决方案及在多样检索场景中缓解幻觉提供了见解。代码可在https://github.com/jinyangwu/NoiserBench获取。

英文摘要:

Retrieval-Augmented Generation (RAG) has emerged as a crucial method for addressing hallucinations in large language models (LLMs). While recent research has extended RAG models to complex noisy scenarios, these explorations often confine themselves to limited noise types and presuppose that noise is inherently detrimental to LLMs, potentially deviating from real-world retrieval environments and restricting practical applicability. In this paper, we define seven distinct noise types from a linguistic perspective and establish a Noise RAG Benchmark (NoiserBench), a comprehensive evaluation framework encompassing multiple datasets and reasoning tasks. Through empirical evaluation of eight representative LLMs with diverse architectures and scales, we reveal that these noises can be further categorized into two practical groups: noise that is beneficial to LLMs (aka beneficial noise) and noise that is harmful to LLMs (aka harmful noise). While harmful noise generally impairs performance, beneficial noise may enhance several aspects of model capabilities and overall performance. Our analysis offers insights for developing more robust, adaptable RAG solutions and mitigating hallucinations across diverse retrieval scenarios. Code is available at https://github.com/jinyangwu/NoiserBench.

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

↑