# Diffusion model

> Canonical: https://skillalmanac.com/glossary/diffusion-model | Last verified: 2026-11-24 | Index status: index-eligible

A diffusion model is a generative model that learns to turn random noise into data, such as an image, by removing a little noise at a time. Hugging Face's Diffusers library documents diffusion pipelines for image, video and audio generation.

Also called: diffusion models, denoising diffusion model.

## In plain language

Diffusion-based generation commonly starts from noise and applies learned denoising updates to produce a sample, such as an image. A text-conditioned system can use a description to guide generation, but not every diffusion model requires text. The number of sampling steps depends on the model and sampler; accelerated or distilled variants can use relatively few steps. Results still need checking, and reproducibility depends on the initial noise and sampling setup.

## Technical definition

Diffusion probabilistic models are latent variable models inspired by nonequilibrium thermodynamics. Ho, Jain and Abbeel (arXiv 2006.11239, first submitted June 2020) report high-quality image synthesis, with their best results from a weighted variational bound linked to denoising score matching with Langevin dynamics. Libraries such as Hugging Face Diffusers package pretrained diffusion models as pipelines for image, video and audio generation.

## How it shows up when you use agents

Diffusion-based image generation is one example an agent can access through a tool. Diffusion research and libraries also cover other data types. When an agent session produces a mockup, texture or illustration, it usually hands a text prompt to an image generator and receives a file. A skill such as the image generation skill packages that call. See [Generative AI](/glossary/generative-ai).

What breaks when the idea is misunderstood: people expect the same result twice, or expect exact text and layout. Outputs can differ when initial noise or stochastic sampling choices differ; deterministic sampling with a fixed initial latent is also possible. Fine details still need checking. Another mistake is to ask the coding agent itself to "draw" something and assume it did; check which tool actually made the image.

Your next action: write a specific prompt, generate a few options, and then check the chosen file's size, format and licensing before you ship it. Rights questions depend on the tool's terms, so read them. See [Multimodal AI](/glossary/multimodal-ai).

## Worked example (illustrative)

A text-conditioned image pipeline can combine an initial noise sample, a text condition and a denoising sampler. A different initial sample can give a different image. A deterministic DDIM setup is a counterexample to the claim that every reverse step must add fresh random noise. This is a method illustration, not a generated-image comparison or a promise of identical output across hardware and implementations.

## Common confusions

- **Diffusion model versus GAN.** Both generate data. A GAN trains a generator against a discriminator; a diffusion model learns to remove noise step by step. See [Generative adversarial network](/glossary/generative-adversarial-network).
- **Diffusion model versus large language model.** Autoregressive language models predict next-token probabilities. Diffusion-based models use a different generative construction; image denoising is a familiar example. These are not mutually exclusive labels for every possible model.
- **Stable Diffusion versus diffusion model.** Stable Diffusion is one family of products built on the method, not the method itself.
- **Myth.** The model does not paste a stored image. It generates from learned patterns, though output can still resemble its training data.

## Worked examples in this catalogue

### [imagegen](https://skillalmanac.com/skills/openai/imagegen)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill generates or edits raster images such as mockups, textures and illustrations.

Why it exercises the concept: It is an everyday way to use an image generator from an agent session. Our catalogue does not state which method the underlying image model uses, so read the link to diffusion as context, not as a claim about that service.

### [image-prompt-direction](https://skillalmanac.com/skills/skill-almanac/image-prompt-direction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill writes image prompts like an art director and lints them for gaps, contradictions and rights problems.

Why it exercises the concept: Text-guided image generators are steered by the prompt. A prompt with gaps or contradictions gives unpredictable pictures, which this lint step is built to catch.

### [image-spec-check](https://skillalmanac.com/skills/skill-almanac/image-spec-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill checks exported images against your own spec table and says exactly what to resize, crop, re-export or replace.

Why it exercises the concept: Supported output sizes and formats depend on the tool and configuration. Checking the exported file against a spec is useful regardless of which generative method made it.

## Related terms

- [Generative AI (gen AI)](https://skillalmanac.com/glossary/generative-ai.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Deep learning](https://skillalmanac.com/glossary/deep-learning.md)
- [Multimodal AI](https://skillalmanac.com/glossary/multimodal-ai.md)
- [Generative adversarial network (GAN)](https://skillalmanac.com/glossary/generative-adversarial-network.md)

## Sources

- [Denoising Diffusion Probabilistic Models](https://arxiv.org/abs/2006.11239), arXiv (Ho, Jain and Abbeel, 2020) (accessed 2026-11-23)
- [Diffusers](https://huggingface.co/docs/diffusers/index), Hugging Face (accessed 2026-11-23)
- [Denoising Diffusion Implicit Models: deterministic sampling](https://arxiv.org/html/2010.02502v4), Song, Meng and Ermon (accessed 2026-11-24)
- [Progressive Distillation for Fast Sampling of Diffusion Models](https://arxiv.org/html/2202.00512v1), Salimans and Ho (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
