LandmarkNeurIPS 2020Peer reviewedAdvanced

Denoising Diffusion Probabilistic Models

Showed that a network trained only to remove a little noise at a time can turn pure noise into high-quality images, matching strong GANs on image quality.

Jonathan Ho, Ajay Jain, Pieter Abbeel · UC Berkeley

TL;DR

Take a real image and add a little random noise, a thousand times over, until nothing is left but static. Train a network to undo one of those small steps, and you can then start from fresh static and denoise your way to a brand new image.

01 · Problem

Diffusion probabilistic models (latent variable models, which explain data through hidden variables, here inspired by ideas from thermodynamics) were already known and easy to define. But, in the authors’ words, “there has been no demonstration that they are capable of generating high quality samples”. The best image generators at the time were GANs, and likelihood-based models such as diffusion models were seen as producing blurrier results.

02 · Method

The forward process is fixed, not learned: a Markov chain (a sequence where each step depends only on the one before) “gradually adds Gaussian noise to the data” over T = 1000 steps, with the amount of noise rising linearly from 0.0001 to 0.02. The reverse process is learned: a U-Net (an image network that shrinks the picture to capture context, then expands it back) looks at a noisy image and the step number and predicts the noise that was added. Training is simple: add a known amount of noise to a real image, ask the network to guess it, and penalise the squared error. The authors call this simplified objective L_simple. Predicting the noise worked better than predicting the clean image directly.

03 · Key result

On unconditional CIFAR-10 (small 32 by 32 pixel images in 10 classes, generated without being told the class), the model scored an Inception score of 9.46 and an FID of 3.17. FID (Fréchet Inception Distance) compares generated and real images; lower is better. The paper calls 3.17 state of the art; its comparison table lists 3.26 for StyleGAN2 + ADA, a leading GAN. Against the test set rather than the training set the FID is 5.24. On 256 by 256 LSUN images the authors report “sample quality similar to ProgressiveGAN”, with FIDs of 7.89 for churches and 4.90 for bedrooms.

Why it matters

This paper turned diffusion from an interesting idea into a practical image generator, and the recipe it set out (a fixed noising process, a U-Net that predicts noise, a simple squared-error loss) is the starting point for the diffusion models that later overtook GANs for image generation. The next card in this path shows how that recipe was made cheap enough to run widely. The paper is also clear about its weak spot: “our models do not have competitive log likelihoods” (3.75 bits per dimension on CIFAR-10), meaning they score worse than other likelihood-based models on how probable they rate real test images, even though their samples look better. Generating an image also takes 1000 network passes, one per step, against a single pass for a GAN.

Deep dive coming

This is a lite card. The full version adds the core idea in technical detail, the link to denoising score matching and Langevin dynamics, the progressive lossy compression view, limitations and open questions.