Graph Foundation Models

Haitao Mao, Zhikai Chen, Wenzhuo Tang, Jianan Zhao, Yao Ma, Tong Zhao, Neil Shah, Mikhail Galkin, Jiliang Tang · DOI

Abstract

The field of graph learning is undergoing a paradigm shift. Moving away from specialized Graph Neural Networks (GNNs) trained from scratch for specific tasks, the era of Graph Foundation Models (GFMs) has arrived. This paper argues that the development of general-purpose models trained on massive, diverse datasets is now feasible. The central challenge—and the "holy grail" of the field—is the identification of a universal graph vocabulary: a set of basic transferable units that encode structural invariances across domains as diverse as social networks and molecular biology.

Introduction: The Gap in Graph Learning

In Natural Language Processing (NLP) and Computer Vision (CV), foundation models like GPT-4 and CLIP have revolutionized data processing by providing generalizable representations. In contrast, the graph domain has traditionally relied on "bespoke" models. Typically, a GNN is architected and trained for a specific dataset (e.g., a citation network) and a specific task (e.g., node classification), with little to no transferability to other domains.

Graphs present unique challenges: they are abstract, non-Euclidean, and exhibit extreme heterogeneity. A node in a social network represents a person, while a node in a molecule represents an atom; their behaviors and relational patterns are fundamentally different. The core question is whether a GFM can generalize across these disparate domains. We argue that the primary bottleneck is not just the availability of data, but the lack of a shared "vocabulary" that allows models to recognize universal structural patterns regardless of the data source.

A Roadmap for GFM Development

Building a GFM requires a framework based on three pillars of transferability:

  1. Network Analysis: Utilizing classical principles such as homophily (similar nodes connect) and triadic closure (friends of friends become friends) to identify universal patterns.
  2. Expressiveness: Ensuring models can distinguish between complex structural patterns, often benchmarked by the Weisfeiler-Leman test. A GFM must be expressive enough to avoid "collapsing" distinct graph structures into identical representations.
  3. Stability: Ensuring that minor perturbations (e.g., adding a single edge) do not lead to drastic changes in model output, which is essential for robust generalization.

Current research efforts can be categorized into three main approaches:

  • Task-specific GFMs: Models like ULTRA generalize across any knowledge graph for link prediction by focusing on relational invariances.
  • Domain-specific GFMs: Models like DiG learn universal representations tailored to specific fields, such as chemistry.
  • Primitive GFMs: Models like OFA attempt cross-domain training (e.g., combining citation networks and molecules) by using Large Language Models (LLMs) to translate diverse features into a common text-based latent space.

Key Insights: Unlocking Scaling Laws

The path to effective GFMs involves several innovative strategies:

The "Graph Vocabulary" Concept

Just as NLP uses words and CV uses visual tokens, graphs require "structural tokens." Identifying these basic units—potentially based on motifs or specific relational patterns—is the key to unlocking neural scaling laws for graphs, similar to those seen in LLMs.

A simple graph structure illustrating potential structural patterns or motifs that could form a universal graph vocabulary.

LLMs as a Feature Bridge

To handle "feature heterogeneity"—where different graphs have entirely different node attributes (e.g., text vs. chemical properties)—LLMs can serve as universal encoders. By converting all features into natural language descriptions, models can project diverse graphs into a single, unified latent space.

Task Unification

To leverage the maximum amount of training data, different graph tasks must be unified into a single objective. For instance, node classification can be reformulated as link prediction by predicting a link between an input node and a specialized "label node."

Task Unification: (a) Reformulating node classification as link prediction to label nodes. (b) Unifying link prediction and subgraph classification.

Current State and Benchmarks

While the field lacks a "trillion-token" equivalent to the datasets used in NLP, significant progress has been made through large-scale curation. Key resources include the NetworkRepository (30+ domains), the Open Graph Benchmark (OGB), and specialized datasets like MoleculeNet and Graphium.

Recent results are promising:

  • ULTRA has demonstrated superior zero-shot performance on unseen knowledge graphs, proving that structural invariance can be captured.
  • OFA has shown that a single model can match or exceed the performance of specialized GNNs across multiple domains through unified task formulation and LLM-based alignment.
  • Scaling Trends: Geometric GNNs and Graph Transformers are beginning to exhibit the "more data + more parameters = better performance" trend characteristic of foundation models.

Challenges and Future Directions

Despite this progress, several hurdles remain. Negative transfer is a significant risk, where patterns learned in one domain (e.g., social networks) might degrade performance in another (e.g., molecular biology). Furthermore, while LLMs help with feature alignment, they are often "greedy reasoners" that struggle to capture the global topology of complex graphs.

The ultimate challenge remains the discovery of a truly universal structural representation space. Whether such a space exists for all possible graph tasks is an open question, but the pursuit of this "universal space" defines the current frontier of graph machine learning.

Summary updated

BibTeX
@inproceedings{mao2024graph,
  author = {Haitao Mao and Zhikai Chen and Wenzhuo Tang and Jianan Zhao and Yao Ma and Tong Zhao and Neil Shah and Mikhail Galkin and Jiliang Tang},
  title = {{Graph Foundation Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Edz0QXKKAo},
}
Figure