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

gDDIM: Generalized denoising diffusion implicit models

Qinsheng Zhang, Molei Tao, Yongxin Chen

TL;DR

The authors introduce gDDIM, a generalization of the popular Denoising Diffusion Implicit Model (DDIM) that works for a much broader class of diffusion processes, including those that involve blurring or auxiliary velocity. By reinterpreting DDIM through the lens of numerical differential equation solvers, they achieve over 20x sampling speedups on complex models while maintaining state-of-the-art image quality with as few as 27 steps.

Introduction: The Bottleneck of Diffusion Models

Diffusion Models (DMs) have become the gold standard for high-fidelity image generation, but they have a major Achilles' heel: they are incredibly slow. Generating a single image typically requires simulating a "reverse-time" process over thousands of small steps to transform pure noise into structured data.

While the original DDIM provided a way to speed up standard "isotropic" diffusion (where noise is added uniformly in all directions), it struggled to adapt to newer, more sophisticated diffusion processes. Specifically, it fell short on non-isotropic models like:

  1. Blurring Diffusion Models (BDM): Where noise is added in the frequency domain, effectively blurring the image as it noises.
  2. Critically-damped Langevin Diffusion (CLD): Where the process is augmented with a "velocity" term to make the trajectories smoother.

The authors realized that the community lacked a fundamental understanding of why DDIM worked so well, making it difficult to apply its benefits to these more complex, high-performance models.

Methodology: A Numerical Perspective

The core contribution of this paper is a shift in perspective: DDIM is actually a specific type of numerical solver.

The Numerical Insight

The authors show that DDIM is equivalent to an exponential integrator—a sophisticated way to solve Ordinary Differential Equations (ODEs). They discover that if you have a dataset consisting of just a single point, DDIM can recover that point in exactly one step.

Smooth Parameterization ($K_t = R_t$)

To make this work for general datasets, they introduce a novel parameterization of the "score" (the gradient of the log-density). Instead of predicting the score directly, they train the network to predict a noise term $\epsilon_\theta$ scaled by a time-varying matrix $K_t$.

The breakthrough is their choice of $K_t$. By setting it to a specific matrix $R_t$ derived from the diffusion coefficients, they ensure that the network's output remains smooth and nearly constant along the sampling trajectory. In numerical analysis, if the function you are integrating is flat, you can take massive steps without losing accuracy. This is exactly what gDDIM does.

Comparison of sampling trajectories and image quality across different solvers. The $R_t$ parameterization yields smooth, nearly constant trajectories, enabling high-quality generation in as few as 10-20 steps.

The gDDIM Algorithm

They extend this logic to both deterministic (ODE-based) and stochastic (SDE-based) sampling, creating a unified framework that can "plug and play" with almost any linear diffusion model.

Key Insights and Ideas

  • The Manifold Hypothesis is Key: The authors justify their "single-point" derivation by invoking the manifold hypothesis. On a local level, high-dimensional image data is sparse; the model effectively "sees" only one or a few nearby data points at any given time during the reverse process.
Visualization of the manifold hypothesis in diffusion models. On a local level, the model effectively targets a single or few nearby data points, justifying the single-point derivation for gDDIM.
  • Smoothness = Speed: Standard score functions change rapidly over time, forcing solvers to take tiny steps. By choosing the right coordinate system (the $R_t$ parameterization), gDDIM "flattens" the problem, allowing for much larger discretization steps.
  • ODE > SDE for Fast Sampling: The paper provides a theoretical explanation for why deterministic ODE samplers usually outperform stochastic SDE samplers when the number of steps (NFE) is very low: stochasticity introduces "jitter" that is harder to correct with large steps.

Key Results

The authors evaluated gDDIM on standard generative modeling benchmarks, including CIFAR-10 and CelebA, yielding impressive results:

  • Massive Speedups: On Blurring Diffusion Models (BDM), gDDIM achieved a 20x acceleration over previous ancestral sampling methods.
  • State-of-the-Art Efficiency: On the Critically-damped Langevin (CLD) model using CIFAR-10, gDDIM reached an impressive FID score of 2.26 with only 50 steps. For context, it achieved a respectable FID of 2.86 in just 27 steps.
  • Robustness: Unlike standard Euler or Runge-Kutta solvers, which fail or produce "noisy" images at low step counts, gDDIM maintains structural integrity and high visual quality even when the budget for neural network evaluations is extremely tight.

Limitations and Future Work

  • Scope of Models: While gDDIM is "generalized," the authors primarily tested it on linear diffusion processes. Extending this to non-linear or more exotic diffusion manifolds remains an open question.
  • Training Overhead: The $R_t$ parameterization requires a slightly different training setup (predicting two channels instead of one for models like CLD), which adds a minor amount of complexity to the initial model training.
  • Future Directions: The authors suggest that incorporating more "structural knowledge" about specific data types (like text or audio) into the $K_t$ matrix could lead to even more efficient domain-specific samplers.

Summary updated

BibTeX
@inproceedings{zhang2023gddim,
  author = {Qinsheng Zhang and Molei Tao and Yongxin Chen},
  title = {{gDDIM: Generalized denoising diffusion implicit models}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=1hKE9qjvz-},
}
Figure