Understanding the Relationship between Over-smoothing and Over-squashing in Graph Neural Networks

Jhony H. Giraldo, Fragkiskos D. Malliaros, Thierry BouwmansarXiv 2022 · OpenReview

Abstract

Graph Neural Networks (GNNs) have been successfully applied in many applications in computer sciences. Despite the success of deep learning architectures in other domains, deep GNNs still underperform their shallow counterparts. There are many open questions about deep GNNs, but over-smoothing and over-squashing are perhaps the most intriguing issues. When stacking multiple graph convolutional layers, the over-smoothing and over-squashing problems arise and have been defined as the inability of GNNs to learn deep representations and propagate information from distant nodes, respectively. Even though the widespread definitions of both problems are similar, these phenomena have been studied independently. This work strives to understand the underlying relationship between over-smoothing and over-squashing from a topological perspective. We show that both problems are intrinsically related to the spectral gap of the Laplacian of the graph. Therefore, there is a trade-off between these two problems, i.e., we cannot simultaneously alleviate both over-smoothing and over-squashing. We also propose a Stochastic Jost and Liu curvature Rewiring (SJLR) algorithm based on a bound of the Ollivier's Ricci curvature. SJLR is less expensive than previous curvature-based rewiring methods while retaining fundamental properties. Finally, we perform a thorough comparison of SJLR with previous techniques to alleviate over-smoothing or over-squashing, seeking to gain a better understanding of both problems.

Introduction

While deep learning has revolutionized computer vision and natural language processing, Graph Neural Networks (GNNs) often perform better when they are "shallow," typically utilizing only a few layers. As we stack more layers to capture long-range dependencies, two major issues arise: over-smoothing, where node representations converge to a stationary distribution and lose local information, and over-squashing, where information from distant nodes is lost as it is compressed through topological "bottlenecks."

Long-range dependencies and bottlenecks in graph message passing.

Previously, researchers treated these as separate problems. This paper addresses the gap in understanding how these two phenomena interact, providing a theoretical framework that demonstrates a fundamental trade-off: topological changes intended to fix one often exacerbate the other.

Theoretical Framework: The Spectral Gap Trade-off

The authors establish a formal link between over-smoothing and over-squashing using the Cheeger inequality, which relates the "bottleneckedness" of a graph to its spectral gap ($\lambda_2$, the first non-zero eigenvalue of the Laplacian).

The most significant insight is the proof that mixing time (related to over-smoothing) and the Cheeger constant (related to over-squashing) are inversely bound. If one adds edges to alleviate a bottleneck and reduce over-squashing, the spectral gap increases. This acceleration of the "mixing" process directly leads to faster over-smoothing.

The relationship between edge modification and the spectral gap ($\lambda_2$).

Stochastic Jost and Liu Curvature Rewiring (SJLR)

To navigate this trade-off, the paper introduces Stochastic Jost and Liu Curvature Rewiring (SJLR). This method utilizes Jost and Liu Curvature (JLC), a discrete curvature metric that serves as a computationally efficient proxy for Ollivier’s Ricci curvature. JLC identifies bottlenecks (negative curvature) and redundant edges.

Unlike static pre-processing methods, SJLR stochastically adds and removes edges during each training epoch. It employs a hybrid scoring system combining JLC (topology) and node embedding similarity (features) to decide which edges to drop or add. Crucially, the original graph remains unchanged during inference, ensuring the model generalizes to the actual data structure while benefiting from the regularizing effect of rewiring during training.

Experimental Results

The authors evaluated SJLR on nine diverse graph datasets, including homophilous and heterophyllous structures such as WebKB (Cornell, Texas, Wisconsin), Wikipedia-based graphs (Chameleon, Squirrel), and social/citation networks (Actor, Cora, Citeseer, Pubmed).

SJLR consistently outperformed state-of-the-art rewiring methods like SDRF and FoSR:

  • SGC Backbone: SJLR achieved an average accuracy of 57.78% across all datasets, compared to the 53.67% baseline.
  • GCN Backbone: It reached 58.89% overall, significantly outperforming the 57.44% baseline.
  • Efficiency: SJLR is significantly faster than methods using Balanced Forman Curvature (BFC). For a graph with 200 nodes, JLC computation was orders of magnitude faster, enhancing scalability for larger networks.

Conclusion and Future Work

This work clarifies the intrinsic relationship between over-smoothing and over-squashing, showing they are two sides of the same topological coin. While SJLR provides a robust and efficient way to balance these effects, challenges remain. Hyperparameter sensitivity regarding the percentage of edges to modify requires extensive search. Furthermore, because JLC relies on triangle counting, it may struggle with locally tree-like graphs. Future research may explore Neural Architecture Search (NAS) to automate parameter tuning or develop curvature metrics that account for longer path distances.

Summary updated

BibTeX
@misc{giraldo2022understanding,
  author = {Jhony H. Giraldo and Fragkiskos D. Malliaros and Thierry Bouwmans},
  title = {{Understanding the Relationship between Over-smoothing and Over-squashing in Graph Neural Networks}},
  year = {2022},
  eprint = {2212.02374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.02374},
}
Figure