Diffusion Models Overview
- 16Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are diffusion models used for?
Generating images, videos, music, 3D models, and discovering new molecules.
Or swipe the card
16 cards
What are diffusion models used for?
Generating images, videos, music, 3D models, and discovering new molecules.
What is the core idea behind diffusion models?
Gradually corrupt data by adding Gaussian noise, then learn to reverse the process to generate new samples from random noise.
When was the first diffusion model paper published?
2015, titled 'Deep Unsupervised Learning using Nonequilibrium Thermodynamics' by Jascha Sohl-Dickstein and colleagues.
What was the main contribution of the 2020 DDPM paper by Jonathan Ho et al.?
It made diffusion models practical for image generation by introducing a simpler training objective, taking them from toy datasets to state-of-the-art.
What is the difference between variance exploding and variance preserving diffusion?
Variance exploding: variance grows without bound (mean fixed). Variance preserving: mean goes to 0 and variance goes to 1, converging to standard normal.
Write the formula for the forward process in variance preserving diffusion from x0 to xt.
xt=αˉtx0+1−αˉtϵ, where ϵ∼N(0,I) and αˉt=∏i=1t(1−βi).
How is αˉt defined when the noise schedule βt varies per timestep?
αˉt=∏i=1t(1−βi).
What is the true posterior in diffusion models and why is it useful?
The true posterior q(xt−1∣xt,x0) has a closed-form Gaussian expression. It is used during training because x0 is known, but not during inference since x0 is unknown.
What is the ELBO and why is it used?
The evidence lower bound (ELBO) is a surrogate for the intractable negative log-likelihood. Minimizing the ELBO is equivalent to maximizing the likelihood.
What is the final simplified training objective for DDPM?
Minimize Et,x0,ϵ[∥ϵ−ϵθ(xt,t)∥2], where ϵ is the added noise and ϵθ is the network's prediction.
How do we avoid summing over all timesteps during training?
Sample a random timestep t for each training example and compute the loss at that t only.
What neural network architecture is commonly used in DDPM?
A U-Net, often called Diffusion UNet.
What are the typical training settings for DDPM on MNIST (as in the example)?
Batch size 32, images resized to 32x32, Adam optimizer, linear beta schedule from 0.0001 to 0.02 over 1000 steps, 100 epochs.
What does the inference (sampling) loop in DDPM do?
Start from pure Gaussian noise xT, then for t=T down to 1: predict ϵθ(xt,t), compute the posterior mean to get xt−1, and optionally add noise. After 1000 steps, obtain a clean sample x0.
How does the quality and speed of diffusion models compare to VAEs?
Diffusion models produce higher quality images but require more computation (e.g., 1000 network evaluations vs. one for VAEs).
What is the broader formulation of diffusion models mentioned in the video?
Score-based diffusion using continuous-time stochastic differential equations (SDEs) instead of discrete Markov chains.

Ask anything
We've read this whole study set, so questions about it get the best answers.