Ask what should change when the equation is manipulated, then let the visualization test that expectation.
Foundation Lab
Diffusion, Score-Based Models & Flow Matching
Stable Diffusion: latent diffusion — DDPM in a VAE latent space
\mathcal L = \mathbb E_{x_0,t,\epsilon} \big\|\epsilon - \epsilon_\theta(x_t,t)\big\|^2Selected Foundation Object
Keep the equation fixed; move through the evidence.
Intuitive explanation that denoising is learning ∇ₓ log pₜ(x) (scores), and how reverse-time SDE sampling corresponds to "walking uphill in log-density space"
\mathcal L = \mathbb E_{x_0,t,\epsilon} \big\|\epsilon - \epsilon_\theta(x_t,t)\big\|^2Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.
The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.
This atlas page keeps the working demo; the domain notebook carries the fuller Intuition -> Math -> Code -> Demo sequence.
Why It Matters for Modern Models
- Stable Diffusion: latent diffusion — DDPM in a VAE latent space
- Sora: diffusion transformer over 3D spacetime patches
- Flow-matching and rectified flows enable one-step or few-step generation
What Tutorials Skip
What is still poorly explained in textbooks and papers:
- Intuitive explanation that denoising is learning ∇ₓ log pₜ(x) (scores), and how reverse-time SDE sampling corresponds to "walking uphill in log-density space"
- Visual/interactive demonstrations of different probability paths (diffusion vs optimal transport)
Interactive Visualization
Core Math (Optional Deep Dive)
If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.
Forward diffusion adds noise:
Model learns to predict noise via MSE:
Score-based SDE view: forward SDE . Reverse-time SDE uses score .
Flow matching: train vector field to match the "true" conditional field (often optimal transport / straight lines).