Learning Graph Foundation Models on Riemannian Graph-of-Graphs
Abstract
Graph foundation models (GFMs), pretrained on massive graph data, have transformed graph machine learning by supporting general-purpose reasoning across diverse graph tasks and domains. Existing GFMs pretrained with fixed-hop subgraph sampling impose a fixed receptive field, causing scale mismatch on diverse tasks, which often require heterogeneous and unknown structural contexts beyond a fixed sampling scale. We propose R-GFM, a Riemannian Graph-of-Graphs (GoG) based foundation model, that treats structural scale as a first-class citizen in modeling. R-GFM constructs a multi-scale GoG over-sampled subgraphs at different hop distances and learns geometry-adaptive representations from Riemannian manifolds. Theoretical analysis shows that R-GFM reduces structural domain generalization error compared to fixed-scale GFMs. Experiments on various datasets demonstrate that R-GFM achieves state-of-the-art performance, with up to a 49% relative improvement on downstream tasks. Our code is available at https://github.com/USTC-DataDarknessLab/R-GFM.
Benchmark Results
Tested on 1 dataset 7 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Heterophilic Graphs
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | P^2GNN | 0.9541
±0.0272 | |
| 2 | ACM-GCN | 0.9480
±0.0380 | |
| 3 | RF-GCN | 0.9429 | |
| 24 | MLP | 0.9136
±0.0070 | |
| 38 | FAGCN | 0.8852
±0.0133 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 68 | H2GCN | 0.8623
±0.0471 best reported | best at pub: $P^2$GNN: Two Prototype Sets to boost GNN Performance (2026) |
| 138 | SAGE | 0.8269 | |
| 158 | GAT | 0.8190
±0.0540 best reported | best at pub: Restructuring Graphs for Higher Homophily via Adaptive Spectral Clustering (AAAI 2022) |
| 170 | GCN | 0.8082
±0.0360 best reported | best at pub: Bayesian Neighborhood Adaptation for Graph Neural Networks (TMLR 2025) |
| 183 | MixHop | 0.7950
±0.0630 best reported | best at pub: Label-Wise Graph Convolutional Network for Heterophilic Graphs (2021) |
| 350 | DGI | 0.6335 best reported | best at pub: Beyond Smoothing: Unsupervised Graph Representation Learning with Edge Heterophily Discriminating (AAAI 2022) |
| 384 | GraphACL | 0.5933
±0.0148 best reported | best at pub: Simple and Asymmetric Graph Contrastive Learning without Augmentations (NeurIPS 2023) best today: Disentangled Generative Graph Representation Learning (2024) |
| 513 | GraphCL | 0.4722
±0.0450 best reported | best at pub: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) Difference within reported uncertainty; not counted as underperformance. |
| 559 | R-GFM | 0.3671
±0.0992 | This paper |
| 560 | GPF | 0.3622
±0.0946 | prev best: One Prompt Fits All: Universal Graph Adaptation for Pretrained Models (NeurIPS 2025) Improvement within reported uncertainty; not highlighted. |
| 561 | SAMGPT | 0.3622
±0.0530 | This paper |
| 563 | GPPT | 0.3568
±0.0963 | prev best: One Prompt Fits All: Universal Graph Adaptation for Pretrained Models (NeurIPS 2025) Improvement within reported uncertainty; not highlighted. |
| 565 | G2PM | 0.3296
±0.0544 | This paper |
| 567 | GraphPrompt | 0.3243
±0.1081 | prev best: One Prompt Fits All: Universal Graph Adaptation for Pretrained Models (NeurIPS 2025) Improvement within reported uncertainty; not highlighted. |
| 569 | RiemannGFM | 0.3135
±0.0776 | This paper |
| 572 | GPM | 0.2783
±0.1100 | This paper |
| 574 | MDGFM | 0.2649
±0.1073 | This paper |
| 576 | GCOPE | 0.2500
±0.0658 | This paper |
