Skip to content
StackDecode
AI & ML Atlas
Deep LearningarchitectureInteractive simulation

Diffusion Models

Generate data by learning to reverse a gradual noising process.

The idea

The forward process slowly adds noise to data until nothing but noise remains. A network is trained to undo one small step of noise. To generate, start with pure noise and apply the network repeatedly, each time removing a little noise, until a clean sample appears. It is stable to train and produces very high quality images.

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

  • noising
  • denoising
  • generated

Real data: points sitting in six tight clusters.

step:
0
phase:
adding noise
1/18

Here the denoiser is computed exactly from the known cluster layout; real models learn it with a neural network.

Step by step

  1. 1Take a real example and add noise in many small steps.
  2. 2Train a network to predict the noise (or the clean data) at a given step.
  3. 3To generate, start from random noise.
  4. 4Repeatedly denoise using the network until the sample is clean.

Where it is used

Image, audio and video generation (Stable Diffusion, DALL·E).

Watch out for

Sampling needs many network evaluations, though faster samplers reduce this.

Related