Guide

What is a diffusion model?

Updated 10 July 2026 Part of Artificial Intelligence

A diffusion model is a type of generative AI that creates new data — images, audio, text — by learning to reverse a gradual process of adding noise. Imagine starting with a clean photograph and slowly adding random static until only pure noise remains. A diffusion model learns how to undo that corruption, step by step, so it can start from random noise and produce a realistic output. This is the core idea: teach a system to denoise, and it can generate.

How the forward process works (adding noise)

The forward process is mechanical and predictable. You take a piece of training data — say, a clear image of a cat — and add a small amount of random noise to it. You keep doing this, each step adding a tiny bit more noise, until the original structure is completely lost and you’re left with pure random static. This sequence is deterministic: given a starting image, the path to pure noise is fixed by a schedule of how much noise each step adds.

Why do it this way? Because the forward process gives the model a clear learning target. The model never sees a perfect original — it sees a series of progressively noisier versions. Its job is to learn what the clean version would have been at any stage, given a noisy input and the known noise intensity. That learning is what powers the reverse.

How the reverse process works (denoising)

The reverse process is where the magic happens — it’s what the model actually runs at inference time. The model is trained to predict the noise that was added in the forward step, so it can subtract it. Starting from pure random noise, it applies the learned denoising operation once, removing a little static, then repeats the process many times. Each step moves it closer to a coherent image, piece of audio, or other data.

Crucially, the model does not guess the final output in one leap. It refines gradually, which is why diffusion models produce high-quality, diverse results — each denoising step adds variation. This gradual refinement also makes the process more stable than earlier generative techniques. The most widely used versions work in a compressed latent space (a smaller, more efficient representation of the data), a technique called latent diffusion. That is how tools like Stable Diffusion generate detailed images without processing every pixel at each step.

What makes diffusion models different from GANs

Before diffusion models became the dominant approach, generative adversarial networks (GANs) were the standard. A GAN pits two neural networks against each other: a generator that tries to create realistic outputs, and a discriminator that tries to spot fakes. The competition forces the generator to improve, but training can be unstable — the two networks can fail to find equilibrium, leading to mode collapse (where the generator produces only a few types of output).

Diffusion models avoid that adversarial dynamic. Their training is simpler and more stable: the model just learns to predict noise. And because the reverse process starts from random noise and iterates, the outputs are naturally diverse and rarely collapse into repetitive patterns. This stability, combined with the quality produced by latent diffusion, is why diffusion models now power leading image-generation platforms like DALL·E and Stable Diffusion. They are not a replacement for every generative task, but for creating high-fidelity visual content from a description, they have become the default.