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

GRAG:图检索增强生成

GRAG: Graph Retrieval-Augmented Generation

Yuntong Hu, Zhihan Lei, Zheng Zhang, Bo Pan, Chen Ling, Liang Zhao

AI总结:

针对朴素RAG难以处理网络化文档的问题,提出GRAG方法,通过分治策略高效检索文本子图,并利用文本与图双视图将拓扑信息整合进LLMs,在多跳推理任务上显著超越现有RAG方法。

摘要:

朴素检索增强生成(RAG)在检索时侧重于单个文档,因此在处理网络化文档时存在不足,而这类文档在引用图、社交媒体和知识图谱等许多应用中非常普遍。为了克服这一局限性,我们提出了图检索增强生成(GRAG),旨在解决检索文本子图以及将联合文本与拓扑信息整合进大语言模型(LLMs)以增强其生成能力时所面临的基础性挑战。为了实现高效的文本子图检索,我们提出了一种新颖的分治策略,能够在线性时间内检索出最优的子图结构。为了实现图上下文感知的生成,我们通过文本视图和图视图这两个互补的视角将文本图整合进LLMs中,使LLMs能够更有效地理解并利用图上下文。在图推理基准上的大量实验表明,在需要对文本图进行多跳推理的场景中,我们的GRAG方法显著优于当前最先进的RAG方法。GRAG的数据集和代码可在 https://github.com/HuieL/GRAG 获取。

英文摘要:

Naive Retrieval-Augmented Generation (RAG) focuses on individual documents during retrieval and, as a result, falls short in handling networked documents which are very popular in many applications such as citation graphs, social media, and knowledge graphs. To overcome this limitation, we introduce Graph Retrieval-Augmented Generation (GRAG), which tackles the fundamental challenges in retrieving textual subgraphs and integrating the joint textual and topological information into Large Language Models (LLMs) to enhance its generation. To enable efficient textual subgraph retrieval, we propose a novel divide-and-conquer strategy that retrieves the optimal subgraph structure in linear time. To achieve graph context-aware generation, incorporate textual graphs into LLMs through two complementary views-the text view and the graph view-enabling LLMs to more effectively comprehend and utilize the graph context. Extensive experiments on graph reasoning benchmarks demonstrate that in scenarios requiring multi-hop reasoning on textual graphs, our GRAG approach significantly outperforms current state-of-the-art RAG methods. Our datasets as well as codes of GRAG are available at https://github.com/HuieL/GRAG.

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

↑