From Local Structures to Size Generalization in Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
Graph neural networks (GNNs) can process graphs of different sizes, but their ability to generalize across sizes, specifically from small to large graphs, is still not well understood. In this paper, we identify an important type of data where generalization from small to large graphs is challenging: graph distributions for which the local structure depends on the graph size. This effect occurs in multiple important graph learning domains, including social and biological networks. We first prove that when there is a difference between the local structures, GNNs are not guaranteed to generalize across sizes: there are "bad" global minima that do well on small graphs but fail on large graphs. We then study the size-generalization problem empirically and demonstrate that when there is a discrepancy in local structure, GNNs tend to converge to non-generalizing solutions. Finally, we suggest two approaches for improving size generalization, motivated by our findings. Notably, we propose a novel Self-Supervised Learning (SSL) task aimed at learning meaningful representations of local structures that appear in large graphs. Our SSL task improves classification accuracy on several popular datasets.
Key facts. Cited by 119 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 25; 2023: 33; 2024: 24; 2025: 19; 2026: 14.
119 papers.
Sort:
By area:
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 267
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022Handling Distribution Shifts on Graphs: An Invariance Perspectivecited by 163
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2022Universal Prompt Tuning for Graph Neural Networkscited by 100
- 2022Out-Of-Distribution Generalization on Graphs: A Surveycited by 97
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 82
- 2023Attending to Graph Transformerscited by 81
- 2021OOD-GNN: Out-of-Distribution Generalized Graph Neural Networkcited by 78
- 2022A Survey on Graph Representation Learning Methodscited by 66
38 more
- 2022Theory of Graph Neural Networks: Representation and Learningcited by 60
- 2022Generalization Analysis of Message Passing Neural Networks on Large Random Graphscited by 58
- 2022A Generalist Neural Algorithmic Learnercited by 58
- 2023Does Invariant Graph Learning via Environment Augmentation Learn Invariance?cited by 42
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 42
- 2023Towards Understanding the Generalization of Graph Neural Networkscited by 41
- 2022Tree Mover's Distance: Bridging Graph Metrics and Stability of Graph Neural Networkscited by 39
- 2023Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusioncited by 39
- 2022OOD Link Prediction Generalization Capabilities of Message-Passing GNNs in Larger Test Graphscited by 38
- 2022Unleashing the Power of Graph Data Augmentation on Covariate Distribution Shiftcited by 38
- 2022SizeShiftReg: a Regularization Method for Improving Size-Generalization in Graph Neural Networkscited by 36
- 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
- 2023WL meet VCcited by 30
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 30
- 2024Graph Out-of-Distribution Generalization via Causal Interventioncited by 30
- 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challengescited by 30
- 2022Towards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Taskscited by 29
- 2023Joint Learning of Label and Environment Causal Independence for Graph Out-of-Distribution Generalizationcited by 29
- 2023Learning on Graphs with Out-of-Distribution Nodescited by 29
- 2022Inductive Logical Query Answering in Knowledge Graphscited by 25
- 2024Pairwise Alignment Improves Graph Domain Adaptationcited by 25
- 2024Cayley Graph Propagationcited by 21
- 2024Graph Domain Adaptation with Dual-branch Encoder and Two-level Alignment for Whole Slide Image-based Survival Predictioncited by 20
- 2023GraphMETRO: Mitigating Complex Graph Distribution Shifts via Mixture of Aligned Expertscited by 19
- 2023Graph Invariant Learning with Subgraph Co-mixup for Out-Of-Distribution Generalizationcited by 18
- 2022Federated Learning with Heterogeneous Architectures using Graph HyperNetworkscited by 17
- 2022RouteNet-Fermi: Network Modeling with Graph Neural Networkscited by 17
- 2023Limits, approximation and size transferability for GNNs on sparse graphs via graphopscited by 17
- 2023Efficient Subgraph GNNs by Learning Effective Selection Policiescited by 17
- 2023Graph Neural Tangent Kernel: Convergence on Large Graphscited by 16
- 2024A Manifold Perspective on the Statistical Generalization of Graph Neural Networkscited by 16
- 2024A Survey of Deep Graph Learning under Distribution Shifts: from Graph Out-of-Distribution Generalization to Adaptationcited by 16
- 2023Individual and Structural Graph Information Bottlenecks for Out-of-Distribution Generalizationcited by 15
- 2023Explaining and Adapting Graph Conditional Shiftcited by 14
- 2024Weisfeiler-Leman at the margin: When more expressivity matterscited by 13
- 2024How Interpretable Are Interpretable Graph Neural Networks?cited by 13
- 2025Extrapolation by Association: Length Generalization Transfer in Transformerscited by 13
- 2022FakeEdge: Alleviate Dataset Shift in Link Predictioncited by 12
50 most cited of 119 All 119 (JSON)
- 2026Exactness at Inference: A Representational Criterion for Out-of-Distribution Generalization21 Sep 2026
- 2026Train Small, Deploy Large: Zero-Shot GNN Transfer Through Geometric Renormalization30 Jul 2026
- 2026Node4All: Learning Node Representation Beyond Datasets19 Jul 2026
- 2026Graph Neural Networks for Scalable and Transferable Node Centrality Approximation10 Jul 2026
- 2026RAPNet: Accelerating Algebraic Multigrid with Learned Sparse Corrections26 May 2026
- 2026Graph Hierarchical Recurrence for Long-Range Generalization18 May 2026
- 2026Diversity Curves for Graph Representation Learning7 May 2026
- 2026Probabilistic Graphical Model using Graph Neural Networks for Bayesian Inversion of Discrete Structural Component States26 Apr 2026
- 2026Zero-Shot Scalable Resilience in UAV Swarms: A Decentralized Imitation Learning Framework with Physics-Informed Graph Interactions17 Apr 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026CGRL: Causal-Guided Representation Learning for Node-Level Out-of-Distribution Generalization25 Mar 2026
- 2026Spiking Graph Predictive Coding for Reliable OOD Generalization22 Feb 2026
38 more
- 2026Learning to Approximate Uniform Facility Location via Graph Neural Networks13 Feb 2026
- 2026Graph Learning Should Move Beyond Restrictive Views of Spectral and Message-Passing GNNs10 Feb 2026
- 2025Learning and Editing Universal Graph Prompt Tuning via Reinforcement Learning9 Dec 2025
- 2025Learning Invariant Graph Representations Through Redundant Information5 Dec 2025
- 2025PISA: Prioritized Invariant Subgraph Aggregation for Out-of-Distribution Generalization on Graphs27 Nov 2025
- 2025On Local Limits of Sparse Random Graphs: Color Convergence and the Refined Configuration Model24 Oct 2025
- 2025Towards Generalization of Graph Neural Networks for AC Optimal Power Flow8 Oct 2025
- 2025Are Heterogeneous Graph Neural Networks Truly Effective for Node Classification? A Causal Perspective7 Oct 2025
- 2025A Note on Graphon-Signal Analysis of Graph Neural Networks25 Aug 2025
- 2025Graph Lineages and Skeletal Graph Products31 Jul 2025
- 2025From Small to Large: A Graph Convolutional Network Approach for Solving Assortment Optimization Problems14 Jul 2025
- 2025HGMP:Heterogeneous Graph Multi-Task Prompt Learning10 Jul 2025
- 2025Rule Learning for Knowledge Graph Reasoning under Agnostic Distribution Shift7 Jul 2025
- 2025Understanding Generalization in Node and Link Prediction1 Jul 2025
- 2025Extrapolation by Association: Length Generalization Transfer in Transformers10 Jun 2025
- 2025FuncGNN: Learning Functional Semantics of Logic Circuits with Graph Neural Networks7 Jun 2025
- 2025Knot So Simple: A Minimalistic Environment for Spatial Reasoning23 May 2025
- 2025Graph Data Selection for Domain Adaptation: A Model-Free Approach22 May 2025
- 2025Graph neural networks extrapolate out-of-distribution for shortest paths24 Mar 2025
- 2025Performance Heterogeneity in Graph Neural Networks: Lessons for Architecture Design and Preprocessing1 Mar 2025
- 2025Self-Improving Transformers Overcome Easy-to-Hard and Length Generalization Challenges3 Feb 2025
- 2024Predicting Time Series of Networked Dynamical Systems without Knowing Topology25 Dec 2024
- 2024Graph Domain Adaptation with Dual-branch Encoder and Two-level Alignment for Whole Slide Image-based Survival Prediction21 Nov 2024
- 2024Provable Length Generalization in Sequence Prediction via Spectral Filtering1 Nov 2024
- 2024A Survey of Deep Graph Learning under Distribution Shifts: from Graph Out-of-Distribution Generalization to Adaptation25 Oct 2024
- 2024Cayley Graph Propagation4 Oct 2024
- 2024Softmax is not Enough (for Sharp Size Generalisation)1 Oct 2024
- 2024Generalization of Geometric Graph Neural Networks with Lipschitz Loss Functions8 Sep 2024
- 2024Learning Tree-Structured Composition of Data Augmentation26 Aug 2024
- 2024Generalization of Graph Neural Networks is Robust to Model Mismatch25 Aug 2024
- 2024RELIEF: Reinforcement Learning Empowered Graph Feature Prompt Tuning6 Aug 2024
- 2024Core Knowledge Learning Framework for Graph Adaptation and Scalability Learning2 Jul 2024
- 2024How Interpretable Are Interpretable Graph Neural Networks?12 Jun 2024
- 2024A Manifold Perspective on the Statistical Generalization of Graph Neural Networks7 Jun 2024
- 2024Enhancing Size Generalization in Graph Neural Networks through Disentangled Representation Learning7 Jun 2024
- 2024Graph Condensation for Open-World Graph Learning27 May 2024
- 2024Uncertainty Quantification on Graph Learning: A Survey23 Apr 2024
- 2024GRANOLA: Adaptive Normalization for Graph Neural Networks20 Apr 2024
50 newest of 119 All 119 (JSON)
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2021Combinatorial optimization and reasoning with graph neural networkscited by 267
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022Handling Distribution Shifts on Graphs: An Invariance Perspectivecited by 163
- 2022Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphscited by 144
- 2022Universal Prompt Tuning for Graph Neural Networkscited by 100
- 2022Out-Of-Distribution Generalization on Graphs: A Surveycited by 97
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2021Size-Invariant Graph Representations for Graph Classification Extrapolationscited by 82
- 2023Attending to Graph Transformerscited by 81
- 2021OOD-GNN: Out-of-Distribution Generalized Graph Neural Networkcited by 78
- 2022A Survey on Graph Representation Learning Methodscited by 66
12 most cited of 113 All 113 (JSON)
- 2026Exactness at Inference: A Representational Criterion for Out-of-Distribution Generalization21 Sep 2026
- 2026Train Small, Deploy Large: Zero-Shot GNN Transfer Through Geometric Renormalization30 Jul 2026
- 2026Node4All: Learning Node Representation Beyond Datasets19 Jul 2026
- 2026Graph Neural Networks for Scalable and Transferable Node Centrality Approximation10 Jul 2026
- 2026RAPNet: Accelerating Algebraic Multigrid with Learned Sparse Corrections26 May 2026
- 2026Graph Hierarchical Recurrence for Long-Range Generalization18 May 2026
- 2026Diversity Curves for Graph Representation Learning7 May 2026
- 2026Probabilistic Graphical Model using Graph Neural Networks for Bayesian Inversion of Discrete Structural Component States26 Apr 2026
- 2026Generalization in LLM Problem Solving: The Case of the Shortest Path16 Apr 2026
- 2026CGRL: Causal-Guided Representation Learning for Node-Level Out-of-Distribution Generalization25 Mar 2026
- 2026Spiking Graph Predictive Coding for Reliable OOD Generalization22 Feb 2026
- 2026Learning to Approximate Uniform Facility Location via Graph Neural Networks13 Feb 2026
12 newest of 113 All 113 (JSON)