GraphProp: Training the Graph Foundation Models using Graph Properties

Ziheng Sun, Qi Feng, Lehao Lin, Chris Ding, Jicong Fan · DOI

Introduction

Building a "Foundation Model" for graphs is notoriously difficult because graph data is incredibly heterogeneous. In a molecular graph, nodes are atoms with chemical properties; in a social network, nodes are people with interests and demographics. These "node features" rarely overlap, making it hard for a model trained on molecules to understand a social network. Existing Graph Foundation Models (GFMs) often attempt to bridge this gap by converting graph data into text for Large Language Models (LLMs). However, this approach often loses the structural "essence" of the graph.

GraphProp is a novel framework that prioritizes structural consistency over volatile node features. By pre-training a model to predict "graph invariants"—mathematical properties like diameter or chromatic number—and then combining these structural signatures with node attributes via in-context learning, GraphProp achieves state-of-the-art generalization across diverse domains.

Methodology

The authors introduce GraphProp, a two-phase training strategy designed to learn a universal language of graph structure:

  1. Phase 1: Structural GFM Training. The model is tasked with predicting graph invariants derived purely from the graph's topology (e.g., the Fiedler value, Wiener index, or splittance). To ensure no information is lost, they use a Reversible Positional Encoding ($B = U\Lambda^{1/2}$) that allows the original adjacency matrix to be mathematically reconstructed.
  2. Phase 2: Comprehensive GFM Training. The structural representations from Phase 1 serve as positional encodings for a second model. This model incorporates domain-specific node attributes (processed via LLMs into a unified space) and graph labels using in-context learning, allowing it to adapt to specific tasks with minimal examples.
The two-phase training architecture of GraphProp, showing the transition from structural pre-training to comprehensive task adaptation.

The Power of Structural Invariants

A core insight of this work is that structure acts as a "universal donor." While node features vary wildly across domains, the underlying mathematical properties of the graph structure remain consistent. Quantitative analysis confirms that structural representations have significantly higher cross-domain correlation than node features, making structure the most reliable signal for transfer learning.

Comparison of cross-domain correlation heatmaps for node features versus structural representations, highlighting the superior consistency of structural signals.

By using graph theory properties as training targets, the authors created a self-supervised task that doesn't require human-annotated labels. This allows the model to be trained on massive amounts of unlabeled or even synthetic graph data.

Experimental Results

The researchers evaluated GraphProp on ten diverse datasets, including molecular graphs (PROTEINS, NCI1, AIDS) and social networks (COLLAB, IMDB-B, REDDIT). Key findings include:

  • Superior Supervised Performance: GraphProp consistently outperformed baselines. For example, on the PROTEINS dataset, GraphProp achieved 83.12% accuracy compared to the previous state-of-the-art (OFA) at 78.61%.
  • Dominance in Feature-Less Graphs: The most striking results were in graphs without node attributes. On COLLAB, GraphProp-llama2 reached 82.64% accuracy, while OFA-llama2 trailed at 75.44%.
  • Robust Few-Shot Learning: In transfer scenarios—where the model is tested on a domain it has never seen before—GraphProp showed much stronger generalization with only 1-shot or 10-shot examples compared to traditional GNNs.

Limitations and Future Work

Despite its performance, GraphProp faces challenges in computational complexity. Some graph invariants are NP-hard to calculate, which currently limits scalability to massive graphs with millions of nodes. Additionally, while the model is a structural powerhouse, it still relies on LLMs to handle domain-specific node attributes. Future work will likely involve exploring more efficient ways to approximate complex graph properties to handle web-scale networks.

Summary updated

BibTeX
@misc{sun2025graphprop,
  author = {Ziheng Sun and Qi Feng and Lehao Lin and Chris Ding and Jicong Fan},
  title = {{GraphProp: Training the Graph Foundation Models using Graph Properties}},
  year = {2025},
  eprint = {2508.04594},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.04594},
}
Figure