Relation-Aware Graph Foundation Model

Jianxiang Yu, Jiapeng Zhu, Hao Qian, Ziqi Liu, Zhiqiang Zhang, Xiang Li · DOI

Introduction

In the field of Natural Language Processing (NLP), Large Language Models (LLMs) like GPT-4 have established a paradigm where words serve as universal "tokens," enabling models to generalize across vast corpora of text. However, Graph Machine Learning has lacked a similar "atomic unit." Because graphs vary significantly across domains—ranging from social networks to molecular structures—finding a representation that generalizes effectively has remained a significant hurdle.

The Relation-Aware Graph Foundation Model (REEF) addresses this by shifting the focus from nodes to relations. By treating relationships as the fundamental unit of generalization, REEF bridges the gap between graph structures and language-like tokenization.

Comparison between Large Language Models (LLMs) and Graph Foundation Models (GFMs) using relation-based tokens.

The Challenge of Graph Heterogeneity

The primary obstacle in building a Graph Foundation Model (GFM) is the extreme heterogeneity of node attributes. A node representing a research paper in a citation network shares little in common with a node representing a product in an e-commerce graph. Existing GFMs often struggle because node features do not translate well across domains.

REEF posits that while nodes are diverse, relations (e.g., "cites," "co-purchased," "is-member-of") are structurally consistent. A "citation" relationship carries similar structural implications regardless of whether the underlying papers are about medicine or computer science.

The REEF Framework

The REEF architecture introduces several key innovations to treat graph relations as a universal vocabulary:

  1. Relation Vocabulary: Similar to an LLM's word vocabulary, REEF constructs a vocabulary of relation tokens. It utilizes a language model (such as Sentence-BERT) to encode textual descriptions of relations into vector representations, allowing the model to leverage semantic knowledge.
  2. Hypernetworks for Parameter Generation: Rather than learning static weights, REEF employs hypernetworks. These auxiliary models take a relation token as input and dynamically generate the specific parameters for the Graph Neural Network's (GNN) aggregators and classifiers. This allows the model's logic to adapt to the specific type of interaction it is processing.
  3. Feature Alignment and Projectors: To reconcile varying input dimensions across datasets, REEF uses Singular Value Decomposition (SVD) for initial alignment and dataset-specific projectors to map features into a unified latent space.
The REEF architecture, featuring a relation vocabulary and hypernetworks for dynamic parameter generation.

Experimental Results

REEF was evaluated across a diverse set of benchmarks, including knowledge graphs (FB15K237), citation networks (Pubmed, Cora), and e-commerce networks (Amazon).

Superior Generalization and Transfer

REEF achieved an average accuracy of 79.70% across five pre-training datasets, outperforming standard relational models like RGCN (76.83%). Its strength is particularly evident in transfer learning; in "1-shot" tasks on unseen domains, REEF improved accuracy on the "Computers" dataset by over 24% compared to the best baselines.

Scaling and the "Rebound" Effect

The study revealed a unique scaling law in graph learning. Initially, adding more datasets can lead to a performance dip due to "negative transfer" or distributional shifts. However, as the relation vocabulary expands and becomes sufficiently rich, the model "rebounds," achieving significantly higher performance than models trained on single datasets.

Conclusion

REEF demonstrates that focusing on relations provides a stable foundation for cross-domain graph learning. By leveraging relation-based hypernetworks and semantic initialization, it moves the field closer to a truly universal Graph Foundation Model. Future work will focus on extending this framework to fully heterogeneous graphs with multiple node types and optimizing the computational efficiency of hypernetwork-based parameter generation.

Summary updated

BibTeX
@inproceedings{yu2026relation,
  author = {Jianxiang Yu and Jiapeng Zhu and Hao Qian and Ziqi Liu and Zhiqiang Zhang and Xiang Li},
  title = {{Relation-Aware Graph Foundation Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WZUABeWpGW},
}
Figure