Augmentations of Forman’s Ricci curvature and their applications in community detection

Lukas Fesser, Sergio Serrano de Haro Iváñez, Karel Devriendt, Melanie Weber, Renaud Lambiotte

Abstract

Community detection is a fundamental task in network science, often relying on geometric properties like Ricci curvature to identify structural boundaries. While Ollivier-Ricci Curvature (ORC) is highly accurate, its computational cost is prohibitive for large-scale networks. This paper introduces Augmented Forman-Ricci Curvature (AFRC), which enhances the computationally efficient Forman-Ricci Curvature (FRC) by incorporating higher-order cycles. Our results demonstrate that AFRC achieves a "Goldilocks" balance: it matches the accuracy of ORC across various benchmarks while operating orders of magnitude faster, particularly in bipartite and large-scale social networks.

Introduction

In differential geometry, Ricci curvature measures how much a shape deviates from being "flat." In the context of networks, this concept translates to structural density. Edges within a community typically exhibit high positive curvature due to dense local connectivity, whereas edges acting as "bridges" between communities often have negative curvature.

The current state-of-the-art, Ollivier-Ricci Curvature (ORC), is based on optimal transport theory. Despite its precision, ORC's reliance on Wasserstein distance calculations makes it difficult to scale. Conversely, the original Forman-Ricci Curvature (FRC) is extremely fast but lacks expressiveness because it ignores the cycles (loops) that characterize community structure. This work introduces Augmented Forman-Ricci Curvature (AFRC) to bridge this gap.

Methods: The Augmentation Process

The core innovation of AFRC is treating a graph as a 2D surface by "filling in" cycles with solid faces. This allows the curvature calculation to account for the local clustering that FRC misses.

The augmentation process: (a) shows the original graph with a bridge edge $e$ having negative FRC. (b) shows the augmented graph where cycles are filled with faces $\gamma_1, \gamma_2$, resulting in a neutral AFRC.

The authors specifically examine two variants:

  1. $AF_3$: Accounts for 3-cycles (triangles).
  2. $AF_4$: Accounts for 4-cycles (quadrangles).

To detect communities, the authors employ a sequential edge-deletion algorithm similar to the Girvan-Newman approach. Edges with the most negative curvature are iteratively removed. Unlike ORC, which has a fixed threshold at zero, AFRC values are network-dependent. To address this, a Gaussian Mixture Model (GMM) is used to automatically identify the optimal curvature threshold for each specific dataset.

Key Insights and Results

The Bipartite Breakthrough

A significant finding involves bipartite graphs, which by definition contain no triangles. While $AF_3$ fails in these scenarios, $AF_4$ (incorporating quadrangles) proves essential. In bipartite models, $AF_4$ significantly outperformed ORC in community detection accuracy.

Illustration of higher-order cycles (quadrangles) used in $AF_4$. The alignment of edges $e$ and $e'$ within cycles $\gamma_3$ and $\gamma_4$ is critical for capturing the geometry of bipartite structures.

Performance and Scaling

AFRC offers dramatic improvements in computational efficiency. The complexity of $AF_3$ scales linearly with the maximum degree $O(d_{max})$, compared to $O(d_{max}^3)$ for ORC. In practical tests on Stochastic Block Models (SBM), AFRC completed tasks in seconds that took ORC over 1000 seconds.

On real-world benchmarks like the American College Football network, AFRC-based detection nearly matched ORC's performance (identifying 5/12 vs 6/12 communities) and significantly outperformed the Louvain method (3/12). Interestingly, the study found that including 5-cycles ($AF_5$) actually degraded performance, suggesting that Ricci curvature is most effective as a strictly local measure.

Conclusion

Augmented Forman-Ricci Curvature provides a scalable and expressive alternative to existing geometric community detection methods. While it requires case-by-case thresholding via GMM, its speed and accuracy—especially in bipartite networks—make it a powerful tool for large-scale network analysis. Future research will focus on refining thresholding techniques and applying these curvatures to mitigate "oversquashing" in Graph Neural Networks (GNNs).

Summary updated

BibTeX
@misc{fesser2023augmentations,
  author = {Lukas Fesser and Sergio Serrano de Haro Iváñez and Karel Devriendt and Melanie Weber and Renaud Lambiotte},
  title = {{Augmentations of Forman’s Ricci curvature and their applications in community detection}},
  year = {2023},
  eprint = {2306.06474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.06474},
}
Figure