RAG-GFM: Overcoming In-Memory Bottlenecks in Graph Foundation Models via Retrieval-Augmented Generation

Haonan Yuan, Qingyun Sun, Jiacheng Tao, Xingcheng Fu, Jianxin Li
1/21/2026
7 citations
cs.LGcs.AI
rag

No official code found. Best implementation: RManLuo/gfm-rag (310 stars, Python, Apache-2.0, last commit 2026-04-20). 1 more below.

Abstract

Graph Foundation Models (GFMs) have emerged as a frontier in graph learning, which are expected to deliver transferable representations across diverse tasks. However, GFMs remain constrained by in-memory bottlenecks: they attempt to encode knowledge into model parameters, which limits semantic capacity, introduces heavy lossy compression with conflicts, and entangles graph representation with the knowledge in ways that hinder efficient adaptation, undermining scalability and interpretability.

Show full abstract

In this work,we propose RAG-GFM, a Retrieval-Augmented Generation aided Graph Foundation Model that offloads knowledge from parameters and complements parameterized learning. To externalize graph knowledge, we build a dual-modal unified retrieval module, where a semantic store from prefix-structured text and a structural store from centrality-based motif. To preserve heterogeneous information, we design a dual-view alignment objective that contrasts both modalities to capture both content and relational patterns. To enable efficient downstream adaptation, we perform in-context augmentation to enrich supporting instances with retrieved texts and motifs as contextual evidence. Extensive experiments on five benchmark graph datasets demonstrate that RAG-GFM consistently outperforms 13 state-of-the-art baselines in both cross-domain node and graph classification, achieving superior effectiveness and efficiency.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
RManLuo/gfm-ragCommunity310PythonApache-2.02026-04-20
haonan-yuan/RAG-GFMCommunity1PythonMIT2026-02-04
RManLuo/gfm-ragCommunity75%
Apache-2.0

[NeurIPS'25, ICLR'26] Graph Foundation Model for Retrieval Augmented Generation

31045Python, CudaJan 31, 20257 months agoApache-2.0
gptgraphragknowledge-graphlarge-language-modelsllm+2 more
MIT

This repository is the official implementation of "RAG-GFM: Overcoming In-Memory Bottlenecks in Graph Foundation Models via Retrieval-Augmented Generation" accepted by WWW 2026.

11PythonJan 26, 202610 months agoMIT

Similar Papers

Cite this paper

@article{yuan2026raggfm,
  title  = {RAG-GFM: Overcoming In-Memory Bottlenecks in Graph Foundation Models via Retrieval-Augmented Generation},
  author = {Haonan Yuan and Qingyun Sun and Jiacheng Tao and Xingcheng Fu and Jianxin Li},
  year   = {2026},
  eprint = {2601.15124},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.15124v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.15124.svg)](https://codeofpaper.com/paper/2601.15124)

Discussion