NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion models

Stephan WojtowytschPittsburgh 2026

Abstract

Diffusion models are tools of deep learning which underpin AI image generators such as Stable Diffusion and DALL-E. While some of these ideas existed since at least 2015 and theoretical foundations were laid in the 1980s, they became popularized in the 2020 article [SSDK+20]. Here, we summarize some of the ideas of ‘score-based’ diffusion models and their theoretical underpinning.

Introduction: The High-Dimensional Sampling Challenge

Generative AI is fundamentally a problem of high-dimensional sampling. For instance, generating a 256x256 RGB image requires identifying a single point within a space of nearly 200,000 dimensions. While we intuitively understand what constitutes a "reasonable" image, there is no explicit mathematical formula for the probability distribution of complex data like "all human faces."

Standard statistical methods struggle in these high dimensions because the "support" of the data—the region where meaningful images actually reside—is a low-dimensional manifold embedded in a vast, empty space. Diffusion models address this by creating a bridge between a simple, known distribution (like Gaussian noise) and the complex, unknown distribution of real-world data.

Methodology: From Physics to Deep Learning

The core mechanism of diffusion models involves a two-stage process: forward diffusion and reverse denoising.

Forward Diffusion and the Fokker-Planck Equation

Inspired by the physical process of ink spreading in water, forward diffusion gradually adds noise to a data point until it becomes indistinguishable from a standard normal distribution. This evolution is governed by the Fokker-Planck equation, which describes how probability densities $p(t, x)$ evolve over time. As time progresses, any complex initial structure in the data distribution is smoothed out into a simple Gaussian.

Evolution of a multi-modal probability distribution under forward diffusion, eventually converging to a simple Gaussian.

The Score Function and Reverse SDEs

Reversing this process is not straightforward; physics does not naturally "un-diffuse." To move backward from noise to data, we define the Score Function ($sc(t, x) = \nabla \log p(t, x)$). This vector field points toward regions of higher data density, effectively providing a map of the data's original location.

By incorporating this score function into a reverse-time Stochastic Differential Equation (SDE), we can start with pure noise and "denoise" it into a realistic sample. In practice, the true score function is unknown, so we train a neural network to estimate it. A key mathematical insight is the use of a "proxy" loss function, which allows the network to be trained using only noisy samples from the forward step, bypassing the need for the true underlying formula.

Visualizing the Process: The Two Moons Dataset

To demonstrate these principles, researchers often use the "Two Moons" dataset—a 2D benchmark consisting of two intertwined crescent shapes. This toy example allows for clear visualization of how points migrate from a noisy cloud back to a structured manifold.

Generative results on the Two Moons dataset comparing deterministic and stochastic sampling methods alongside particle trajectories.

Deterministic vs. Stochastic Sampling

The sampling process can be tuned using a parameter $\beta$, which controls the level of randomness in the reconstruction. As seen in Figure 6, setting $\beta=0$ results in an Ordinary Differential Equation (ODE) that is deterministic and efficient, while $\beta > 0$ allows for more "exploration" of the data space, potentially leading to more diverse results.

Key Insights and Theoretical Nuances

The "Lie" of Visualization

A common misconception in diffusion model diagrams is the depiction of a specific image turning into noise and then being perfectly reconstructed. In reality, because the forward process is stochastic, a single particle's path cannot be uniquely reversed. We can only reverse the probability distribution of all possible paths. The trajectories shown in the right-most panel of Figure 6 represent the flow of the distribution rather than a guaranteed round-trip for a single data point.

Stability and Quality

While the backward heat equation is notoriously unstable and prone to "blowing up," the score-based formulation is mathematically stable. Even with finite time steps (discretization), these models accurately recover complex geometries from pure noise. The Appendix of the original work provides a rigorous proof that the proxy loss function used in training is equivalent to minimizing the distance to the true score function.

Limitations and the Mystery of Generalization

A significant open question remains: Why don't these models simply memorize the training data? Mathematically, a perfect model should converge to the "empirical distribution"—the exact points in the training set. However, diffusion models are celebrated for their ability to generate novel data. It is hypothesized that the "errors" made during the backward dynamics are a feature, not a bug. These small approximation errors provide enough noise to foster creativity and generalization while remaining small enough to keep the output within the bounds of the learned manifold. Understanding this balance between error and novelty is a primary focus for future research.

Summary updated

BibTeX
@inproceedings{wojtowytsch2026diffusion,
  author = {Stephan Wojtowytsch},
  title = {{Diffusion models}},
  booktitle = {Pittsburgh},
  year = {2026},
  doi = {10.5195/pimr.2025.67},
}
Figure