Reparameterizable Subset Sampling via Continuous Relaxations

Sang Michael Xie, Stefano Ermon
1/29/2019
cs.LGstat.ML

Official code: ermongroup/subsets (58 stars, Python, last commit 2023-10-03).

Abstract

Many machine learning tasks require sampling a subset of items from a collection based on a parameterized distribution. The Gumbel-softmax trick can be used to sample a single item, and allows for low-variance reparameterized gradients with respect to the parameters of the underlying distribution.

Show full abstract

However, stochastic optimization involving subset sampling is typically not reparameterizable. To overcome this limitation, we define a continuous relaxation of subset sampling that provides reparameterization gradients by generalizing the Gumbel-max trick. We use this approach to sample subsets of features in an instance-wise feature selection task for model interpretability, subsets of neighbors to implement a deep stochastic k-nearest neighbors model, and sub-sequences of neighbors to implement parametric t-SNE by directly comparing the identities of local neighbors. We improve performance in all these tasks by incorporating subset sampling in end-to-end training.

View on arXivView PDF

Code Implementations(1)

ermongroup/subsetsOfficial100%

Code for Reparameterizable Subset Sampling via Continuous Relaxations, IJCAI 2019.

588Python, ShellMay 29, 20193 years ago

Similar Papers

Cite this paper

@article{xie2019reparameterizable,
  title  = {Reparameterizable Subset Sampling via Continuous Relaxations},
  author = {Sang Michael Xie and Stefano Ermon},
  year   = {2019},
  eprint = {1901.10517},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.10517}
}

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

Discussion