MLGuerrillaStart M1 →
Architectures·16 min read·Updated 24 September 2026

Diffusion models

Diffusion is the architecture behind most image and video generators. A diffusion model starts from pure noise and removes a little of it at a time until a picture is left.

A diffusion model generates by removing noise. Training shows it images with a known amount of noise added and asks it to predict that noise. Generation starts from an image of pure noise and applies the model over and over, taking a little noise out each time, until something coherent is left.

The idea comes from Ho et al. (2020), and it's behind most image and video generators you can name, along with a growing number of models that generate other things, from audio to robot actions.

What it is

Noise goes in one direction to train, and comes out the other to generate

The training side is arithmetic with no model in it. Take a real image, pick a step number t between 1 and 1000, and mix in Gaussian noise according to a fixed schedule, so a low t barely changes the picture and a high t leaves nothing. The model's job is to look at that noisy image, together with t, and say what the noise was.

Generation runs the reverse. Start from pure noise, ask the model what noise it sees, subtract a portion of it, and repeat. Each pass is one step, and a modern model needs between 1 and 50 of them.

A figure titled "Training destroys an image with noise, and generation runs the other way", in two rows. The top row, labeled "Forward: add noise on a fixed schedule, arithmetic only, with no model involved", shows the same street photo six times at t equals 0, 100, 250, 500, 750 and 999, with the signal remaining falling from 100% to 94.6%, 72.2%, 27.9%, 5.7% and 0.6%, so the last two images look like colored static. The bottom row, labeled "Reverse: a trained model removes noise, SD-Turbo, same prompt and seed, on a CPU", starts from a pure noise square and shows three generated photos of a red bicycle against a brick wall, at 1 step taking 31 seconds, 2 steps taking 45 seconds and 4 steps taking 75 seconds. The prompt was "a red bicycle parked against a brick wall, photograph". The caption says the model was trained to predict the noise in a picture like the top row, and generation applies that guess again and again.
The bicycle images are a real run on a laptop CPU. On a GPU the same model produces these in well under a second.

The percentages in the top row are the schedule itself. At t = 500, the original image contributes 27.9% of the signal and noise contributes the rest, and by t = 999 almost nothing of the photo is left. Training samples a t at random for every image, so the model sees every level of destruction and learns to undo each one.

Keep reading

The rest of this article is free with an account

Create a free account to read the remaining 6 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.

  1. 02It shows up wherever something continuous gets generated
  2. 03Predict the noise, subtract some of it, and repeat
  3. 04The models you'll see, as of September 2026
  4. 05Pick diffusion for images, and know what it competes with
  5. 06How to try it
  6. and 1 more