arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14192cs.CLcs.AI
收藏

为何检索增强生成失败:一种图视角

Why Retrieval-Augmented Generation Fails: A Graph Perspective

Michigan State University(密歇根州立大学);Massachusetts Institute of Technology(麻省理工学院)

Kai Guo, Xinnan Dai, Zhibo Zhang, Nuohan Lin, Shenglai Zeng, Jie Ren, Haoyu Han, Jiliang Tang

AI总结:

本文从图视角分析检索增强生成失败原因,发现正确回答具有更深层推理路径和更分布的证据流,而失败回答则表现出碎片化和集中化的证据流。

摘要:

检索增强生成(RAG)通过检索证据来增强大语言模型的生成能力,但仍然在许多情况下产生错误答案。本文从模型内部研究检索增强生成,通过电路追踪构建归因图,分析信息在Transformer层中的流动。这些图展示了检索上下文、中间模型激活和生成令牌之间的交互,揭示了外部证据如何整合到模型推理过程中。我们观察到正确预测具有更深层的推理路径、更分布的证据流和更结构化的局部连接,而失败预测则表现出更浅层、碎片化和过于集中的证据流。基于这些发现,我们开发了基于归因图拓扑特征的错误检测框架,并展示了归因图能够实现有针对性的干预。通过强化问题约束的证据 grounding,我们重塑内部路由,使答案生成仍受问题引导,从而更有效地整合检索信息并减少错误。

英文摘要:

Retrieval-Augmented Generation (RAG) has become a powerful and widely used approach for improving large language models by grounding generation in retrieved evidence. However, RAG systems still produce incorrect answers in many cases. Why RAG fails despite having access to external information remains poorly understood. We present a model-internal study of retrieval-augmented generation that examines how retrieved evidence influences answer generation. Using circuit tracing, we construct attribution graphs that model the flow of information through transformer layers during decoding. These graphs represent interactions among retrieved context, intermediate model activations, and generated tokens, providing a graph, circuit-level view of how external evidence is integrated into the model's reasoning process across multiple question answering benchmarks, we observe consistent structural differences: correct predictions exhibit deeper reasoning paths, more distributed evidence flow, and a more structured pattern of local connectivity, while failed predictions show shallower, fragmented, and overly concentrated evidence flow. Building on these findings, we develop a graph-based error detection framework that uses attribution-graph topology features. Furthermore, we show that attribution graphs enable targeted interventions. By reinforcing question-constrained evidence grounding, we reshape internal routing so that answer generation remains guided by the question, leading to more effective integration of retrieved information and fewer errors.

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

↑