Introduction
A major goal in Graph Machine Learning is building a Graph Foundation Model (GFM)—a model pre-trained on massive graph data that can generalize to unseen graphs and tasks out-of-the-box. However, current GFMs struggle with two main issues:
- Cross-Task Transferability: Pre-training tasks (like link prediction) often do not match downstream tasks (like node or graph classification), requiring extensive fine-tuning.
- Semantic Transferability: Different graphs have wildly different node features (e.g., text attributes versus molecular properties), making it difficult to apply a single model universally.
Recent breakthroughs in zero-shot Knowledge Graph (KG) reasoning, such as the ULTRA model, have solved topological transferability by learning relation interactions rather than specific entity embeddings. However, these models suffer from semantic isolation—they ignore domain-specific node features entirely to prioritize structural generalization. Naively injecting node features into these models breaks their theoretical guarantees, causing performance to drop.
To bridge this gap, this paper introduces the Semantic Conditional Reasoner (SCR), a novel Graph Foundation Model that pre-trains exclusively on KGs and transfers zero-shot to general graph tasks. By unifying diverse graph tasks into a standard KG link-prediction format and introducing a "Semantic Conditional Message Passing" mechanism, SCR effectively blends structural and semantic information without requiring task-specific fine-tuning.
Methods
The authors propose the SCR framework based on two major innovations designed to harmonize topology and semantics:
1. Unified Graph Reasoning Format
SCR converts standard node and graph classification tasks into KG link prediction tasks.
- For Node Classification: It adds "label" nodes to the graph and creates an "is_attributed_with" relation. Predicting a node's class becomes predicting a link between the node and a label entity.
- For Graph Classification: It adds a "super graph" node connected to all nodes in that specific graph, turning graph-level classification into a node-level link prediction problem.
2. Semantic Conditional Message Passing (SCMP)
To solve the semantic isolation problem, SCR introduces a new message-passing framework:
- Semantic Feature Unifier: Uses Singular Value Decomposition (SVD) to project diverse node features (of varying dimensions) into a unified latent space.
- Semantic-injected Initialization: Instead of naively injecting a node's own features (which breaks the math of Conditional Message Passing), SCR initializes nodes using information from their semantic neighbors (nodes close in feature space, excluding direct topological neighbors).
- Non-parametric Semantic Representation: It freezes the message-passing parameters to embed semantic features directly, merging them with query-specific structural representations via an MLP.
Datasets and Evaluation
The model was pre-trained on just 3 KGs (WN18RR, FB15k-237, and CodexM) and evaluated zero-shot on 38 diverse datasets:
- Link-level KG Reasoning (24 datasets): Inductive datasets derived from GraIL and InGram splits (including NELL-995 and Wikidata68K).
- Node Classification (6 datasets): Homophilic graphs (Cora, Citeseer, Pubmed) and heterophilic graphs (Wisconsin, Texas, Actor).
- Graph Classification (8 datasets): Social networks (IMDB-B, COLLAB), biological networks (PROTEINS, ENZYMES, DD), and small molecules (MUTAG, COX2, BZR).
Key Insights and Ideas
- Classification as Link Prediction: Treating class labels or entire graphs as distinct "entities" in a Knowledge Graph is a brilliant structural hack. It bypasses the need to learn new classification heads for unseen labels, enabling true zero-shot classification.
- Solving the Feature Injection Paradox: The authors discovered that simply injecting node features into standard Conditional Message Passing violates the "target node distinguishability" assumption, causing performance to tank (as seen when comparing naive injection methods to baselines). By injecting semantic neighbor information instead, SCR maintains theoretical expressiveness while gaining semantic awareness.
- Feature Agnosticism: SCR is surprisingly robust to the type of semantic features used. It performs nearly identically whether the input text features are generated by BERT, MPNet, or DistilBERT. It even performs well using simple "all-ones" vectors, proving the model learns to reason over structures rather than just memorizing text embeddings.
Key Results
- KG Reasoning: SCR outperforms existing zero-shot models (like ULTRA) and supervised state-of-the-art models across the 24 inductive KG benchmarks, achieving a total average MRR of 0.451 (vs. ULTRA's 0.433).
- Node Classification: Achieves state-of-the-art zero-shot performance on homophilic graphs. For example, it hits 81.80% accuracy on Cora, beating ULTRA (79.40%) and OpenGraph (80.65%).
- Graph Classification: SCR outperforms existing one-shot and prompt-tuned graph models (like GPPT and All-in-one) and is highly competitive with fully supervised models like GIN, despite being zero-shot. It achieved 85.33% accuracy on MUTAG (compared to ULTRA's 63.33%).
Limitations and Future Work
While highly effective, the model is currently pre-trained on only three KGs. Consequently, its performance on tricky heterophilic graphs (where connected nodes have different labels) lags behind methods that use task-specific analytical tuning (like GraphAny). Additionally, the subgraph extraction and message-passing steps face computational scalability challenges on massive KGs with millions or billions of edges.
Future work will focus on extending the framework to broader graph-based tasks across diverse domains, improving robustness on heterophilic structures, and systematically validating the scaling laws for these large-scale graph model architectures.
Summary updated