Categorical Reparameterization with Gumbel-Softmax

Eric Jang, Shixiang Gu, Ben Poole
11/3/2016
6,977 citations
stat.MLcs.LG

No official code found. Best implementation: Jasonlee1995/Gumbel_Softmax (11 stars). 1 more below.

Abstract

Categorical variables are a natural choice for representing discrete structure in the world. However, stochastic neural networks rarely use categorical latent variables due to the inability to backpropagate through samples.

Show full abstract

In this work, we present an efficient gradient estimator that replaces the non-differentiable sample from a categorical distribution with a differentiable sample from a novel Gumbel-Softmax distribution. This distribution has the essential property that it can be smoothly annealed into a categorical distribution. We show that our Gumbel-Softmax estimator outperforms state-of-the-art gradient estimators on structured output prediction and unsupervised generative modeling tasks with categorical latent variables, and enables large speedups on semi-supervised classification.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Jasonlee1995/Gumbel_SoftmaxCommunity11–––
EdoardoBotta/Gaussian-Mixture-VAECommunity7–––

Unofficial Pytorch implementation of the paper 'Categorical Reparameterization with Gumbel-Softmax' and 'The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables'

111

[Pytorch] Minimal implementation of a Variational Autoencoder (VAE) with Categorical Latent variables inspired from "Categorical Reparameterization with Gumbel-Softmax".

72

Similar Papers

Cite this paper

@article{jang2016categorical,
  title  = {Categorical Reparameterization with Gumbel-Softmax},
  author = {Eric Jang and Shixiang Gu and Ben Poole},
  year   = {2016},
  eprint = {1611.01144},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1611.01144}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1611.01144.svg)](https://codeofpaper.com/paper/1611.01144)

Discussion