Understanding the Latent Space of Diffusion Models through the Lens of Riemannian Geometry

Yong-Hyun Park, Mingi Kwon, J. Choi, Junghyo Jo, Youngjung Uh
2/12/2026

No official code found. Best implementation: enkeejunior1/Diffusion-Pullback (94 stars, Apache-2.0, last commit 2024-02-20).

Abstract

Despite the success of diffusion models (DMs), we still lack a thorough understanding of their latent space. To understand the latent space $\mathbf{x}_t \in \mathcal{X}$, we analyze them from a geometrical perspective. Our approach involves deriving the local latent basis within $\mathcal{X}$ by leveraging the pullback metric associated with their encoding feature maps. Remarkably, our discovered local latent basis enables image editing capabilities by moving $\mathbf{x}_t$, the latent space of DMs, along the basis vector at specific timesteps. We further analyze how the geometric structure of DMs evolves over diffusion timesteps and differs across different text conditions. This confirms the known phenomenon of coarse-to-fine generation, as well as reveals novel insights such as the discrepancy between $\mathbf{x}_t$ across timesteps, the effect of dataset complexity, and the time-varying influence of text prompts. To the best of our knowledge, this paper is the first to present image editing through $\mathbf{x}$-space traversal, editing only once at specific timestep $t$ without any additional training, and providing thorough analyses of the latent structure of DMs. The code to reproduce our experiments can be found at https://github.com/enkeejunior1/Diffusion-Pullback.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official Implementation of understanding the latent space of diffusion models through the lens of riemannian geometry (NeurIPS 2023)

9411Shell, PythonOct 21, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{park2026understanding,
  title  = {Understanding the Latent Space of Diffusion Models through the Lens of Riemannian Geometry},
  author = {Yong-Hyun Park and Mingi Kwon and J. Choi and Junghyo Jo and Youngjung Uh},
  year   = {2026},
  eprint = {2307.12868},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.12868},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12868.svg)](https://codeofpaper.com/paper/2307.12868)

Discussion