Score Matching
Score matching trains a model to estimate the score function of a probability distribution:
The score points in the direction where the log density increases. In diffusion and score-based models, the score is learned across noise levels:
is the noisy data distribution at time or noise level .
Denoising Score Matching
When clean data is corrupted by Gaussian noise:
the denoising target is proportional to the noise:
This connects score prediction, denoising, and noise prediction.
Training Objective
A common denoising score matching objective is:
Using the Gaussian corruption above:
The weighting controls which noise levels dominate training. This is not a cosmetic detail; it changes sample quality, likelihood behavior, and low-noise reconstruction.
Score, Noise, and Denoised Prediction
Many diffusion papers parameterize the same target in different ways:
| Parameterization | Model Predicts | Conversion Idea |
|---|---|---|
| score | density-gradient field | |
| noise | score is proportional to | |
| clean data | denoised estimate determines score under Gaussian corruption | |
| velocity | transport or interpolation velocity | common in flow/rectified formulations |
When reading a paper, identify the parameterization before comparing objectives.
Geometry and Symmetry
For coordinate data, the score has the same transformation type as coordinates. If:
then an equivariant score should satisfy:
For molecules, proteins, and complexes, the score target also depends on atom/residue mapping, masking, coordinate frame, and whether noise is added to coordinates, features, or both.
Sampling Boundary
Learning a score is not the same as specifying the final sampler. Samples may come from Langevin dynamics, reverse SDEs, predictor-corrector methods, or probability-flow ODEs. Report the number of function evaluations, noise schedule, guidance, and filtering when comparing generation quality.
Why It Matters
- Gives diffusion models a density-gradient interpretation.
- Makes sampling possible with Langevin dynamics, reverse SDEs, or probability-flow ODEs.
- Separates the learned object from a particular sampler.
- Helps explain why noise-level weighting changes sample quality.
Checks
- Which score is learned: clean data, noisy marginal, conditional score, or classifier guidance score?
- Are low-noise and high-noise regions weighted appropriately?
- Does the target preserve the symmetry of the object, such as permutation or rotation equivariance?
- Is the score evaluated only through samples, or also through likelihood or reconstruction diagnostics?
- What parameterization is used: score, noise, clean data, or velocity?
- What sampler and step budget turn the learned field into samples?