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

Short-Range Oversquashing

Yaaqov Mishayev, Yonatan Sverdlov, Tal Amir, Nadav Dym

TL;DR

This paper reveals that the "oversquashing" problem, which limits Graph Neural Networks (GNNs) on long-range tasks, also affects them on short-range tasks due to a bottleneck effect. This distinction helps explain why Transformers often outperform GNNs, even when GNNs are augmented with techniques like virtual nodes.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs), particularly Message Passing Neural Networks (MPNNs), are powerful for learning on graph data. However, their performance degrades significantly as the number of layers increases, a phenomenon known as "oversquashing." Traditionally, oversquashing has been attributed to issues with processing long-range dependencies in graphs, leading to vanishing gradients or requiring impractically large node feature dimensions to maintain information flow. This has spurred interest in alternative architectures like Graph Transformers.

This paper challenges the notion that oversquashing is solely a long-range problem. The authors investigate whether similar issues arise in short-range graph tasks and, if so, what mechanisms are at play. They aim to disentangle the causes of oversquashing and provide a clearer understanding of its limitations, particularly in relation to the effectiveness of Graph Transformers.

Methods

The core of the paper's methodology involves constructing synthetic graph-learning problems designed to isolate specific aspects of oversquashing.

  • Synthetic Graph Construction: The authors introduce a "Two-Radius" problem family. These graphs have source nodes, target nodes, and a central node (or multiple central nodes). The task is to transfer information (labels) from source nodes to target nodes, with the central nodes acting as conduits. Crucially, these graphs are designed such that the "problem radius" (distance between source and target) is small, and only a few message-passing iterations are theoretically sufficient to solve the task.
  • Theoretical Analysis: They provide theoretical proofs demonstrating that for the Two-Radius problem, MPNNs require exponentially large node feature dimensions to solve the task exactly, even with a fixed, small number of iterations. This highlights a "bottleneck effect" independent of long-range interactions. They also show that vanishing gradients are not the primary issue in these short-range scenarios.
  • Empirical Evaluation: They train and evaluate various MPNN architectures (GCN, GIN, GAT, GraphSAGE) and a Set Transformer on these synthetic tasks. They compare performance with and without "virtual nodes" (VNs), a common technique to mitigate oversquashing in MPNNs.
  • Analysis of Existing Explanations: The paper critically examines established explanations for oversquashing, such as problem radius, vanishing gradients, spectral properties (spectral gap, Cheeger constant), Ricci curvature, and effective resistance. They demonstrate why these measures fail to capture the oversquashing observed in their short-range Two-Radius problem.

Datasets

The paper primarily uses newly constructed synthetic datasets for evaluation:

  • Tree Neighbors-Match: A problem introduced by Alon and Yahav [2], used as a baseline example of a task where depth increases problem radius and receptive field size.
  • Ring Transfer: A problem from Bodnar et al. [21] and Di Giovanni et al. [9], used to illustrate vanishing gradients in long-range tasks.
  • Two-Radius Problem (Gn,k): This is the main synthetic benchmark introduced by the authors. It consists of graphs with varying numbers of source/target nodes (n) and central nodes (k). This dataset is specifically designed to isolate the short-range bottleneck effect.

Key Insights and Ideas

  • Oversquashing is not just a long-range problem: The most significant insight is that the bottleneck phenomenon causing oversquashing can occur even in short-range tasks with few message-passing steps. This challenges previous assumptions and necessitates a more nuanced understanding.
  • Bottleneck vs. Vanishing Gradients: The paper successfully disentangles two distinct mechanisms: the "bottleneck phenomenon" (requiring large feature dimensions) and "vanishing gradients" (associated with long-range tasks). The Two-Radius problem isolates the bottleneck effect.
  • Limitations of Virtual Nodes: The study shows that augmenting MPNNs with virtual nodes, while helpful for long-range tasks, does not resolve the short-range bottleneck issue in the Two-Radius problem. This suggests VNs are not a universal fix for oversquashing.
  • Transformers' Advantage: Graph Transformers, with their self-attention mechanism, naturally handle the Two-Radius problem effectively, highlighting their robustness to this specific bottleneck. This provides a clear, interpretable scenario where Transformers outperform MPNNs.
  • Existing Metrics Fall Short: Standard metrics for assessing graph connectivity and oversquashing potential (like spectral gap, Cheeger constant, Ricci curvature, effective resistance) fail to predict or explain the oversquashing observed in the short-range Two-Radius problem. This points to a need for new theoretical tools.

Key Results

  • Theoretical Bottleneck: For the Two-Radius problem, MPNNs require node feature dimensions that grow polynomially (specifically, $O(n \log n)$ for $k=1$) with the number of nodes n to solve the task exactly.
  • Empirical Degradation: Standard MPNNs (GCN, GIN, GAT, GraphSAGE) show a significant drop in accuracy on the Two-Radius problem as n increases, even with large hidden dimensions (e.g., 1024).
  • Transformer Success: A Set Transformer consistently achieves 100% accuracy on the Two-Radius problem across all tested n values.
  • Virtual Nodes Ineffective: GCN augmented with virtual nodes shows only modest improvements and still fails to solve the Two-Radius problem for larger n.
  • Vanishing Gradients Absent: In the Two-Radius problem, accuracy degrades with n, but gradient norms do not show a significant decrease, indicating vanishing gradients are not the cause.

Limitations and Future Work

  • Limitations of Existing Measures: The paper highlights that current theoretical explanations and diagnostic tools for oversquashing are insufficient for short-range bottleneck scenarios.
  • Need for New Metrics: The authors suggest the need for refined metrics that can accurately capture short-range bottlenecks.
  • Benchmark Utility: The Two-Radius problem is proposed as a valuable benchmark for future research on oversquashing.
  • Architecture Design: The findings encourage the design of new architectures that can combine the efficiency of MPNNs with the expressivity of Transformers to overcome these limitations.
  • Further Theoretical Work: While the paper provides theoretical bounds for the Two-Radius problem, further theoretical work might be needed to fully understand the interplay of feature dimension, graph structure, and MPNN expressivity.

Summary updated

BibTeX
@inproceedings{mishayev2025short,
  author = {Yaaqov Mishayev and Yonatan Sverdlov and Tal Amir and Nadav Dym},
  title = {{Short-Range Oversquashing}},
  booktitle = {LOG},
  year = {2025},
  url = {https://openreview.net/forum?id=rmX8Jamnyg},
}
Figure