RAGraph: A General Retrieval-Augmented Graph Learning Framework

Xinke Jiang, Rihong Qiu, Yongxin Xu, Wentao Zhang, Yichen Zhu +5 more
2/3/2026

No official code found. Best implementation: Artessay/RAGraph (23 stars, last commit 2025-02-04).

Abstract

Graph Neural Networks (GNNs) have become essential in interpreting relational data across various domains, yet, they often struggle to generalize to unseen graph data that differs markedly from training instances. In this paper, we introduce a novel framework called General Retrieval-Augmented Graph Learning (RAGraph), which brings external graph data into the general graph foundation model to improve model generalization on unseen scenarios. On the top of our framework is a toy graph vector library that we established, which captures key attributes, such as features and task-specific label information. During inference, the RAGraph adeptly retrieves similar toy graphs based on key similarities in downstream tasks, integrating the retrieved data to enrich the learning context via the message-passing prompting mechanism. Our extensive experimental evaluations demonstrate that RAGraph significantly outperforms state-of-the-art graph learning methods in multiple tasks such as node classification, link prediction, and graph classification across both dynamic and static datasets. Furthermore, extensive testing confirms that RAGraph consistently maintains high performance without the need for task-specific fine-tuning, highlighting its adaptability, robustness, and broad applicability.

View on arXivView PDF

Code Implementations(1)

Artessay/RAGraphCommunity100%

NeurIPS 2024: RAGraph: A General Retrieval-Augmented Graph Learning Framework

230PythonNov 5, 20241 years ago

Similar Papers

Cite this paper

@article{jiang2026ragraph,
  title  = {RAGraph: A General Retrieval-Augmented Graph Learning Framework},
  author = {Xinke Jiang and Rihong Qiu and Yongxin Xu and Wentao Zhang and Yichen Zhu and Ruizhe Zhang and Yuchen Fang and Xu Chu and Junfeng Zhao and Yasha Wang},
  year   = {2026},
  eprint = {2410.23855},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.23855},
  url    = {https://arxiv.org/abs/2410.23855},
  journal = {NEURIPS 2024 2024}
}

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/2410.23855.svg)](https://codeofpaper.com/paper/2410.23855)

Discussion