What are Diffusion Models?
- Source
- lilianweng.github.io
- Publisher
- Lilian Weng
- Author
- Lilian Weng
- Date

Context
Diffusion models learn to generate images by learning how to undo noise. Lilian Weng's technical explanation starts with a image and progressively adds random noise until its recognizable structure disappears. A learns the reverse transitions: how a less noisy sample could follow from a noisier one.
Generation begins with random noise and repeatedly applies that learned reverse . The training images supply examples of the structure the model should recover as noise is removed. This connects a seemingly destructive training procedure to image creation: deliberately corrupting data supplies the learning problem used to build the generator.
- Training — The process that adjusts a model using examples and a measure of how well it performs.
- Model — A computational system that uses learned patterns to produce an output from information supplied to it.
- Process — A running instance of a program, with its own working memory, open files and identity.
- distillation — Training a small, cheap model to imitate a big one's outputs, keeping much of the capability at a fraction of the cost.
“GAN models are known for potentially unstable training and less diversity in generation due to their adversarial training nature. VAE relies on a surrogate loss. Flow models have to use specialized architectures to construct reversible transform.”
Lilian Weng
“Diffusion models are inspired by non-equilibrium thermodynamics. They define a Markov chain of diffusion steps to slowly add random noise to data and then learn to reverse the diffusion process to construct desired data samples from the noise.”
Lilian Weng
“Unlike VAE or flow models, diffusion models are learned with a fixed procedure and the latent variable has high dimensionality (same as the original data).”
Lilian Weng
“Compared to standard SGD, stochastic gradient Langevin dynamics injects Gaussian noise into the parameter updates to avoid collapses into local minima.”
Lilian Weng






