arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.12868cs.CV
收藏

通过黎曼几何视角理解扩散模型的潜空间

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

Korea Institute for Advanced Study(韩国高等研究院);Seoul National University(首尔大学);Yonsei University(延世大学)

Yong-Hyun Park, Mingi Kwon, Jaewoong Choi, Junghyo Jo, Youngjung Uh

AI总结:

本文从黎曼几何视角分析扩散模型的潜空间,通过拉回度量推导局部潜基底,首次实现无需额外训练、仅在特定时间步沿 $\mathbf{x}$-空间遍历的图像编辑,并揭示了潜结构随时间和文本条件演化的规律。

摘要:

尽管扩散模型(DMs)取得了成功,我们对其潜空间仍缺乏透彻理解。为理解潜空间 $\mathbf{x}_t \in \mathcal{X}$,我们从几何视角对其进行分析。我们的方法利用与编码特征图相关联的拉回度量,在 $\mathcal{X}$ 内推导局部潜基底。值得注意的是,我们发现的局部潜基底通过在特定时间步沿基底向量移动 $\mathbf{x}_t$(扩散模型的潜空间),实现了图像编辑能力。我们进一步分析了扩散模型的几何结构如何随扩散时间步演化,以及在不同文本条件下的差异。这证实了已知的由粗到细生成现象,并揭示了新的见解,例如 $\mathbf{x}_t$ 在不同时间步之间的差异、数据集复杂度的影响,以及文本提示随时间变化的影响力。据我们所知,本文首次提出通过 $\mathbf{x}$-空间遍历进行图像编辑,仅在特定时间步 $t$ 编辑一次,无需任何额外训练,并对扩散模型的潜结构进行了全面分析。复现我们实验的代码可在 https://github.com/enkeejunior1/Diffusion-Pullback 找到。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑