Diffusion models

Draft

Draft

This page is a skeleton for review: a short opening, planned headings, diagrams and references. The article is not written yet. It is listed here so the chapter can be checked as a whole. (Quarto’s draft: true would hide the page from the preview, so we mark the draft in this callout instead.)

Add noise, then learn to take it away

A diffusion model learns to reverse a gradual noising process. You start from a clean sample, add a little noise, then more, until almost nothing is left; the model is trained to step back, a little at a time, toward a new clean sample. This page will tell that idea in plain language, and explain why, after 2021, this family became the default for still-image generation, sitting next to Generative adversarial networks and Variational autoencoders.

The idea

  • A forward process destroys the data, slowly and with a known schedule.
  • A reverse process, learned, tries to undo one step of that damage.
  • At the end you can start from pure noise and walk back to an image (or another kind of sample).
  • Planned: a short analogy (a photograph that is slowly fogged, and a restorer who has practised removing one layer of fog at a time).

Why this overtook GANs for still pictures

  • Denoising Diffusion Probabilistic Models (Ho, Jain and Abbeel, 2020) set out the modern training recipe.
  • Diffusion Models Beat GANs on Image Synthesis (Dhariwal and Nichol, 2021) is the landmark that changed the default. The GAN page already notes this turn; this article will tell it from the diffusion side.
  • The usual trade-off to mention, briefly: many steps at sampling time, versus a GAN that is fast once trained. Later work shortened the walk; this page need not catalogue every sampler.

What this page will not do

  • It will not become a survey of every latent-diffusion or video model, or a Stable Diffusion tutorial. One clear picture of the process, the 2020–2021 turn, and pointers, is the first pass.
  • Language-model architecture stays in LLMs and Transformers.

Planned diagrams

  • Light and dark: a left-to-right strip from a clean sample through noisier frames, then the reverse arrows the model learns.
  • Optional: a small “GAN samples in one shot, diffusion walks back in steps” comparison, pointing at Generative adversarial networks.

Planned references

See also

Back to top