用多智能体记忆系统构建更连贯的图谱,提升复杂查询的准确率。
MemGraphRAG: Memory-based Multi-Agent System for Graph Retrieval-Augmented Generation

- 多智能体共享记忆,全局协同构建知识图谱
- 在多个基准上超越现有模型,性能提升显著
- 适合需要精准推理的复杂问答场景
检索增强生成(RAG)通过引入外部知识缓解大语言模型的幻觉问题。传统RAG在大规模非结构化语料上表现不佳,因信息高度碎片化。基于图谱的RAG(GraphRAG)虽能捕捉结构关系,但现有方法依赖孤立的片段级抽取,缺乏全局视角,导致图谱主题不一致、逻辑冲突、结构断裂,影响检索效果。本文提出MemGraphRAG,一种基于记忆的多智能体系统,通过共享记忆实现全篇统一上下文,使智能体动态解决逻辑矛盾并保持结构连贯性。此外,设计了面向构建图谱的记忆感知分层检索算法。在多个基准上的实验表明,MemGraphRAG在性能上优于当前最优基线模型,效率相当。代码已开源:https://github.com/XMUDeepLIT/MemGraphRAG。
原文摘要 · Abstract (English)
Retrieval-Augmented Generation (RAG) has become an essential method for mitigating hallucinations in Large Language Models (LLMs) by leveraging external knowledge. Although effective for simple queries, traditional RAG struggles with large-scale, unstructured corpora where information is highly fragmented. Graph-based RAG (GraphRAG) incorporates knowledge graphs to capture structural relationships, enabling more comprehensive retrieval for complex reasoning. However, existing GraphRAG methods rely on isolated, fragment-level extraction for graph construction, lacking a global perspective on the whole corpus. As a result, these methods frequently lead to thematically inconsistent, logically conflicting, and structurally fragmented graphs that degrade retrieval performance. In this paper, we propose MemGraphRAG, a novel framework that introduces a memory-based multi-agent system to ensure high-quality graph construction. Specifically, MemGraphRAG employs a collaborative society of agents supported by shared memory, which provides a unified global context throughout the extraction process. This mechanism allows agents to dynamically resolve logical conflicts and maintain structural connectivity throughout the corpus. Furthermore, we propose a memory-aware hierarchical retrieval algorithm tailored for the constructed graph. Extensive experiments on multiple benchmarks demonstrate that MemGraphRAG outperforms the state-of-the-art baseline models with comparable efficiency. Our code is available at https://github.com/XMUDeepLIT/MemGraphRAG.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。