On Fast Sampling of Diffusion Probabilistic Models

Zhifeng Kong, Wei Ping

TL;DR

Standard diffusion probabilistic models produce remarkable image and audio synthesis, but require hundreds or thousands of sequential network evaluations to generate a single sample. FastDPM introduces a unified, retraining-free framework that generalizes existing acceleration methods (like DDIM and DiffWave's fast sampler) by defining a continuous bijective mapping between diffusion steps and noise levels. Crucially, the authors reveal that optimal sampling strategies fundamentally depend on the data domain (image vs. audio) and the amount of conditioning information provided.

What Problem Does This Paper Address?

Standard Denoising Diffusion Probabilistic Models (DDPMs) synthesize data by reversing a forward noise-injection process across $T$ discrete steps (often $T = 1000$ for images or $T = 200$ for raw audio waveforms). Because each step demands a separate forward pass through a deep neural network, sampling is orders of magnitude slower than GANs or normalizing flows.

Prior attempts to compress sampling into $S \ll T$ steps either required retraining the network on continuous noise schedules or relied on heuristic step skipping. The authors address how to design a principled, mathematically grounded fast-sampling framework that:

  1. Reuses pretrained discrete-step models without retraining.
  2. Unifies and extends step-skipping and variance-interpolation techniques.
  3. Systematically evaluates how data modality and conditioning alter fast-sampling behavior.

Methods

FastDPM operates without modifying the weights of pretrained DDPMs by establishing an exact bridge between discrete steps and continuous noise levels:

  • Continuous Step–Noise Bijection: For linear variance schedules, the paper extends the cumulative noise term $\bar{\alpha}_t$ to continuous real values $t \in [0, \hat{\beta})$ via the Euler Gamma function: $$R(t) = (\Delta \beta)^{t/2} \, \Gamma(\hat{\beta} + 1)^{1/2} \, \Gamma(\hat{\beta} - t + 1)^{-1/2}$$ Inverting this function numerically using a binary search (converging in $\le 20$ iterations) yields an exact mapping $\mathcal{T}(r) = R^{-1}(r)$ from any arbitrary noise level $r$ back to the continuous step $t$ expected by the model.

  • Approximate Diffusion Process ($S$ steps): Constructible either by sub-selecting integer steps (STEP, like DDIM) or by scheduling new variances directly (VAR, generalizing DiffWave).

  • Approximate Reverse Process: Controlled via a stochasticity parameter $\kappa \in [0, 1]$. Setting $\kappa = 1$ recovers the stochastic DDPM reverse step (DDPM-rev), while $\kappa = 0$ corresponds to the deterministic DDIM trajectory (DDIM-rev).

Datasets

The authors evaluate FastDPM using pretrained models across multiple benchmarks:

  • Image Synthesis (Unconditional): CIFAR-10 ($32 \times 32$), CelebA ($64 \times 64$), and LSUN-bedroom ($256 \times 256$).
  • Audio Synthesis (Unconditional & Class-Conditional): Speech Commands 0–9 (SC09), containing $\sim$31k one-second spoken digits sampled at 16 kHz.
  • Neural Vocoding (Conditional): LJSpeech, containing $\sim$24 hours of speech conditioned on mel-spectrograms.

No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • Images favor determinism; audio demands stochasticity: In image synthesis, the deterministic DDIM reverse process ($\kappa = 0.0$) consistently outperformed stochastic sampling ($\kappa = 1.0$). In stark contrast, deterministic sampling catastrophically degraded audio quality into noisy utterances. Raw audio waveforms naturally exhibit fine-grained stochasticity that requires sampling noise ($\kappa = 1.0$) at each reverse step to sound clear.
  • Conditioning reduces the need for stochasticity: As conditional guidance increases, the requirement for reverse-process noise decreases:
  • Unconditional audio (SC09): Maximum stochasticity ($\kappa = 1.0$) yields the best FID.
  • Class-conditional audio (SC09): Moderate stochasticity ($\kappa = 0.5$) achieves peak accuracy and Inception Score.
  • Strong conditioning (LJSpeech vocoding from mel-spectrograms): The gap between deterministic and stochastic reverse processes shrinks dramatically.
  • Variance scheduling (VAR) edges out step selection (STEP) at low $S$: Choosing noise levels directly via variance schedules provides a marginal advantage over subsampling discrete steps when the step budget is very tight (e.g., $S \le 10$ or $S = 5$).

Key Results

  • CIFAR-10 ($S = 10$): VAR + DDIM-rev ($\kappa = 0$) achieved an FID of 9.90, outperforming STEP + DDIM-rev (11.01) and drastically beating DDPM-rev (29.43 to 36.70).
  • SC09 Audio Synthesis ($S = 10$, Unconditional): VAR + DDPM-rev achieved an FID of 1.69 and an Inception Score of 4.06, while deterministic DDIM-rev ($\kappa = 0.0$) collapsed to an FID of 4.74 and IS of 2.49.
  • SC09 Class-Conditional ($S = 20$): DDIM-rev with intermediate noise ($\kappa = 0.5$) outperformed fully stochastic DDPM-rev, achieving 88.2% accuracy (vs. 82.8%) and an IS of 6.24 (vs. 5.16).
  • LJSpeech Neural Vocoding ($S = 5$): FastDPM compressed the reverse process down to just 5 steps (a 40× speedup over DiffWave's $T = 200$), obtaining a Mean Opinion Score (MOS) of 4.31 ± 0.07, closely trailing the 200-step baseline (4.42 ± 0.10) and ground truth (4.51 ± 0.07).

Limitations and Future Work

  • Quality gap at very small step counts: Although FastDPM enables 5- to 10-step inference, there remains a noticeable fidelity drop compared to full-step diffusion baselines when $S$ is pushed to extreme limits.
  • Future directions: Developing dedicated algorithms or formulations that retain full-fidelity synthesis under extremely small step regimes ($S < 5$) without retraining.

Summary updated

BibTeX
@inproceedings{kong2021fast,
  author = {Zhifeng Kong and Wei Ping},
  title = {{On Fast Sampling of Diffusion Probabilistic Models}},
  booktitle = {INNF @ ICML},
  year = {2021},
  url = {https://openreview.net/forum?id=agj4cdOfrAP},
}

Loading related content...

Figure