Steering and Accelerating Diffusion Sampling
Learning objectives
- learner can steer generation with classifier, classifier-free, and residual guidance
- learner can cut sampling steps with DDIM, progressive distillation, consistency, LCM-LoRA, and score-based views
- learner can situate cascaded diffusion, latent diffusion, DiT backbones, and cosine schedules in the design space
Capstone — one whole task that evidences the objectives
Produce a decision guide for fast, controllable diffusion sampling: implement or spec classifier-free (and residual) guidance, compare DDIM/consistency/progressive-distillation/LCM-LoRA for few-step inference, position score-based modeling and cascaded/latent diffusion and the DiT backbone, and recommend a config for real-time-capable generation with justified quality/speed trade-offs.
Prerequisite modules
For a live visualist, diffusion is only useful if it keeps up with the music: an AV set feeding audio-reactive prompts into a StreamDiffusion rig needs frames in tens of milliseconds, not the thousand-step crawl of vanilla DDPM. This module builds toward exactly that judgment call — a decision guide that picks a guidance mechanism and a few-step sampler for a real-time-capable rig, and defends the quality/speed trade-offs.
The arc runs from steering to speed to positioning. You start supported: implement classifier-free guidance on a toy conditional model, using the classifier-guided predecessor as a foil for why CFG won (no second network, no adversarial classifier exploits). Then make it cheap — “Residual CFG approximates classifier-free guidance at near-zero extra cost” is the JIT pointer when the doubled UNet pass blows your frame budget. Next, attack step count: “DDIM makes diffusion sampling deterministic” is the gateway (determinism is what progressive distillation and consistency models both build on), and “Fusing LCM-LoRA into an SD model enables 2–4 step inference” is the hands-on route on a stock SD 1.5 checkpoint. Finally you zoom out, placing score-based modeling, cascaded vs. latent pipelines, DiT backbones, and cosine schedules on the map before writing the unsupported capstone guide.
Every required atom gates the capstone: each guidance variant, each few-step method, and each design-space landmark is a row or axis in the guide — omit one and the recommendation loses its justification. The supporting atoms deepen rather than gate: the DDPM follow-up landscape and variance learning give historical texture, while the U-Net backbone, linear attention, and xformers atoms explain where the compute actually goes when your recommended config hits real hardware.
Atoms in this module
Required — these gate the capstone
Supporting — enrichment, not gating
Part of curricula
- Generative & AI AV Artist — real-time machine-driven performance — Engineer steerable real-time diffusion visuals required