On Vanishing Gradients, Over-Smoothing, and Over-Squashing in GNNs: Bridging Recurrent and Graph Learning
Álvaro Arroyo, Alessio Gravina, Benjamin Gutteridge, Federico Barbero, Claudio Gallicchio, Xiaowen Dong, Michael Bronstein, Pierre Vandergheynst
TL;DR
This paper unifies two long-standing issues in graph neural networks—over-smoothing and over-squashing—by framing GNN training dynamics through vanishing gradients and viewing GNNs as recurrent, stateful systems. It introduces GNN-SSM, a state-space model that fixes a unit-modulus Lambda and a controllable input matrix B to place the layer Jacobian at the edge of chaos, thereby mitigating gradient vanishing without extra trainable parameters. The authors theoretically link vanishing gradients to feature collapse via Lipschitz contraction and Dirichlet energy decay, and empirically validate their claims on standard benchmarks, showing that controlling the Jacobian spectrum yields deeper, more expressive GNNs. They further argue that overcoming over-squashing requires a combination of strong connectivity and non-dissipative dynamics, demonstrated via k-hop rewiring and the GNN-SSM backbone, achieving improved long-range propagation and performance on long-range graph tasks.
Abstract
Graph Neural Networks (GNNs) are models that leverage the graph structure to transmit information between nodes, typically through the message-passing operation. While widely successful, this approach is well known to suffer from the over-smoothing and over-squashing phenomena, which result in representational collapse as the number of layers increases and insensitivity to the information contained at distant and poorly connected nodes, respectively. In this paper, we present a unified view of these problems through the lens of vanishing gradients, using ideas from linear control theory for our analysis. We propose an interpretation of GNNs as recurrent models and empirically demonstrate that a simple state-space formulation of a GNN effectively alleviates over-smoothing and over-squashing at no extra trainable parameter cost. Further, we show theoretically and empirically that (i) GNNs are by design prone to extreme gradient vanishing even after a few layers; (ii) Over-smoothing is directly related to the mechanism causing vanishing gradients; (iii) Over-squashing is most easily alleviated by a combination of graph rewiring and vanishing gradient mitigation. We believe our work will help bridge the gap between the recurrent and graph neural network literature and will unlock the design of new deep and performant GNNs.
