Graph Neural Ricci Flow: Evolving Feature from a Curvature Perspective

Jialong Chen, Bowen Deng, Zhen Wang, Chuan Chen, Zibin ZhengICLR 2025

Graph Neural Networks (GNNs) are increasingly being modeled as continuous dynamical systems using differential equations. The most common approach—based on the heat diffusion equation—naturally forces a system toward thermal equilibrium. In the context of GNNs, this means node features eventually become uniform, leading to the notorious "over-smoothing" problem in deep networks.

To combat over-smoothing and "over-squashing" (information bottlenecks), recent methods have used Ricci curvature to rewire graphs. However, these methods treat curvature as a static, pre-computed property that takes quadratic $O(|V|^2)$ time to calculate. They also lock the model into a single, rigid mathematical definition of curvature.

Can we evolve the node features themselves using curvature, rather than just rewiring the graph, and can we do it efficiently? This paper introduces Graph Neural Ricci Flow (GNRF), a novel continuous-depth GNN that dynamically adjusts edge curvatures toward zero to maintain expressive node features.

The Graph Neural Ricci Flow Method

The authors propose Attribute Discrete Ricci Flow (Attri-DRF), which generalizes the concept of Ricci flow from differential geometry to attributed graphs. In this framework, edge weights are treated as functions of the connected nodes' features. As node features evolve over time, the edge curvature changes dynamically.

Conceptual overview of Ricci Flow on attributed graphs, showing curvature distribution concentrating toward zero.

Instead of relying on expensive mathematical solvers for exact curvature, GNRF introduces an auxiliary neural network called EdgeNet. EdgeNet acts as a universal approximator that learns to estimate any definition of edge curvature (e.g., Forman, Ollivier, Resistance) in linear time $O(|V| + |E|)$. During training, GNRF uses EdgeNet to compute time-varying curvatures and updates node features to minimize this curvature. Edges with positive curvature push nodes apart, while others pull them together.

Key Theoretical Insights

  • Curvature Drives to Zero: The authors mathematically prove that under Attri-DRF, the curvature of every edge naturally concentrates toward zero. This provides a unified, automatic solution to both over-smoothing (caused by extreme positive curvature) and over-squashing (caused by extreme negative curvature).
  • Bounded Dirichlet Energy: Because the system reaches a "metric equilibrium" (curvature goes to zero) rather than a "thermal equilibrium" (features become identical), the graph's Dirichlet energy is bounded from both above and below. This mathematically guarantees the model resists over-smoothing.
  • Uniform, Fast Decay: The time it takes for the curvature to stabilize is independent of the initial graph state. It decays uniformly across all edges in $O(\ln \delta^{-1})$ time, meaning the network doesn't need an excessive number of layers or time-steps to converge.
  • Repulsive Forces Create Sharp Boundaries: Unlike standard message passing that only pulls connected nodes closer, GNRF's Ricci flow naturally introduces repulsive forces for edges with positive curvature. This helps generate smoother, more accurate decision boundaries, especially in heterophilic graphs where connected nodes often have different labels.

Empirical Results and Advantages

GNRF was evaluated across a wide variety of benchmarks, including node classification, graph classification, and long-range tasks.

Performance comparison of GNRF against discrete and continuous-depth GNNs across various datasets.
  • Massive Accuracy Gains: GNRF consistently outperforms discrete (GCN, GAT) and continuous (GRAND, ACMP) baselines. It showed improvements of over 20% compared to standard GCNs on several heterophilic datasets like Roman-Empire and Tolokers.
  • High Stability and Scalability: Competing continuous-depth models like ACMP often run out of memory (OOM) because their adaptive step-size solvers over-subdivide when dealing with stiff equations. GNRF remains numerically stable and memory-efficient. Thanks to EdgeNet, GNRF achieves linear time complexity, successfully scaling to hidden dimensions where other continuous models crash.
  • Long-Range Performance: On Long-Range Graph Benchmark (LRGB) datasets, GNRF improved performance by at least 3% over standard GCNs, proving its ability to mitigate over-squashing.

Limitations and Future Work

While GNRF prevents total over-smoothing, running the evolutionary process for too long can still eventually exacerbate category indistinguishability, meaning the termination time $T$ requires careful tuning. Furthermore, while GNRF beats standard message-passing GNNs on long-range tasks, it has yet to match the absolute state-of-the-art achieved by heavy Graph Transformers (GTs).

Looking ahead, the authors suggest extending the Attri-DRF framework directly into Graph Transformers. Since GT attention coefficients can be viewed as dynamic edge weights, replacing standard attention with curvature-aware coefficients presents a highly promising frontier for graph learning.

Summary updated

BibTeX
@inproceedings{chen2025graph,
  author = {Jialong Chen and Bowen Deng and Zhen WANG and Chuan Chen and Zibin Zheng},
  title = {{Graph Neural Ricci Flow: Evolving Feature from a Curvature Perspective}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=7b2JrzdLhA},
}
Figure