XYZNOT

Papers · arXiv 2006.11239

Denoising Diffusion Probabilistic Models

Published cs.LGstat.ML arXivPDF

Read with translation and AI

Summary in three lines

  1. 🎯 Closing the sample quality gap between diffusion probabilistic models and state-of-the-art GANs.
  2. 🔧 Reparameterizing the reverse-step mean to predict injected Gaussian noise and optimizing an unweighted MSE objective .
  3. 📈 Achieved an FID of 3.17 and Inception Score of 9.46 on unconditional CIFAR-10, rivaling contemporary GAN baselines.

Abstract

We present high quality image synthesis results using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics. Our best results are obtained by training on a weighted variational bound designed according to a novel connection between diffusion probabilistic models and denoising score matching with Langevin dynamics, and our models naturally admit a progressive lossy decompression scheme that can be interpreted as a generalization of autoregressive decoding. On the unconditional CIFAR10 dataset, we obtain an Inception score of 9.46 and a state-of-the-art FID score of 3.17. On 256x256 LSUN, we obtain sample quality similar to ProgressiveGAN. Our implementation is available at https://github.com/hojonathanho/diffusion

Reading guide

Problem and motivation

Although diffusion probabilistic models were originally introduced by Sohl-Dickstein et al. (2015) based on nonequilibrium thermodynamics, early iterations lagged significantly behind GANs and autoregressive architectures in visual fidelity. They were generally perceived as slow, difficult to tune, and unproven on complex, high-resolution natural image datasets. The authors set out to re-examine diffusion models by establishing a formal connection between their variational objectives and score matching with Langevin dynamics, demonstrating that with appropriate parameterization and objectives, diffusion models can achieve state-of-the-art perceptual sample quality.

Key ideas

  • Noise-Prediction Parameterization: Rather than predicting the posterior mean directly, the reverse process neural network is trained to predict the unscaled standard Gaussian noise vector added during the forward step.
  • Connection to Denoising Score Matching: Denoising diffusion matches denoising score matching across multiple noise scales, while the learned reverse chain acts as an annealed Langevin dynamics sampler derived via variational inference.
  • Simplified Loss Function (): Discarding the strict variance-dependent weighting from the variational lower bound produces an unweighted MSE loss that down-weights low noise levels (), forcing the model to focus on perceptually critical coarse structures.
  • Progressive Lossy Compression View: Analysis reveals that more than half of the model's lossless codelength represents imperceptible high-frequency pixel noise, meaning diffusion models implicitly optimize rate-distortion by decoding global content first before filling in fine texture.

Method

The forward process incrementally corrupts data over steps with a fixed variance schedule : Using and , intermediate latents can be directly sampled in closed form:

The reverse chain parameterizes the mean as: where is fixed to either or .

The network is optimized using the simplified surrogate loss: where and .

Sampling proceeds backward from using: with for , and when .

Results

  • CIFAR-10: Achieved an unconditional Inception Score (IS) of and an FID of using , outperforming contemporaries like SNGAN (FID 21.7) and NCSN (FID 25.32).
  • High-Resolution Synthesis: Successfully generated realistic images on LSUN (Bedroom FID 4.90, Church FID 7.89, Cat FID 19.75) and CelebA-HQ.
  • Likelihood vs. Quality Trade-off: While training with the exact variational bound gave better negative log-likelihoods ( bits/dim test) than ( bits/dim test), achieved vastly superior FID scores (3.17 vs. 13.51).

Limitations and open questions

  • Sampling Speed: Sampling requires evaluating the neural network sequential times per image batch, making inference orders of magnitude slower than GANs or single-pass flow models.
  • Competitive Log-Likelihoods: The models do not match the raw lossless test likelihoods of pure autoregressive models like Sparse Transformers (which achieved bits/dim on CIFAR-10).
  • Fixed Variance Scheduling: The forward variance schedule was fixed linearly rather than learned or adaptively scaled, leaving open whether non-linear schedules or learned continuous dynamics could yield further improvements.

Key terms

diffusion process
A fixed forward Markov chain that systematically adds Gaussian noise to input data over time steps until the signal is destroyed.
reverse process
A parameterized Markov chain with learned Gaussian transitions that starts from pure noise and is trained to invert the diffusion steps.
L_simple
A simplified, unweighted mean squared error training objective that penalizes the error between injected and predicted noise vectors.
$\boldsymbol{\epsilon}$-prediction
A parameterization where the neural network predicts the specific standard Gaussian noise added to a noisy image instead of predicting the clean image or posterior mean directly.
denoising score matching
An estimation technique where a network learns the gradient of the log probability density (score) of noisy data distributions across noise scales.
annealed Langevin dynamics
An iterative sampling technique that follows gradient estimates of smoothed data distributions while progressively decreasing noise intensity.
progressive lossy decompression
An interpretation of the reverse diffusion trajectory where global and coarse structures are resolved at earlier steps while imperceptible high-frequency details appear at later steps.

Questions

Why is predicting the noise $\boldsymbol{\epsilon}$ better than predicting the mean $\tilde{\boldsymbol{\mu}}_t$ directly?

Predicting allows formulating the training objective as unweighted mean squared error (). This reweighting downplays terms corresponding to very small noise levels, allowing the network to focus on perceptually significant coarse structures.

Why do diffusion models have worse log-likelihood than autoregressive models despite high sample quality?

Diffusion models expend a large portion of their lossless codelength describing imperceptible, high-frequency pixel variations, which heavily penalizes negative log-likelihood without degrading visible image quality.

How many neural network evaluations are needed to generate an image?

Generation requires sequential forward passes through the U-Net architecture, which is set to in this paper.

Are the forward variances $\beta_t$ learned during training?

No, the variances are fixed as linearly increasing hyperparameters from to , making the forward posterior free of learnable parameters.

The overview on this page was written by AI from the paper and may contain mistakes. Read the paper for the details.

Read with translation and AI