The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables
Chris J. MaddisonAndriy MnihYee Whye Teh
Proposes a continuous relaxation of discrete random variables that extends the reparameterization trick to discrete stochastic nodes, enabling efficient end-to-end gradient-based training of neural networks with discrete latent variables.
The paper introduces the Concrete distribution, a new family of continuous probability distributions on the simplex that serve as a practical relaxation of discrete random variables. The work addresses a core obstacle in training large neural networks that incorporate discrete stochastic nodes: standard automatic differentiation libraries cannot propagate low-variance gradients through discrete states, forcing practitioners to rely on high-variance score-function estimators or to forgo discrete variables altogether.
The authors set out to create a reparameterizable continuous surrogate that preserves the essential properties of any discrete distribution while allowing unbiased gradients with respect to a relaxed objective. Their approach begins with the Gumbel-Max trick for sampling discrete variables and replaces the non-differentiable argmax operation with a temperature-controlled softmax. The resulting Concrete random variable has a simple closed-form density, reduces exactly to the original discrete distribution in the zero-temperature limit, and can be sampled by adding fixed Gumbel noise to logits and applying a softmax. Experiments evaluated the method on density estimation and structured output prediction tasks using neural networks with hundreds of latent discrete nodes, trained on the MNIST and Omniglot datasets and compared against strong score-function baselines (VIMCO and NVIL).
The central empirical result is that Concrete relaxations produce competitive or superior test negative log-likelihoods on both tasks, often outperforming the baselines for non-linear models while requiring no custom gradient code. Linear models favored the score-function estimators, but the gap narrowed or reversed as model depth increased. Performance proved sensitive to the choice of temperature during training, with distinct temperatures for prior and posterior nodes yielding the best results; no annealing schedule was required. At test time the original discrete graph is evaluated, so the final model incurs no approximation error.
These findings matter because they let researchers incorporate discrete stochastic units—attractive for interpretability, sparsity, and structured reasoning—into end-to-end differentiable pipelines without sacrificing ease of implementation or incurring prohibitive variance. The method therefore broadens the set of architectures that can be trained at scale with off-the-shelf gradient descent.
The authors recommend replacing each discrete node with a Concrete node of fixed temperature during training, relaxing any log-probability terms that appear in the objective, and reverting to the discrete graph for evaluation. When further gains are desired, modest additional tuning of the two temperatures or exploration of temperature annealing schedules is likely to help. The main limitations are that the gradients remain biased with respect to the true discrete objective, that temperature selection remains an empirical hyper-parameter, and that the reported gains are demonstrated only on the two tasks and two datasets examined. Overall the evidence supports adoption of Concrete relaxations wherever discrete stochastic nodes are otherwise difficult to optimize.
- Paper: An Introduction to Variational Autoencoders, Diederik P. Kingma et al. (2019). Reading the foundational VAE and reparameterization work first provides the core variational inference framework and notation that the Concrete distribution builds upon.
- Paper: Categorical Reparameterization with Gumbel-Softmax, Eric Jang et al. (2017). Reviewing the Gumbel-Softmax method provides the primary alternative categorical relaxation technique, which makes understanding the Concrete distribution's formulation and design choices much clearer.
- Paper: Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions, Emiel Hoogeboom et al. (2021). This paper extends categorical relaxation and continuous reparameterization ideas to richer generative architectures like flows and multinomial diffusion.
