NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Oversquashing in GNNs through the lens of information contraction and graph expansion

Pradeep Kr. Banerjee, Kedar Karhadkar, Yuguang Wang, Uri Alon, Guido MontúfarAllerton 2022 · DOI

Abstract: The quality of signal propagation in message-passing graph neural networks (GNNs) strongly influences their expressivity as has been observed in recent works. In particular, for prediction tasks relying on long-range interactions, recursive aggregation of node features can lead to an undesired phenomenon called "oversquashing". We present a framework for analyzing oversquashing based on information contraction. Our analysis is guided by a model of reliable computation due to von Neumann that lends a new insight into oversquashing as signal quenching in noisy computation graphs. Building on this, we propose a graph rewiring algorithm aimed at alleviating oversquashing. Our algorithm employs a random local edge flip primitive motivated by an expander graph construction. We compare the spectral expansion properties of our algorithm with that of an existing curvature-based non-local rewiring strategy. Synthetic experiments show that while our algorithm in general has a slower rate of expansion, it is overall computationally cheaper, preserves the node degrees exactly and never disconnects the graph.

Introduction

Message-passing Graph Neural Networks (GNNs) learn by iteratively aggregating information from a node’s neighborhood. For tasks requiring "long-range" interactions—where a prediction depends on nodes separated by large distances—GNNs require many layers. However, as the number of layers ($L$) increases, the size of the neighborhood being aggregated grows exponentially. When this massive amount of information is compressed into a fixed-size node vector, a bottleneck occurs. This phenomenon, known as oversquashing, causes the signal from distant nodes to be effectively "washed out."

Theoretical Foundation: Oversquashing as Signal Quenching

This work provides a formal information-theoretic framework to understand oversquashing, treating it as signal decay in noisy computation graphs. By modeling GNN computation as a "noisy Boolean circuit" (inspired by von Neumann) and applying the Strong Data Processing Inequality (SDPI), we prove that the mutual information between an input feature and the final node representation decays exponentially as the graph distance increases. In this view, oversquashing is essentially "signal quenching" caused by the expansion of the computation tree.

The G-RLEF Algorithm

To combat these bottlenecks, we introduce Greedy Random Local Edge Flip (G-RLEF), a computationally efficient rewiring algorithm designed to increase a graph's "spectral gap"—a key measure of graph expansion and connectivity.

The Edge Flip Primitive

The core of the algorithm is a "local edge flip." Given a path $i-u-v-j$, the algorithm removes edges $(i,u)$ and $(j,v)$ and adds $(i,v)$ and $(j,u)$. This specific swap is guaranteed to keep node degrees exactly the same, preserving the graph's fundamental structural budget.

The local edge flip primitive used in G-RLEF to rewire graphs while preserving node degrees. Part (a) illustrates the basic 2x2 swap rule.

Greedy Strategy via Triangle Counting

Rather than flipping edges at random, G-RLEF targets edges with high effective resistance—the "bridge" edges that form bottlenecks. Since calculating exact resistance is computationally expensive, we use inverse triangle counts as a fast proxy. Bottleneck edges typically participate in fewer triangles; by removing them and creating new connections, the algorithm effectively "smooths out" the graph's negative curvature.

Experimental Evaluation

We evaluated G-RLEF on controlled synthetic environments designed to isolate oversquashing, such as Dumbbell graphs, Ring-of-Cliques, and the NEIGHBORSMATCH task. The latter requires a target node to match its label to a distant node based on that node's degree, testing long-range dependency handling.

Key Results

  • Spectral Improvement: G-RLEF consistently increases the spectral gap of bottlenecked graphs faster than purely random flipping and more stably than non-local methods like SDRF.
  • Accuracy Gains: On the NEIGHBORSMATCH task, standard GNNs typically fail as the problem radius increases. Applying G-RLEF leads to a direct, monotonic increase in training accuracy as the spectral gap improves.
  • Efficiency and Stability: By using local flips and triangle counting, the method avoids heavy global computations and, unlike some existing methods, never disconnects the graph.
The relationship between spectral gap improvement and training accuracy on the NEIGHBORSMATCH task. As G-RLEF iterations increase the spectral gap, the GNN's ability to resolve long-range dependencies improves significantly.

Conclusion

G-RLEF offers a theoretically grounded and computationally efficient approach to alleviating oversquashing in GNNs. By focusing on degree-preserving local flips, it improves graph expansion without fundamentally changing the graph's density. Future work will focus on scaling these methods to large-scale real-world datasets and exploring feature-aware rewiring strategies.

Summary updated

BibTeX
@inproceedings{banerjee2022oversquashing,
  author = {Pradeep Kr. Banerjee and Kedar Karhadkar and Yuguang Wang and Uri Alon and Guido Montúfar},
  title = {{Oversquashing in GNNs through the lens of information contraction and graph expansion}},
  booktitle = {Allerton},
  year = {2022},
  doi = {10.1109/allerton49937.2022.9929363},
}
Figure