Understanding Oversquashing in GNNs through the Lens of Effective Resistance

Mitchell Black, Zhengchao Wan, Amir Nayyeri, Yusu Wang
2/14/2023
cs.LG

No official code found. Best implementation: blackmit/gtr_rewiring (7 stars, last commit 2025-06-23).

Abstract

Message passing graph neural networks (GNNs) are a popular learning architectures for graph-structured data. However, one problem GNNs experience is oversquashing, where a GNN has difficulty sending information between distant nodes. Understanding and mitigating oversquashing has recently received significant attention from the research community. In this paper, we continue this line of work by analyzing oversquashing through the lens of the effective resistance between nodes in the input graph. Effective resistance intuitively captures the ``strength'' of connection between two nodes by paths in the graph, and has a rich literature spanning many areas of graph theory. We propose to use total effective resistance as a bound of the total amount of oversquashing in a graph and provide theoretical justification for its use. We further develop an algorithm to identify edges to be added to an input graph to minimize the total effective resistance, thereby alleviating oversquashing. We provide empirical evidence of the effectiveness of our total effective resistance based rewiring strategies for improving the performance of GNNs.

View on arXivView PDF

Code Implementations(1)

A PyTorch Geometric implementation of the Greedy Total Resistance (GTR) rewiring algorithm.

71Python, Jupyter NotebookApr 1, 20231 years ago

Similar Papers

Cite this paper

@article{black2023understanding,
  title  = {Understanding Oversquashing in GNNs through the Lens of Effective Resistance},
  author = {Mitchell Black and Zhengchao Wan and Amir Nayyeri and Yusu Wang},
  year   = {2023},
  eprint = {2302.06835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06835v2},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.06835.svg)](https://codeofpaper.com/paper/2302.06835)

Discussion