Exploring Graph-Transformer Out-of-Distribution Generalization Abilities
Not on the map. Why?
Abstract (arXiv)
Deep learning on graphs has shown remarkable success across numerous applications, including social networks, bio-physics, traffic networks, and recommendation systems. Regardless of their successes, current methods frequently depend on the assumption that training and testing data share the same distribution, a condition rarely met in real-world scenarios. While graph-transformer (GT) backbones have recently outperformed traditional message-passing neural networks (MPNNs) in multiple in-distribution (ID) benchmarks, their effectiveness under distribution shifts remains largely unexplored. In this work, we address the challenge of out-of-distribution (OOD) generalization for graph neural networks, with a special focus on the impact of backbone architecture. We systematically evaluate GT and hybrid backbones in OOD settings and compare them to MPNNs. To do so, we adapt several leading domain generalization (DG) algorithms to work with GTs and assess their performance on a benchmark designed to test a variety of distribution shifts. Our results reveal that GT and hybrid GT-MPNN backbones demonstrate stronger generalization ability compared to MPNNs, even without specialized DG algorithms (on four out of six benchmarks). Additionally, we propose a novel post-training analysis approach that compares the clustering structure of the entire ID and OOD test datasets, specifically examining domain alignment and class separation. Highlighting its model-agnostic design, the method yielded valuable insights into both GT and MPNN backbones and appears well suited for broader DG applications beyond graph learning, offering a deeper perspective on generalization abilities that goes beyond standard accuracy metrics. Together, our findings highlight the promise of graph-transformers for robust, real-world graph learning and set a new direction for future research in OOD generalization.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 41 of its 56 references that are in the map. First posted on arXiv 25 Jun 2025.
Builds on
41 of 56 references.
References · 41
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2015Domain-Adversarial Training of Neural Networkscited by 3,044
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
- 2019Invariant Risk Minimizationcited by 1,854
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
- 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
- 2020In Search of Lost Domain Generalizationcited by 1,054
29 more
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
- 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
- 2022Discovering Invariant Rationales for Graph Neural Networkscited by 188
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2022GOOD: A Graph Out-of-Distribution Benchmarkcited by 141
- 2022Data Augmentation for Deep Graph Learning: A Surveycited by 133
- 2022Out-Of-Distribution Generalization on Graphs: A Surveycited by 97
- 2021Towards a Theoretical Framework of Out-of-Distribution Generalizationcited by 94
- 2021Delving Deep into the Generalization of Vision Transformers under Distribution Shiftscited by 85
- 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
- 2022Debiasing Graph Neural Networks via Learning Disentangled Causal Substructurecited by 83
- 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
- 2022Theory of Graph Neural Networks: Representation and Learningcited by 61
- 2023On the Connection Between MPNN and Graph Transformercited by 61
- 2022Self-Distilled Vision Transformer for Domain Generalizationcited by 35
- 2023The Expressive Power of Graph Neural Networks: A Surveycited by 27
- 2024Distinguished In Uniform: Self Attention Vs. Virtual Nodescited by 20
- 2024Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspectivecited by 13
- 2023Graph Out-of-Distribution Generalization with Controllable Data Augmentationcited by 9
- 2024A Survey on Structure-Preserving Graph Transformerscited by 7
- 2024CRoFT: Robust Fine-Tuning with Concurrent Optimization for OOD Generalization and Open-Set OOD Detectioncited by 6
- 2024A Survey of Out-of-distribution Generalization for Graph Machine Learning from a Causal Viewcited by 3
- 2025OpenGT: A Comprehensive Benchmark For Graph Transformerscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Size Generalization for Diffusion Routing Solverscited by 0
- 2026Size Generalization for Diffusion Routing Solvers12 Oct 2026