[Paper Review] Gradient Estimation with Stochastic Softmax Tricks
This paper introduces stochastic softmax tricks (SSTs), a unified framework for structured relaxations of combinatorial discrete distributions, generalizing the Gumbel-Softmax trick. By combining strongly convex regularizers with random linear objectives in perturbation models, SSTs enable low-variance, differentiable gradient estimation over complex combinatorial spaces such as subset selection, spanning trees, and arborescences, leading to improved performance and better discovery of latent structure in models like NRI and L2X.
The Gumbel-Max trick is the basis of many relaxed gradient estimators. These estimators are easy to implement and low variance, but the goal of scaling them comprehensively to large combinatorial distributions is still outstanding. Working within the perturbation model framework, we introduce stochastic softmax tricks, which generalize the Gumbel-Softmax trick to combinatorial spaces. Our framework is a unified perspective on existing relaxed estimators for perturbation models, and it contains many novel relaxations. We design structured relaxations for subset selection, spanning trees, arborescences, and others. When compared to less structured baselines, we find that stochastic softmax tricks can be used to train latent variable models that perform better and discover more latent structure.
Motivation & Objective
- To address the challenge of scalable, low-variance gradient estimation for discrete distributions over large combinatorial state spaces in deep learning.
- To unify existing relaxed gradient estimators—like Gumbel-Softmax—within a single framework applicable to structured combinatorial distributions.
- To design novel, structured relaxations for combinatorial objects such as subsets, spanning trees, and arborescences using perturbation models.
- To improve the performance and interpretability of latent variable models by enabling better discovery of underlying combinatorial structure.
- To provide a general, differentiable framework that extends the Gumbel-Max trick beyond one-hot vectors to richer combinatorial sets.
Proposed method
- The method introduces stochastic softmax tricks (SSTs) as a generalization of the Gumbel-Softmax by combining a random linear objective with a strongly convex regularizer to produce a continuous, differentiable solution.
- SSTs are built within the perturbation model framework, where a discrete distribution over a finite set 𝒳 is induced by optimizing a random utility U over 𝒳.
- The relaxation is achieved by solving a convex optimization problem that continuously approximates the discrete argmax solution within the convex hull of 𝒳.
- The framework supports structured representations (e.g., binary edge indicators for spanning trees) rather than full one-hot encodings, improving scalability.
- The method enables reparameterization gradients via backpropagation through the continuous relaxation, allowing end-to-end training of models with combinatorial latent variables.
- The approach generalizes the Gumbel-Softmax as a special case when the regularizer is the negative logit of a Gumbel distribution.
Experimental results
Research questions
- RQ1Can we generalize the Gumbel-Softmax trick to structured combinatorial distributions like spanning trees and subset selections?
- RQ2How can we design a unified framework for relaxed gradient estimation over diverse combinatorial spaces?
- RQ3Does using structured relaxations lead to better discovery of latent structure in variational models compared to unstructured baselines?
- RQ4Can SSTs improve performance and interpretability in models such as Neural Relational Inference (NRI) and L2X?
- RQ5What is the impact of different regularizers and structured representations on gradient variance and model convergence?
Key findings
- SSTs enable low-variance, differentiable gradient estimation for combinatorial distributions such as subset selection, spanning trees, and arborescences.
- The framework generalizes the Gumbel-Softmax and includes novel relaxations not previously available for structured combinatorial spaces.
- In the NRI and L2X frameworks, models using SSTs discovered more accurate and interpretable latent structures than unstructured baselines.
- Trained models with SSTs achieved stronger performance on downstream tasks, particularly when the true latent structure matched the model’s inductive bias.
- The use of structured representations (e.g., edge indicators instead of one-hot vectors) significantly improved scalability and efficiency over full combinatorial enumeration.
- Hyperparameter tuning via random search identified optimal learning rates, weight decay, and temperature values, with best models selected based on validation performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.