Introduction
Denoising Diffusion Probabilistic Models (DDPMs) have emerged as the state-of-the-art in generative modeling, powering high-profile applications such as DALL-E and Stable Diffusion. Despite their empirical dominance, the mathematical foundation justifying their use of the Evidence Lower Bound (ELBO) as a proxy for data density has remained somewhat heuristic. While practitioners have successfully used the ELBO of pre-trained diffusion models for downstream tasks like zero-shot classification and GAN regularization, the theoretical "permission" for these applications was not fully established. This paper bridges this gap by deriving a novel score-based density formula that provides a rigorous link between the score function—the gradient of the log-density—and the density itself.
Theoretical Framework
The research approaches the diffusion process through the lens of continuous-time stochastic differential equations (SDEs). The central contribution is Theorem 1, which provides an exact formula for the log-density of a data point ($\log p(x)$) expressed as an integral over time.
The Score-Based Density Formula
The authors utilize sophisticated tools from stochastic calculus, including Itô’s formula and Stein’s lemma, to characterize the evolution of a sample's density as it is gradually corrupted by Gaussian noise. By analyzing the forward (noise-adding) process, the formula demonstrates that the log-density can be recovered by integrating the score functions associated with each infinitesimal step of the diffusion. This continuous-time derivation is then mapped onto the discrete steps used in practical implementations like DDPM, providing a mathematical bridge between theory and practice.
Key Insights
ELBO as a Proxy for Maximum Likelihood
A primary finding of the paper is that the minimizer of the standard DDPM training objective (ELBO) nearly coincides with the minimizer of the true Kullback-Leibler (KL) divergence between the data distribution and the model. This establishes that optimizing the ELBO is effectively equivalent to performing Maximum Likelihood Estimation (MLE), explaining why diffusion models are so effective at capturing the underlying data distribution.
The Universal Constant $C_0(x)$
In previous theoretical treatments of diffusion, a term denoted as $C_0(x)$ within the ELBO presented a significant hurdle. Researchers often struggled with whether to ignore this term or attempt to discretize it. This paper proves that $C_0(x)$ is actually a universal constant that does not depend on the data $x$. This revelation is critical because it justifies dropping the term in applications like classification, where only the relative density between different inputs matters.
Applications
Justifying Diffusion Classifiers
The paper provides the first solid theoretical foundation for "diffusion classifiers." By proving that the ELBO-based posterior is a mathematically sound approximation of the true posterior, the authors validate the use of pre-trained diffusion models for zero-shot classification tasks.
GANs as Density Amplifiers
The authors offer a new perspective on the success of diffusion-based penalties in training Generative Adversarial Networks (GANs). Their formula suggests that such regularization acts as a "density amplifier," forcing the generator to prioritize high-probability regions of the data distribution, thereby improving sample quality and stability.
Limitations and Future Work
While the score-based density formula is exact in the continuous-time limit, practical models operate over a finite number of discrete steps (typically 1000). The authors acknowledge that the error introduced by this discretization requires further granular analysis. Additionally, many practitioners use a "simplified" loss function ($L_{simple}$) that weights noise levels differently than the standard ELBO. Extending this theoretical framework to encompass these modified weighting schemes remains an important direction for future research. Finally, the authors suggest that this density formula could be instrumental in solving inverse problems and improving general density estimation tasks.
Summary updated