NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Denoising Diffusion Implicit Models

Jiaming Song, Chenlin Meng, Stefano Ermon

TL;DR

DDIMs introduce a way to sample from diffusion models 10x to 50x faster than the original Denoising Diffusion Probabilistic Models (DDPMs) without needing to retrain the model. By generalizing the forward noise process to be non-Markovian, the authors enable a deterministic generative process that allows for semantic latent space interpolation and nearly perfect image reconstruction.

What Problem Does This Paper Address?

While Denoising Diffusion Probabilistic Models (DDPMs) have shown the ability to generate high-quality images that rival GANs, they suffer from a massive efficiency bottleneck. To generate a single sample, a DDPM must simulate a Markov chain for thousands of steps (typically $T=1000$).

This makes sampling incredibly slow: the authors note that sampling 50k images at $32 \times 32$ resolution takes about 20 hours on a high-end GPU, whereas a GAN does it in less than a minute. For larger images ($256 \times 256$), this could take nearly 1000 hours. The challenge is to close this "efficiency gap" without losing the training stability and mode coverage that make diffusion models attractive.

Methods

The core innovation of DDIM is the realization that the standard diffusion training objective (which minimizes the distance between predicted and actual noise) only depends on the marginal distributions $q(x_t|x_0)$, not the specific joint distribution of the entire Markov chain.

  1. Non-Markovian Forward Processes: The authors propose a new family of forward processes where $x_{t-1}$ depends on both $x_t$ and the original image $x_0$. This breaks the Markovian requirement of DDPM.
  2. The DDIM Objective: They prove that this entire family of non-Markovian processes shares the same surrogate training objective as DDPM. This means you can take a model already trained as a DDPM and simply change how you sample from it.
  3. Deterministic Generative Process: By setting a specific variance parameter ($\sigma$) to zero, the generative process becomes deterministic. Given an initial noise vector $x_T$, the model will always produce the same image $x_0$.
  4. Accelerated Sampling: Because the process is no longer a strict Markov chain that must visit every step, the authors can "jump" through the sequence. For example, they might only sample 20 or 50 steps out of the original 1000.
Accelerated sampling process by skipping steps
  1. Neural ODE Connection: The authors show that the DDIM sampling procedure is essentially a discretization of a specific Ordinary Differential Equation (ODE).

Datasets

The authors evaluated their method on four standard image generation benchmarks:

  • CIFAR10: $32 \times 32$ unconditional images.
  • CelebA: $64 \times 64$ face images.
  • LSUN Bedroom: $256 \times 256$ indoor scenes.
  • LSUN Church: $256 \times 256$ outdoor scenes.

They used pre-trained checkpoints from the original DDPM paper for most datasets to ensure a fair comparison.

Key Insights and Ideas

  • Training vs. Inference Decoupling: You don't need to know how fast you want to sample during training. You can train one model and decide at inference time whether you want a high-quality 1000-step sample or a "good enough" 20-step sample.
  • The Power of Determinism: By making the model deterministic, the initial noise $x_T$ acts as a true latent encoding. This allows for semantic interpolation: if you interpolate between two noise vectors, the resulting images transition smoothly in high-level features (e.g., changing hair color or facial expression).
Semantic interpolation in the latent space
  • Sample Consistency: In DDIM, the high-level features of an image are determined early in the process. Generating an image with 20 steps vs. 1000 steps from the same starting noise results in images that look remarkably similar in structure, with the 1000-step version simply having more refined details.
  • Inversion and Reconstruction: Unlike stochastic DDPMs, DDIMs can be run "backward" to find the noise vector that produced a specific image, allowing for nearly perfect reconstruction.

Key Results

  • Speedup: DDIMs produce high-quality samples 10x to 100x faster than DDPMs.
  • Quality at Low Step Counts: On CelebA, a 20-step DDIM achieves an FID score (a measure of image quality) of 13.73, which is significantly better than a 20-step DDPM (FID 26.03) and even beats a 100-step DDPM (FID 13.93).
  • Reconstruction Accuracy: At 1000 steps, the reconstruction error on CIFAR-10 is extremely low ($0.0001$ MSE), behaving similarly to normalizing flows or Neural ODEs.
  • Efficiency: DDIM reduces the time to sample 50k images from 20 hours to roughly 1 hour (for 50 steps) on a single GPU.

Limitations and Future Work

  • Quality Trade-off: While DDIM is much better than DDPM at low step counts, the image quality still degrades as the number of steps decreases. At the full 1000 steps, DDPM sometimes still holds a slight edge in pure sample quality.
  • Advanced ODE Solvers: The authors suggest that because DDIM is an ODE discretization, using more sophisticated numerical solvers (like Adams-Bashforth or Runge-Kutta) could further reduce the number of steps needed without losing accuracy.
  • Discrete Data: While the paper focuses on Gaussian noise for continuous images, the appendix provides a theoretical framework for discrete data, which remains an area for empirical exploration.

Summary updated

BibTeX
@inproceedings{song2021denoising,
  author = {Jiaming Song and Chenlin Meng and Stefano Ermon},
  title = {{Denoising Diffusion Implicit Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=St1giarCHLP},
}
Figure