Skip to main content
QUICK REVIEW

[Paper Review] Normalizing Flows on Riemannian Manifolds

Mevlana Gemici, Danilo Jimenez Rezende|arXiv (Cornell University)|Nov 7, 2016
Gaussian Processes and Bayesian InferenceComputer Science16 references46 citations
TL;DR

This paper generalizes normalizing flows to Riemannian manifolds such as the n-sphere by leveraging Riemannian geometry to correctly compute density transformations via the metric-induced Jacobian determinant. The method enables scalable, differentiable density estimation on non-Euclidean spaces, demonstrated by learning complex, multi-modal distributions on Sⁿ using inverse stereographic projection and normalizing flows in the tangent space.

ABSTRACT

We consider the problem of density estimation on Riemannian manifolds. Density estimation on manifolds has many applications in fluid-mechanics, optics and plasma physics and it appears often when dealing with angular variables (such as used in protein folding, robot limbs, gene-expression) and in general directional statistics. In spite of the multitude of algorithms available for density estimation in the Euclidean spaces $\mathbf{R}^n$ that scale to large n (e.g. normalizing flows, kernel methods and variational approximations), most of these methods are not immediately suitable for density estimation in more general Riemannian manifolds. We revisit techniques related to homeomorphisms from differential geometry for projecting densities to sub-manifolds and use it to generalize the idea of normalizing flows to more general Riemannian manifolds. The resulting algorithm is scalable, simple to implement and suitable for use with automatic differentiation. We demonstrate concrete examples of this method on the n-sphere $\mathbf{S}^n$.

Motivation & Objective

  • To address the lack of scalable, differentiable density estimation methods for Riemannian manifolds such as spheres, tori, and simplices.
  • To extend normalizing flows—successful in Euclidean spaces—to non-Euclidean manifolds while preserving universal approximation and gradient computation capabilities.
  • To resolve the issue of incorrect density transformation when applying standard Jacobian determinant formulas to dimensionally non-preserving maps from Rⁿ to embedded manifolds.
  • To enable complex posterior approximations in variational inference for directional and constrained data, such as angular variables in protein folding or robotics.

Proposed method

  • Uses a homeomorphic mapping ϕ: Rⁿ → M ⊂ Rᵐ to project a manifold M (e.g., Sⁿ) to its tangent space Rⁿ, enabling flow-based transformation in Euclidean space.
  • Applies the Riemannian metric G = JϕᵀJϕ to compute the volume distortion factor √det G, which corrects the density transformation for non-dimension-preserving maps.
  • Derives the correct density transformation formula: p(u) = f(ϕ(u)) ⋅ √det(JϕᵀJϕ(u)), ensuring accurate density propagation from the manifold to the Euclidean space.
  • Employs the inverse stereographic transform as a specific, bijective, and differentiable mapping from Rⁿ to Sⁿ, with a closed-form expression for the metric determinant.
  • Uses standard normalizing flows (e.g., flow-based transformations parameterized by neural networks) in the Rⁿ space to learn complex densities before projecting back to the manifold.
  • Relies on automatic differentiation to compute gradients of the log-likelihood, enabling end-to-end training on the manifold.

Experimental results

Research questions

  • RQ1Can normalizing flows be generalized to Riemannian manifolds such as the n-sphere while preserving scalability and differentiability?
  • RQ2What is the correct mathematical formulation for density transformation when mapping between spaces of different dimensions, such as Rⁿ to Sⁿ?
  • RQ3How does the use of the Riemannian metric determinant compare to the standard Jacobian determinant in preserving density accuracy during manifold transformations?
  • RQ4Can complex, multi-modal densities be effectively learned on curved manifolds like Sⁿ using this framework?

Key findings

  • The method correctly computes density transformations on manifolds using the Riemannian metric determinant √det(JϕᵀJϕ), which accounts for intrinsic curvature and dimensionality mismatch.
  • Using the standard Jacobian determinant |det Jϕ| for non-square transforms leads to significant density errors, as shown by empirical mismatch with Monte Carlo samples.
  • The inverse stereographic transform provides a valid, bijective, and differentiable mapping from Rⁿ to Sⁿ, enabling flow-based modeling on the sphere.
  • The derived formula for the metric determinant on Sⁿ is det G = (2 / (‖x‖² + 1))²ⁿ, which is essential for accurate density computation.
  • Empirical results show that the Riemannian correction (red line) closely matches kernel density estimates from 500k samples (blue), while the naive Euclidean method (green) fails.
  • The framework enables learning arbitrarily complex densities on Sⁿ by transforming and learning in the tangent space Rⁿ, then projecting back to the manifold.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.