Lune

KDD2025Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • GI-GCN: Global Interacted Graph Convolutional Networks via Dominant Sets for Graph Classification cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Can Graph Neural Networks Count Substructures? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Exploring Consistency in Graph Representations: from Graph Kernels to Graph Neural Networks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Exploring Consistency in Graph Representations: from Graph Kernels to Graph Neural NetworksXuyuan Liu, Yinghao Cai, Qihui Yang, Yujun YanNeurIPS 2024 · 3 citations
  2. MultiNet: Adaptive Multi-Viewed Subgraph Convolutional Networks for Graph ClassificationXinya Qin, Lu Bai, Lixin Cui, Ming Li et al.NeurIPS 2025 · 2 citations
  3. 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 on23

  1. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  2. Learning to Simulate Complex Physics with Graph NetworksAlvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying et al.ICML 2020 · 1,439 citations
  3. Beyond Low-frequency Information in Graph Convolutional NetworksDeyu Bo, Xiao Wang, Chuan Shi, Huawei ShenAAAI 2021 · 773 citations
  4. Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
  5. 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

  1. SizeShiftReg: a Regularization Method for Improving Size-Generalization in Graph Neural NetworksDavide Buffelli, Pietro Lió, Fabio VandinNeurIPS 2022 · 50 citations
  2. Enhancing Size Generalization in Graph Neural Networks through Disentangled Representation LearningZheng Huang, Qihui Yang, Dawei Zhou, Yujun YanICML 2024 · 9 citations
  3. From Local Structures to Size Generalization in Graph Neural NetworksGilad Yehudai, Ethan Fetaya, Eli A. Meirom, Gal Chechik et al.ICML 2021 · 167 citations
  4. Improving Breadth-Wise Backpropagation in Graph Neural Networks Helps Learning Long-Range DependenciesDenis Lukovnikov, Asja FischerICML 2021 · 16 citations
  5. Spectral Invariant Learning for Dynamic Graphs under Distribution ShiftsZeyang Zhang, Xin Wang, Ziwei Zhang, Zhou Qin et al.NeurIPS 2023 · 53 citations
Dusk over the sea between two cliffs drawn in fine vertical lines