Understanding Oversquashing in GNNs through the Lens of Effective Resistance

Mitchell Black, Zhengchao Wan, Amir Nayyeri, Yusu Wang

Introduction

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data. However, their performance is often hindered by three fundamental phenomena: underreaching, oversmoothing, and oversquashing. While underreaching occurs when a model lacks sufficient layers to connect distant nodes, and oversmoothing occurs when excessive layers make node features indistinguishable, oversquashing represents a structural bottleneck. It occurs when information from an exponentially growing number of nodes must be compressed into a fixed-size vector as it passes through a graph bottleneck, such as a bridge between two clusters.

This paper introduces a new theoretical framework to address oversquashing by utilizing the concept of effective resistance. By establishing a formal link between resistance and information flow, the authors propose a novel rewiring strategy called Greedy Total Resistance (GTR) that strategically adds edges to the graph to alleviate bottlenecks.

Effective Resistance and the Jacobian Bound

To quantify oversquashing, the authors look to electrical engineering. In a graph viewed as an electrical circuit, the effective resistance ($R_{u,v}$) between two nodes is defined as the voltage difference required to push a unit of current between them.

The Jacobian Bound

The core theoretical contribution of this work is the Jacobian Bound. The authors prove that the "influence" one node has on another—mathematically represented as the norm of the Jacobian of the node features—is upper-bounded by a function of their effective resistance. This provides a rigorous foundation for the intuition that lower effective resistance correlates with better information flow. Unlike previous metrics like the spectral gap or Ricci curvature, effective resistance provides a global measure that accounts for all possible paths between nodes, rather than just local connectivity.

The GTR Rewiring Algorithm

Building on this theoretical insight, the authors developed Greedy Total Resistance (GTR), an algorithm designed to "rewire" the graph by adding shortcut edges that minimize the total effective resistance ($R_{tot}$).

Key Components of GTR:

  1. Biharmonic Distance: To efficiently identify which edges to add, the algorithm utilizes biharmonic distance. This metric helps identify pairs of nodes where a new connection would result in the most significant reduction in the graph's total resistance.
  2. Greedy Selection: The algorithm iteratively adds edges that provide the maximum benefit to the global resistance profile. While finding the absolute optimal set of edges is NP-Hard, this greedy heuristic proves highly effective in practice.
  3. Relational GNNs: To prevent the model from being misled by these "artificial" shortcut edges, the authors employ Relational GNNs. By treating the original edges and the added GTR edges as different relation types, the model can learn to weight the structural information and the shortcut signals differently.

Experimental Evaluation

The GTR method was evaluated against standard benchmarks from the TUDataset, including bioinformatics (Mutag, Proteins, Enzymes) and social networks (Reddit-Binary, IMDB-Binary).

Performance Highlights:

  • Significant Accuracy Gains: On the Enzymes dataset, an R-GCN architecture using GTR rewiring achieved 41.33% accuracy, a substantial increase from the 28.60% achieved by the base model without rewiring.
  • Competitive Edge: GTR consistently outperformed curvature-based rewiring methods (such as SDRF) and performed on par with or better than FoSR (First-order Spectral Rewiring), the previous state-of-the-art in spectral rewiring.
  • Complementary Scaling: The research found that rewiring and increasing the hidden dimension of the GNN are complementary strategies. Combining both approaches yielded the best results, suggesting that structural rewiring and increased model capacity solve different aspects of the information bottleneck.

Insights and Discussion

This work shifts the focus from local graph properties to the global spectrum. While many researchers focus on the "spectral gap" (the second eigenvalue of the Laplacian), this paper argues that total resistance—which incorporates the entire spectrum—provides a more meaningful bound on oversquashing.

Limitations and Future Work

Despite its success, GTR faces challenges regarding scalability and hyperparameter tuning. The process of adding edges is a greedy heuristic, and the optimal number of edges to add varies by dataset, requiring manual tuning. Furthermore, while the authors suggest optimizations using nearly-linear time Laplacian solvers, the computational cost remains higher than simple local rewiring methods. Future research may focus on faster approximation algorithms to bring GTR to industrial-scale graphs.

Conclusion

By framing oversquashing through the lens of effective resistance, this paper provides both a robust theoretical bound for information loss and a practical algorithm for improving GNN performance. GTR rewiring demonstrates that by strategically addressing global bottlenecks, we can significantly enhance the ability of GNNs to capture long-range dependencies in complex datasets.

Summary updated

BibTeX
@inproceedings{black2023understanding,
  author = {Mitchell Black and Zhengchao Wan and Amir Nayyeri and Yusu Wang},
  title = {{Understanding Oversquashing in GNNs through the Lens of Effective Resistance}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=50SO1LwcYU},
}
Figure