Paper commentary
Deep Unsupervised Learning using Nonequilibrium Thermodynamics
Reverse diffusion chains can learn flexible yet tractable probability models
- Problem Flexible probability models have an intractable normalizing constant, so training and sampling them usually needs costly Monte Carlo procedures.
- Method The authors corrupt data with a fixed forward diffusion that slowly erases structure, then learn the reverse steps that restore it as the generative model.
- Results On CIFAR-10, the lower bound K reached 5.4 ± 0.2 bits per pixel.
Why flexible models stay hard to use
Probabilistic models have long been forced to trade tractability against flexibility. Simple families such as a Gaussian or Laplace are easy to evaluate and fit, but they can't capture structure in rich datasets. A flexible family can be built from any non-negative function as \(p(x)=\varphi(x)/Z\), but the normalizing constant Z is generally intractable.
Training, evaluating or sampling such models therefore usually calls for an expensive Monte Carlo procedure.
Analytic approximations soften this trade-off without removing it, including mean field theory, variational Bayes, contrastive divergence and score matching. The question the authors take up is whether one model family can be flexible and tractable at once.
The key idea: corrupt the data, then learn the reverse
The central idea is to push data through a fixed forward chain that erases its structure, then learn a reverse chain that rebuilds it. The reverse chain is the generative model itself, so the authors define the model as the endpoint of a Markov chain rather than use the chain only to approximate a model defined elsewhere. The authors expected this to be easier than specifying one normalized density, because small corrections to a known diffusion are easier to fit than a single potential function whose normalization is hard.
Every forward step has an analytically evaluable probability, so the whole chain can be evaluated in closed form.
A diffusion exists for any smooth target distribution, so the authors argue the approach can capture data of arbitrary form. The idea draws on non-equilibrium physics and annealed importance sampling, which move samples through a sequence of intermediate distributions.
Where this sits against earlier generative methods
Earlier variational work trains a generative model and an inference model against each other, using a bound close to the one used here. The authors differ in two respects: they fix the forward process to a simple form, so the reverse keeps that form, and they train models with thousands of steps rather than a handful of layers. Adversarial networks, by contrast, train a generator against a classifier that tries to tell generated samples from real data.
Here the model is a chain of many small learned steps, so each step stays simple.
Building the forward and reverse chains
The forward chain starts from the data distribution \(q(x^{(0)})\) and applies T steps of a kernel \(q(x^{(t)}|x^{(t-1)})\) that has a simple form. In the experiments that kernel is either Gaussian diffusion into an identity-covariance Gaussian, or binomial diffusion into an independent binomial distribution. The full forward trajectory is the data distribution times the product of the step kernels, \(q(x^{(0\cdots T)})=q(x^{(0)})\prod_{t=1}^{T}q(x^{(t)}|x^{(t-1)})\).
The reverse chain starts from \(\pi(x^{(T)})\) and steps back through learned transitions \(p(x^{(t-1)}|x^{(t)})\). For continuous diffusion with small steps, the reverse of each step has the same functional form as the forward kernel, so the learned transition can stay in the same family. Only the mean and covariance of each Gaussian step, or the bit-flip probability of each binomial step, need to be estimated.
Multi-layer perceptrons produce \(f_\mu\), \(f_\Sigma\) and \(f_b\) as functions of \(x^{(t)}\) and t. The authors note that other regression methods would fit too, but every result in the paper uses multi-layer perceptrons.
Generating a sample means drawing from the noise distribution and running the learned reverse steps. The cost of running the algorithm is the cost of these functions multiplied by the number of time steps.
Training with a lower bound on the likelihood
Maximizing the log likelihood directly needs an integral over all intermediate states, and that integral is intractable. Jensen's inequality gives a lower bound K, and for these trajectories K reduces to the expression below. \[K = -\sum_{t=2}^{T}\int dx^{(0)}dx^{(t)}\,q(x^{(0)},x^{(t)})\,D_{KL}\big(q(x^{(t-1)}|x^{(t)},x^{(0)})\,\|\,p(x^{(t-1)}|x^{(t)})\big) + H_q(X^{(T)}|X^{(0)}) - H_q(X^{(1)}|X^{(0)}) - H_p(X^{(T)})\] The KL term enters with a minus sign, so maximizing K pulls each learned reverse step toward the forward posterior given \(x^{(0)}\).
When the forward and reverse trajectories are identical, as with infinitesimal steps, the inequality becomes an equality and one forward sample suffices.
For Gaussian diffusion the authors learn the forward schedule \(\beta_{2\cdots T}\) by gradient ascent on K, while the first step's variance \(\beta_1\) is fixed to a small constant to prevent overfitting. Gradient ascent works with frozen noise, which treats the sampled noise as an auxiliary variable held constant during differentiation.
Binomial diffusion can't use that device, because its discrete state space makes gradient ascent with frozen noise impossible. The binomial schedule instead erases a constant fraction 1/T of the signal at each step, giving \(\beta_t=(T-t+1)^{-1}\). A footnote reports that recent experiments found the same fixed schedule as binomial diffusion works about as well for the Gaussian case.
Conditioning by multiplying distributions
Denoising and inpainting need the model distribution multiplied by a second function r, giving \(\tilde p(x^{(0)})\propto p(x^{(0)})\,r(x^{(0)})\). Many techniques find this multiplication costly, but for a diffusion model it can be done one step at a time. The authors multiply every intermediate marginal by a matching \(r(x^{(t)})\), and each reverse kernel is adjusted to match.
For Gaussian steps, which are sharply peaked, a smooth r acts as a small perturbation that shifts the mean without changing the normalization. When r can be multiplied in closed form with a Gaussian or binomial distribution, as with a delta function on observed coordinates, it multiplies exactly into the reverse kernel. The experiments choose r to be constant, equal to \(r(x^{(0)})\) at every step.
Toy and binary results
On a two-dimensional swiss roll, the lower bound K reached 2.35 bits on a holdout set, an improvement of 6.45 bits over the isotropic Gaussian null. The authors use the swiss roll as a visual check, since the reverse trajectory turns the identity-covariance Gaussian back into the spiral.
On Binary Heartbeat, K was -2.414 bits per sequence, while the true log likelihood is -2.322 bits per sequence.
Image results on CIFAR-10, dead leaves and MNIST
On CIFAR-10 the lower bound K was 5.4 ± 0.2 bits per pixel, an improvement of 11.5 ± 0.2 bits per pixel over the null model. An earlier version reported higher values because the model had learned the 8-bit quantization of pixel values, so the reported bounds add uniform noise first. The same model denoises corrupted holdout images by sampling from the posterior conditioned on them, using Gaussian noise of variance 1.
On dead leaf images K was 1.489 bits per pixel, compared to 1.244 for MCGSM. That comparison is only against MCGSM, which the authors call the previous state of the art for this data, trained on identical data.
On MNIST the Parzen-window estimate was 317 ± 2.7 bits, compared to 325 ± 2.9 for adversarial nets and 309 ± 1.6 for Deep GSN. So the diffusion model lands between those two, and the authors describe it as comparable to other recent techniques.
Bark inpainting as a posterior example
A model trained on bark texture images reached K = -0.55 bits per pixel, an improvement of 1.5 bits per pixel over the isotropic Gaussian null. To test posterior sampling, the authors replace the central 100×100 pixel region with isotropic Gaussian noise. They then sample the missing region from the posterior conditioned on the rest of the image, with r set to a delta function on known pixels and a constant on the missing ones.
The inpainted region continues a crack that enters from the left, which the authors read as long-range spatial structure.
Limitations
The CIFAR-10 numbers are bounds on data with uniform noise added, because the earlier version fit the 8-bit quantization. MNIST is the one comparison that depends on Parzen-window estimates from samples, so it isn't a bound-to-bound comparison. The reported values are lower bounds that are asymptotically consistent, not exact log likelihoods.
Gradient ascent with frozen noise can't be used for binomial diffusion, so its schedule is a fixed rule. All results use multi-layer perceptrons for the reverse functions, and the paper does not test other regression methods. Dead leaves is compared against one prior model, and the toy experiments use only two-dimensional or binary data.
Paper info
- Authors
- Jascha Sohl-Dickstein, Eric A. Weiss, Niru Maheswaranathan, Surya Ganguli
- Venue
- arXiv · Preprint
- First published
- 2015-3-12
- Added
- 2026-11-6
- Updated
- 2015-11-18
- Version
- v8
- arXiv
- 1503.03585
- Category
- cs.LG · cond-mat.dis-nn · q-bio.NC · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Jascha Sohl-Dickstein, Eric A. Weiss, Niru Maheswaranathan, Surya Ganguli (2015). Deep Unsupervised Learning using Nonequilibrium Thermodynamics. arXiv:1503.03585v8. https://arxiv.org/abs/1503.03585v8
BibTeX
@misc{sohldickstein2015deep,
title = {{Deep Unsupervised Learning using Nonequilibrium Thermodynamics}},
author = {Jascha Sohl-Dickstein and Eric A. Weiss and Niru Maheswaranathan and Surya Ganguli},
year = {2015},
eprint = {1503.03585},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1503.03585v8}
}