Tackling Size Generalization of Graph Neural Networks on Biological Data from a Spectral Perspective
Gaotang Li, Danai Koutra, Yujun Yan
Abstract
We address the key challenge of size-induced distribution shifts in graph neural networks (GNNs) and their impact on the generalization of GNNs to larger graphs. Existing literature operates under diverse assumptions about distribution shifts, resulting in varying conclusions about the generalizability of GNNs. In contrast to prior work, we adopt a data-driven approach to identify and characterize the types of size-induced distribution shifts and explore their impact on GNN performance from a spectral standpoint, a perspective that has been largely underexplored. Leveraging the significant variance in graph sizes in real biological datasets, we analyze biological graphs and find that spectral differences-driven by subgraph patterns (e.g., average cycle length)-strongly correlate with GNN performance on larger, unseen graphs. Based on these insights, we propose three model-agnostic strategies to enhance GNNs' awareness of critical subgraph patterns, identifying size-intensive attention as the most effective approach. Extensive experiments with six GNN architectures and seven model-agnostic strategies across five datasets show that our size-intensive attention strategy significantly improves graph classification on test graphs 2 to 10 times larger than the training graphs, boosting F1 scores by up to 8% over strong baselines.
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 88e98c78-b3d2-431c-aaf2-db6a2ac927cbCited by top-tier papers3
- Exploring Consistency in Graph Representations: from Graph Kernels to Graph Neural NetworksXuyuan Liu, Yinghao Cai, Qihui Yang, Yujun YanNeurIPS 2024 · 3 citations
- MultiNet: Adaptive Multi-Viewed Subgraph Convolutional Networks for Graph ClassificationXinya Qin, Lu Bai, Lixin Cui, Ming Li et al.NeurIPS 2025 · 2 citations
- GI-GCN: Global Interacted Graph Convolutional Networks via Dominant Sets for Graph ClassificationLu Bai, Xinya Qin, Lixin Cui, Ming Li et al.ICML 2026
Builds on22
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Learning to Simulate Complex Physics with Graph NetworksAlvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying et al.ICML 2020 · 1,439 citations
- Beyond Low-frequency Information in Graph Convolutional NetworksDeyu Bo, Xiao Wang, Chuan Shi, Huawei ShenAAAI 2021 · 773 citations
- Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
- How Neural Networks Extrapolate: From Feedforward to Graph Neural NetworksKeyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du et al.ICLR 2021 · 364 citations
Related papers
- SizeShiftReg: a Regularization Method for Improving Size-Generalization in Graph Neural NetworksDavide Buffelli, Pietro Lió, Fabio VandinNeurIPS 2022 · 50 citations
- Enhancing Size Generalization in Graph Neural Networks through Disentangled Representation LearningZheng Huang, Qihui Yang, Dawei Zhou, Yujun YanICML 2024 · 9 citations
- From Local Structures to Size Generalization in Graph Neural NetworksGilad Yehudai, Ethan Fetaya, Eli A. Meirom, Gal Chechik et al.ICML 2021 · 167 citations
- Improving Breadth-Wise Backpropagation in Graph Neural Networks Helps Learning Long-Range DependenciesDenis Lukovnikov, Asja FischerICML 2021 · 16 citations
- Spectral Invariant Learning for Dynamic Graphs under Distribution ShiftsZeyang Zhang, Xin Wang, Ziwei Zhang, Zhou Qin et al.NeurIPS 2023 · 53 citations
