Applied AI Vol. 2 · 5 min read
Papers on diffusion describe the network as predicting noise, the score, or the clean image. These are closely related, and knowing how helps you read any of them.
Noise prediction
The most common setup trains the network to predict the noise ε that was added, given the noisy input and the noise level. The training loss is the squared difference between the predicted and true noise, averaged over random noise levels.
The score connection
The score of a distribution is the gradient of its log density: the direction in which probability increases fastest. For the Gaussian noising above, the score of the noisy data distribution is, up to scaling, the negative of the noise: the score equals minus ε divided by sqrt(1 − α̅t), in expectation.
So a network that predicts noise is, in effect, estimating the score. Sampling can then be framed as following the score step by step from noise toward data, with some randomness added.
Predicting the clean image or velocity
Because x at step t is a known mix of x0 and ε, predicting any one of x0, ε or a combination called velocity determines the others. The choice changes how the loss weights different noise levels, and so which levels the network emphasizes.
Practical effects
- Noise prediction is stable at moderate noise but ill-behaved at the very-high-noise end, where tiny errors in ε amplify.
- Velocity-style targets are often used to improve behavior across the whole range.
- Loss weighting, not only the target, shapes sample quality, so reported results depend on both.
