Denoising Diffusion Probabilistic Models (DDPM)
The standard diffusion recipe: a fixed noise schedule and a learnt noise predictor.
The idea
The forward process has a closed form: xₜ = √ᾱₜ·x₀ + √(1−ᾱₜ)·ε, so any noise level can be produced in one step. A network εθ(xₜ, t) learns to predict ε, trained with a plain mean-squared error. Sampling runs t from T down to 1, subtracting the predicted noise and adding a small amount of fresh noise.
loss = ‖ε − εθ(xₜ, t)‖²
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- noising
- denoising
- generated
Real data: points sitting in six tight clusters.
- step:
- 0
- phase:
- adding noise
Here the denoiser is computed exactly from the known cluster layout; real models learn it with a neural network.
Step by step
- 1Pick a random time step t and noise ε.
- 2Form xₜ from the clean example with the closed-form formula.
- 3Train the network to predict ε with an MSE loss.
- 4Sample by starting from noise and applying the reverse update for t = T … 1.
Where it is used
The basis of most modern image generators.
Watch out for
Slow sampling (hundreds to thousands of steps) unless accelerated.