Papers › Categorical Reparameterization with Gumbel-Softmax

Categorical Reparameterization with Gumbel-Softmax

3 Nov 2016arXiv:1611.01144archive 2025-07-28

Eric Jang, Shixiang Gu, Ben Poole

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1611.01144")

Code

Syntology Ran 12 of 14 code samples harvested from 8 repositories linked to this paper; 2 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: community (archive-listed): 14 samples from 8 repositories, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

20 repositories listed; official and paper-mentioned ones first.

AntixK/PyTorch-VAE mentioned on GitHubpytorchApache-2.0 report
EddieCunningham/GraphLSSM mentioned on GitHub report
EdoardoBotta/Gaussian-Mixture-VAE mentioned on GitHubpytorch report
GuyLor/direct_vae mentioned on GitHubpytorch report
Jmkernes/PAR-Transformer-XL mentioned on GitHubtf report
OlivierAlgoet/Tensorflow2-GMM mentioned on GitHubtf report
caravagn/GDA mentioned on GitHub report
chijames/gst mentioned on GitHubpytorch report
crowdflowTUe/stampnet mentioned on GitHubtfBSD-3-Clause report
ericjang/gumbel-softmax mentioned on GitHub report
hellolzc/SBN_gumbel mentioned on GitHubpytorch report
jariasf/gmvae mentioned on GitHubpytorch report
kampta/pytorch-distributions mentioned on GitHubpytorch report
karpathy/deep-vector-quantization mentioned on GitHubpytorch report
shaabhishek/gumbel-softmax-pytorch mentioned on GitHubpytorch report
tensorflow/models mentioned on GitHubtf report
tensorflow/models mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 12 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran · our draft was wrong
1ran · fixture could not drive it
4ran
2unverified

Licence: 8 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 8 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

GMM OlivierAlgoet/Tensorflow2-GMM/src/GMM.py community (archive-listed) ran MIT (permissive) · dd897049a427c55d · report
GumbelQuantize karpathy/deep-vector-quantization/dvq/model/quantize.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 59b2d207600a31bf · report
GumbelSoftmax jariasf/gmvae/pytorch/networks/Layers.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 3181ff255bf198ec · report
VAE kampta/pytorch-distributions/concrete_vae.py community (archive-listed) ran no licence file found · pointer only · e87691ecef7118db · report
_gumbel_softmax_sample hellolzc/SBN_gumbel/gumbel_sigmoid_softmax.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · a41fecd8dcdc493a · report
_sample_gumbel hellolzc/SBN_gumbel/gumbel_sigmoid_softmax.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 82f3a84259b22b4c · report
convert_to_one_hot chijames/gst/model/basic.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · ddba371fd54afdd0 · report
gumbel_softmax hellolzc/SBN_gumbel/gumbel_sigmoid_softmax.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · ae5d3a400d0e7968 · report
gumbel_softmax_sample EdoardoBotta/Gaussian-Mixture-VAE/distributions/gumbel.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d069f664a7cf326c · report
masked_softmax chijames/gst/model/basic.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · c8b051f5575732d3 · report
sample_gumbel EdoardoBotta/Gaussian-Mixture-VAE/distributions/gumbel.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 0df9e0f36c21548a · report
st_gumbel_softmax chijames/gst/model/basic.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 878b0d58fc1d164a · report
GSM_VAE GuyLor/direct_vae/discrete_vae/GSM.py community (archive-listed) unverified no licence file found · pointer only · 97c545c491659a35 · report
VAE GuyLor/direct_vae/discrete_vae/GSM.py community (archive-listed) unverified no licence file found · pointer only · 1e08ae9c81b34087 · report

Tasks

General Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Gumbel Softmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections