Deep Unsupervised Learning using Nonequilibrium Thermodynamics

Jascha Sohl-Dickstein, Eric A. Weiss, Niru Maheswaranathan, Surya Ganguli

This 2015 paper by Sohl-Dickstein et al. is a foundational text in modern artificial intelligence. It introduced Diffusion Probabilistic Models, the mathematical framework that eventually led to the explosion of generative AI tools like DALL-E, Midjourney, and Stable Diffusion.

The Core Concept

The authors propose a generative model inspired by non-equilibrium thermodynamics. The model works by systematically destroying data structure through a "forward" diffusion process (adding noise) and then learning to "reverse" that process to create data from scratch. This approach yields a model that is both extremely flexible—capable of fitting complex data—and computationally tractable, making it easy to sample from and evaluate.

The Problem: Tractability vs. Flexibility

In machine learning, there has historically been a tug-of-war between tractability and flexibility when modeling complex probability distributions:

  • Tractable models (like Gaussian distributions) are mathematically convenient and easy to evaluate, but they are far too simple to describe the complex "manifolds" of real-world data, such as natural images.
  • Flexible models (like Energy-Based Models) can theoretically fit almost any data distribution. However, they often require expensive Monte Carlo simulations to train or sample from because they are difficult to normalize (a challenge known as the "partition function" problem).

The authors sought a way to define a model that could capture the richness of real-world datasets without inheriting the computational nightmares of traditional flexible models.

Methods: Reversing Entropy

The central idea is to treat data generation as a physical process of reversing entropy, broken down into two distinct trajectories.

  1. The Forward Trajectory: The authors define a Markov chain that systematically and slowly adds noise to a data distribution. Over many steps ($T$), any complex image is eventually transformed into a simple, structureless distribution (essentially a cloud of white noise). Because each step adds only a tiny amount of noise, the transition at each step is mathematically simple.
  2. The Reverse Trajectory: The "generative" part of the model is a second Markov chain that starts with pure noise and attempts to undo the diffusion. The model (typically a neural network) is trained to estimate the small perturbations needed at each step to move backward toward the original data distribution.
The forward and reverse diffusion trajectories on a 2D Swiss Roll dataset.
  1. Training: The model is trained by maximizing a variational lower bound on the log-likelihood of the data. In essence, it learns to predict the mean and covariance of the "previous" step in the chain.
  2. Thermodynamic Inspiration: The underlying mathematics are heavily influenced by non-equilibrium statistical physics—specifically the Jarzynski equality and annealed importance sampling. It views the "destruction" of data as a quasi-static process where the distribution remains near equilibrium at every step.

Key Insights

  • Small Steps are Easy: While the global structure of an image is incredibly complex, the difference between an image with 10% noise and 11% noise is nearly Gaussian. By breaking the generation process into thousands of tiny, nearly-Gaussian steps, the learning problem becomes vastly simpler.
  • Exact Sampling: Unlike many models of that era (such as Restricted Boltzmann Machines) that required "burning in" a Markov chain to obtain a sample, diffusion models provide a direct, finite-time path to generate a sample from noise.
  • Distribution Multiplication: Because the model is defined as a sequence of steps, you can easily multiply the learned distribution by another distribution (like a constraint or a conditional) at each step. This makes tasks like image denoising or inpainting mathematically straightforward.

Datasets and Key Results

The authors evaluated the model across several domains to prove its versatility, ranging from toy 2D data (the "Swiss Roll" distribution) and synthetic binary sequences to complex natural images.

Model evaluation on the CIFAR-10 dataset, demonstrating its ability to generate natural images.
  • State-of-the-Art on Dead Leaves: The diffusion model outperformed previous state-of-the-art models on the "Dead Leaf" dataset, a synthetic dataset known for its difficult statistical properties that mimic natural scene occlusions.
  • Competitive on MNIST: It achieved log-likelihood results (approximately 220 bits) comparable to other top-tier generative models of the time, such as Deep GSNs and Adversarial Networks.
  • Qualitative Success in Inpainting: The paper demonstrated that the model could take a bark texture with a massive hole in the middle and "fill it in" with a sample that seamlessly maintained the long-range spatial structure of the original image.

Limitations and Legacy

While groundbreaking, the original formulation had limitations that future research would need to address:

  • Computational Intensity: At the time, training and sampling required thousands of steps. While each step was a simple neural network pass, the total inference time was much higher than "one-shot" models like GANs.
  • Architecture Sensitivity: The paper used relatively simple multi-layer perceptrons and convolutional architectures, noting that the choice of the "reverse" function was critical. (Later researchers would solve this by employing U-Net architectures).
  • Scaling: The paper proved the concept on small images (e.g., 32x32 CIFAR-10). Scaling this to high-resolution imagery was left as a challenge for the future—a challenge famously met several years later with the advent of Denoising Diffusion Probabilistic Models (DDPM), which ignited the current generative AI revolution.

Summary updated

BibTeX
@inproceedings{sohldickstein2015deep,
  author = {Jascha Sohl-Dickstein and Eric A. Weiss and Niru Maheswaranathan and Surya Ganguli},
  title = {{Deep Unsupervised Learning using Nonequilibrium Thermodynamics}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=rkbVIoZdWH},
}
Figure