Skip to main content
QUICK REVIEW

[论文解读] An Edit Friendly DDPM Noise Space: Inversion and Manipulations

Inbar Huberman-Spiegelglas, В. А. Куликов|arXiv (Cornell University)|Apr 12, 2023
Music and Audio ProcessingComputer Science被引用 7
一句话总结

论文引入一个便于编辑的 DDPM 噪声空间与快速反演方法,能完美重建图像并实现多样化的文本引导编辑,无需对模型进行微调。

ABSTRACT

Denoising diffusion probabilistic models (DDPMs) employ a sequence of white Gaussian noise samples to generate an image. In analogy with GANs, those noise maps could be considered as the latent code associated with the generated image. However, this native noise space does not possess a convenient structure, and is thus challenging to work with in editing tasks. Here, we propose an alternative latent noise space for DDPM that enables a wide range of editing operations via simple means, and present an inversion method for extracting these edit-friendly noise maps for any given image (real or synthetically generated). As opposed to the native DDPM noise space, the edit-friendly noise maps do not have a standard normal distribution and are not statistically independent across timesteps. However, they allow perfect reconstruction of any desired image, and simple transformations on them translate into meaningful manipulations of the output image (e.g. shifting, color edits). Moreover, in text-conditional models, fixing those noise maps while changing the text prompt, modifies semantics while retaining structure. We illustrate how this property enables text-based editing of real images via the diverse DDPM sampling scheme (in contrast to the popular non-diverse DDIM inversion). We also show how it can be used within existing diffusion-based editing methods to improve their quality and diversity. Webpage: https://inbarhub.github.io/DDPM_inversion

研究动机与目标

  • 通过解决反演挑战,推动对真实图像在 DDPM 下的鲁棒编辑。
  • 定义一个便于编辑的噪声空间,在编辑时保留图像结构。
  • 开发一种快速反演过程,在不优化模型参数的情况下获得完美重建。
  • 展示固定的便于编辑的噪声映射如何实现可靠的文本引导编辑与多样性。

提出的方法

  • 引入一种替代的 DDPM 潜在噪声空间,其中噪声映射在时间步之间高度相关且方差较高,从而实现便于编辑的操作。
  • 提出用于反演的算法1,通过 x_t = sqrt(alpha_bar_t) x_0 + sqrt(1 - alpha_bar_t) tilde{epsilon}_t 与独立的 tilde{epsilon}_t 进行推断。
  • 从反演序列中提取噪声映射 z_t,通过 z_t = (x_{t-1} - hat{mu}_t(x_t)) / sigma_t,并利用扩散更新重建 x_{t-1,以避免误差累积。
  • 证明这些噪声映射虽然并非标准正态,但可实现完美重建,在编辑时能更好地保留结构。
  • 展示与现有编辑方法(如 Prompt-to-Prompt、Zero-Shot I2I)的结合,通过用便于编辑的反演替代 DDIM 反演实现。
Figure 2: The native and edit friendly noise spaces. When sampling an image using DDPM (left), there is access to the “ground truth” noise maps that generated it. This native noise space, however, is not edit friendly (2nd column). For example, fixing those noise maps and changing the text prompt, c
Figure 2: The native and edit friendly noise spaces. When sampling an image using DDPM (left), there is access to the “ground truth” noise maps that generated it. This native noise space, however, is not edit friendly (2nd column). For example, fixing those noise maps and changing the text prompt, c

实验结果

研究问题

  • RQ1在 DDPM 下,使用便于编辑的噪声映射进行反演,能否提升对真实图像编辑的保真度和结构保留?
  • RQ2相关、方差更高的噪声映射是否有助于在不进行微调或注意力图操作的情况下实现多样化的、文本引导的编辑?
  • RQ3便于编辑的反演如何与现有的基于扩散的编辑方法交互,从而提高保真度与多样性?

主要发现

  • 便于编辑的噪声空间在时间步上产生更高的方差且负相关的噪声,因而更强地嵌入图像结构。
  • 通过算法1 的反演可将 x0 精确重建(数值误差除外),且在文本提示变化时实现多样化的编辑结果。
  • 在更改文本提示的同时固定便于编辑的噪声映射,能够保持结构且相较于 DDIM 反演,伪影减少。
  • 将便于编辑的反演整合到 P2P 与 Zero-Shot I2I 中,提升保真度(结构/纹理保留)并保持 CLIP 一致性。
  • 与 DDIM 反演和 CycleDiffusion 相比,所提出的方法在 CLIP 相似度、LPIPS 与多样性之间取得更好的平衡,且编辑时间更快。
  • 该方法支持颜色编辑、平移以及文本引导编辑,且纹理与全局结构得到保留。
Figure 3: The DDPM latent noise space. In DDPM, the generative (reverse) diffusion process synthesizes an image $x_{0}$ in $T$ steps, by utilizing $T+1$ noise maps, $\{x_{T},z_{T},\ldots,z_{1}\}$ . We regard those noise maps as the latent code associated with the generated image.
Figure 3: The DDPM latent noise space. In DDPM, the generative (reverse) diffusion process synthesizes an image $x_{0}$ in $T$ steps, by utilizing $T+1$ noise maps, $\{x_{T},z_{T},\ldots,z_{1}\}$ . We regard those noise maps as the latent code associated with the generated image.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。