Skip to main content
Back

Sobolev-Ricci Curvature Runs 100x Faster and Beats the Graph AI Standard

A new graph curvature primitive replaces per-edge optimal transport with tree-based Sobolev transport, cutting runtime 10-100x while matching accuracy.

Pro

  • New graph curvature notion, Sobolev-Ricci Curvature, replaces per-edge optimal transport with closed-form tree computation.
  • Runs 10 to 100 times faster than Ollivier-Ricci curvature on community detection benchmarks.
  • Provably reduces to ORC on trees with length measure at p=1, and vanishes in the Dirac limit.
  • Demonstrated on Sobolev-Ricci Flow for community detection and SRC-MANL for manifold-oriented edge pruning.
  • Outperforms ORC on shortcut-edge pruning across ten synthetic manifold datasets while preserving good edges.
  • Depends on choice of extracted tree (MST or SPT), but empirically stable across tree constructions.

Graph curvature has quietly become one of the most useful geometric primitives in modern graph learning. It shows up in community detection, over-squashing analysis for GNNs, manifold reconstruction, and network robustness. The dominant flavor, Ollivier-Ricci curvature (ORC), has an elegant definition but a punishing runtime. A new paper introduces Sobolev-Ricci Curvature (SRC), a drop-in replacement that keeps the geometric interpretation while running one to two orders of magnitude faster.

Why ORC keeps blowing up your compute budget

ORC measures how much two neighborhood distributions contract or expand relative to the base distance between their centers. Concretely, it defines curvature as one minus the ratio of the 1-Wasserstein distance between neighborhood measures to the graph distance between the two nodes. Positive values mean neighborhoods pull together, negative values mean they spread apart.

The problem is buried in that innocent-looking W1 term. Evaluating ORC typically requires solving a 1-Wasserstein optimal transport problem for each edge, which becomes prohibitively expensive on large graphs or within iterative pipelines where curvature must be recomputed repeatedly. Sinkhorn helps, but it's still an iterative solver running per edge, per iteration.

The Sobolev shortcut

The authors, from the Institute of Statistical Mathematics, build on Sobolev transport (ST), a transport-style metric that admits a closed-form on tree structures. Their move: extract a tree from the graph (either a minimum spanning tree or a shortest-path tree rooted at some node), then compute transport costs as a simple sum over tree edges rather than solving an OT program.

The SRC of an edge is defined the same way as ORC, just swapping W1 for the Sobolev transport distance Sp. Because Sp has an explicit formula in cut-mass coordinates, curvature evaluation reduces to simple algebraic operations rather than iterative optimization.

Two sanity checks that anchor the definition

A new curvature notion only earns trust if it degenerates gracefully into known cases. SRC passes two:

  • Tree equivalence: on trees endowed with the length measure, SRC recovers ORC in the classical W1 transport formulation when p=1.
  • Dirac-limit flatness: when neighborhood measures collapse to point masses, SRC goes to zero, matching the flat case of measure-theoretic Ricci curvature.

These aren't just aesthetic. They mean SRC-based pipelines reduce to the ORC-based ones in the canonical setting, so replacing ORC with SRC is a principled swap rather than a heuristic.

How it works, step by step

  1. Define a neighborhood measure at each node, either via a lazy random walk over one-hop neighbors or a Gaussian kernel over k-nearest neighbors in feature space.
  2. Extract a rooted tree from the graph. The paper studies MST (global backbone) and SPT (local, root-anchored) variants.
  3. For each tree edge, precompute cut-mass coordinates: the fraction of a node's neighborhood measure that sits on the far side of that edge.
  4. Compute Sp between two neighborhood measures as a weighted sum of absolute cut-mass differences over tree edges.
  5. Plug into the curvature formula: kappa = 1 - Sp(mu_x, mu_y) / Dp(x, y).

Where it shows up: flows and pruning

The authors demonstrate SRC in two representative pipelines. The first is Sobolev-Ricci Flow (SRF), which replaces ORC in the standard Ricci-flow reweighting rule where edge lengths update as w_new = (1 - kappa) * d. The second is SRC-MANL, a variant of the ORC-MANL manifold-oriented edge pruning method.

On community detection over SBM and LFR synthetic benchmarks and five real networks (karate, football, polbooks, polblogs, email-eu-core), the SRC-driven flow tracks ORC closely on Adjusted Rand Index. Across both benchmarks, the curvature-driven flows achieve near-perfect recovery in the easy regimes and degrade gracefully as the problem becomes harder.

The runtime picture is where SRC earns its keep. On SBM, SRC(SPT) is the fastest, followed by SRC(MST), while ORC is 10 to 100 times slower. The theoretical breakdown: ORC costs roughly O(T_sk * m * k^2) per flow iteration where T_sk is the Sinkhorn iteration count, while SRC scales as O(m log n + nkh + mn) with no iterative inner solver.

Edge pruning is where the gap widens

The pruning experiments are the more interesting result. On ten synthetic manifold datasets (concentric circles, tori, s-curves, 3D Swiss roll, etc.), the goal is to remove shortcut edges that jump across the manifold via ambient space while keeping edges that follow the true geometry.

SRC-only pruning consistently outperforms ORC-only pruning at removing shortcuts without collateral damage. The reason has to do with how the two curvatures distribute values: SRC tends to assign systematically larger curvatures to good edges while still producing a long negative tail for shortcuts, thanks to the smoothing effect of tree-path aggregation. That separation makes threshold-based filtering more discriminative.

Caveats worth knowing

SRC depends on the tree you extract, and different trees give different curvature values. The authors prove a stability bound showing the variation is controlled by the symmetric difference of tree edges, and empirically the distribution shape is similar across SPT, MST, and even random spanning trees. Still, this is a modeling choice that lacks a fully principled selection rule, and the paper flags it as future work. SRC is also formulated only for static graphs.

For anyone running curvature-driven analysis at scale, whether reweighting graphs for GNN training, detecting communities in large networks, or pruning noisy neighbor graphs before manifold learning, this is a straightforward performance win with theoretical grounding rather than a heuristic approximation.