Mitigating Over-smoothing and Over-squashing using Augmentations of Forman-Ricci Curvature

Lukas Fesser, Melanie Weber

Abstract: Graph Neural Networks (GNNs) face significant challenges in balancing local and global information flow, specifically through the phenomena of over-smoothing and over-squashing. We propose AFR-k, a novel graph rewiring framework based on Augmented Forman-Ricci Curvature (AFRC). AFRC provides a scalable, combinatorial measure of edge curvature that effectively identifies topological bottlenecks and dense clusters. By leveraging a Gaussian Mixture Model (GMM) heuristic for automated hyperparameter selection, AFR-k eliminates the need for expensive grid searches. Our results demonstrate that AFR-k achieves state-of-the-art performance on node and graph classification tasks while being orders of magnitude faster than existing curvature-based methods.

Introduction

Graph Neural Networks (GNNs) are powerful tools for learning on graph-structured data, but they are often limited by two "Goldilocks" problems regarding their depth and connectivity:

  1. Over-Squashing: This occurs when a graph contains "bottlenecks"—edges connecting distant clusters. Information from long-range neighbors gets compressed and lost as it passes through these narrow points, preventing the model from learning from distant but relevant nodes.
  2. Over-Smoothing: As GNNs grow deeper, node representations tend to converge and become indistinguishable. This is often caused by "shortcuts" or highly clustered regions where nodes are too well-connected to their immediate neighbors.

Previous research suggested graph rewiring—adding edges to break bottlenecks and removing edges to prevent over-smoothing. However, existing geometric methods (like those using Ollivier-Ricci Curvature) are computationally expensive and typically require an exhaustive grid search to find optimal hyperparameters, making them impractical for large-scale graphs.

Methodology: Augmented Forman-Ricci Curvature

We propose using Augmented Forman-Ricci Curvature (AFRC) as the engine for rewiring. In discrete geometry, curvature provides a local diagnostic for connectivity:

  • Low (Negative) Curvature: Indicates a "bridge" or bottleneck edge (potential over-squashing).
  • High (Positive) Curvature: Indicates an edge within a dense cluster or clique (potential over-smoothing).

Unlike previous curvature metrics that require solving complex optimal transport problems, AFRC is combinatorial. It simply counts cycles containing an edge. AFR-3 focuses on triangles ($\Delta$), running in linear time $O(m d_{max})$, while AFR-4 includes quadrangles ($\square$), running in $O(m d_{max}^2)$.

Geometric intuition of AFRC: counting triangles and quadrangles to determine edge curvature.

Automated Hyperparameter Selection

A major contribution of this work is the GMM-based heuristic for automated thresholding. We observed that curvature distributions in graphs with community structures usually follow a mixture of two Gaussians: one for inter-community edges and one for intra-community edges.

By fitting a Gaussian Mixture Model (GMM) to the curvature distribution, we can automatically calculate the "natural" thresholds for adding and removing edges. This removes the need for manual hyperparameter tuning, which is often the most time-consuming part of graph rewiring.

The GMM-based heuristic automatically identifies thresholds for adding and removing edges based on the curvature distribution.

Experimental Results

We evaluated AFR-k across a diverse set of benchmarks, including node classification (Cora, Citeseer, heterophilous datasets like Texas and Cornell) and long-range tasks (COCO-SP, PascalVOC-SP).

Key Insights:

  • Scalability: AFR-3 is consistently the fastest rewiring method. On the Tolokers dataset, the state-of-the-art BORF method timed out after an hour, while AFR-3 finished in approximately 7 seconds. It is frequently 10x to 100x faster than Ollivier-Ricci-based methods.
  • Performance: AFR-3 and AFR-4 achieved state-of-the-art or competitive accuracy. Notably, they outperformed the no-rewiring baseline significantly on long-range tasks, such as a ~4% improvement on the Peptides-func dataset.
  • Depth Resilience: Experiments showed that rewired graphs maintain higher "Dirichlet Energy" (a measure of feature diversity) as GNN depth increases, proving that the method successfully delays over-smoothing.

Conclusion

AFR-k provides a mathematically grounded and computationally efficient solution to the fundamental limitations of GNNs. By using AFRC to characterize graph topology and a GMM heuristic to automate tuning, we enable effective graph rewiring for large-scale applications where previous methods were too slow or complex to deploy.

Summary updated

BibTeX
@inproceedings{fesser2023mitigating,
  author = {Lukas Fesser and Melanie Weber},
  title = {{Mitigating Over-smoothing and Over-squashing using Augmentations of Forman-Ricci Curvature}},
  booktitle = {LoG},
  year = {2023},
  url = {https://openreview.net/forum?id=bKTkZMRtfC},
}
Figure