Highlight

Categorical Reparameterization with Gumbel-Softmax

Introduces Gumbel-Softmax, a differentiable reparameterization enabling gradient-based training through categorical latent variables in neural networks.

Based on

Categorical Reparameterization with Gumbel-Softmax

By Eric Jang, S. Gu, Ben PooleInternational Conference on Learning Representations
Read original article →

Categorical variables are a natural way to represent discrete structure in the world, yet stochastic neural networks rarely use categorical latent variables because it is not possible to backpropagate through samples drawn from a categorical distribution. To overcome this, the paper presents an efficient gradient estimator that replaces the non-differentiable sample from a categorical distribution with a differentiable sample from a novel Gumbel-Softmax distribution, which has the essential property that it can be smoothly annealed into a categorical distribution.

The authors show that their Gumbel-Softmax estimator outperforms state-of-the-art gradient estimators on structured output prediction and unsupervised generative modeling tasks involving categorical latent variables, and that it enables large speedups on semi-supervised classification. By making discrete latent variables trainable end-to-end, the technique became a widely used building block for models that need differentiable sampling from categorical distributions.

Abstract

Categorical variables naturally represent discrete structure, but stochastic neural networks rarely use categorical latents because one cannot backpropagate through samples. This work presents an efficient gradient estimator that replaces the non-differentiable categorical sample with a differentiable sample from a novel Gumbel-Softmax distribution, which anneals smoothly toward a categorical distribution. It beats state-of-the-art gradient estimators on structured output prediction and unsupervised generative modeling with categorical latents, and speeds up semi-supervised classification.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

Gumbel-Softmaxreparameterizationcategorical latent variablesgradient estimationneural networksdiscrete variables
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.