Demystifying Variational Diffusion Models

Fabio De Sousa Ribeiro, Ben Glocker

TL;DR

This paper provides a much-needed "Rosetta Stone" for diffusion models, stripping away the complex physics of thermodynamics and SDEs to explain them through the familiar lens of Hierarchical Latent Variable Models (HLVMs). By reframing diffusion as a specific type of deep VAE with a fixed encoder and top-down inference, the authors clarify why these models excel at high-quality synthesis and how their various mathematical formulations (noise, score, velocity) are actually one and the same.

What Problem Does This Paper Address?

Diffusion models have become the dominant paradigm in generative AI, yet their theoretical foundations are often inaccessible to those without a background in non-equilibrium statistical physics. Most researchers treat them as a "black box" of noising and denoising.

The authors address this gap by providing a consolidated tutorial that uses standard machine learning principles: Directed Graphical Models and Variational Inference. They specifically tackle the "Hole Problem" found in standard Variational Autoencoders (VAEs)—where the prior and the aggregate posterior don't match—and explain how diffusion models solve this by construction to achieve superior sample quality.

Methods

The paper is a theoretical synthesis that revisits the predecessors of diffusion models to build a holistic narrative. Key methodological contributions include:

  • Reframing as HLVMs: The authors show that a diffusion model is essentially an infinitely deep Hierarchical VAE where the "inference" (noising) process is fixed rather than learned.
  • Top-down Inference: They argue for the superiority of top-down inference (where latents depend on the layer above and the data) over traditional bottom-up inference, using the concept of "Generative Feedback" to explain how this prevents posterior collapse.
  • Unified Parameterization: The paper derives the mathematical relationships between different ways of training these models, including:
  • Image Prediction: Predicting the clean image directly.
  • Noise Prediction: Predicting the noise added at a specific step.
  • Score-based: Estimating the gradient of the log-density.
  • Velocity/Flow-based: Predicting the "tangential velocity" of the data as it moves through noise space.
  • Continuous-Time Derivation: They provide a step-by-step derivation of the Variational Lower Bound (VLB) for the infinite-depth limit ($T \to \infty$), showing it is invariant to the specific noise schedule used between the endpoints.

Datasets

As this is primarily a theoretical review and tutorial, the paper does not introduce new large-scale benchmarks. However, it utilizes:

  • 2D Toy Dataset: A five-cluster synthetic dataset used to visually demonstrate the "Hole Problem" and how latent variables are (or aren't) activated in VAEs.
  • Literature Reference: The authors discuss state-of-the-art results on ImageNet achieved by models using the principles described in the paper (specifically referencing Kingma & Gao, 2023).

Key Insights and Ideas

  • The "Hole Problem" Solution: In standard VAEs, we often sample from regions of the prior that the model never saw during training. Diffusion models fix this by defining the noisiest state ($z_T$) to be exactly the prior by construction, ensuring a smooth transition during generation.
  • Supervised Learning in Disguise: By fixing the forward (noising) process, the unsupervised learning problem of "modeling the data distribution" is transformed into a supervised denoising task. This reduction in degrees of freedom makes the training significantly more stable.
  • Noise Schedule Invariance: A major "aha" moment is the proof that the continuous-time VLB depends only on the Signal-to-Noise Ratio (SNR) at the very beginning and very end of the process. The "shape" of the noise schedule in between doesn't change the theoretical lower bound, though it does affect the variance of the loss estimator during training.
  • Likelihood vs. Perception: The authors show that weighted diffusion losses (which often produce better-looking images than standard maximum likelihood) are actually equivalent to maximizing the ELBO under simple Gaussian data augmentation.

Key Results

  • The Rosetta Stone (Table 4.1 & 4.2): The paper provides comprehensive tables that allow researchers to translate between different model parameterizations (e.g., converting a noise-prediction model to a velocity-prediction model) using simple linear functions.
  • Proof of Monotonicity: The authors demonstrate that doubling the number of timesteps $T$ always improves the VLB, providing a formal justification for the industry-wide shift toward continuous-time diffusion models.
  • Variance Reduction: They show how the choice of noise schedule acts as an Importance Sampling distribution, and that "judicious choices" here can significantly increase the efficiency of training.

Limitations and Future Work

  • Loss of Representation: Unlike VAEs, standard diffusion models do not learn semantically meaningful latent representations (the latents are just noisy versions of the data). The authors suggest that re-introducing representation learning—perhaps via "Ladder Network" structures—is a key area for future research.
  • Linear Gaussian Constraints: Most current theory relies on linear Gaussian transitions. The authors identify the expansion to non-linear forward processes as a way to potentially tighten the Variational Lower Bound further.
  • Causal Identifiability: The paper notes that studying the identifiability guarantees of deterministic diffusion (Probability Flow ODEs) for causal representation learning remains a fertile and largely unexplored ground.

Summary updated

BibTeX
@article{ribeiro2025demystifying,
  author = {Fabio De Sousa Ribeiro and Ben Glocker},
  title = {{Demystifying Variational Diffusion Models}},
  journal = {Found. Trends Comput. Graph. Vis.},
  year = {2025},
  doi = {10.1561/0600000113},
}
Figure