Over-squashing is the failure of message-passing graph neural networks to transmit information between distant nodes because signals from an exponentially growing receptive field must be compressed into fixed-size node representations. In graph learning, it explains why many GNNs perform poorly on tasks that depend on long-range interactions, even when enough layers are stacked to connect the relevant nodes.
The term was introduced by Alon and Yahav in 2021, and later work tied it to graph topology, especially to bottleneck edges, negative curvature and high effective resistance. Also written oversquashing, it is distinct from over-smoothing, although the two problems interact and often appear in the same deep models.
How message passing squashes information
In a message passing neural network, each layer lets a node aggregate features from its direct neighbors. After k layers, a node depends on its k-hop neighborhood, and in many graphs the number of nodes in that neighborhood grows exponentially with k. All of that information must pass through hidden vectors of constant width, typically 64 to 512 dimensions.
The problem is sharpest at structural bottlenecks. When two dense communities are connected by a single bridge edge, every message from one side must traverse that edge, so the contributions of hundreds of distant nodes are mixed and diluted before they reach the target. Gradients flowing back through the same path become tiny, and the network effectively cannot learn the dependency.
Formally, over-squashing is measured with the Jacobian sensitivity of a node output with respect to the input features of a distant node. Topping and colleagues showed in 2022 that this sensitivity is bounded by powers of the normalized adjacency matrix, so it decays quickly when paths between the two nodes are few and long.
Topological causes and how they are measured
Research has linked over-squashing to several graph-theoretic quantities, each capturing a different view of the same bottleneck phenomenon. The table summarizes the main measures used in the literature.
| Measure | What it captures | Relation to over-squashing |
|---|---|---|
| Ricci curvature of edges | Local overlap of neighborhoods | Strongly negative edges act as bottlenecks |
| Cheeger constant | Global ease of cutting the graph | Small values indicate severe bottlenecks |
| Spectral gap | Second eigenvalue of the graph Laplacian | Small gap correlates with poor mixing |
| Effective resistance | Electrical distance between nodes | High resistance means weak signal transfer |
| Commute time | Expected random walk round trip | Long commute times predict squashing |
These quantities are related: a small spectral gap implies a small Cheeger constant by the Cheeger inequality, and effective resistance is proportional to commute time. The practical lesson is that tree-like and community-structured graphs are the most vulnerable, while expander-like graphs with many short paths suffer least.
Over-squashing compared with related failure modes
Over-squashing is often confused with over-smoothing and with limited expressive power. The comparison below separates the three problems, which have different causes and remedies.
| Limitation | Core symptom | Main cause | Typical remedy |
|---|---|---|---|
| Over-squashing | Distant information has little influence | Bottlenecks and fixed-width vectors | Rewiring, global attention |
| Over-smoothing | Node features become indistinguishable | Repeated averaging over many layers | Residuals, normalization, fewer layers |
| Limited expressivity | Non-isomorphic graphs look identical | Bound of the Weisfeiler-Lehman test | Higher-order or positional features |
| Under-reaching | Target lies beyond the receptive field | Too few layers | More layers or shortcut edges |
The tension between these problems shapes design choices. Adding layers cures under-reaching but worsens over-smoothing, while adding many new edges reduces over-squashing but can also accelerate over-smoothing, because features are averaged over larger neighborhoods. Analyses since 2023 describe this as a trade-off rather than two independent issues.
Methods that mitigate over-squashing
Most remedies change which nodes can exchange messages, either by modifying the input graph or by adding a global communication channel. The decision table lists widely studied approaches.
| Approach | Mechanism | Trade-off |
|---|---|---|
| Fully adjacent last layer | Connects all nodes in the final layer | Simple, but quadratic cost on large graphs |
| Curvature-based rewiring | Adds edges around negatively curved edges | Extra preprocessing, may alter semantics |
| Spectral rewiring | Adds edges that enlarge the spectral gap | Can increase over-smoothing |
| Expander propagation | Interleaves an expander graph | Ignores original structure in those layers |
| Virtual node | One node linked to all others | Creates a new single-node bottleneck |
| Graph transformer | Global self-attention between nodes | Quadratic memory, needs positional encoding |
Increasing the hidden dimension also helps, because wider vectors can store more information, but theory and experiments show that width alone cannot remove topological bottlenecks. Graph rewiring and graph transformers address the structure itself and are the dominant research directions.
Evaluation typically uses synthetic tasks such as NeighborsMatch on binary trees, together with the Long Range Graph Benchmark, whose peptide and image-superpixel datasets require information to travel across many hops.
Practical implications for model design
Over-squashing matters most when the target depends on distant node interactions, as in molecular properties determined by remote functional groups, program analysis over long control-flow paths or traffic networks with narrow corridors. For homophilous node classification, where nearby nodes already share labels, its effect is usually small.
- Diagnose first: compute curvature or effective resistance to see whether the graph contains strong bottlenecks.
- Prefer light remedies: a virtual node or a few rewired edges often recover most of the lost accuracy.
- Watch the trade-off: monitor over-smoothing whenever edges or layers are added.
- Check task range: if labels depend only on local structure, extra machinery adds cost without benefit.
A common misconception holds that attention-based GNNs such as graph attention networks solve the problem automatically. Attention only reweights existing neighbors, so it cannot create new paths around a bridge edge. Similarly, sampling-based methods such as GraphSAGE reduce computation but may worsen squashing, because they discard part of each neighborhood. Choosing a remedy therefore starts with understanding where the bottleneck lies in the specific graph, not with selecting the most complex architecture available.
In everyday language
A graph neural network passes messages between connected points, a bit like a chain of whispers. Each point can only talk to its neighbors. Over many steps, news from far away must squeeze through the same few links. Too much information arrives through too narrow a channel.
The result resembles a crowded bridge between two cities. Every traveler must cross it, so most of them never arrive. In the same way, distant facts get lost before they reach the point that needs them.
Seen in the real world
A pharmaceutical research team trains a graph convolutional network to predict the binding behavior of peptide molecules, where each atom is a node and each bond is an edge. Peptides are long chains, so atoms that jointly determine the property may sit more than 20 bonds apart. A six-layer model reaches only modest accuracy, and adding layers makes results worse.
Sensitivity analysis shows that atoms at one end of the chain barely influence predictions at the other end, a clear sign of over-squashing. The team adds a virtual node and later switches to a graph transformer with Laplacian positional encodings. On their validation set, the error drops substantially, and the model now captures long-range interactions that the original architecture could not learn.