Deep Learning
[Paper Review] DDIM (Denoising Diffusion Implicit Model)
![[Paper Review] DDIM (Denoising Diffusion Implicit Model)](/_next/image?url=%2Fblogs%2Fddim%2Fscreenshot.png&w=3840&q=75)
0 views
#Deep LearningTable Of Content
- Introduction - GAN vs DDPM
- Background
- Variational Interference For Non-Markovian Forward Processes
- Non-Markovian Forward Processes
- Generative Process And Unified Variance Interference Objective
- Theorem 1
- Sampling From Generalized Generative Processes
- Denoising Diffusion Implicit Models
- Accelerated Generation Processes
- Relevance to Neural ODEs
- Experiments
- Sample Quality and Efficiency
- Sample Consistency in DDIMs
- Interpolation in Deterministic Generative Processes
- Reconstruction from Latent Space
This post is reviewing the DDIM paper.
Introduction - GAN vs DDPM
- GAN has faster ability than DDPM, in terms of image generation
- Deep generative models have demonstrated the ability to produce high quality samples in many domains (Karras et al., 2020; van den Oord et al., 2016a). In terms of image generation, generative adversarial networks (GANs, Goodfellow et al. (2014)) currently exhibits higher sample quality than likelihood-based methods such as variational autoencoders (Kingma & Welling, 2013), autoregressive models (van den Oord et al., 2016b) and normalizing flows (Rezende & Mohamed, 2015; Dinh et al., 2016). However, GANs require very specific choices in optimization and architectures in order to stabilize training (Arjovsky et al., 2017; Gulrajani et al., 2017; Karras et al., 2018; Brock et al., 2018), and could fail to cover modes of the data distribution (Zhao et al., 2018).
- DDIMs are implicit probabilistic models (Mohamed & Lakshminarayanan, 2016) and are closely related to DDPMs, in the sense that they are trained with the same objective function.
- Generalizing the Process: A DDPM's forward diffusion process can be generalized from a Markovian process to a non-Markovian process, allowing for a compatible reverse Markov chain to be designed.
- Objective Function: The same objective function used to train a Markovian DDPM can be applied, allowing for the same neural network to be employed, regardless of the diffusion process type.
- Flexibility: This flexibility enables the use of various neural networks in different generative models.
- Short Markov Chain: The non-Markovian process facilitates a shorter generative Markov chain with fewer steps, greatly enhancing sampling efficiency with minimal quality loss.
Background
Variational Interference For Non-Markovian Forward Processes
Non-Markovian Forward Processes
Generative Process And Unified Variance Interference Objective
Theorem 1
Sampling From Generalized Generative Processes
Denoising Diffusion Implicit Models
Gaussian Noise: t ~ N(0, I) represents standard Gaussian noise independent of x_t, with alpha_0 := 1.
- Different choices of σ values lead to different generative processes using the same model θ, removing the need for retraining.
- Markovian Process: When the forward process becomes Markovian, and the generative process is a DDPM.
- For σt = 0 for all t, the forward process becomes deterministic given x(t-1) and x_0 (except for t = 1). In this generative process, the coefficient before the random noise t becomes zero.
- This results in an implicit probabilistic model (DDIM) where samples are generated from latent variables through a fixed procedure, trained with the DDPM objective, even though the forward process is no longer a diffusion.
Accelerated Generation Processes
- The generative process approximates the reverse of the inference process. When the inference process has T steps, the generative process is also constrained to sample T steps.
- The generative model's denoising objective, L1, depends only on the fixed marginals qσ(xt|x0). This allows for forward processes with fewer steps, leading to shorter generative processes, thereby increasing efficiency.
- The forward process is defined not over all latent variables x1:T, but over a subset, which is a sequence of length S. This sequence maintains the marginals.
- The generative process samples latent variables according to this shorter sequence, significantly increasing efficiency by reducing the number of sampling steps.
- The L1 objective can justify training the model with its initial setup, allowing for new, faster generative processes without retraining.
Relevance to Neural ODEs
The initial condition is x(T) ~ N(0, sigma(T)). From this, we can infer that by performing enough discretization steps, it is possible to reverse the ODE, which also makes it feasible to reverse the generation process, that is, to encode x_0 → x(T).
Experiments
Sample Quality and Efficiency
- The quality of generated samples was evaluated using the Frechet Inception Distance (FID) metric. It was found that as the number of sampling steps (dim(τ)) increases, sample quality improves, showing a trade-off between quality and computational cost.
- DDIM (η = 0) produced the best sample quality with small dim(τ), while DDPM typically had worse quality compared to its less stochastic counterparts, except for a specific case where dim(τ) = 1000.
- DDPM struggled more with smaller trajectories, while DDIM showed consistently better quality. In Figure 3, CIFAR10 and CelebA images generated by DDPM deteriorated rapidly with 10 steps, while DDIM remained consistent.
Sample Consistency in DDIMs
Interpolation in Deterministic Generative Processes
Reconstruction from Latent Space
As DDIM is the Euler integration for a particular ODE, it would be interesting to see whether it can encode from x0 to xT (reverse of Eq. (14)) and reconstruct x0 from the resulting xT (forward of Eq. (14))7.
Post a Comment
No comments found.