Investigating Out-of-Distribution Generalization of GNNs: An Architecture Perspective
Kai Guo, Hongzhi Wen, Wei Jin, Yaming Guo, Jiliang Tang, Yi Chang
Abstract
Graph neural networks (GNNs) have exhibited remarkable performance under the assumption that test data comes from the same distribution of training data. However, in real-world scenarios, this assumption may not always be valid. Consequently, there is a growing focus on exploring the Out-of-Distribution (OOD) problem in the context of graphs. Most existing efforts have primarily concentrated on improving graph OOD generalization from two model-agnostic perspectives: data-driven methods and strategy-based learning. However, there has been limited attention dedicated to investigating the impact of well-known GNN model architectures on graph OOD generalization, which is orthogonal to existing research. In this work, we provide the first comprehensive investigation of OOD generalization on graphs from an architecture perspective, by examining the common building blocks of modern GNNs. Through extensive experiments, we reveal that both the graph self-attention mechanism and the decoupled architecture contribute positively to graph OOD generalization. In contrast, we observe that the linear classification layer tends to compromise graph OOD generalization capability. Furthermore, we provide in-depth theoretical insights and discussions to underpin these discoveries. These insights have empowered us to develop a novel GNN backbone model, DGat, designed to harness the robust properties of both graph self-attention mechanism and the decoupled architecture. Extensive experimental results demonstrate the effectiveness of our model under graph OOD, exhibiting substantial and consistent enhancements across various training strategies. Our codes are available at https://github.com/KaiGuo20/DGAT REMOVE 2nd URL://github.com/KaiGuo20/DGAT.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 99b6a766-cc7d-4a7f-9be8-2feb4291fe58Cited by top-tier papers11
- USBD: Universal Structural Basis Distillation for Source-Free Graph Domain AdaptationYingxu Wang, Kunyu Zhang, Mengzhu Wang, Siyang Gao et al.KDD 2026 · 10 citations
- GraphLoRA: Structure-Aware Contrastive Low-Rank Adaptation for Cross-Graph Transfer LearningZhe-Rui Yang, Jindong Han, Chang-Dong Wang, Hao LiuKDD 2025 · 5 citations
- Refining Norms: A Post-hoc Framework for OOD Detection in Graph Neural NetworksJiawei Gu, Ziyue Qiao, Zechao LiNeurIPS 2025 · 3 citations
- Quantifying Distributional Invariance in Causal Subgraph for IRM-Free Graph GeneralizationYang Qiu, Yixiong Zou, Jun Wang, Wei Liu et al.NeurIPS 2025 · 3 citations
- Invariant Graph Transformer for Out-of-Distribution GeneralizationTianyin Liao, Ziwei Zhang, Yufei Sun, Chunyu Hu et al.KDD 2026 · 2 citations
Builds on24
- Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link PredictionZhaocheng Zhu, Zuobai Zhang, Louis-Pascal A. C. Xhonneux, Jian TangNeurIPS 2021 · 546 citations
- Handling Distribution Shifts on Graphs: An Invariance PerspectiveQitian Wu, Hengrui Zhang, Junchi Yan, David WipfICLR 2022 · 261 citations
- Learning Causally Invariant Representations for Out-of-Distribution Generalization on GraphsYongqiang Chen, Yonggang Zhang, Yatao Bian, Han Yang et al.NeurIPS 2022 · 246 citations
- Understanding The Robustness in Vision TransformersDaquan Zhou, Zhiding Yu, Enze Xie, Chaowei Xiao et al.ICML 2022 · 242 citations
Related papers
- Learning on Graphs with Out-of-Distribution NodesYu Song, Donglin WangKDD 2022 · 28 citations
- GOODAT: Towards Test-Time Graph Out-of-Distribution DetectionLuzhi Wang, Dongxiao He, He Zhang, Yixin Liu et al.AAAI 2024 · 27 citations
- Disentangled Graph Self-supervised Learning for Out-of-Distribution GeneralizationHaoyang Li, Xin Wang, Zeyang Zhang, Haibo Chen et al.ICML 2024 · 13 citations
- Pruning Spurious Subgraphs for Graph Out-of-Distribution GeneralizationTianjun Yao, Haoxuan Li, Yongqiang Chen, Tongliang Liu et al.NeurIPS 2025
- GraphDE: A Generative Framework for Debiased Learning and Out-of-Distribution Detection on GraphsZenan Li, Qitian Wu, Fan Nie, Junchi YanNeurIPS 2022 · 75 citations
