{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2606-00610","title":"MemGraphRAG: Memory-based Multi-Agent System for Graph Retrieval-Augmented Generation","arxiv_id":"2606.00610","date":"2026-05-30","proceeding":null,"authors":["Chuanjie Wu","Zhishang Xiang","Yunbo Tang","Zerui Chen","Qinggang Zhang","Jinsong Su"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2606.00610","url_pdf":"https://arxiv.org/pdf/2606.00610","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2606.00610","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.00610"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/XMUDeepLIT/MemGraphRAG","reach":null}],"summary":{"ran":5,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":7,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"29a45b7da8401ed8","entry":"load_openie_results","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/Memory.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/Memory.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"29a45b7da8401ed8"}},{"code_sha256_prefix":"24b1b1fe74f82908","entry":"make_cache_embed","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/embedding_model/base.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/embedding_model/base.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24b1b1fe74f82908"}},{"code_sha256_prefix":"fe0e2df4d9cb5edd","entry":"mean_pooling","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/embedding_model/Contriever.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/embedding_model/Contriever.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe0e2df4d9cb5edd"}},{"code_sha256_prefix":"482812b35d0ebc18","entry":"mean_pooling","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/embedding_model/BGE.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/embedding_model/BGE.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"482812b35d0ebc18"}},{"code_sha256_prefix":"5231d69fb74ea349","entry":"resolve_bge_large_en_v15_repo","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/embedding_model/BGE.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/embedding_model/BGE.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5231d69fb74ea349"}},{"code_sha256_prefix":"5d30b7275852c019","entry":"split_text","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/index.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/index.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d30b7275852c019"}},{"code_sha256_prefix":"795865289a7a214f","entry":"build_two_layer_memory_from_raw_openie","repo":"XMUDeepLIT/MemGraphRAG","repo_kind":"found_in_text","path":"code/src/Memory.py","file_url":"https://github.com/XMUDeepLIT/MemGraphRAG/blob/HEAD/code/src/Memory.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"795865289a7a214f"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.AI","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}