TOPICS
Search

Denoising Diffusion Model


A denoising diffusion model is a generative model that learns to reverse a Markov chain that gradually adds Gaussian noise to data (Sohl-Dickstein et al. 2015). In the discrete-time model of Ho et al. (2020), let X_0 be a data vector in R^d, 0<beta_t<1, alpha_t=1-beta_t, and alpha^__t=product_(j=1)^(t)alpha_j. The forward transition for t=1,...,T is

 q(x_t|x_(t-1))=N(x_t;sqrt(alpha_t)x_(t-1),beta_tI),
(1)

where N(x;m,C) denotes the multivariate normal distribution density with mean m and covariance matrix C, and I is the identity matrix. For a fixed starting value x_0, composing the transitions gives the conditional distribution

 q(x_t|x_0)=N(x_t;sqrt(alpha^__t)x_0,(1-alpha^__t)I).
(2)

The variance coefficient follows by induction from alpha_t(1-alpha^__(t-1))+beta_t=1-alpha^__t, with alpha^__0=1.

A Gaussian reverse model starts with X_T drawn from the standard multivariate normal distribution, which approximates the terminal forward law when alpha^__T is sufficiently small. It generates X_0 by successive draws from

 p_theta(x_(t-1)|x_t)=N(x_(t-1);mu_theta(x_t,t),sigma_t^2I).
(3)

Here sigma_t^2 is a chosen positive variance and the mean can be parameterized by a noise predictor epsilon_theta(x_t,t) as

 mu_theta(x_t,t)=(x_t-beta_tepsilon_theta(x_t,t)/sqrt(1-alpha^__t))/(sqrt(alpha_t)).
(4)

The predictor is trained to minimize mean square error in estimating the standard Gaussian noise epsilon used to form x_t=sqrt(alpha^__t)x_0+sqrt(1-alpha^__t)epsilon (Ho et al. 2020). Welch (2025) illustrates the forward noising and reverse denoising processes.


See also

Markov Chain, Mean Square Error, Multivariate Normal Distribution

Explore with Wolfram|Alpha

References

Ho, J.; Jain, A. N.; and Abbeel, P. "Denoising Diffusion Probabilistic Models." In Advances in Neural Information Processing Systems 33 (Ed. H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin). Curran Associates, pp. 6840-6851, 2020. https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.Sohl-Dickstein, J.; Weiss, E.; Maheswaranathan, N.; and Ganguli, S. "Deep Unsupervised Learning Using Nonequilibrium Thermodynamics." In Proc. 32nd International Conference on Machine Learning (Ed. F. Bach and D. Blei). Lille, France: PMLR, pp. 2256-2265, 2015. https://proceedings.mlr.press/v37/sohl-dickstein15.html.Welch, S. "But How Do AI Images and Videos Actually Work?" 3Blue1Brown. Jul. 25, 2025. https://www.3blue1brown.com/lessons/diffusion-models/.

Cite this as:

Weisstein, Eric W. "Denoising Diffusion Model." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/DenoisingDiffusionModel.html

Subject classifications