Skip to main content

What is a diffusion model?

The AI Glossary

In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.

A diffusion model is a generative model that learns to produce data by reversing a process that adds noise. Generative means that it creates an output, such as an image, rather than only assigning a label to something already supplied.

For a common image-based version, imagine gradually adding random speckles to photographs until their original content is almost lost. During training, a neural network learns to estimate how to move from a noisier version toward a less noisy one. A neural network is a collection of connected calculations whose numerical settings are adjusted from examples.

After training, generation can begin with random noise. The system repeatedly updates the image, guided by what it learned, until a recognizable picture emerges. A written description can guide those updates toward particular content. The model is not recovering a hidden photograph from the noise; it is generating a new sample using learned patterns.

There are many variations. Some work on a compressed numerical representation rather than directly on every pixel. Some use fewer generation steps than early methods. Diffusion is therefore a family of approaches, not a requirement that every image pass through exactly the same number of operations.

The method can create detailed, convincing outputs, but visual quality and factual accuracy are different standards. A realistic hand can have the wrong number of fingers. A realistic scan can contain an invented feature. More processing does not, by itself, establish that an output corresponds to a real object or event.

In biomedical research, diffusion methods can be explored for generating training examples or reconstructing images from limited measurements. Reconstruction is particularly sensitive: a plausible-looking result may remove an unusual finding or introduce one that was not present. Evaluation needs to examine fidelity to the underlying measurements and the intended clinical task, not just whether specialists find the picture attractive. The method’s ability to create plausible structure is useful, but it is also the reason not to equate a polished image with evidence about a patient.

Sources: Ho, Jain and Abbeel — Denoising Diffusion Probabilistic Models (2020)

To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.


AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.

For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.

Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy

Lead with AI in Health Care

The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy