For the discrete DDPM Forward Process, the reverse step conditioned on a clean image is Gaussian with closed-form parameters:
Ancestral sampling. is unknown during generation, so it is replaced by the denoised estimate from Tweedie’s Formula, . Then:
x_T ← sample N(0, I)
for t = T, …, 1:
ε̂ ← ε_θ(x_t, t)
x̂0 ← (x_t − sqrt(1−ᾱ_t) ε̂) / sqrt(ᾱ_t)
μ ← sqrt(α_t)(1−ᾱ_{t−1})/(1−ᾱ_t) · x_t + sqrt(ᾱ_{t−1}) β_t/(1−ᾱ_t) · x̂0
x_{t−1} ← μ + sqrt(β̃_t) · z, z ~ N(0, I) (z = 0 at t = 1)
return x_0Substituting gives the equivalent DDPM form . For small this step agrees with an Euler–Maruyama step of the Reverse-Time SDE to first order.
This step is the backbone that Diffusion Posterior Sampling augments with a likelihood gradient.
References
- J. Ho, A. Jain, P. Abbeel (2020). Denoising Diffusion Probabilistic Models. NeurIPS 33. arXiv:2006.11239