Generalizing GNNs with Tokenized Mixture of Experts
Preprint
Abstract
Deployed graph neural networks (GNNs) are frozen at deployment yet must fit clean data, generalize under distribution shifts, and remain stable to perturbations. We show that static inference induces a fundamental tradeoff: improving stability requires reducing reliance on shift-sensitive features, leaving an irreducible worst-case generalization floor. Instance-conditional routing can break this ceiling, but is fragile because shifts can mislead routing and perturbations can make routing fluctuate. We capture these effects via two decompositions separating coverage vs selection, and base sensitivity vs fluctuation amplification. Based on these insights, we propose STEM-GNN, a pretrain-then-finetune framework with a mixture-of-experts encoder for diverse computation paths, a vector-quantized token interface to stabilize encoder-to-head signals, and a Lipschitz-regularized head to bound output amplification. Across nine node, link, and graph benchmarks, STEM-GNN achieves a stronger three-way balance, improving robustness to degree/homophily shifts and to feature/edge corruptions while remaining competitive on clean graphs.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Out-of-Distribution Generalization on Graphs: A SurveyIEEE Transactions on Pattern Analysis and Machine Intelligence, 2025
- Fair Graph Representation Learning via Diverse Mixture-of-Experts2023
- Self-Supervised Graph Structure Refinement for Graph Neural Networks2023
- GraphMAE: Self-Supervised Masked Graph Autoencoders2022
- Robust Optimization as Data Augmentation for Large-scale Graphs2022
- Multi-view Self-supervised Heterogeneous Graph Embedding2021
- Graph Structure Learning for Robust Graph Neural Networks2020
- DeepGCNs: Can GCNs Go As Deep As CNNs?2019
- Graph Convolutional Neural Networks for Web-Scale Recommender Systems2018
- MoleculeNet: a benchmark for molecular machine learningChemical Science, 2017