Diffusion & Generative-Media Models

Diffusion & Generative-Media Models — Image / Video / Audio

The model family that generates continuous media (images, video, audio) by learning to reverse a noising process. A model-layer reference under the ai-agent-engineering hub (2024–2026). This is the generation side and is deliberately separate from multimodal-llm-architecture (which is media understanding — vision encoders, VLMs) and from da-35-synthetic-data-generation (which is tabular synthesis). When the task is “make a picture/video/sound,” it lives here.

1. The denoising-diffusion core (DDPM)

A forward process gradually adds Gaussian noise to data over T steps until it is ~pure noise; a neural network learns the reverse (denoising) process. Training minimizes a simple objective: predict the noise added at a random timestep.

2. The score-based / SDE view

Song & Ermon’s score-based generative models unified diffusion under stochastic differential equations: the reverse process integrates the score (∇ₓ log p(x)) learned by the network.

3. Latent diffusion (why almost everything runs in latent space)

Pixel-space diffusion is expensive. Latent Diffusion (Rombach et al. → Stable Diffusion) runs the diffusion process in the compressed latent space of a pretrained VAE: encode image → diffuse/denoise the latent → decode. This cut compute ~10–100× and made open text-to-image practical. The VAE’s quality (and its KL/VQ regularization) bounds the system’s fidelity; the denoiser is conditioned on text via cross-attention to a text encoder (CLIP/T5).

4. Architectures: UNet → Diffusion Transformer

5. Flow matching & rectified flow

A simpler, often-superior alternative training framework that has largely won at the frontier:

6. Guidance — classifier & classifier-free

7. Samplers / schedulers (the steps↔quality knob)

The sampler numerically integrates the reverse ODE/SDE; fewer steps = faster but lower quality:

8. Few-step generation & distillation

Pushing from ~20–50 steps down to 1–4:

9. Conditioning & control (the six levers)

Customizing/conditioning a frozen or lightly-tuned base model:

10. Text-to-video & the video-diffusion stack

11. Audio, music & other modalities (brief)

Diffusion also drives audio/music generation (e.g. Stable Audio, audio latent diffusion) and 3D/robotics (diffusion policies for manipulation). The same core — denoise in a learned latent, condition via cross-attention, guide with CFG — transfers across modalities. Deep audio/music modeling is out of scope here; this is the connective overview.

12. Evaluation & efficiency

When to reach for which

Goal Reach for
Understand the math DDPM → score-SDE/EDM → flow matching/rectified flow
Train/choose a frontier image model latent diffusion + DiT/MMDiT + flow matching (SD3/FLUX class)
Faster sampling, no retrain better sampler (DPM-Solver++) + fewer steps + CFG tuning
1–4-step generation LCM/LCM-LoRA, ADD/SDXL-Turbo, consistency/guidance distillation
Control the output spatial → ControlNet; reference image → IP-Adapter; subject → DreamBooth/LoRA; concept → textual inversion
Generate video spatiotemporal DiT + 3D VAE; pick from the open/closed landscape; budget for temporal consistency
Score results image FID/CLIPScore/human-pref; video FVD/VBench

Sources