cauri jaye
← All writing

AI Basics — Part 2: How diffusion models create images, video, 3D, and more.

26 November 2025

Originally published on Substack, 26 November 2025.

While large language models work with words in a 3D cloud of meaning, diffusion models take a different route. They work with media—images, video, audio, 3D assets, and in some cases even text again.

The goal remains the same: learn patterns from data during training, then apply those patterns during inference.

During training, a diffusion model learns how real images and media look. It sees a clean example, then sees a version with a little noise added, then with more noise, then with even more. Across millions of examples, it learns how to reverse that corruption process. It learns how to denoise a picture in a way that matches the patterns in the training data.

You can imagine this as learning every small step from static → slightly clearer → clearer → fully clear.

Once training finishes, the model enters its second stage: inference.

Instead of navigating a cloud of words, it now starts from pure digital noise—a field of random pixels. Your text prompt acts like a set of constraints, guiding the model through the denoising steps. At each step, the model removes anything that doesn’t fit the prompt and strengthens anything that does.

Prompt: “a lighthouse on a cliff at dusk”

Step by step, the noise shifts. Random pixels give way to faint shapes, then clearer outlines, then texture and colour. After enough denoising steps, the result forms an image that matches the prompt.

The same process applies to other media:
⚙️Video diffusion models denoise frames over time while learning how motion flows from one frame to the next.
⚙️ 3D diffusion models denoise across depth, shape, and texture to create objects or full scenes.
⚙️Audio diffusion models denoise across frequency and time, shaping waveforms that match the prompt.
⚙️Text-based diffusion (used in some hybrid systems) denoises over symbolic structures rather than pixels.

Training teaches the model how to reverse noise into meaning.

Inference performs that reversal, one denoising step at a time.