Diffusion Models

Generative models that start from noise and gradually turn it into structured output.

Where does an imaginary gallery poster come from?

Consider a diffusion model trained on images and used to generate an original scene. Training and sampling run in different directions.

  1. Training example

    A training procedure adds a known amount of noise to an image representation. A common objective teaches a network to predict the added noise from the noisy example and its noise level.

  2. Sampling

    The generator begins with noise and repeatedly applies learned updates. In a conditional model, a text description can guide those updates toward a gallery scene.

  3. Result

    A different initial noise sample can produce a different scene from the same words. The result may combine plausible elements that never appeared together in reality.

What does denoising mean here?

During generation there is no known clean poster hidden behind the starting noise. The learned process produces a sample consistent with its training and conditions. Some systems work on pixels and others operate in a compressed representation.

How Diffusion Models Work

During training, a diffusion model learns the reverse of a corruption process. Data such as images are gradually noised, and the model learns how to reconstruct or denoise them step by step. At generation time, it starts from noise and applies those learned denoising steps in reverse. Each step adds a little more structure until the output matches the prompt or other conditioning input.

This differs from an LLM, which generates token by token. A diffusion model usually works through iterative refinement. That difference helps explain why image generation systems feel less like sentence completion and more like sculpting an image out of randomness.

Follow the idea

Stable Diffusion gives an example of a family working in latent space.

Generative AI includes other approaches to making new content.

Related concepts (7)

Source · Ho, Jain and Abbeel on denoising diffusion probabilistic models

Return to Diffusion Models in the A–Z glossary