Diffusion Models: Destroy Slowly, Rebuild One Step at a Time

The intuition behind the 2015 paper that started diffusion models. Adding noise is easy. Removing all of it at once is impossible. Removing a tiny bit of it is just regression.
Deep Learning
GenAI
Machine Learning
Author
Published

October 29, 2026

Diffusion models started with a 2015 paper, Deep Unsupervised Learning using Nonequilibrium Thermodynamics by Sohl-Dickstein et al. The abstract says the idea is to “slowly destroy structure” in the data and then learn to restore it. This post is about what that actually means.

The problem

Modelling a complex distribution like “all natural images” directly is hard. Modelling pure Gaussian noise is easy. The paper connects the two with a long chain of tiny steps, where each step is simple enough to learn.

Destroy structure slowly

Take a real image. Add a small amount of Gaussian noise. Repeat about 1,000 times.

\[ x_t = \sqrt{1 - \beta_t}\, x_{t-1} + \sqrt{\beta_t}\, \epsilon, \qquad \epsilon \sim \mathcal{N}(0, I) \]

\(\beta_t\) is a small number that sets how much noise goes in at step \(t\). After enough steps, the image is pure static.

Nothing is learned here. It is a fixed recipe, like ink spreading out in water.

2,000 points on a spiral, noised step by step. By t = 200 the spiral is gone, and by t = 1000 it is plain Gaussian noise.

Learn to build it back

Undoing all the noise in one go is impossible. From pure static, too many different images are possible.

Undoing one tiny step is a different story. The paper points out that when \(\beta\) is small, the reverse of a step has the same form as the forward step: also roughly Gaussian. So a neural net only has to look at \(x_t\) and the step number \(t\), and output the mean and variance of \(x_{t-1}\).

That turns a hard problem (estimating a probability distribution) into plain regression, done once per step.

To generate a new image:

x = random_noise()
for t in range(T, 0, -1):
    x = sample(model(x, t))   # remove one small step of noise
return x

Why not predict the clean image directly?

From heavy noise, many clean images fit. A single prediction averages them, and the result is a blurry mush. A small step commits only a little, so the structure appears gradually across the whole chain.

Does training walk through all 1,000 steps?

No. Training picks a random image and a random \(t\), noises the image to level \(t\), and teaches the net to undo that one step. It learns every noise level at once. The 1,000 steps in a row only happen at generation time.

Is this just a VAE?

Close, but the encoder is fixed instead of learned. The VAE post covers the VAE side.

VAE Diffusion (2015)
Encoder Learned Fixed noise process
Latent size Smaller than the input Same as the input
Latent layers 1 or a few About 1,000
Decoder One pass The denoiser, once per step
Objective ELBO Also an ELBO-style bound

Fixing the encoder was deliberate. Training the encoder is a known pain point in VAEs, so the paper keeps the forward process simple enough that the reverse has the same form.

Diffusion is also like a denoising autoencoder: corrupt the input, train the net to clean it. A denoising autoencoder uses one noise level. Diffusion uses many, from barely noisy to pure static, and \(t\) tells the net which one it is at. That range is what lets it start from pure noise and get all the way back to an image.

In one line: diffusion is a hierarchical VAE with a fixed noise encoder, trained like a denoising autoencoder at many noise levels.

What came after

The 2015 paper worked, but the samples were not great. DDPM (Ho et al., 2020) kept the same idea, had the net predict the added noise \(\epsilon\) instead, and used a U-Net. That version led to Stable Diffusion and similar models. Latent diffusion adds compression back, but as a separate step: a VAE first shrinks the image, and diffusion runs in that smaller space.

Source