Score-Based Generative Models are a class of generative models that learn the score function $\nabla_x \log p(x)—the$ gradient of the log-probability density with respect to the data—rather than the density itself, then use the learned score to generate samples through iterative score-based sampling procedures such as Langevin dynamics. This approach avoids the normalization constant computation that makes direct density modeling intractable for complex, high-dimensional distributions.
Why Score-Based Generative Models Matter in AI/ML:
Score-based models provide state-of-the-art generative quality by sidestepping the fundamental challenge of normalizing constant computation, leveraging the fact that the score function contains all the information needed for sampling without requiring a tractable partition function.
• Score function — The score $\nabla_x \log p(x)$ is a vector field pointing in the direction of increasing log-density at every point in data space; following this gradient (with noise) from any starting point converges to samples from $p(x)$ via Langevin dynamics
• Score matching training — Directly minimizing $E[\lVert{s_\theta (x) - \nabla_x \log p(x)}\rVert^2]$ is intractable (requires knowing the true score); denoising score matching instead trains on noisy data: $s_\theta (x̃) \approx \nabla_{x̃} \log p(x̃|x) = -(x̃-x)/\sigma ^2$, which is tractable and consistent
• Multi-scale noise perturbation — Score estimation is inaccurate in low-density regions (few training examples); adding noise at multiple scales ($\sigma_1 > \sigma_2 >$ ... $> \sigma_N$) fills in low-density regions and creates a sequence of score functions from coarse to fine
• Connection to diffusion — Score-based models and denoising diffusion probabilistic models $(\mathrm{DDPM}s)$ are equivalent formulations: the DDPM denoiser $\epsilon _\theta $ is related to the score by $s_\theta (x_t, t) = -\epsilon _\theta (x_t, t)/\sigma_t$; this unification bridges the two research communities
• SDE formulation — Song et al. unified score-based and diffusion models through stochastic differential equations $(\mathrm{SDE}s)$: the forward SDE gradually adds noise, and the $\text{reverse-time} \mathrm{SDE}$ (requiring the score function) generates samples by denoising
| Component | Role | Implementation | ||
|---|---|---|---|---|
| Score Network $s_\theta $ | Estimates $\nabla_x \log p(x)$ | U-Net, Transformer (time-conditioned) | ||
| Noise Schedule | Multi-scale perturbation | σ₁ > σ₂ > ... > σ_N or continuous $\sigma (t)$ | ||
| Training Loss | Denoising score matching | $E[$ | $s_\theta (x+\sigma \epsilon ) + \epsilon /\sigma $ | $^2$] |
| Sampling | Reverse-time SDE/ODE | Langevin dynamics, predictor-corrector | ||
| SDE Forward | dx $= f(x,t)dt + g(t)dw$ | VP-SDE, VE-SDE, sub-VP-SDE | ||
| SDE Reverse | dx $= [f - g^2\nabla \log p]dt +$ gdw̄ | Score-guided denoising |
Score-based generative models represent a paradigm shift in generative modeling by learning the gradient of the log-density rather than the density itself, unifying with diffusion models through the SDE framework and achieving state-of-the-art image generation quality by sidestepping normalization constant computation while enabling flexible, iterative sampling through learned score functions.