Over-squashing

Also known as: oversquashing

On this page 7

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.

MeasureWhat it capturesRelation to over-squashing
Ricci curvature of edgesLocal overlap of neighborhoodsStrongly negative edges act as bottlenecks
Cheeger constantGlobal ease of cutting the graphSmall values indicate severe bottlenecks
Spectral gapSecond eigenvalue of the graph LaplacianSmall gap correlates with poor mixing
Effective resistanceElectrical distance between nodesHigh resistance means weak signal transfer
Commute timeExpected random walk round tripLong commute times predict squashing
Measures associated with over-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 is often confused with over-smoothing and with limited expressive power. The comparison below separates the three problems, which have different causes and remedies.

LimitationCore symptomMain causeTypical remedy
Over-squashingDistant information has little influenceBottlenecks and fixed-width vectorsRewiring, global attention
Over-smoothingNode features become indistinguishableRepeated averaging over many layersResiduals, normalization, fewer layers
Limited expressivityNon-isomorphic graphs look identicalBound of the Weisfeiler-Lehman testHigher-order or positional features
Under-reachingTarget lies beyond the receptive fieldToo few layersMore layers or shortcut edges
Three limitations of message-passing GNNs

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.

ApproachMechanismTrade-off
Fully adjacent last layerConnects all nodes in the final layerSimple, but quadratic cost on large graphs
Curvature-based rewiringAdds edges around negatively curved edgesExtra preprocessing, may alter semantics
Spectral rewiringAdds edges that enlarge the spectral gapCan increase over-smoothing
Expander propagationInterleaves an expander graphIgnores original structure in those layers
Virtual nodeOne node linked to all othersCreates a new single-node bottleneck
Graph transformerGlobal self-attention between nodesQuadratic memory, needs positional encoding
Mitigation strategies

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.