arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.13249cs.CLcs.AIcs.IR
收藏

R^2AG:将检索信息融入检索增强生成

R^2AG: Incorporating Retrieval Information into Retrieval Augmented Generation

School of Computer Science, South China Normal University(华南师范大学计算机学院);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学)

Fuda Ye, Shuangyin Li, Yongqi Zhang, Lei Chen

AI总结:

针对大语言模型与检索器间的语义鸿沟问题,提出新型增强RAG框架R^2AG,通过R^2-Former捕获检索信息并结合检索感知提示策略,在低资源冻结场景下经五个数据集验证有效提升生成效果。

摘要:

检索增强生成(RAG)已被应用于众多场景,通过检索器提供的外部文档来增强大语言模型(LLM)的能力。然而,由于训练目标和架构存在差异,LLM与检索器之间存在语义鸿沟。这种错位迫使LLM被动接受检索器提供的文档,导致生成过程中出现理解偏差,LLM需要依靠自身固有知识承担区分这些文档的任务。本文提出R$^2$AG,这是一种新型增强型RAG框架,通过将检索信息融入检索增强生成来填补这一鸿沟。具体而言,R$^2$AG利用检索器的细粒度特征,并采用R$^2$-Former捕获检索信息。随后,设计了一种检索感知提示策略,将检索信息整合到LLM的生成过程中。值得注意的是,R$^2$AG适用于LLM和检索器均被冻结的低资源场景。在五个数据集上开展的大量实验验证了R$^2$AG的有效性、鲁棒性和效率。我们的分析表明,检索信息可作为锚点辅助LLM的生成过程,从而填补语义鸿沟。

英文摘要:

Retrieval augmented generation (RAG) has been applied in many scenarios to augment large language models (LLMs) with external documents provided by retrievers. However, a semantic gap exists between LLMs and retrievers due to differences in their training objectives and architectures. This misalignment forces LLMs to passively accept the documents provided by the retrievers, leading to incomprehension in the generation process, where the LLMs are burdened with the task of distinguishing these documents using their inherent knowledge. This paper proposes R$^2$AG, a novel enhanced RAG framework to fill this gap by incorporating Retrieval information into Retrieval Augmented Generation. Specifically, R$^2$AG utilizes the nuanced features from the retrievers and employs a R$^2$-Former to capture retrieval information. Then, a retrieval-aware prompting strategy is designed to integrate retrieval information into LLMs' generation. Notably, R$^2$AG suits low-source scenarios where LLMs and retrievers are frozen. Extensive experiments across five datasets validate the effectiveness, robustness, and efficiency of R$^2$AG. Our analysis reveals that retrieval information serves as an anchor to aid LLMs in the generation process, thereby filling the semantic gap.

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

↑