[Paper Review] Generalized Gumbel-Softmax Gradient Estimator for Generic Discrete Random Variables
This paper proposes Generalized Gumbel-Softmax (GenGS), a novel reparameterization gradient estimator that extends the Gumbel-Softmax trick to generic discrete distributions—beyond Bernoulli and categorical—by combining truncation, linear transformation, and continuous relaxation. Experiments on VAEs and topic models show GenGS achieves state-of-the-art performance with lower perplexity and more stable training compared to existing estimators.
Estimating the gradients of stochastic nodes in stochastic computational graphs is one of the crucial research questions in the deep generative modeling community, which enables the gradient descent optimization on neural network parameters. Stochastic gradient estimators of discrete random variables are widely explored, for example, Gumbel-Softmax reparameterization trick for Bernoulli and categorical distributions. Meanwhile, other discrete distribution cases such as the Poisson, geometric, binomial, multinomial, negative binomial, etc. have not been explored. This paper proposes a generalized version of the Gumbel-Softmax estimator, which is able to reparameterize generic discrete distributions, not restricted to the Bernoulli and the categorical. The proposed estimator utilizes the truncation of discrete random variables, the Gumbel-Softmax trick, and a special form of linear transformation. Our experiments consist of (1) synthetic examples and applications on VAE, which show the efficacy of our methods; and (2) topic models, which demonstrate the value of the proposed estimation in practice.
Motivation & Objective
- To address the lack of effective gradient estimators for generic discrete distributions such as Poisson, geometric, binomial, and negative binomial in deep generative models.
- To extend the Gumbel-Softmax reparameterization trick beyond Bernoulli and categorical distributions to broader discrete families.
- To enable stable and efficient backpropagation through stochastic computational graphs involving non-categorical discrete latent variables.
- To provide a probabilistically grounded, implementable method that supports both explicit and implicit posterior inference.
Proposed method
- Propose a generalized Gumbel-Softmax (GenGS) estimator that reparameterizes arbitrary discrete distributions via truncation of infinite supports.
- Apply a linear transformation to map the truncated discrete distribution into a form compatible with the Gumbel-Softmax relaxation.
- Use the Gumbel-Softmax trick to create a continuous relaxation of the discrete sampling process, enabling gradient backpropagation.
- Introduce truncation at a finite level to make the support computationally tractable while preserving distributional fidelity.
- Enable both explicit and implicit posterior inference through the structure of the transformed distribution.
- Leverage temperature annealing and multi-sample estimation to improve training stability in deep models.
Experimental results
Research questions
- RQ1Can the Gumbel-Softmax trick be generalized to discrete distributions beyond Bernoulli and categorical, such as Poisson and geometric?
- RQ2How can infinite-support discrete distributions be effectively reparameterized for differentiable optimization in deep generative models?
- RQ3Does the proposed GenGS estimator outperform existing gradient estimators in terms of training stability and model likelihood?
- RQ4Can GenGS be effectively applied to complex models like stacked variational autoencoders and topic models?
Key findings
- GenGS achieved the lowest perplexity on the 20Newsgroups dataset (562 ± 11.5) and RCV1 (576 ± 18.8) in multi-stacked topic modeling, outperforming all baselines.
- On the 1-Stacked 20Newsgroups setup, GenGS achieved a perplexity of 759 ± 13.1, significantly lower than the next best method (StoRB ∗ at 919 ± 16.2).
- In the multi-stacked RCV1 case, GenGS was the only estimator to converge stably, while others like RF*, NVIL, and MuProp failed to reach optimal performance.
- The use of temperature annealing and multi-sampling in GenGS improved training stability and likelihood optimization in deep hierarchical models.
- GenGS demonstrated consistent superiority across both synthetic VAE experiments and real-world topic modeling applications.
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.