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 · DOI

TL;DR

Community detection via graph curvature is powerful but historically bottlenecked by the high computational cost of Ollivier-Ricci Curvature (ORC). This paper demonstrates that Augmented Forman-Ricci Curvature (AFRC), which incorporates local network cycles, provides a computationally efficient alternative that achieves competitive accuracy while running orders of magnitude faster.

What Problem Does This Paper Address?

In network science, identifying "communities"—groups of nodes that are densely connected to each other but sparsely connected to the rest of the network—is a fundamental task. Recently, geometric approaches using discrete Ricci curvature have emerged as a top-tier solution.

The intuition is elegant: edges inside a community have positive curvature (they are well-connected locally), while "bridge" edges connecting different communities have negative curvature. The gold standard for this has been Ollivier-Ricci Curvature (ORC). However, calculating ORC requires solving an optimal transport problem (the Wasserstein distance) for every edge, which scales cubically ($O(d^3_{\max})$). This makes ORC impractical for large-scale networks.

Conversely, the standard Forman-Ricci Curvature (FRC) is incredibly fast to compute because it only looks at node degrees, but it is too simple to resolve complex community structures. This paper addresses this gap by investigating Augmented FRC (AFRC)—adding just enough local geometric information (cycles) to match ORC's performance without sacrificing FRC's speed advantage.

Methods

The authors study augmentations of Forman's curvature ($AF_n$) by systematically accounting for short cycles of length $n$ (specifically triangles where $n=3$, and quadrilaterals where $n=4$).

Figure 1: (a) Example of Forman-Ricci curvature. The edge e = (1, 2) has FRC equal to F(e) = 4−deg(1)−deg(2) = −5. (b) Example of augmented Forman-Ricci curvature. The edge e is contained in the cycles γ1 = 1234 and γ2 = 125 and the AFRC of e is equal to AF(e) = 2 + 2 −3 −1 = 0. This augmentation arises from including faces corresponding to γ1 and γ2 and then applying Forman’s formula to the resulting 2D complex. This example is worked out in detail in Appendix B. (c) Let the vertices be ordered as 1 < 2 < 3 < 4 and thus e = (1, 2) < (3, 4) = e′. The edges e, e′ are contained in cycles γ3 = 1234 and γ4 = 1243. In γ3 both edges are traversed from the small to large vertex (1 →2 and 3 →4), so they are aligned and Γee′ = 1. In γ2 edge e is traversed from small to large (1 →2) while edge e′ is traversed from large to small (4 →3), so the edges are not aligned in γ4 and Γe′e = 1.

Key methodological contributions include:

  1. Tailored Augmentations: Showing that $AF_3$ is ideal for standard (unipartite) networks, while $AF_4$ is necessary for bipartite networks (which naturally lack triangles).
  2. Sequential Edge-Deletion Algorithm: A novel community detection algorithm that iteratively removes edges with the most negative $AF_3$ (or most positive $AF_4$) curvature to break the network into distinct components.
  3. Automated Thresholding: Using a two-mode Gaussian Mixture Model (GMM) to automatically find the optimal curvature threshold ($\Delta$) for edge removal based on the minimum-error decision boundary.

Datasets

The authors evaluated their approach on both synthetic benchmarks and classic real-world networks:

  • Synthetic Models: Erdős-Rényi (ER) graphs, Stochastic Block Models (SBM), Bipartite Graphs (BG), and Hierarchical Bipartite Graphs (HBG).
  • Real-World Networks:
  • Without community metadata: Dolphin social network, US Power Grid, Word Adjacency.
  • Bipartite: Southern Women, Corporate Interlocks.
  • With community metadata: Zachary's Karate Club, NCAA College Football, and two primary school contact networks.

Key Insights and Ideas

  • The Bipartite Blindspot: Standard triangle-based augmentations ($AF_3$) completely fail on bipartite graphs because these graphs contain no triangles. For these architectures, moving to 4-cycles ($AF_4$) is mandatory to capture community structure.
  • The Curvature "Switch": In $AF_3$, intra-community edges have higher (more positive) curvature than inter-community edges. However, for $AF_4$, this order flips: intra-community edges become highly negative due to the overwhelming number of 4-cycles within dense clusters.
  • Local vs. Global Tradeoff: While ORC considers the global shortest-path metric space, AFRC relies strictly on localized subgraphs (cycles). The paper proves that this local view is usually more than enough for community detection.

Key Results

  • Computational Speedup: Computing $AF_3$ scales as $O(d_{\max})$ and $AF_4$ scales as $O(d^2_{\max})$, compared to ORC's $O(d^3_{\max})$.
  • Performance Parity: On standard Stochastic Block Models, the $AF_3$-based algorithm achieved community prediction accuracy nearly identical to ORC while running orders of magnitude faster.
Comparison of mean prediction accuracy and average runtime between ORC and AFRC algorithms.
  • Real-World Success: On the Karate Club network, the $AF_3$ algorithm mislabeled only two nodes, matching the performance of the classic Girvan-Newman algorithm. On the College Football network, both $AF_3$ and $AF_4$ correctly identified 5 out of 12 communities, performing comparably to ORC (6 communities) but at a fraction of the computational cost.

Limitations and Future Work

The authors note that AFRC struggles in highly ambiguous or very sparse regimes (e.g., when the probability of an edge existing inside a community is only marginally higher than between communities). In these edge cases, ORC's global metric awareness still gives it an upper hand.

Additionally, when community structures are weak, the two modes of the curvature distribution overlap significantly, making it harder for the GMM to pick a clean threshold ($\Delta$). Future work includes exploring how AFRC can be integrated into network embedding and graph machine learning pipelines.

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