On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topology
Francesco Di GiovanniLorenzo GiustiFederico BarberoGiulia LuisePietro LioMichael M. Bronstein
Proves theoretically that over-squashing in message passing neural networks is fundamentally driven by graph topology and high commute time rather than network depth, providing a unified framework that justifies both spatial and spectral graph rewiring solutions.
Message Passing Neural Networks (MPNNs) are widely used for machine learning on graph-structured data, operating by passing information between adjacent nodes. However, they suffer from "over-squashing," an information bottleneck where node representations become insensitive to data located at distant nodes due to the exponential expansion of neighborhood paths. While practitioners have proposed various graph-rewiring techniques to alleviate this issue, the theoretical foundation explaining why over-squashing occurs and how model architectural choices interact with graph structure has remained incomplete.
The article establishes a rigorous mathematical framework to evaluate the precise impacts of network width (hidden layer dimension), network depth (number of layers), and graph topology on over-squashing. Through theoretical sensitivity bounds and empirical benchmarks, the authors demonstrate why existing rewiring heuristics work and identify the fundamental limitations of architectural adjustments.
To conduct this evaluation, the authors performed sensitivity analyses on the Jacobian matrices of node features across network layers. They examined two distinct depth regimes: one where depth matches the graph diameter and another where depth is arbitrarily large. Furthermore, they connected message propagation bounds to random walk metrics on graphs, including access time, commute time, and effective resistance. These theoretical findings were validated through controlled "graph transfer" tasks on synthetic graph topologies (CrossedRing, Ring, and CliquePath) using standard architectures (such as GCN, GIN, SAGE, and GAT) and signal propagation experiments on benchmark datasets including PROTEINS, NCI1, PTC, and ENZYMES.
The findings establish that graph topology is the primary driver of over-squashing, which occurs predominantly between node pairs characterized by high commute time or high effective resistance. Increasing network width can mathematically mitigate over-squashing, but doing so increases sensitivity globally, which risks severe overfitting and degraded generalization. In contrast, increasing network depth cannot resolve the issue: when depth is comparable to the distance between nodes, over-squashing still occurs across distant paths, and when depth is increased further to capture long-range interactions, the model transitions directly into the vanishing gradient problem. Crucially, the authors prove that graph rewiring—both spatial additions of shortcut edges and spectral modifications that expand the Cheeger constant—provably reduces commute time and effective resistance, offering a unified explanation for why rewiring succeeds where purely architectural changes fail.
These results show that organizations and practitioners deploying MPNNs cannot solve long-range information bottlenecks simply by scaling model depth or excessively widening layers. Relying on depth introduces severe training instability through vanishing gradients, while uncontrolled width expansion increases compute costs and risks poor generalization. Instead, the findings justify graph rewiring as the theoretically sound method to resolve information bottlenecks without compromising training dynamics.
For engineering and research teams facing over-squashing in graph learning tasks, the article supports adopting targeted graph rewiring strategies, such as spectral rewiring or effective resistance-based edge insertion, rather than increasing model depth. When spatial rewiring is chosen, teams must manage the trade-off between improved connectivity and increased graph density, which can introduce computational overhead and dilute local features. Further empirical research is recommended to establish concrete selection criteria determining exactly when spectral rewiring is preferable to spatial rewiring across specific real-world domain applications.
The analysis relies on theoretical bounds derived primarily for standard linear aggregation MPNNs with identical edge weightings and assumes uniform activation probabilities across computation paths. While the conclusions provide high confidence regarding fundamental message-passing limits, readers should exercise caution when applying these exact formulas directly to complex attention-based architectures (such as GATs), where dynamic edge pruning and gating mechanisms can introduce additional behavioral nuances.
- Paper: Neural Message Passing for Quantum Chemistry, Justin Gilmer et al. (2017). Introduces the standard Message Passing Neural Network (MPNN) framework whose theoretical depth, width, and topological limits are analyzed in the source.
- Paper: How Powerful are Graph Neural Networks?, Keyulu Xu et al. (2019). Establishes the foundational theoretical limits of standard MPNN expressiveness and neighbor aggregation that motivate deeper analyses of information flow bottlenecks.
- Paper: Representation Learning on Graphs with Jumping Knowledge Networks, Keyulu Xu et al. (2018). Connects graph neighborhood propagation directly to random walk dynamics and layer-wise aggregation limits in GNNs.
- Paper: Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological View, Deli Chen et al. (2019). Analyzes how graph topology and increasing layer depth cause representation degradation in GNNs.
- Paper: Semi-Supervised Classification with Graph Convolutional Networks, Thomas N. Kipf et al. (2017). Defines the core localized graph convolutional architecture that serves as a primary baseline analyzed for over-squashing.
- Paper: Graph Attention Networks, Petar Veličković et al. (2018). Presents Graph Attention Networks, one of the central attention-based architectures benchmarked and evaluated for sensitivity bounds in the source.
- Paper: A Generalization of ViT/MLP-Mixer to Graphs, Xiaoxin He et al. (2023). Proposes a patch-based Graph ViT/MLP-Mixer architecture specifically designed to capture long-range dependencies and overcome over-squashing with linear computational complexity.
- Paper: Cooperative Graph Neural Networks, Ben Finkelshtein et al. (2024). Extends message-passing paradigms by introducing game-theoretic cooperative mechanisms to regulate and optimize inter-node information exchange.
- Paper: Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing, Yunchong Song et al. (2023). Develops an ordered neuron-allocation framework to prevent the degradation of multi-hop neighborhood information across deep layers.
- Paper: Demystifying Structural Disparity in Graph Neural Networks: Can One Size Fit All?, Haitao Mao et al. (2023). Investigates localized performance disparities and generalization bounds across diverse topological subgraphs in GNNs.
