Riemannian Score-Based Generative Modeling

Valentin De Bortoli, Emile Mathieu, Michael Hutchinson, James Thornton, Yee Whye Teh, Arnaud DoucetarXiv 2022

Introduction

Score-based generative models (SGMs), or diffusion models, have revolutionized generative AI by enabling high-fidelity synthesis of images and audio. These models typically operate by gradually perturbing data with Gaussian noise and learning a neural network to reverse this diffusion process. However, a fundamental limitation of standard SGMs is their reliance on Euclidean space ($\mathbb{R}^d$). In many scientific domains—such as geophysics (earthquake locations on a sphere), robotics (3D rotations in $SO(3)$), and biology (protein dihedral angles on a torus)—data naturally resides on curved surfaces known as Riemannian manifolds.

Forcing such data into flat Euclidean representations introduces significant distortions and artificial boundaries. This paper introduces Riemannian Score-Based Generative Models (RSGMs), a framework that extends diffusion models to operate intrinsically on the geometry of the manifold, avoiding the pitfalls of projection-based methods.

Methodology: Diffusion on Manifolds

To adapt SGMs to Riemannian manifolds, the authors reformulated the core components of diffusion using differential geometry.

Intrinsic Forward Noising and Time-Reversal

Instead of standard Brownian motion, RSGMs utilize Langevin dynamics defined directly on the manifold. On compact manifolds like spheres, this process ensures the data eventually diffuses into a uniform distribution. The authors mathematically proved a Riemannian time-reversal formula, demonstrating that the denoising process is driven by the "Stein score"—the gradient of the log-density of the data.

Geodesic Random Walks (GRWs)

A key challenge is simulating stochastic differential equations (SDEs) without "falling off" the manifold. RSGMs employ Geodesic Random Walks, where steps are taken along geodesics—the natural "straight lines" of a curved space.

Geometric projection and geodesic steps on a Riemannian manifold.

Heat Kernel Approximations

Training the score network requires the transition density (heat kernel) of the forward process. Since the exact heat kernel is often intractable on complex manifolds, the authors utilize Varadhan asymptotics—a short-time Taylor expansion—and truncated Sturm-Liouville series. These approximations are computationally efficient and sufficient for score matching, which primarily depends on small time steps.

Experimental Results

The authors evaluated RSGMs across diverse datasets, including global climate events on $S^2$, synthetic distributions on high-dimensional tori $\mathbb{T}^d$, and 3D rotations in $SO(3)$.

Comparison of target and generated distributions on a spherical manifold.

Scalability and Efficiency

A major advantage of RSGMs over competing methods like Moser Flows is scalability. While Moser Flows struggle with the "curse of dimensionality" due to their reliance on density-space interpolation and Monte Carlo integration, RSGMs operate in sample space. On a 10-dimensional torus, Moser Flows failed due to memory constraints, whereas RSGMs scaled linearly.

Furthermore, RSGMs demonstrate superior inference speed. On the $SO(3)$ rotation dataset, RSGMs required only ~100 neural network evaluations (NFE) to generate high-quality samples, compared to the 2,300–7,300 evaluations required by Moser Flows.

Conclusion

Riemannian Score-Based Generative Modeling provides a robust, scalable, and mathematically principled approach to generating data on curved manifolds. By operating intrinsically on the manifold's geometry, RSGMs avoid the distortions of Euclidean projections and offer significant performance gains in high-dimensional scientific applications. Future work includes extending the framework to manifolds with boundaries and exploring Riemannian Schrödinger Bridges for arbitrary distribution interpolation.

Summary updated

BibTeX
@misc{bortoli2022riemannian,
  author = {Valentin De Bortoli and Emile Mathieu and Michael Hutchinson and James Thornton and Yee Whye Teh and Arnaud Doucet},
  title = {{Riemannian Score-Based Generative Modeling}},
  year = {2022},
  eprint = {2202.02763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.02763},
}
Figure