Graph Neural Networks (GNNs) have become the standard for learning on non-Euclidean data. However, their reliance on local message-passing leads to fundamental structural limitations. This survey explores graph rewiring, a crucial preprocessing strategy that modifies a graph's topology before training to ensure information flows efficiently without losing its distinctiveness.
The Structural Bottlenecks: Oversquashing and Oversmoothing
Standard GNNs rely on message passing, where nodes update their status by aggregating features from their neighbors. While powerful, this approach hits two major structural bottlenecks:
- Oversquashing (OSQ): When a GNN needs to capture information from distant nodes, it must compress an exponential amount of data into a single fixed-size vector. "Bottleneck" edges in the graph act like narrow pipes, causing critical information to be lost during transmission.
- Oversmoothing (OSM): As layers are added to reach distant nodes, repeated averaging causes node representations to converge and become indistinguishable. The graph essentially becomes a "blurry" version of itself.
These are not just algorithmic failures but structural ones. If the graph's "shape" is the problem, rewiring seeks to change that shape before the GNN starts learning.
Taxonomy of Rewiring Techniques
The paper categorizes rewiring techniques based on the mathematical "lens" used to identify where the graph needs fixing:
Curvature-Based Methods
These use concepts from differential geometry (like Ollivier or Forman curvature) adapted for graphs. Negatively curved edges are identified as "bottlenecks" (the narrow pipes) and are bypassed by adding new edges. Conversely, positively curved edges in dense clusters might be removed to prevent oversmoothing.
Spectral and Global Measures
- Effective Resistance: Borrowing from electrical circuit theory, this treats the graph as a network of resistors. High resistance between nodes indicates poor communication, prompting the addition of edges to create "parallel paths."
- Spectral Gap & Cheeger Constant: These methods look at the eigenvalues of the graph Laplacian. Rewiring aims to increase the spectral gap to ensure a well-connected, "expander-like" structure.
- Virtual/Master Nodes: A simpler approach where a "super-node" is added and connected to every other node, effectively reducing the graph's diameter to 2 and creating a global "bulletin board" for information.
Key Insights and Results
One of the most influential ideas in recent GNN research is the curvature-bottleneck connection: bottlenecks in information flow are mathematically equivalent to regions of high negative discrete curvature. This provides a formal geometric target for rewiring.
There is a delicate connectivity-density trade-off. Adding edges fixes oversquashing (better connectivity) but can accelerate oversmoothing (higher density). The best rewiring methods, such as BORF or AFR-3, attempt to balance both by adding and removing edges simultaneously.
In evaluations across heterophilic datasets (e.g., Chameleon, Squirrel) and long-range interaction benchmarks, models like SDRF and FOSR have shown significant improvements. However, a major takeaway is the "cost of sight." While global measures (Resistance/Spectral) are more accurate, they often scale at $O(N^3)$, making them impractical for massive graphs compared to local curvature measures ($O(N^2)$ or better).
Future Directions
While static rewiring is effective, the field is moving toward feature-aware rewiring—understanding how the specific data on the nodes should dictate the optimal communication paths. Additionally, developing $O(E)$ (linear in edges) rewiring remains a major open challenge for scaling these techniques to real-world, massive-scale graphs.
Summary updated