Diffusion Theory: Objectives, Schedules, and Backbones
Learning objectives
- learner can derive the noise-prediction objective and the ELBO/VLB decomposition into per-timestep KL terms
- learner can explain the nice property, fixed vs learned variance, and the U-Net time-conditioning assembly
- learner can compare diffusion to GANs/VAEs on the tractability-vs-flexibility axis
Capstone — one whole task that evidences the objectives
Write a rigorous explainer that derives the DDPM training objective: show the forward Markov chain and Gaussian noise, the nice property / closed-form noising, the noise-prediction reparameterization, the ELBO decomposing into analytically tractable per-timestep KL terms, the fixed-variance choice and time-conditioned U-Net assembly, and why diffusion trades sampling speed for tractability and mode coverage vs GANs/VAEs.
Prerequisite modules
Diffusion models now sit behind most neural audio and visual generation a live coder is likely to lean on — sample-pack synthesis, texture and visual generation for the rig, and the text-to-audio tools reshaping electronic music production. Using them well (choosing checkpoints, debugging training runs, reading papers about samplers) requires actually owning the DDPM math, not just running pipelines. This module builds toward one whole task: writing a rigorous explainer that derives the DDPM training objective end to end.
The arc starts from the picture-level definition — a fixed forward Markov chain that corrupts data with scheduled Gaussian noise, and a learned reverse chain that approximates the intractable denoising posterior. With that frame in place, the learner works a supported first exercise: deriving the closed-form noising formula, using “the ‘nice property’ lets you sample any diffusion timestep directly” and “the reparameterization trick lets you sample a noisy x_t at any timestep” as JIT how-to pointers. From there the derivation deepens: the ELBO/VLB decomposition into per-timestep Gaussian KL terms, the noise-prediction reparameterization, the fixed-variance simplification, and the empirically simplified uniform-MSE loss. A parallel thread assembles the backbone — sinusoidal time embeddings, FiLM-conditioned ResNet blocks, and the full U-Net — so “time-conditioned network” is concrete, not hand-waved. The capstone then demands the whole derivation unsupported, closing with the tractability-vs-flexibility argument against GANs, VAEs, and flows.
Every required atom is a link in that derivation chain: skip one and the explainer has a hole the capstone rubric will find. The supporting atoms — cosine schedules, learned-variance interpolation, the follow-up landscape, group normalization — enrich the story with “what came next” and implementation nuance without gating it. The two closed-form-sampling drills deserve repetition until automatic, since they recur in every diffusion derivation the learner will ever read.
Atoms in this module
Required — these gate the capstone
Supporting — enrichment, not gating
Part of curricula
- Audio-Visual Performer — integrated, synced live AV — Compose the whole (generative & AI-layered AV) optional
- Generative & AI AV Artist — real-time machine-driven performance — Engineer steerable real-time diffusion visuals required
Unlocks — modules that require this one