Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Denoising Diffusion Implicit Models

  • Problem DDPM sampling runs one network evaluation per step along a chain that can span thousands of steps, which makes it much slower than a GAN's single forward pass.
  • Method Replaces the Markovian forward chain with a family of non-Markovian chains that share the DDPM training loss, then samples with a deterministic or partly stochastic update over a shortened sub-sequence of timesteps.
  • Results On CIFAR10 with 10 sampling steps, DDIM with η = 0.0 reaches an FID of 13.36, against 41.07 for η = 1.0.

Why DDPM sampling is slow

A DDPM draws a sample by starting from noise and running a reverse chain back to an image, one step after another. That chain is meant to approximate the reverse of a forward process that adds noise over what can be thousands of steps, so every step has to be computed in sequence. The cost therefore grows with the number of steps, not with the size of one network pass.

The gap with GANs is concrete: sampling 50k images of size 32×32 from a DDPM takes around 20 hours, while a GAN does the same in less than a minute on one Nvidia 2080 Ti GPU. At 256×256 the same 50k-image job could take nearly 1000 hours on that GPU, so the problem becomes more pressing as images get larger. DDIM is meant to close this gap while keeping the DDPM training procedure, which the next section builds on.

The DDPM objective as a starting point

The inference chain is fixed rather than learned: each transition is Gaussian with mean \(\sqrt{\alpha_t/\alpha_{t-1}}\,x_{t-1}\) and covariance \((1-\alpha_t/\alpha_{t-1})I\), where \(\alpha_{1:T}\) is a decreasing sequence in \((0,1]\). Because of this chain, the marginal at each step has the closed form \(q(x_t|x_0)=\mathcal{N}(\sqrt{\alpha_t}\,x_0,(1-\alpha_t)I)\), so each noisy input can be written as \(x_t=\sqrt{\alpha_t}\,x_0+\sqrt{1-\alpha_t}\,\epsilon\) with \(\epsilon\sim\mathcal{N}(0,I)\).

When the conditionals are Gaussians with trainable means and fixed variances, the training loss reduces to \(L_\gamma(\epsilon_\theta)=\sum_{t=1}^T \gamma_t\,\mathbb{E}\big[\|\epsilon_\theta^{(t)}(\sqrt{\alpha_t}x_0+\sqrt{1-\alpha_t}\epsilon_t)-\epsilon_t\|_2^2\big]\), where each \(\epsilon_\theta^{(t)}\) is a noise predictor. DDPM trains with the weights set to \(\gamma=1\), and sampling starts from \(x_T\) drawn from the prior and applies the generative conditionals one at a time.

Non-Markovian forward processes that share one objective

Many joint distributions share the same marginals, so a different joint can be chosen without changing the loss.

The paper defines a family \(q_\sigma(x_{1:T}|x_0)=q_\sigma(x_T|x_0)\prod_{t=2}^T q_\sigma(x_{t-1}|x_t,x_0)\), indexed by a non-negative vector \(\sigma\), with \(q_\sigma(x_T|x_0)=\mathcal{N}(\sqrt{\alpha_T}x_0,(1-\alpha_T)I)\). Because each \(x_t\) may depend on both \(x_{t-1}\) and \(x_0\), this forward process is no longer Markovian. The size of \(\sigma\) sets how stochastic it is, and as \(\sigma\to 0\) the value \(x_{t-1}\) becomes fixed once \(x_0\) and \(x_t\) are observed.

The generative process pairs a fixed prior \(p_\theta(x_T)=\mathcal{N}(0,I)\) with conditionals that first predict \(x_0\) through \(f_\theta^{(t)}(x_t)=(x_t-\sqrt{1-\alpha_t}\,\epsilon_\theta^{(t)}(x_t))/\sqrt{\alpha_t}\), then apply the inference conditional with that prediction in place of \(x_0\). At \(t=1\) the conditional is a Gaussian with mean \(f_\theta^{(1)}(x_1)\) and covariance \(\sigma_1^2 I\), which keeps the generative process supported everywhere.

The variational objective \(J_\sigma\) for each \(\sigma\) is shown to equal \(L_\gamma\) plus a constant, for suitable positive weights \(\gamma\), when \(\sigma>0\). Since the optimum of \(L_\gamma\) does not depend on \(\gamma\) when the noise predictors are not shared across t, the \(L_1\) objective used by DDPM can serve as the training loss for every \(\sigma\), so one trained network is reused.

Sampling with a chosen σ and shorter trajectories

The sampling update computes \(x_{t-1}=\sqrt{\alpha_{t-1}}\Big(\frac{x_t-\sqrt{1-\alpha_t}\,\epsilon_\theta^{(t)}(x_t)}{\sqrt{\alpha_t}}\Big)+\sqrt{1-\alpha_{t-1}-\sigma_t^2}\cdot\epsilon_\theta^{(t)}(x_t)+\sigma_t\epsilon_t\), with \(\epsilon_t\sim\mathcal{N}(0,I)\) independent of \(x_t\) and \(\alpha_0:=1\). The first term is the predicted \(x_0\) scaled to level \(t-1\), the second is a direction that points back toward \(x_t\), and the third is fresh noise scaled by \(\sigma_t\).

Changing \(\sigma\) changes only the last two terms, and the same network \(\epsilon_\theta\) serves every choice.

With \(\sigma_t=\sqrt{(1-\alpha_{t-1})/(1-\alpha_t)}\sqrt{1-\alpha_t/\alpha_{t-1}}\) for all t, the forward chain becomes Markovian again and the update becomes a DDPM sampler. Setting \(\sigma_t=0\) for all t removes the random term, and the forward process becomes deterministic given \(x_{t-1}\) and \(x_0\) (except at \(t=1\)). The resulting sampler is an implicit probabilistic model, and the paper names it DDIM because it is an implicit model trained with the DDPM objective.

The model's chain is defined over all \(T\) latent variables, but the forward process can be defined over an increasing sub-sequence \(\{x_{\tau_1},\dots,x_{\tau_S}\}\) of length \(S\), so the sampler visits only \(S\) steps. The visited sequence is called the sampling trajectory.

The paper uses a single parameterization of \(\sigma\) for the experiments: \(\sigma_{\tau_i}(\eta)=\eta\sqrt{(1-\alpha_{\tau_{i-1}})/(1-\alpha_{\tau_i})}\sqrt{1-\alpha_{\tau_i}/\alpha_{\tau_{i-1}}}\), where \(\eta=1\) gives the DDPM process and \(\eta=0\) gives DDIM. A larger-variance DDPM variant, written \(\hat\sigma\), uses \(\sqrt{1-\alpha_{\tau_i}/\alpha_{\tau_{i-1}}}\) as its noise scale; the authors state that the Ho et al.

implementation used it only to obtain the CIFAR10 samples.

The ODE view of DDIM

Rewriting the DDIM update with \(\Delta t\) gives \(\frac{x_{t-\Delta t}}{\sqrt{\alpha_{t-\Delta t}}}=\frac{x_t}{\sqrt{\alpha_t}}+\Big(\sqrt{\tfrac{1-\alpha_{t-\Delta t}}{\alpha_{t-\Delta t}}}-\sqrt{\tfrac{1-\alpha_t}{\alpha_t}}\Big)\epsilon_\theta^{(t)}(x_t)\), which has the form of an Euler step. Reparametrizing with \(\sigma\) and \(\bar x=x/\sqrt{\alpha}\) gives the ODE \(d\bar x(t)=\epsilon_\theta^{(t)}\big(\bar x(t)/\sqrt{\sigma^2+1}\big)\,d\sigma(t)\), where \(\sigma\) is continuous, increasing and zero at 0, with the initial condition \(x(T)\sim\mathcal{N}(0,\sigma(T))\) for a very large \(\sigma(T)\).

Running the Euler steps in the reverse direction encodes \(x_0\) into \(x_T\), so DDIM can produce latent encodings of observations, which the authors note DDPM does not provide. The paper places this next to a concurrent probability flow ODE proposed by Song et al. (2020) and states that the two are equivalent in a special case, with the ODE above matching the Variance-Exploding SDE.

The sampling procedures still differ: the probability flow Euler update carries a factor of one half and takes steps with respect to \(t\), while DDIM takes steps with respect to \(\sigma(t)\), which the authors argue matters when fewer steps are used.

Sample quality at fewer steps

Table 1 reports FID for CIFAR10 and CelebA while varying the number of steps S and η, using the same trained model with T = 1000 and the L1 objective for every sampler. Lower FID is better, and the table also covers the σ̂ variant of DDPM.

On CIFAR10 with S = 10, DDIM with η = 0.0 reaches an FID of 13.36, against 41.07 for η = 1.0. On CelebA with S = 20, DDIM with η = 0.0 reaches 13.73, against 26.03 for η = 1.0. At 1000 steps the gap narrows: 4.04 for η = 0.0 against 4.73 for η = 1.0 on CIFAR10.

Across the table, the η = 0.0 sampler is best when S is small, and the η = 1.0 DDPM sampler is typically worse than its less stochastic counterparts at the same S, except at 1000 steps with σ̂ as reported by Ho et al., where DDIM is marginally worse. The σ̂ variant degrades sharply at few steps, with an FID of 367.43 at S = 10 on CIFAR10 and 3.17 at S = 1000, and the authors read its noisy perturbations under short trajectories as the reason.

Figure 3 shows the visual side of this comparison: DDPM samples deteriorate rapidly with 10 steps, and σ̂ samples carry more noisy perturbations at short trajectories.

The authors report that DDIM reaches quality comparable to 1000-step models with 20 to 100 steps, which they describe as a 10× to 50× speed-up over the original DDPM generation process. On CelebA the 100-step η = 1.0 DDPM (FID 13.93) is close to the 20-step DDIM (FID 13.73), so DDIM needs far fewer steps for a similar score.

Wall-clock cost of fewer steps

Figure 4 measures the hours needed to sample 50k images with one Nvidia 2080 Ti GPU at different numbers of steps, for CIFAR10 and Bedroom. The authors report that the time needed to produce a sample grows linearly with the length of the trajectory, so halving the steps roughly halves the sampling time. The abstract states the speed-up in wall-clock terms, between 10× and 50× compared with DDPMs.

Consistency across trajectories

Consistency means that samples started from the same initial latent with Markov chains of different lengths keep similar high-level features, a property the paper says DDPM does not have.

With the same initial \(x_T\), most high-level features stay similar across trajectories, and samples with 20 steps are already very similar to 1000-step samples, with only minor differences in details. The authors read this as \(x_T\) acting as an informative latent encoding of the image, with the detail differences attributed to the step count.

Interpolating in the latent space

Since the high-level content of a DDIM sample is carried by \(x_T\), the paper tests whether interpolating in \(x_T\) gives a semantic interpolation like that of implicit models such as GANs.

Encoding and reconstruction

The reconstruction error is 0.014 at S = 10, 0.0065 at S = 20, 0.0023 at S = 50 and 0.0001 at S = 500 and S = 1000, rounded to \(10^{-4}\) as the table states.

The authors say DDIM has lower reconstruction error for larger S and behaves similarly to Neural ODEs and normalizing flows. The same reconstruction is not available for DDPMs because of their stochastic sampling process.

Where DDIM sits among related methods

DDPM and NCSN are closely related: both use a denoising objective over many noise levels and sample with a procedure similar to Langevin dynamics, which is why both need many steps for good quality.

DDIM is derived from a variational view that does not depend on Langevin dynamics, which the authors suggest may partly explain its better quality with fewer iterations. Because each sample is uniquely determined by its latent variable, DDIM shares some properties with GANs and invertible flows, such as meaningful interpolation, and its trajectories resemble neural networks with continuous depth.

Limitations

FID is very sensitive to noisy perturbations, so images with such perturbations can shift the scores, and the σ̂ comparison at short trajectories is affected by this. The timing results are reported on one Nvidia 2080 Ti GPU, and the speed-up claims are tied to the step counts tested.

The theorem that equates \(J_\sigma\) with \(L_\gamma\) covers \(\sigma>0\). The case \(\sigma=0\) is handled by approximating it with a very small \(\sigma\). The reuse of the L1 model across \(\sigma\) relies on the noise predictors not being shared across timesteps.

Training with more forward steps than are sampled, or using a continuous time variable, is noted as a possibility, and the authors leave empirical investigation to future work. The discrete multinomial case in Appendix A is only demonstrated, and similar alternatives for other combinatorial structures are left open. Reducing discretization error in the ODE view, for example with multi-step methods, is named as a direction for future work.

The reconstruction experiment is limited to the CIFAR-10 test set with the CIFAR-10 model.

Paper info

Authors
Jiaming Song, Chenlin Meng, Stefano Ermon
Venue
arXiv · Preprint
First published
2020-10-6
Added
2026-10-20
Updated
2022-10-5
Version
v4
arXiv
2010.02502
Category
cs.LG · cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Jiaming Song, Chenlin Meng, Stefano Ermon (2020). Denoising Diffusion Implicit Models. arXiv:2010.02502v4. https://arxiv.org/abs/2010.02502v4

BibTeX
@misc{song2020denoising,
  title = {{Denoising Diffusion Implicit Models}},
  author = {Jiaming Song and Chenlin Meng and Stefano Ermon},
  year = {2020},
  eprint = {2010.02502},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.02502v4}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up