NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Score-based Pullback Riemannian Geometry: Extracting the Data Manifold Geometry using Anisotropic Flows

Willem Diepeveen, Georgios Batzolis, Zakhar Shumaylov, Carola-Bibiane Schönlieb

TL;DR

This paper introduces score-based pullback Riemannian geometry, a scalable framework that merges generative modeling with differential geometry to uncover the true low-dimensional structure of data. By adapting normalizing flows with anisotropy and isometry constraints, the authors achieve closed-form, density-respecting geodesics and construct a Riemannian Autoencoder (RAE) capable of accurately identifying a manifold's intrinsic dimensionality with proven error bounds.

What Problem Does This Paper Address?

Many real-world datasets exhibit the "manifold hypothesis"—the idea that high-dimensional data actually lies on or near a much lower-dimensional, non-linear subspace. Data-driven Riemannian geometry attempts to model this by defining a metric tensor across the space so that paths (geodesics) follow the data distribution.

However, existing methods face a frustrating scalability trade-off. You can either have a framework where computing geometric properties (like geodesics and distances) is cheap but training is painfully slow, or a framework where training is fast (via generative models) but evaluating the resulting geometry is computationally prohibitive. This paper tackles this bottleneck, aiming to strike a balance that delivers both scalable training and efficient, closed-form geometric mappings.

Methods

The authors focus on a family of unimodal probability densities where the negative log-likelihood is a composition of a strongly convex function ($\psi$) and a diffeomorphism ($\varphi$).

Key innovations include:

  1. Score-Based Pullback Metric: By choosing $\psi$ to be a quadratic form (essentially a deformed Gaussian), the framework yields closed-form expressions for distances, geodesics, exponential maps, and logarithmic maps. Geodesics naturally curve through regions of high data density rather than cutting through empty space.
  2. Anisotropic Normalizing Flows: Standard normalizing flows typically map data to an isotropic Gaussian base distribution. The authors modify this by parameterizing a diagonal covariance matrix ($A$), allowing the model to learn which directions carry the most variance (anisotropy).
  3. Isometry & Volume Regularization: To ensure the learned mapping $\varphi$ behaves well geometrically, they introduce a sliced isometry loss (using Jacobian-vector products to scale efficiently to high dimensions) and a volume-preservation loss. This forces the transformation to preserve local distances and angles.
  4. Hessian-Vector Product (HVP) Regularization: For complex, non-affine flows (like those used in image processing), higher-order derivatives can distort the latent space. The authors introduce a lightweight, randomized HVP penalty to keep these distortions in check and prevent the model from overestimating the manifold's dimension.

Using this geometry, they construct a Riemannian Autoencoder (RAE) that projects data onto the principal components of the learned anisotropic metric, mirroring classical PCA but within a non-linear, geometric setting.

Datasets

The framework was evaluated on a mix of synthetic geometric constructs and complex image spaces:

  • 2D Synthetic Manifolds: Single Banana, Squeezed Single Banana, and the River dataset (a meandering path).
  • Higher-Dimensional Synthetic Manifolds: Hemisphere($d', d$) and Sinusoid($d', d$), where $d'$ is the intrinsic dimension and $d$ is the ambient dimension (up to 100).
  • Synthetic Images: * $d'$-Gaussian Blobs*, a dataset of $32 \times 32$ pixel images (1024-dimensional ambient space) with controllable intrinsic dimensions ($d' = 20, 50, 100$).
  • Real-World Images: The MNIST dataset of handwritten digits, rescaled to a 1024-dimensional ambient space.

Key Insights and Ideas

  • The Anisotropy-Isometry Synergy: One of the most critical findings is that learning an anisotropic base distribution and enforcing isometry must happen together. Enforcing isometry without anisotropy causes severe underfitting, while anisotropy without isometry yields no geometric improvement over standard normalizing flows.
  • Interpretable Latent Spaces: Unlike standard Variational Autoencoders (VAEs), where latent space distances don't map linearly to data space changes, the RAE's latent space is approximately $\ell_2$-isometric to the data manifold. Proximity in the latent space genuinely means similarity in the data space.
  • Hessian Control is Mandatory for Images: When moving beyond simple affine transformations to complex image models, the second-order derivatives of the flow can inflate the Hessian of the log-density. Without the proposed HVP regularization, the autoencoder fails to accurately isolate the true intrinsic dimension.

Key Results

  • Superior Geodesics: On the River dataset, the proposed method achieved significantly lower geodesic and variation errors than standard normalizing flow baselines, producing smooth paths free of geometric artifacts.
Comparison of geodesics computed using different methods on the river dataset.
  • Precise Dimension Extraction: For the high-dimensional Gaussian Blobs image manifold, the RAE successfully captured the underlying structure, capturing over 99% of the total variance using almost exactly the true number of latent dimensions (e.g., identifying 51 dimensions for a ground-truth of 50).
Normalized cumulative variance and reconstruction error for Gaussian Blobs.
  • Robustness to Multimodality: Although theoretically designed for unimodal distributions, the model performed remarkably well on the highly multimodal MNIST dataset. At a variance threshold of $\epsilon = 0.01$, it achieved near-perfect image reconstructions using 271 latent dimensions.
RAE reconstructions on MNIST for decreasing variance thresholds.

Limitations and Future Work

The primary limitation is the framework's theoretical reliance on unimodal distributions. While the empirical results on MNIST demonstrate that it can handle multimodal data gracefully in practice, it does exhibit a slight tendency to overestimate the intrinsic dimensionality in these scenarios.

The authors note that extending this mathematical formulation to explicitly support complex, multimodal distributions is the most important next step for this research. Additionally, exploring more expressive flow architectures, like rational quadratic spline flows, could further refine dimensionality estimation and reconstruction quality.

Summary updated

BibTeX
@misc{diepeveen2024score,
  author = {Willem Diepeveen and Georgios Batzolis and Zakhar Shumaylov and Carola-Bibiane Schönlieb},
  title = {{Score-based Pullback Riemannian Geometry: Extracting the Data Manifold Geometry using Anisotropic Flows}},
  year = {2024},
  eprint = {2410.01950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.01950},
}
Figure