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

在需要时使用图:高效且适应性地整合检索增强生成与图

Use Graph When It Needs: Efficiently and Adaptively Integrating Retrieval-Augmented Generation with Graphs

The Hong Kong Polytechnic University(香港理工大学)

Su Dong, Qinggang Zhang, Yilin Xiao, Shengyuan Chen, Chuang Zhou, Xiao Huang

AI总结:

本文提出EA-GraphRAG框架,通过动态整合RAG和GraphRAG,根据查询复杂度灵活选择检索策略,提升处理混合场景的准确性和效率。

摘要:

大型语言模型(LLMs)常常在知识密集型任务中遇到困难,因为存在幻觉和过时的参数知识。虽然检索增强生成(RAG)通过整合外部语料库来解决这个问题,但其效果受到无结构领域文档中碎片化信息的限制。图增强RAG(GraphRAG)出现以通过结构化知识图来增强上下文推理,然而 paradoxically 在现实场景中表现不佳,尽管在复杂查询上有所提升,却表现出显著的准确率下降和可接受的延迟。我们发现将GraphRAG应用于所有查询,无论复杂度如何,是根本原因。为了解决这个问题,我们提出了一种高效且适应性的GraphRAG框架,称为EA-GraphRAG,通过语法感知的复杂度分析动态整合RAG和GraphRAG范式。我们的方法引入:(i)一个语法特征构造器,解析每个查询并提取一组结构特征;(ii)一个轻量级复杂度评分器,将这些特征映射到连续复杂度评分;(iii)一个基于评分的路由策略,选择密集RAG处理低评分查询,调用基于图的检索处理高评分查询,并应用复杂度感知的反向排名融合处理边缘情况。在包含两个单跳和两个多跳问答基准的全面基准上进行了广泛的实验,证明我们的EA-GraphRAG显著提高了准确性,减少了延迟,并在处理同时包含简单和复杂查询的混合场景中实现了最先进的性能。

英文摘要:

Large language models (LLMs) often struggle with knowledge-intensive tasks due to hallucinations and outdated parametric knowledge. While Retrieval-Augmented Generation (RAG) addresses this by integrating external corpora, its effectiveness is limited by fragmented information in unstructured domain documents. Graph-augmented RAG (GraphRAG) emerged to enhance contextual reasoning through structured knowledge graphs, yet paradoxically underperforms vanilla RAG in real-world scenarios, exhibiting significant accuracy drops and prohibitive latency despite gains on complex queries. We identify the rigid application of GraphRAG to all queries, regardless of complexity, as the root cause. To resolve this, we propose an efficient and adaptive GraphRAG framework called EA-GraphRAG that dynamically integrates RAG and GraphRAG paradigms through syntax-aware complexity analysis. Our approach introduces: (i) a syntactic feature constructor that parses each query and extracts a set of structural features; (ii) a lightweight complexity scorer that maps these features to a continuous complexity score; and (iii) a score-driven routing policy that selects dense RAG for low-score queries, invokes graph-based retrieval for high-score queries, and applies complexity-aware reciprocal rank fusion to handle borderline cases. Extensive experiments on a comprehensive benchmark, consisting of two single-hop and two multi-hop QA benchmarks, demonstrate that our EA-GraphRAG significantly improves accuracy, reduces latency, and achieves state-of-the-art performance in handling mixed scenarios involving both simple and complex queries.

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

↑