Papers › GFM-RAG: Graph Foundation Model for Retrieval Augmented Generation

GFM-RAG: Graph Foundation Model for Retrieval Augmented Generation

3 Feb 2025arXiv:2502.01113archive 2025-07-28

Linhao Luo, Zicheng Zhao, Gholamreza Haffari, Dinh Phung, Chen Gong, Shirui Pan

Retrieval-augmented generation (RAG) has proven effective in integrating knowledge into large language models (LLMs). However, conventional RAGs struggle to capture complex relationships between pieces of knowledge, limiting their performance in intricate reasoning that requires integrating knowledge from multiple sources. Recently, graph-enhanced retrieval augmented generation (GraphRAG) builds graph structure to explicitly model these relationships, enabling more effective and efficient retrievers. Nevertheless, its performance is still hindered by the noise and incompleteness within the graph structure. To address this, we introduce GFM-RAG, a novel graph foundation model (GFM) for retrieval augmented generation. GFM-RAG is powered by an innovative graph neural network that reasons over graph structure to capture complex query-knowledge relationships. The GFM with 8M parameters undergoes a two-stage training process on large-scale datasets, comprising 60 knowledge graphs with over 14M triples and 700k documents. This results in impressive performance and generalizability for GFM-RAG, making it the first graph foundation model applicable to unseen datasets for retrieval without any fine-tuning required. Extensive experiments on three multi-hop QA datasets and seven domain-specific RAG datasets demonstrate that GFM-RAG achieves state-of-the-art performance while maintaining efficiency and alignment with neural scaling laws, highlighting its potential for further improvement.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2502.01113")

Code

Syntology Ran 3 of 12 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 1 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

RManLuo/gfm-rag officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 3 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran
9unverified

Licence: 2 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from RManLuo/gfm-rag. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BaseNBFNet RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository ran Apache-2.0 (permissive) · 5d0da801282cb283 · report
BaseDocRanker RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · c34f3d06ecafa853 · report
BaseGNNModel RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · cb80ef9d19ad39ae · report
EntityNBFNet RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · e32d331a7452930b · report
GNNRetriever RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · f0ae7d13f8554d44 · report
QueryGNN RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · 765c0c1c55be3583 · report
QueryNBFNet RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · db7c14422ada8d9f · report
multi_slice_mask RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · 90451408a79c07c5 · report
scatter_extend RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · 8877e4c655410109 · report
scatter_topk RManLuo/gfm-rag/gfmrag/models/gfm_rag_v1/model.py official repository unverified Apache-2.0 (permissive) · a3254ec30b9d591e · report
index_to_mask identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 9664f4b5c60ab1bf · report
size_to_index identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 4ddf5f547371a7f7 · report

Tasks

Graph Neural NetworkKnowledge GraphsRAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutGraph Neural NetworkLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections