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

AGRAG: 面向大语言模型的高级图基检索增强生成框架

AGRAG: Advanced Graph-based Retrieval-Augmented Generation for LLMs

The Hong Kong University of Science(香港科学与技术大学);The Hong Kong Polytechnic University Hong Kong SAR(香港理工大学(香港特别行政区))

Yubo Wang, Haoyang Li, Fei Teng, Lei Chen

AI总结:

AGRAG通过统计方法构建图结构,解决LLM幻觉问题,并采用MCMI子图生成提升推理能力,实现更全面的推理路径,提升检索增强生成效果。

摘要:

基于图的检索增强生成(Graph-based RAG)在增强大语言模型(LLMs)的结构化知识方面展现出显著潜力。然而,现有方法面临三个关键挑战:图构建不准确,由LLM幻觉引起;推理能力薄弱,因未能生成明确的推理理由;以及回答不充分,由于LLM推理不足,使其在某些任务上的性能落后于NaiveRAG。为解决这些问题,我们提出了AGRAG,一个高级的基于图的检索增强生成框架。在构建图时,AGRAG将广泛使用的LLM实体提取方法替换为统计方法,避免幻觉和误差传播。在检索过程中,AGRAG将图推理过程建模为最小成本最大影响(MCMI)子图生成问题,尝试包含更多高影响分数的节点,但涉及更少的边成本,以生成更全面的推理路径。我们证明该问题为NP难问题,并提出贪心算法来解决。生成的MCMI子图可以作为明确的推理路径,告诉LLM为何某些片段被检索,从而使LLM更好地关注片段中与查询相关的内容,减少噪声的影响,并提高AGRAG的推理能力。此外,与简单的树状推理路径相比,我们的MCMI子图可以允许更复杂的图结构,如循环,从而提高生成推理路径的全面性。AGRAG的代码和提示已发布在:https://github.com/Wyb0627/AGRAG。

英文摘要:

Graph-based retrieval-augmented generation (Graph-based RAG) has demonstrated significant potential in enhancing Large Language Models (LLMs) with structured knowledge. However, existing methods face three critical challenges: Inaccurate Graph Construction, caused by LLM hallucination; Poor Reasoning Ability, caused by failing to generate explicit reasons telling LLM why certain chunks were selected; and Inadequate Answering, which only partially answers the query due to the inadequate LLM reasoning, making their performance lag behind NaiveRAG on certain tasks. To address these issues, we propose AGRAG, an advanced graph-based retrieval-augmented generation framework. When constructing the graph, AGRAG substitutes the widely used LLM entity extraction method with a statistics-based method, avoiding hallucination and error propagation. During retrieval, AGRAG formulates the graph reasoning procedure as the Minimum Cost Maximum Influence (MCMI) subgraph generation problem, where we try to include more nodes with high influence score, but with less involving edge cost, to make the generated reasoning paths more comprehensive. We prove this problem to be NP-hard, and propose a greedy algorithm to solve it. The MCMI subgraph generated can serve as explicit reasoning paths to tell LLM why certain chunks were retrieved, thereby making the LLM better focus on the query-related part contents of the chunks, reducing the impact of noise, and improving AGRAG's reasoning ability. Furthermore, compared with the simple tree-structured reasoning paths, our MCMI subgraph can allow more complex graph structures, such as cycles, and improve the comprehensiveness of the generated reasoning paths. The code and prompt of AGRAG are released at: https://github.com/Wyb0627/AGRAG.

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

↑