Back to Multimodal Mind Map
中文·English
👁️ MultimodalID: ddpm

DDPM Forward/Reverse Process

DDPM 前向/反向过程
🎯Core Definition
DDPM (Denoising Diffusion Probabilistic Models) builds generation on two Markov chains: a forward process qq that gradually adds noise to an image until it becomes standard Gaussian over TT steps, and a reverse process pθp_\theta that learns to denoise step by step. The forward step is q(xtxt1)=N(xt; 1βtxt1, βtI)q(x_t \mid x_{t-1}) = \mathcal{N}(x_t;\ \sqrt{1-\beta_t}x_{t-1},\ \beta_t I); since each step injects independent Gaussian noise, the accumulated noise has a closed form at any time tt:
📌Overview
q(xtx0)=N(xt; αˉtx0, (1αˉt)I),xt=αˉtx0+1αˉtϵ, ϵN(0,I)q(x_t \mid x_0) = \mathcal{N}(x_t;\ \sqrt{\bar\alpha_t}x_0,\ (1-\bar\alpha_t)I),\qquad x_t = \sqrt{\bar\alpha_t}x_0 + \sqrt{1-\bar\alpha_t}\,\epsilon,\ \epsilon \sim \mathcal{N}(0, I)
📌Overview
with αt=1βt\alpha_t = 1 - \beta_t and the cumulative schedule αˉt=s=1tαs\bar\alpha_t = \prod_{s=1}^{t}\alpha_s (the SNR αˉt/(1αˉt)\bar\alpha_t/(1-\bar\alpha_t) decreases with tt); the standard linear schedule runs β1=104\beta_1 = 10^{-4} up to βT=0.02\beta_T = 0.02. The training objective follows from maximizing the ELBO: each term is a Gaussian KL between the posterior q(xt1xt,x0)q(x_{t-1} \mid x_t, x_0) and pθ(xt1xt)p_\theta(x_{t-1} \mid x_t), which with known variances reduces to the L2 distance between means; since the mean is a linear combination of xtx_t and the noise ϵ\epsilon, the loss collapses to regressing the injected noise:
📌Overview
L=EtUniform[1,T],x0q,ϵN(0,I)[ϵϵθ(xt,t)2]\mathcal{L} = \mathbb{E}_{t \sim \mathrm{Uniform}[1,T],\, x_0 \sim q,\, \epsilon \sim \mathcal{N}(0,I)}\left[\Vert \epsilon - \epsilon_\theta(x_t, t)\Vert^2\right]
📌Overview
Sampling starts from xTN(0,I)x_T \sim \mathcal{N}(0, I) and iterates backward t=T,,1t = T, \dots, 1: xt1=1αt(xtβt1αˉtϵθ(xt,t))+σtzx_{t-1} = \dfrac{1}{\sqrt{\alpha_t}}\left(x_t - \dfrac{\beta_t}{\sqrt{1-\bar\alpha_t}}\epsilon_\theta(x_t, t)\right) + \sigma_t z, where σt2=β~t\sigma_t^2 = \tilde\beta_t (posterior variance) and z=0z = 0 at the final step t=1t=1.
💡Use Cases
an interview staple — “write the DDPM training/sampling formulas”; the backbone of text-to-image models (Stable Diffusion) and video/audio generation, often followed by “why regress the noise with L2?”.
Key Problems Solved
GANs suffer unstable adversarial training, mode collapse and difficult tuning; DDPM's loss is plain MSE noise regression — stable first-order optimization and full-distribution coverage (good diversity) — at the cost of ~1000 sampling steps, which motivates DDIM/LCM acceleration.
🎯5 High-Frequency Exam Points
1
Write the closed-form forward process q(x_t|x_0) and define the cumulative schedule ᾱ_t.
2
Whiteboard: derive the training loss E‖ε−ε_θ(x_t,t)‖² from the ELBO; how each Gaussian KL term simplifies.
3
Write the DDPM reverse-sampling update; why is no noise added at the final step, and what is σ_t?
4
Relation between α_t, β_t and ᾱ_t; why can forward sampling jump to any t in one step?
5
How do DDPM, GAN and VAE compare on training stability, sample diversity and sampling speed?
📖 In-depth Guide:📄 diffusion-models
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "DDPM Forward/Reverse Process"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardMultimodal DPO / RLHF-VNext CardClassifier-Free Guidance

🔗 More Multimodal Knowledge Cards

ASR (Whisper)Audio RepresentationCLIP ApplicationsCLIP Two-Tower Architecture