Extracting the Data Manifold from Diffusion Models via a Score-Based Non-Conformal Riemannian Metric

Shinnosuke Saito, Takashi MatsubaraFoGen @ ICML 2026

TL;DR

This paper introduces a novel Riemannian metric for diffusion models, derived from the score Jacobian, that effectively captures the underlying data manifold. This metric enables more geometrically faithful interpolations and improved guidance by distinguishing between movement along and perpendicular to the manifold, outperforming existing density-based approaches.

What Problem Does This Paper Address?

Diffusion models are powerful generative tools, but they lack an explicit, low-dimensional latent space that directly parameterizes the data manifold, unlike VAEs or GANs. This absence makes it challenging to perform operations that respect the data's geometric structure, such as creating smooth interpolations between samples or ensuring that generated samples stay "on the manifold." Existing methods often rely on density estimations, which can lead to over-smoothing or drifting away from the true manifold. The authors aim to address this by developing a geometric tool that can be directly extracted from a pre-trained diffusion model to understand and leverage the manifold's local orientation.

Methods

The core contribution is a training-free Riemannian metric defined on the noise space of diffusion models. This metric is derived from the score Jacobian, specifically the matrix $G_{x_t} = J_{x_t}^T J_{x_t}$, where $J_{x_t}$ is the Jacobian of the score function $s_0(x_t, t)$ with respect to the noisy sample $x_t$. The key insight is that the spectral decomposition of this Jacobian naturally separates directions that are tangential to the data manifold from those that are normal to it. The proposed metric penalizes movement in the normal directions more heavily than in the tangent directions, effectively guiding operations to stay aligned with the manifold. This metric is then applied to two main tasks:

  1. Geodesic Interpolation: Instead of simple linear or spherical interpolation in the noise space, the authors compute geodesics under their learned metric. This involves minimizing an energy functional that encourages paths to remain tangential to the manifold.
  2. Guidance Correction: The metric is used to refine classifier-free guidance (CFG). It helps to suppress guidance components that push samples off the manifold, leading to more faithful and geometrically consistent generations.

Datasets

  • Synthetic 2D Data: A custom C-shaped distribution was generated for initial visualization and analysis.
  • Image Datasets: CelebA-HQ, Animal Faces-HQ (AFHQ), MorphBench Animation, and Metamorphosis datasets were used for image interpolation experiments.
  • Video Datasets: DAVIS, Pexels Human, and RealEstate10K (RE10K) datasets were used for video frame interpolation.
  • Text-to-Image Data: MS-COCO 2014 captions were used for guidance correction experiments.

Key Insights and Ideas

  • Score Jacobian as a Geometric Probe: The spectral properties of the score Jacobian ($J_{x_t}$) provide a direct way to distinguish between tangent and normal directions of the data manifold without explicit manifold learning or training additional networks.
  • Metric for Manifold Alignment: The proposed metric $G_{x_t} = J_{x_t}^T J_{x_t}$ inherently penalizes off-manifold movement by assigning higher costs to directions that are normal to the manifold, as revealed by its spectral decomposition.
  • Beyond Density: Unlike density-based methods that can be attracted to high-density regions, this metric focuses on the local orientation of the manifold, leading to more faithful interpolations that preserve endpoint details.
  • Unified Geometric Tool: The same metric can be effectively used for both interpolation and guidance correction, demonstrating its versatility as a geometric understanding tool for diffusion models.

Key Results

  • Synthetic Data: The proposed geodesic interpolation runs parallel to the manifold, avoiding low-density regions and high-density modes, as visualized in Figure 1.
  • Image Interpolation: The method achieved the best FID, PPL, and endpoint reconstruction error across multiple datasets (MorphBench, CelebA-HQ, AFHQ). Qualitatively, it preserved endpoint details better than baselines, avoiding over-smoothing or cartoon-like textures.
  • Video Frame Interpolation: The method achieved the best MSE and LPIPS on DAVIS, Human, and RE10K datasets, producing interpolations closer to ground truth middle frames and preserving fine textures better than density-based methods.
  • Guidance Correction: The method reduced FID scores for text-to-image generation at various guidance scales without degrading CLIP scores, leading to qualitatively better images with reduced over-emphasis and cartoon-like artifacts.

Limitations and Future Work

  • Computational Cost: While training-free, computing the score Jacobian and its decomposition can be computationally intensive, especially for high-dimensional data. The paper notes that their method takes longer wall-clock time than some baselines for interpolation.
  • Score Jacobian Approximation: Learned score functions are not always conservative, meaning $J_{x_t}$ might not be symmetric. The proposed metric still works by favoring directions with small singular values, but this approximation might have implications.
  • Future Work: The authors suggest exploring faster Jacobian-vector approximations and extending their framework to other diffusion model variants like flow matching, as well as broader manifold-aware editing tasks. They also note that future work could investigate the impact of different noise levels ($\tau$) on interpolation quality and the trade-offs between metric accuracy and computational cost.

Summary updated

BibTeX
@inproceedings{saito2026extracting,
  author = {Shinnosuke Saito and Takashi Matsubara},
  title = {{Extracting the Data Manifold from Diffusion Models via a Score-Based Non-Conformal Riemannian Metric}},
  booktitle = {FoGen @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=cwtcd7nGyu},
}
Figure