Leveraging Recursive Gumbel-Max Trick for Approximate Inference in Combinatorial Spaces

Kirill Struminsky, Artyom Gadetsky, Denis Rakitin, Danil Karpushkin, Dmitry Vetrov
10/28/2021
cs.LG

Official code: RakitinDen/pytorch-recursive-gumbel-max-trick (14 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2021-12-11).

Abstract

Structured latent variables allow incorporating meaningful prior knowledge into deep learning models. However, learning with such variables remains challenging because of their discrete nature.

Show full abstract

Nowadays, the standard learning approach is to define a latent variable as a perturbed algorithm output and to use a differentiable surrogate for training. In general, the surrogate puts additional constraints on the model and inevitably leads to biased gradients. To alleviate these shortcomings, we extend the Gumbel-Max trick to define distributions over structured domains. We avoid the differentiable surrogates by leveraging the score function estimators for optimization. In particular, we highlight a family of recursive algorithms with a common feature we call stochastic invariant. The feature allows us to construct reliable gradient estimates and control variates without additional constraints on the model. In our experiments, we consider various structured latent variable models and achieve results competitive with relaxation-based counterparts.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Leveraging Recursive Gumbel-Max Trick for Approximate Inference in Combinatorial Spaces, NeurIPS 2021

140Jupyter Notebook, PythonOct 12, 20214 years agoApache-2.0
arborescencebinary-treediscrete-variablesexponential-distributiongradient-estimation+8 more

Similar Papers

Cite this paper

@article{struminsky2021leveraging,
  title  = {Leveraging Recursive Gumbel-Max Trick for Approximate Inference in Combinatorial Spaces},
  author = {Kirill Struminsky and Artyom Gadetsky and Denis Rakitin and Danil Karpushkin and Dmitry Vetrov},
  year   = {2021},
  eprint = {2110.15072},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.15072}
}

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/2110.15072.svg)](https://codeofpaper.com/paper/2110.15072)

Discussion