Diffusion Models
Diffusion Model is the mainstream technology behind today's AI image and AI video generation. Midjourney, Stable Diffusion, DALL-E 3, and Sora are all built on it.
Core Idea: Learn to Add Noise, Then Learn to Remove It
Training has two steps:
- Forward process: progressively add noise to a clear image until it becomes completely random static
- Reverse process: train the model to run this process backwards, restoring the image from noise step by step
After training, the model has the ability to "generate a clear image from pure noise". At generation time, give it random noise plus a text description, and it denoises step by step until it produces an image that matches the description.
Why It Is Better Than GAN
GAN (generative adversarial network) was once mainstream, but it was extremely unstable to train and prone to mode collapse. The advantages of diffusion models:
- Stable training: the objective is simple and clear, unlike GAN, which needs a game between two networks
- High generation quality: rich detail and lifelike images
- Strong diversity: less likely to repeatedly generate the same result
- Good controllability: easy to add conditioning from text, images, and more
The Cost
Generation is slow, because dozens of denoising steps have to be iterated, far slower than a single GAN forward pass. This has driven acceleration techniques such as LCM, Turbo, and Lightning, which cut the number of steps from 50 to 1 to 4.
Representative Works
Stable Diffusion (open source), Midjourney (closed-source and high quality), DALL-E 3, Flux, and the video generators Sora, Kling, and Dreamina.