Score-Based Generative Models
Learn the direction toward higher data density and follow it to generate samples.
The idea
The score is the gradient of the log-density, ∇ₓ log p(x): at every point it is an arrow pointing toward more likely data. A network learns this field at several noise levels (score matching), and sampling follows the arrows with a little noise (Langevin dynamics). It is the same family as diffusion models seen through a continuous-time lens.
sₜ(x) ≈ ∇ₓ log pₜ(x)
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- noising
- denoising
- generated
Real data: points sitting in six tight clusters.
- step:
- 0
- phase:
- adding noise
Here the denoiser is computed exactly from the known cluster layout; real models learn it with a neural network.
Step by step
- 1Add noise to data at several levels.
- 2Train a network to predict the score at each level.
- 3Start from noise.
- 4Move along the predicted score, adding small noise (Langevin step), from high to low noise.
Where it is used
Image generation, inverse problems such as inpainting.
Watch out for
Needs many steps and careful noise schedules.