Diffusion models are a class of generative models that learn to generate data by reversing a gradual noising process. They have achieved state-of-the-art results in image generation, surpassing GANs in many benchmarks.
Forward Process (Adding Noise)
The forward process gradually adds Gaussian noise to data x0 over T timesteps:
q(xt∣xt−1)=N(xt;1−βtxt−1,βtI)
where βt is the noise schedule. We can sample xt directly from x0:
q(xt∣x0)=N(xt;αˉtx0,(1−αˉt)I)
where αt=1−βt and αˉt=∏s=1tαs.
Reverse Process (Denoising)
The model learns to reverse the noising process:
pθ(xt−1∣xt)=N(xt−1;μθ(xt,t),σt2I)
Training Objective
The simplified training objective is:
Lsimple=Et,x0,ϵ[∥ϵ−ϵθ(xt,t)∥2]
where ϵθ is a neural network (typically a U-Net) that predicts the noise.
Sampling
To generate new data, start from pure noise xT∼N(0,I) and iteratively denoise:
xt−1=αt1(xt−1−αˉt1−αtϵθ(xt,t))+σtz
where z∼N(0,I).
Key Variants
DDPM: Denoising Diffusion Probabilistic Models (Ho et al., 2020)
Diffusion models provide a principled framework for generative modeling with stable training and high-quality outputs, making them one of the most important developments in modern generative AI.
References
Ho et al., "Denoising Diffusion Probabilistic Models," NeurIPS 2020.
Song et al., "Score-Based Generative Modeling through SDEs," ICLR 2021.
Rombach et al., "High-Resolution Image Synthesis with Latent Diffusion Models," CVPR 2022.