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

Be Tangential to Manifold: Discovering Riemannian Metric for Diffusion Models

Shinnosuke Saito, Takashi Matsubara · Submission to ICLR 2026 · Withdrawn

TL;DR

Unlike GANs or VAEs, diffusion models lack an explicit low-dimensional latent space, making geometrically natural interpolations difficult. This paper introduces a Riemannian metric for diffusion noise space based on the Jacobian of the score function, guiding interpolation paths to run parallel to the learned data manifold rather than cutting through low-density voids or collapsing into over-smoothed, high-density modes.

What Problem Does This Paper Address?

In classical deep generative models (DGMs) like VAEs and GANs, the latent space directly parameterizes a low-dimensional data manifold. One can define a Riemannian pullback metric through the decoder, enabling smooth and semantically coherent interpolations along geodesics (shortest paths).

Diffusion models, however, generate data through iterative denoising and lack an explicit decoder-based latent coordinate system. Standard interpolation techniques either interpolate linearly in noise space (LERP/SLERP) or use density-based conformal metrics that guide paths into high-density regions. Unfortunately:

  • Linear paths (LERP) cut across low-density regions, producing blurry, unnatural transitions.
  • Spherical interpolation (SLERP) preserves norms but ignores data manifold geometry.
  • Density-based metrics (e.g., GeodesicDiffusion) steer paths toward high-density regions, which recent studies show causes over-smoothing, loss of fine-grained textures, and failure to preserve endpoint identities.

The challenge is: how do we define a manifold-aware Riemannian metric directly inside the diffusion model's noise space without extra training or structural changes?

Methods

The authors exploit a recent theoretical insight: the Jacobian of the score function $J_{x_t} = \nabla_{x_t} s_\theta(x_t, t)$ encodes the local data manifold's intrinsic geometry. Specifically, its right singular vectors with small singular values span the tangent space to the manifold, while those with large singular values span the orthogonal normal space.

  • Proposed Metric: At an intermediate noisy timestep $t > 0$, the metric tensor is defined as: $$g_{x_t}(v, w) = \langle J_{x_t}v, J_{x_t}w \rangle = v^\top \left(J_{x_t}^\top J_{x_t}\right) w$$ Minimizing the squared norm $\|J_{x_t} v\|_2^2$ for a velocity vector $v$ penalizes motion in normal directions and encourages motion along tangent directions, forcing paths to travel along or parallel to the data manifold.

  • Geodesic Optimization: Finding a geodesic curve $\gamma(u)$ simplifies via the chain rule to minimizing the kinetic energy: $$E[\gamma] \approx \frac{1}{2} \sum_{i=0}^{N-1} \frac{\|s_\theta(x_t^{(u_{i+1})}, t) - s_\theta(x_t^{(u_i)}, t)\|_2^2}{\Delta u}$$ This avoids computing full $O(D^3)$ Christoffel symbols. Geodesics simply minimize score variation along the trajectory.

  • Pipeline:

  • Invert clean image endpoints to noisy latents $x_t^{(0)}, x_t^{(1)}$ at timestep $t = 0.6T$ via DDIM inversion.
  • Optimize the discrete intermediate states using Adam initialized with SLERP.
  • Denoise the optimized trajectory back to clean image space via deterministic DDIM sampling.

Datasets

  • Synthetic 2D Dataset: A 2D C-shaped distribution to visualize geodesic behavior against density-based metrics.
  • Image Interpolation Benchmarks:
  • MorphBench (Animation subset): Paired edited images with textual prompts.
  • Animal Faces-HQ (AF): 50 dog pairs and 50 cat pairs with LPIPS $< 0.6$.
  • CelebA-HQ (CA): 50 male and 50 female high-resolution face pairs with LPIPS $< 0.6$.
  • Video Frame Interpolation (Ground-Truth Evaluated):
  • DAVIS: 21 natural-scene clips.
  • Pexels (Human): 56 human-pose motion clips.
  • RealEstate10K (RE10K): 26 indoor/outdoor scene clips.

Key Insights and Ideas

  • Score Jacobian as a Geometric Lens: While clean data ($t=0$) yields a degenerate score Jacobian off-manifold, noisy intermediate states ($t \in [0.4T, 0.6T]$) display a sharp spectral gap where small singular values correspond directly to manifold-tangent directions.
  • Parallel to the Manifold, Not Inward: Density-based methods drag trajectories toward high-density cluster centers, causing artificial smoothing. Minimizing $\|J_{x_t} v\|_2^2$ keeps the path tangential or equidistant to the manifold, preserving the distinct texture and probability density of the endpoints.
  • Pullback of Score Space: The metric can be viewed as pulling back the Euclidean metric through the score mapping $s_\theta$. Geodesics correspond to paths where the score representation changes minimally and linearly.

Key Results

  • Image Interpolation: Across MorphBench (Animation), CelebA-HQ, and Animal Faces-HQ, the proposed metric achieved state-of-the-art results:
  • FID: Dropped to 27.44 (MB(A)), 32.54 (CA), and 21.01 (AF), outperforming GeodesicDiffusion (28.70, 35.98, 25.80) and SLERP (62.81, 37.84, 26.07).
  • PPL and Reconstruction Error (RE): Consistently lowest across all benchmarks (e.g., RE of $0.177 \times 10^{-3}$ vs. NAO's $39.24 \times 10^{-3}$ on MorphBench), preserving endpoint features without introducing hallucinated glossiness.
  • Video Frame Interpolation: When predicting middle frames against ground truth:
  • Achieved the lowest MSE on DAVIS ($8.777 \times 10^{-3}$ vs. GeoDiff's $13.253$), Human ($2.018$ vs. $3.363$), and RE10K ($2.771$ vs. $5.941$).
  • Achieved the best LPIPS on all datasets (0.318 on DAVIS, 0.170 on Human, 0.178 on RE10K).

Limitations and Future Work

  • Computational Cost: Finding geodesics requires optimizing an $N$-step trajectory for several hundred iterations using backpropagation through the diffusion UNet, which is substantially slower than closed-form LERP or SLERP.
  • Timestep Sensitivity: The metric is ill-conditioned at $t = 0$ (where off-manifold scores are poorly defined) and loses manifold structure at $t = T$ (where the distribution is purely isotropic Gaussian). It relies on selecting an intermediate noise level ($\tau \approx 0.4T\text{--}0.6T$).
  • Local Optima: Because energy minimization only guarantees a local geodesic, the method depends on a reasonable initialization (e.g., SLERP).
  • Future Directions: Extending the score-Jacobian metric to downstream non-Euclidean tasks, such as manifold-aware clustering and unsupervised semantic editing.

Summary updated

BibTeX
@misc{saito2025be,
  author = {Shinnosuke Saito and Takashi Matsubara},
  title = {{Be Tangential to Manifold: Discovering Riemannian Metric for Diffusion Models}},
  year = {2025},
  eprint = {2510.05509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05509},
}
Figure