SIMPLE: A Gradient Estimator for k-Subset Sampling

Kareem Ahmed, Zhe Zeng, Mathias Niepert, Guy Van den Broeck
10/4/2022
cs.LGcs.AI

Official code: UCLA-StarAI/SIMPLE (11 stars, Jupyter Notebook, last commit 2024-08-08).

Abstract

$k$-subset sampling is ubiquitous in machine learning, enabling regularization and interpretability through sparsity. The challenge lies in rendering $k$-subset sampling amenable to end-to-end learning.

Show full abstract

This has typically involved relaxing the reparameterized samples to allow for backpropagation, with the risk of introducing high bias and high variance. In this work, we fall back to discrete $k$-subset sampling on the forward pass. This is coupled with using the gradient with respect to the exact marginals, computed efficiently, as a proxy for the true gradient. We show that our gradient estimator, SIMPLE, exhibits lower bias and variance compared to state-of-the-art estimators, including the straight-through Gumbel estimator when $k = 1$. Empirical results show improved performance on learning to explain and sparse linear regression. We provide an algorithm for computing the exact ELBO for the $k$-subset distribution, obtaining significantly lower loss compared to SOTA.

View on arXivView PDF

Code Implementations(1)

UCLA-StarAI/SIMPLEOfficial100%

SIMPLE: A Gradient Estimator for $k$-subset Sampling

110Jupyter Notebook, PythonOct 31, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{ahmed2022simple,
  title  = {SIMPLE: A Gradient Estimator for k-Subset Sampling},
  author = {Kareem Ahmed and Zhe Zeng and Mathias Niepert and Guy Van den Broeck},
  year   = {2022},
  eprint = {2210.01941},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01941}
}

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

Discussion