Score-Based Model
A score-based model learns the gradient of the log data density (the score) across noise levels and samples by following the score, often via a stochastic differential equation.
The score is:
It points toward regions of higher probability under the noisy distribution at time .
For a small step in , the score gives the local direction of log-density increase:
This is why a score field can guide samples from low-density noisy states toward likely data states.
For an energy-based density:
the score is:
This is why score-based generation, Langevin dynamics, and energy minimization share similar gradient geometry.
Noise-conditional score matching trains the model across noise levels:
For Gaussian perturbations, the target score has a closed form:
where and define the noising process.
Score, Noise, and Clean-Data Targets
For a Gaussian noising process:
the conditional score is:
So predicting noise, score, or clean data can be converted if the noise convention is known:
and:
Papers can look different while learning equivalent fields under a shared noising convention. Always identify the parameterization before comparing objectives.
Langevin View
A score can be used in Langevin dynamics:
The gradient term moves toward high-density regions, while the noise term maintains stochastic exploration. Annealed Langevin methods vary or noise scale from high noise to low noise.
Sampling
Score-based models can sample with a stochastic reverse-time SDE or a deterministic probability-flow ODE. The choice changes speed, diversity, and likelihood estimation.
| Sampler | Uses | Tradeoff |
|---|---|---|
| reverse SDE | score plus injected noise | stochastic diversity, more sampling choices |
| probability-flow ODE | deterministic score-derived velocity | deterministic samples, likelihood route |
| predictor-corrector | ODE/SDE step plus score correction | quality can improve at higher cost |
| Langevin dynamics | local score ascent plus noise | flexible but step-size sensitive |
Why It Matters
- Provides a continuous, unifying view of diffusion generation.
- Connects denoising, Langevin dynamics, and SDE/ODE samplers.
- Connects learned density gradients to Energy-based model views.
- Score estimation quality at all noise levels drives sample quality.
Failure Modes
- Low-noise scores control detail but are hard to estimate near the data manifold.
- High-noise scores control global structure but can be underweighted.
- Solver choices can dominate quality and cost comparisons.
- The score field may violate geometry or symmetry constraints if the architecture does not encode them.
Checks
- Is the score well-estimated at both low and high noise?
- SDE vs. ODE sampling for the speed/quality target?
- Does the noise-level weighting match the data?
- Is the sampler, step count, and noise schedule fixed for comparisons?
- Does the score transform correctly under required symmetries?
- Which target is trained: score, noise, clean data, or velocity?
- Are score scale and noise convention stated?