Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data, operating by passing messages between neighboring nodes. However, as these networks scale, they frequently encounter two major structural hurdles: over-squashing (where information from distant nodes gets compressed and lost through topological bottlenecks) and over-smoothing (where node features become indistinguishable from their neighbors after multiple layers).
To combat these issues, researchers often "rewire" graphs—adding or deleting edges to make the graph more like an "expander graph" by maximizing its spectral gap. The prevailing logic is that better connectivity reduces bottlenecks. However, this paper challenges that conventional wisdom, demonstrating that while better connectivity helps with data bottlenecks, it can inadvertently destroy useful community structures.
The Pitfalls of Purely Topological Rewiring
The critical oversight in maximizing the spectral gap is that it often involves adding edges between different communities and deleting edges within them.
If a graph's communities represent the actual classes we are trying to predict (a concept known as the "cluster hypothesis" or high "graph-task alignment"), purely topological rewiring can accidentally delete the exact signal the GNN needs to succeed. The authors prove theoretically that when communities match labels, maximizing the spectral gap dilutes the class signal and harms performance. Conversely, in many real-world scenarios, minimizing the spectral gap to strengthen communities actually leads to better generalization.
Three New Rewiring Strategies
Moving beyond purely topological criteria, the authors propose three novel rewiring families that explicitly target community structure, node labels, and their alignment:
1. ComMa (Community Management)
ComMa is a computationally efficient, randomized alternative to traditional spectral optimization. It uses the Louvain algorithm to detect communities in a single shot. Depending on the task, it can then either strengthen these communities (HigherComMa, by adding intra-community edges) or weaken them (LowerComMa, by adding inter-community edges). Because it avoids iterative spectral calculations, ComMa is roughly 100x faster than state-of-the-art spectral methods like FoSR, making it highly viable for massive graphs.
2. FeaSt (Feature Similarity)
Unlike ComMa, FeaSt ignores topology entirely and focuses purely on homophily. It calculates the cosine similarity between node feature vectors, adding edges between highly similar nodes and deleting edges between dissimilar ones. This acts as a denoising mechanism, ensuring that the messages passed during GNN training are highly relevant to the target node.
3. ComFy (Community + Feature Similarity)
ComFy is the "Goldilocks" approach, combining the strengths of the previous two methods. It maximizes feature similarity (like FeaSt) but restricts these changes within a specific "budget" for each community pair (like ComMa). This ensures that the rewiring enhances local signals and denoises features while strictly preserving the global community structure of the graph.
Key Findings and Performance
The researchers evaluated these strategies across a wide range of benchmarks, including homophilic datasets (Cora, Citeseer), heterophilic datasets (Texas, Wisconsin, Actor), and large-scale benchmarks (Roman-Empire, Amazon-Ratings).
- Superior Accuracy: Both ComFy and FeaSt consistently outperformed standard Graph Convolutional Networks (GCNs) and state-of-the-art spectral rewiring methods. For instance, on the highly heterophilic Texas dataset, the ComFy-Del variant achieved approximately 70% accuracy, doubling the GCN baseline of ~35%.
- Success on Heterophilic Graphs: Traditional rewiring often fails on heterophilic graphs (where connected nodes tend to have different labels). The feature-guided approach of ComFy proved highly effective here, demonstrating that a "task-aware" structure is far more important than a generic "expander-like" structure.
- Robustness: The proposed methods exhibited high resilience to both feature noise and label noise compared to baseline GNNs, further proving the value of feature-guided denoising.
Limitations and Future Directions
While highly effective, these methods are not without limitations. ComMa and ComFy rely heavily on the initial community detection provided by the Louvain algorithm; if the initial graph is so noisy that no meaningful communities can be found, the rewiring may struggle. Additionally, the "rewiring budget" (the hyperparameter dictating how many edges to add or delete) is task-specific and currently requires trial and error to optimize.
Future work will explore extending these strategies to dynamic graphs where structures change over time, as well as finding more sophisticated ways to align the Neural Tangent Kernel (NTK) of the GNN directly with the graph's underlying structure.
Summary updated