The Universal Classifier for Graph Learning
Organizations: Google Research · Google DeepMind
Abstract
While foundation models have revolutionized natural language processing and computer vision by leveraging universal vocabularies, Graph Machine Learning (GML) remains fractured due to the absence of a unified feature and structural representation across diverse domains. Existing works claiming to be Graph Foundation Models (GFMs) are typically restricted to node-level predictions or require fixed feature dimensions, failing to provide a truly task-agnostic backbone for the full spectrum of graph learning applications. In this paper, we introduce the Universal Classifier (UC), which supports arbitrary feature and class cardinalities, unifying node-, edge-, and graph-level objectives under a single similarity-based classification objective. The UC reformulates all node-, edge-, and graph-level prediction tasks as maximizing similarity in the latent space: by lifting heterogeneous features and labels into 3D latent tensors, the model learns transferable features independent of specific input schemas. This architecture allows a single pre-trained model to generalize to node classification, node regression, and link prediction across unseen graphs with varying feature semantics. Experiments show strong zero-shot transfer performance across node-, link-, and graph-level tasks.
Figures & tables
| Parameter | roman- empire (Acc) | city-roads- M-RH ( ) |
| Base UC | 78.61 | 74.08 |
| - 2 Trf layers | 75.63 | 70.90 |
| - 3 hops | 77.25 | 67.94 |
| - GNN encoder | 64.35 | 53.30 |
| - Tabular encoder | 74.27 | 73.11 |
| - Mean score agg | 72.83 | 71.79 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Dataset | Graphs | Nodes | Edges | Features | Classes |
| Node Classification | amazon-ratings | 1 | 24,492 | 93,050 | 300 | 5 |
| artnet-exp | 1 | 50,405 | 280,348 | 75 | 2 | |
| arxiv | 1 | 169,343 | 1,157,799 | 128 | 40 | |
| city-reviews | 1 | 148,801 | 1,165,415 | 37 | 2 | |
| full-cora | 1 | 19,793 | 63,421 | 8,710 | 70 | |
| full-dblp | 1 | 17,716 | 52,867 | 1,639 | 4 |
| Dataset | Nodes | Undirected edges | Message-passing edges | Features | Mean degree |
| roman-empire | 22,662 | 32,927 | 30,927 | 300 | 2.9 |
| wiki-cs | 11,701 | 215,603 | 213,603 | 300 | 36.9 |
| city-roads-M | 57,073 | 107,104 | 105,104 | 68 | 3.8 |
| tolokers-2 | 11,758 | 519,000 | 517,000 | 19 | 88.3 |
| Model | amazon-ratings | full-cora | full-dblp | roman-empire | arxiv |
| Supervised GNN | 47.18 0.42 | 58.95 0.55 | 73.87 1.35 | 43.93 0.45 | 73.65 0.11 |
| Zero-Shot Transfer | |||||
| GraphAny | 42.80 0.09 | 51.18 0.78 | 71.48 1.44 | 63.34 0.58 | 58.85 0.03 |
| TS-Mean | 42.27 1.40 | 53.58 0.73 | 66.42 3.65 | 66.36 1.02 | 56.33 2.58 |
| NodePFN | 44.68 0.48 | - | 74.71 0.39 | - | - |
| UC | 52.83 | 68.64 | 85.10 | 78.61 | 65.43 |
| Model | hm-categories (Acc) | tolokers-2 (AP) | city-reviews (AP) | artnet-exp (AP) | ||||
| RL | RH | RL | RH | RL | RH | RL | RH | |
| Supervised GNN | 67.96 0.33 | 79.19 0.21 | 53.78 1.34 | 63.76 1.30 | 77.67 0.13 | 81.10 0.11 | 46.62 0.32 | 50.62 0.35 |
| Zero-Shot Transfer | ||||||||
| TS-Mean | 20.09 1.29 | 15.48 1.93 | 38.54 0.94 | 31.83 2.55 | 43.46 5.17 | - | 20.44 1.05 | 13.38 2.59 |
| GraphPFN | - | - | 60.33 0.60 | - | 79.89 0.10 | - | 50.85 0.31 | - |
| UC | 48.69 | 54.83 | 67.18 | 69.26 | 86.53 | 86.57 | 65.46 | 66.92 |
| Model | city-roads-M | city-roads-L | twitch-views | artnet-views | ||||
| RL | RH | RL | RH | RL | RH | RL | RH | |
| End-to-end | ||||||||
| XGBoost | 59.14 0.11 | 70.93 0.05 | 53.75 0.07 | 64.62 0.07 | 13.39 0.00 | 13.34 0.02 | 32.74 0.04 | 36.83 0.06 |
| Supervised GNN | 59.11 0.20 | 70.53 0.40 | 53.43 0.20 | 66.03 0.24 | 72.93 0.17 | 76.06 0.30 | 53.36 0.78 | 59.01 0.52 |
| Zero-Shot Transfer | ||||||||
| GraphPFN | 63.55 0.29 | - | - | - | 73.27 0.13 | - | 61.77 0.23 | - |
| Model | roman-empire | wiki-cs | city-roads-M | tolokers-2 |
| End-to-end | ||||
| SEAL | 87.33 1.15 | 86.53 1.97 | 99.47 0.61 | 79.73 0.61 |
| NBFNet | 88.00 0.01 | 92.00 0.40 | 99.20 0.01 | 92.53 0.92 |
| BUDDY | 58.40 11.09 | 83.60 4.51 | 91.47 5.43 | 72.93 1.22 |
| Zero-Shot Transfer | ||||
| UC | 72.00 | 87.60 | 99.60 | 74.00 |
| EC-5 | EC-7 | EC-10 | ||||
| Method | EFF | VOUT | EFF | VOUT | EFF | VOUT |
| End-to-end | ||||||
| Ridge ( ) | 0.760 | 0.760 | 0.970 | 0.897 | 0.893 | 0.948 |
| KNN ( ) | 0.778 | 0.783 | 1.009 | 1.001 | 0.935 | 1.053 |
| Random Forest (200, ) | 0.752 | 0.751 | 0.988 | 0.926 | 0.889 | 0.952 |
| GBDT (50, ) | 0.720 | 0.724 | 0.989 | 0.890 | 0.877 | 0.977 |
Graph Representation Learning
Graph representation learning develops methods for encoding nodes, edges, and whole graphs for prediction, comparison, and transfer.
See all 305 papers