A diffusion model generates data by learning to undo noise. During training, real examples are gradually corrupted with random noise until nothing of the original is left, and a neural network learns to reverse each small step. To create something new, you start from pure noise and run the learned reversal many times until a clean sample appears.
The idea comes from a 2015 paper by Sohl-Dickstein and colleagues, borrowed from non-equilibrium physics: slowly destroy the structure in data, then learn a process that restores it. It became a serious image generator in 2020, when Ho, Jain and Abbeel’s denoising diffusion probabilistic models reached a state-of-the-art image-quality score for unconditional CIFAR-10 generation, ahead of the GANs that had dominated the field.
The two directions
The diagram’s two columns are not mirror images. The forward process has nothing to learn: it’s a fixed recipe that adds a little Gaussian noise at each of many steps (the DDPM experiments used 1,000). Because the recipe is known, you can jump straight to any noise level for any training image in one calculation, which makes each training example cheap.
The reverse process is the learned part. In DDPM a U-Net looks at a noisy image and the step number and predicts the noise that was added; removing part of that prediction moves the sample one step closer to clean data. The training objective is almost disarmingly simple: add known noise, ask the network to predict it, penalize the difference.
Why it caught on
- Stable training. Each step is an ordinary regression problem, with no fragile generator-versus-discriminator balance to manage.
- Easy to steer. Conditioning the denoiser on text, a layout or a masked image turns the same machinery into prompt-driven image generation, inpainting or super-resolution.
- Variety. Different starting noise gives genuinely different samples.
The catch
Generation is slow: every sample needs many sequential passes through the network, where a GAN needs one. Working on raw pixels at high resolution is also expensive; the latent diffusion paper notes that pixel-space models often consume hundreds of GPU days to train. Latent diffusion moved the denoising into the compressed latent space of a pretrained autoencoder, cutting that cost while keeping quality, and it became the basis of Stable Diffusion. Reducing the number of sampling steps remains an active line of research.