Context. SMLD (Song and Ermon, 2019) and DDPM (Ho et al., 2020) both corrupt data with Gaussian noise and learn to undo it, SMLD by score matching at a sequence of noise levels with Langevin sampling, DDPM by a reverse Markov chain whose network predicts the added noise . They learn the same object. Denoising score matching says that regressing on the conditional score has the same minimizer as regressing on the marginal score, and Tweedie's formula makes that score a posterior mean: for , so DDPM's -network is the score up to the factor . This paper lets the number of noise levels go to infinity: the corruption becomes an SDE, sampling becomes its time reversal, and the same field also drives a deterministic ODE with the same marginals. One field, the score of the noised marginals at every time, is all that sampling, exact likelihoods and conditioning need, and it is learned by plain least-squares denoising, so generative modeling becomes a denoising regression at every noise level.
Setting. A fixed Itô SDE on , with no trainable parameters, carries data to a marginal close to a tractable prior, and its affine drift makes the perturbation kernel Gaussian in closed form. The variance-exploding (VE) SDE is the limit of SMLD's sequence of noise levels; the variance-preserving (VP) SDE is the limit of DDPM's chain; the new sub-VP SDE has squared diffusion coefficient , so its covariance stays below VP's. Computations run on with small , because the VE SDE is undefined at and the VP kernel variance vanishes as .
Main results. The paper proves no theorems; it assembles classical identities into a method and tests it. A time-dependent network is trained on with , and then plugged into the reverse-time SDE to sample, into the probability-flow ODE for deterministic sampling, encoding and exact likelihoods, or into a conditional reverse SDE for class-conditional generation, inpainting and colorization from one unconditional model. On unconditional CIFAR-10 the VE model NCSN++ reaches FID 2.20, better than the best conditional GAN then reported (2.42), and the sub-VP model DDPM++ reaches 2.99 bits/dim on uniformly dequantized CIFAR-10. VE gives the better samples, VP and sub-VP the better likelihoods.
The score is learnable by denoising, and DDPM's loss is a case of it. The conditional score is unbiased for the marginal one, , by differentiating under the integral. So the objective equals plus a constant free of , and with enough capacity its population minimizer is the marginal score. Because the kernel is Gaussian the target is explicit, , and equalizes the noise levels. With the weighted loss becomes , DDPM's (its weight is ), and SMLD's weight is the same rule.
Sampling is the time reversal of the forward SDE, and the score is its only unknown. By Anderson's theorem the reversed process is again a diffusion, which in forward-running time reads A one-line Fokker-Planck computation checks the marginals: satisfies , and writing turns this into the forward equation of the displayed SDE. So the score term carries twice the diffusion's spreading, half to cancel the noise the reverse SDE injects and half to undo the forward smoothing. With a state-dependent the score term becomes and the drift gains . The sampler replaces by and starts from the prior.
The same score defines an ODE with the same marginals, and that ODE has exact likelihoods. Put the whole Laplacian into the transport term instead of half of it: is a continuity equation, so the probability-flow ODE moves to through the same marginals as the SDE. With in place of the score it is a neural ODE, so the instantaneous change of variables gives , with the divergence estimated by Skilling-Hutchinson. Since the forward SDE has no parameters, the code of an input is fixed by alone given an exact score, and two independently trained architectures give nearly the same codes. The paper does not note that with in place of the true score the ODE and the reverse SDE are different models, so the reported likelihood is the ODE model's, while the best FIDs come from SDE samplers.
DDPM's sampler is one discretization of the reverse VP SDE, and Langevin steps can correct any discretization. Running the forward chain's increments backward with the score added gives the reverse-diffusion sampler, and expanding DDPM's ancestral update to first order in shows it is the same update up to . The corrector uses that is the score of the current marginal: a few Langevin steps at fixed target itself and pull the iterate back toward it. This predictor-corrector (PC) sampler has the old methods as special cases, SMLD an identity predictor with a Langevin corrector and DDPM an ancestral predictor with no corrector. On CIFAR-10 with 1000 noise levels, one corrector step per predictor step takes VE reverse diffusion from FID 4.79 to 3.60 and VE probability-flow sampling from 15.41 to 3.51, beating 2000 predictor steps at the same cost, while 2000 corrector-only steps give 20.43; for VP the gains are smaller.
Conditioning needs only a gradient added to the unconditional score, plus an approximation when the condition is part of . By Bayes, , so the conditional reverse SDE uses the unconditional model plus a classifier trained on noised inputs, since the term needed is the label likelihood given the current noisy state. For imputation with known coordinates the exact conditional score of the unknown coordinates is intractable, so the paper conditions instead on , a fresh draw of the known coordinates noised to level , and takes the gradient from the joint score. This heuristic has no error control, since it drops the dependence of on beyond what carries. Colorization is the same after an orthogonal change of color basis.
The experiments separate sampler, objective and architecture. With the discrete objectives fixed, the PC comparisons isolate the sampler; new architectures then give FID 2.45 (VE) and 2.78 (VP), and the continuous objective with doubled depth 2.20 and 2.41. For likelihood, the exact ODE value for Ho et al.'s own DDPM model is 3.28 bits/dim against its reported ELBO bounds of 3.70 and 3.75 (computed on discrete data, so the comparison is indicative), and sub-VP beats VP in every pairing. A black-box ODE solver cuts score evaluations by over 90% with little visible loss, though ODE samples without a corrector have worse FID than SDE samples.
Consequences and limits. The SDE view became the standard language for diffusion models: samplers are integrators of one of two equations, the probability-flow ODE underlies fast deterministic samplers (DDIM's update is an Euler step of it in rescaled variables) and later flow matching, and guidance is the conditional score of Step 5. The analysis came later, from Chen et al. (2023), who bound the sampler's error by the score error, and from stochastic localization (Montanari). The limits are the absence of any guarantee, including on how score and discretization errors reach the samples; hundreds to thousands of network evaluations per sample; and an ODE likelihood that belongs to a different model than the SDE sampler. The phrase "with sufficient data and model capacity" also leaves out a point taken up by Kadkhodaie et al. (not made in this paper): with training points and unlimited capacity the empirical minimizer is the exact score of the training set convolved with the Gaussian kernel, , whose reverse process returns training points, so any novelty in the samples comes from what the network fails to fit.
Terms
- score of the noised marginal at time ; the only learned object
- Tweedie's formula
- Denoising score matching
- regress on ; same minimizer as the marginal score
- -prediction
- ; weight turns DSM into DDPM's
- VE / VP / sub-VP SDE
- continuum limits of SMLD and DDPM chains, and a VP variant with smaller variance
- Reverse-time SDE
- drift in forward-running time (Anderson, 1982)
- Probability-flow ODE
- ; same marginals as the SDE, invertible
- Skilling-Hutchinson
- unbiased trace estimate for the divergence in the likelihood
- Predictor-corrector
- reverse-SDE step, then Langevin steps at fixed that target
- Conditional score
- , with a classifier trained on noised
Quiz
- How is DDPM's noise-prediction loss related to score matching?The conditional score is , so , the -loss with . By Tweedie the optimal is .
- The paper reports exact likelihoods computed with the probability-flow ODE and a learned . Whose likelihood is it?The same-marginals argument needs the true score. With the ODE and the SDE are two different generative models, equal only if is exact, and the change-of-variables formula computes the ODE model's density exactly.
- Two independently trained score networks, with different architectures, map the same image to nearly the same code under the probability-flow ODE. Why?The ODE's drift depends only on the fixed forward SDE and the score of the noised data, so two models that both learn the score well induce the same encoding. In a flow or VAE the encoder is itself learned, and many maps reach the same prior.
Sources
- Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-Based Generative Modeling through Stochastic Differential Equations. ICLR, 2021.
- Yang Song and Stefano Ermon. Generative Modeling by Estimating Gradients of the Data Distribution. NeurIPS, 2019.
- Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising Diffusion Probabilistic Models. NeurIPS, 2020.
- Brian D.O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 1982.
- Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, and Anru R. Zhang. Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. ICLR, 2023.