mlsanityData to 14 Oct 2026

Exploring Graph-Transformer Out-of-Distribution Generalization Abilities

arXiv 2506.20575 ↗First posted 25 Jun 2025cs.LGcited by 1

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  3. 2017Graph Attention Networkscited by 8,923
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  5. 2018How Powerful are Graph Neural Networks?cited by 4,393
  6. 2017Neural Message Passing for Quantum Chemistrycited by 3,487
  7. 2015Domain-Adversarial Training of Neural Networkscited by 3,044
  8. 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
  9. 2019Invariant Risk Minimizationcited by 1,854
  10. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
  11. 2016Deep CORAL: Correlation Alignment for Deep Domain Adaptationcited by 1,200
  12. 2020In Search of Lost Domain Generalizationcited by 1,054
29 more
  1. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 742
  2. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  3. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  4. 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
  5. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
  6. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
  7. 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
  8. 2022Discovering Invariant Rationales for Graph Neural Networkscited by 188
  9. 2023Exphormer: Sparse Transformers for Graphscited by 170
  10. 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
  11. 2022GOOD: A Graph Out-of-Distribution Benchmarkcited by 141
  12. 2022Data Augmentation for Deep Graph Learning: A Surveycited by 133
  13. 2022Out-Of-Distribution Generalization on Graphs: A Surveycited by 97
  14. 2021Towards a Theoretical Framework of Out-of-Distribution Generalizationcited by 94
  15. 2021Delving Deep into the Generalization of Vision Transformers under Distribution Shiftscited by 85
  16. 2022Sparse Mixture-of-Experts are Domain Generalizable Learnerscited by 85
  17. 2022Debiasing Graph Neural Networks via Learning Disentangled Causal Substructurecited by 83
  18. 2024Understanding Transformer Reasoning Capabilities via Graph Algorithmscited by 67
  19. 2022Theory of Graph Neural Networks: Representation and Learningcited by 61
  20. 2023On the Connection Between MPNN and Graph Transformercited by 61
  21. 2022Self-Distilled Vision Transformer for Domain Generalizationcited by 35
  22. 2023The Expressive Power of Graph Neural Networks: A Surveycited by 27
  23. 2024Distinguished In Uniform: Self Attention Vs. Virtual Nodescited by 20
  24. 2024Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspectivecited by 13
  25. 2023Graph Out-of-Distribution Generalization with Controllable Data Augmentationcited by 9
  26. 2024A Survey on Structure-Preserving Graph Transformerscited by 7
  27. 2024CRoFT: Robust Fine-Tuning with Concurrent Optimization for OOD Generalization and Open-Set OOD Detectioncited by 6
  28. 2024A Survey of Out-of-distribution Generalization for Graph Machine Learning from a Causal Viewcited by 3
  29. 2025OpenGT: A Comprehensive Benchmark For Graph Transformerscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.