Explainer
How diffusion models work: from noise to images
Diffusion models learn by watching data being gradually destroyed with noise and then learning to reverse the process, so that they can start from pure noise and build up a new sample step by step.[1][2] The idea dates from a 2015 paper, produced high-quality images in a 2020 paper, and has since spread to audio and video.[1][3][4] Text prompts steer the process through techniques such as classifier-free guidance, and later methods have made the many denoising steps cheaper and faster.[5][6][7]
This page explains the diffusion technique itself. For how complete image and video products are built, where their training data comes from, and how their output is labelled, see how AI image and video generators work.
The core idea: destroy, then rebuild
A 2015 paper by Sohl-Dickstein and colleagues, inspired by non-equilibrium statistical physics, proposed slowly destroying the structure in a dataset through an iterative forward diffusion process, then learning a reverse process that restores it.[1] A 2020 paper summed up the logic: creating noise from data is easy, and creating data from noise is generative modeling.[2]
In practice a diffusion model builds a picture through a sequence of denoising steps, each removing a little noise.[8] To generate, the model runs the process in reverse, starting from random noise and removing it step by step until new data emerges.[2]
From research idea to image generator
In 2020, Ho, Jain and Abbeel showed high-quality image synthesis with denoising diffusion probabilistic models (DDPMs).[3] DDPMs reached high image quality without adversarial training, but they need many steps of a Markov chain to produce each sample.[9]
The same year, a separate paper recast diffusion as a stochastic differential equation that adds noise over time, with a matching reverse-time equation that removes it, and showed that this framework covers both earlier score-based models and diffusion models.[2]
Steering with prompts: conditioning and guidance
Latent diffusion models add cross-attention layers so that generation can be conditioned on inputs such as text or bounding boxes.[6]
Guidance controls how strongly the model follows that input. Classifier guidance steered a diffusion model using the gradient of a separately trained image classifier.[5] Classifier-free guidance, published in 2022, trains a conditional and an unconditional diffusion model together and combines their estimates, trading sample quality against diversity.[5]
Making it faster and cheaper
The many sequential steps make diffusion expensive. Working directly on pixels made training powerful models cost hundreds of GPU days.[8] Latent diffusion addresses this by running the process in the compressed latent space of a pretrained autoencoder rather than on full-size images.[6]
Sampling has been sped up too. The 2020 DDIM method uses the same training as DDPMs but produced high-quality samples 10 to 50 times faster in wall-clock time.[7] Consistency models, published in 2023, are designed to map noise directly to data in one step while still allowing more steps for higher quality, and can be trained by distilling an existing diffusion model or on their own.[10]
The network inside has changed as well. Diffusion Transformers replace the U-Net backbone common in latent diffusion with a transformer working on patches of the compressed image, and their image quality improved as they were scaled up.[11]
Beyond still images
Diffusion models have significantly advanced audio and video generation as well as images.[4] The same models can edit: research papers have shown them filling in missing regions of an image (inpainting) and colorizing black-and-white pictures.[12] NIST notes that realistic synthetic media brings new risks to trust in digital information;[13] see deepfakes and AI watermarking and content provenance.
Read next
Next in the crash course
Graph neural networks: AI for molecules, materials and weather
Graph neural networks learn from data shaped as nodes and links, such as atoms and bonds. How message passing works and where GNoME and GraphCast use it.
Questions readers ask
What is a diffusion model?
A generative model that learns to reverse a gradual noising process. During training, structure in the data is slowly destroyed by adding noise, and the model learns a reverse process that restores it; to generate, it starts from noise.[1][2]
Who invented diffusion models?
The approach was proposed in a 2015 paper by Sohl-Dickstein and colleagues, inspired by non-equilibrium statistical physics. A 2020 paper by Ho, Jain and Abbeel showed it could produce high-quality images.[1][3]
Why are diffusion models slow?
They build each sample through many sequential denoising steps. Later methods sped this up; the 2020 DDIM method sampled 10 to 50 times faster, and 2023 consistency models can generate in a single step.[9][7][10]
Sources
· 13 claims from 7 publishers
Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.
- [1]
A 2015 paper by Sohl-Dickstein and colleagues, inspired by non-equilibrium statistical physics, proposed slowly destroying the structure in data through an iterative forward diffusion process and learning a reverse process that restores it. confirmedas of 2015-03-12
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics · arXiv · Secondary source · 2015-03-12 · Abstract (retrieved 2026-11-14)
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics · arXiv · Secondary source · 2015-03-12 · Abstract (retrieved 2026-11-14)
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics (ICML 2015) · Proceedings of Machine Learning Research, vol. 37 (ICML 2015) · Primary source · Abstract (retrieved 2026-11-22)
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics (ICML 2015) · Proceedings of Machine Learning Research, vol. 37 (ICML 2015) · Primary source · Abstract (retrieved 2026-11-22)
- [2]
A 2020 paper described diffusion as a stochastic differential equation that turns data into noise by slowly injecting noise, paired with a reverse-time equation that turns noise back into data, and showed this framework covers earlier score-based and diffusion approaches. confirmedas of 2020-11-26
- Score-Based Generative Modeling through Stochastic Differential Equations · arXiv · Secondary source · 2020-11-26 · Abstract (retrieved 2026-11-14)
- Score-Based Generative Modeling through Stochastic Differential Equations · arXiv · Secondary source · 2020-11-26 · Abstract (retrieved 2026-11-14)
- Score-Based Generative Modeling through Stochastic Differential Equations · arXiv · Secondary source · 2020-11-26 · Abstract (retrieved 2026-11-14)
- Score-Based Generative Modeling through Stochastic Differential Equations (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- Score-Based Generative Modeling through Stochastic Differential Equations (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- Score-Based Generative Modeling through Stochastic Differential Equations (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- [3]
A June 2020 paper by Ho, Jain and Abbeel showed high-quality image synthesis using denoising diffusion probabilistic models. confirmedas of 2020-06-19
- Denoising Diffusion Probabilistic Models (Advances in Neural Information Processing Systems 33, NeurIPS 2020) · NeurIPS Proceedings · Primary source · 2020-12-06 · Abstract (retrieved 2026-11-22)
- Denoising Diffusion Probabilistic Models (Ho, Jain and Abbeel) · arXiv · Secondary source · 2020-06-19 · Abstract (retrieved 2026-11-07)
- [4]
Diffusion models have significantly advanced image, audio and video generation, according to the 2023 consistency models paper. confirmedas of 2023-03-02
- Consistency Models · arXiv · Secondary source · 2023-03-02 · Abstract (retrieved 2026-11-14)
- Consistency Models (ICML 2023) · Proceedings of Machine Learning Research, vol. 202 (ICML 2023) · Primary source · Abstract (retrieved 2026-11-22)
- [5]
Classifier guidance steered diffusion models with the gradient of a separately trained image classifier; classifier-free guidance instead trains a conditional and an unconditional diffusion model jointly and combines their estimates to trade sample quality against diversity. reportedas of 2022-07-26
- Classifier-Free Diffusion Guidance · arXiv · Secondary source · 2022-07-26 · Abstract (retrieved 2026-11-14)
- Classifier-Free Diffusion Guidance · arXiv · Secondary source · 2022-07-26 · Abstract (retrieved 2026-11-14)
- [6]
Latent diffusion runs the diffusion process in the compressed latent space of a pretrained autoencoder and uses cross-attention layers to condition generation on inputs such as text. confirmedas of 2021-12-20
- High-Resolution Image Synthesis With Latent Diffusion Models (CVPR 2022, open-access proceedings) · Computer Vision Foundation · Primary source · 2022-06-19 · Abstract (retrieved 2026-11-22)
- High-Resolution Image Synthesis With Latent Diffusion Models (CVPR 2022, open-access proceedings) · Computer Vision Foundation · Primary source · 2022-06-19 · Abstract (retrieved 2026-11-22)
- High-Resolution Image Synthesis with Latent Diffusion Models (Rombach et al.) · arXiv · Secondary source · 2021-12-20 · Abstract (retrieved 2026-11-07)
- High-Resolution Image Synthesis with Latent Diffusion Models (Rombach et al.) · arXiv · Secondary source · 2021-12-20 · Abstract (retrieved 2026-11-07)
- [7]
The 2020 DDIM paper produced high-quality samples 10 to 50 times faster in wall-clock time than DDPMs, using the same training procedure. confirmedas of 2020-10-06
- Denoising Diffusion Implicit Models · arXiv · Secondary source · 2020-10-06 · Abstract (retrieved 2026-11-14)
- Denoising Diffusion Implicit Models · arXiv · Secondary source · 2020-10-06 · Abstract (retrieved 2026-11-14)
- Denoising Diffusion Implicit Models (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- Denoising Diffusion Implicit Models (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- [8]
Diffusion models build an image through a sequence of denoising steps, and working directly on pixels made training powerful models cost hundreds of GPU days. confirmedas of 2021-12-20
- High-Resolution Image Synthesis With Latent Diffusion Models (CVPR 2022, open-access proceedings) · Computer Vision Foundation · Primary source · 2022-06-19 · Abstract (retrieved 2026-11-22)
- High-Resolution Image Synthesis With Latent Diffusion Models (CVPR 2022, open-access proceedings) · Computer Vision Foundation · Primary source · 2022-06-19 · Abstract (retrieved 2026-11-22)
- High-Resolution Image Synthesis with Latent Diffusion Models (Rombach et al.) · arXiv · Secondary source · 2021-12-20 · Abstract (retrieved 2026-11-07)
- High-Resolution Image Synthesis with Latent Diffusion Models (Rombach et al.) · arXiv · Secondary source · 2021-12-20 · Abstract (retrieved 2026-11-07)
- [9]
Denoising diffusion probabilistic models achieved high-quality image generation without adversarial training but need many steps of a Markov chain to produce each sample. confirmedas of 2020-10-06
- Denoising Diffusion Implicit Models · arXiv · Secondary source · 2020-10-06 · Abstract (retrieved 2026-11-14)
- Denoising Diffusion Implicit Models (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- [10]
The 2023 consistency models paper says diffusion models depend on slow iterative sampling, and proposes models that map noise directly to data in one step, trainable by distilling a pre-trained diffusion model or on their own. confirmedas of 2023-03-02
- Consistency Models · arXiv · Secondary source · 2023-03-02 · Abstract (retrieved 2026-11-14)
- Consistency Models · arXiv · Secondary source · 2023-03-02 · Abstract (retrieved 2026-11-14)
- Consistency Models · arXiv · Secondary source · 2023-03-02 · Abstract (retrieved 2026-11-14)
- Consistency Models (ICML 2023) · Proceedings of Machine Learning Research, vol. 202 (ICML 2023) · Primary source · Abstract (retrieved 2026-11-22)
- Consistency Models (ICML 2023) · Proceedings of Machine Learning Research, vol. 202 (ICML 2023) · Primary source · Abstract (retrieved 2026-11-22)
- Consistency Models (ICML 2023) · Proceedings of Machine Learning Research, vol. 202 (ICML 2023) · Primary source · Abstract (retrieved 2026-11-22)
- [11]
Diffusion Transformers (DiTs) replace the U-Net backbone of latent diffusion models with a transformer that operates on latent patches, and their image quality improved as they were scaled up. confirmedas of 2022-12-19
- Scalable Diffusion Models with Transformers (ICCV 2023, open-access proceedings) · Computer Vision Foundation · Primary source · 2023-10-02 · Abstract (retrieved 2026-11-22)
- Scalable Diffusion Models with Transformers (ICCV 2023, open-access proceedings) · Computer Vision Foundation · Primary source · 2023-10-02 · Abstract (retrieved 2026-11-22)
- Scalable Diffusion Models with Transformers (Peebles and Xie) · arXiv · Secondary source · 2022-12-19 · Abstract (retrieved 2026-11-07)
- Scalable Diffusion Models with Transformers (Peebles and Xie) · arXiv · Secondary source · 2022-12-19 · Abstract (retrieved 2026-11-07)
- [12]
Diffusion-family models can be used for editing tasks such as inpainting (filling in missing parts of an image) and colorization, as shown in the 2020 score-based SDE paper and the 2023 consistency models paper. confirmedas of 2023-03-02
- Score-Based Generative Modeling through Stochastic Differential Equations · arXiv · Secondary source · 2020-11-26 · Abstract (retrieved 2026-11-14)
- Consistency Models · arXiv · Secondary source · 2023-03-02 · Abstract (retrieved 2026-11-14)
- Score-Based Generative Modeling through Stochastic Differential Equations (ICLR 2021) · International Conference on Learning Representations (ICLR 2021) · Primary source · Abstract (retrieved 2026-11-22)
- Consistency Models (ICML 2023) · Proceedings of Machine Learning Research, vol. 202 (ICML 2023) · Primary source · Abstract (retrieved 2026-11-22)
- [13]
NIST notes that generative AI can produce realistic images, text, audio and video as well as multimodal content, which brings new risks to trust in digital information. confirmedas of 2024-11-20
- Reducing Risks Posed by Synthetic Content: An Overview of Technical Approaches to Digital Content Transparency, NIST AI 100-4 · National Institute of Standards and Technology · Primary source · 2024-11-20 · 1 Summary (retrieved 2026-11-14)
- Reducing Risks Posed by Synthetic Content: An Overview of Technical Approaches to Digital Content Transparency, NIST AI 100-4 · National Institute of Standards and Technology · Primary source · 2024-11-20 · 1 Summary (retrieved 2026-11-14)
Revision history (1)
- Page created.
Created Nov 14, 2026. Last reviewed by an editor on Nov 14, 2026. Next scheduled review: May 14, 2027.
Cite this page
"How diffusion models work: from noise to images." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/how-diffusion-models-work
Spotted an error? Suggest a correction or emailcorrections@contentlora.com.