LGMLNov 21, 2023

Differentiable Sampling of Categorical Distributions Using the CatLog-Derivative Trick

arXiv:2311.12569v115 citationsh-index: 11
Originality Highly original
AI Analysis

This addresses a bottleneck in learning with discrete latent variables for researchers in machine learning, offering a novel method that improves upon existing gradient estimators.

The paper tackled the problem of gradient estimation for categorical distributions in discrete latent variable models by introducing the CatLog-Derivative trick and IndeCateR, an unbiased gradient estimator with provably lower variance than REINFORCE, showing empirically that it reduces bias and variance significantly for the same sample count.

Categorical random variables can faithfully represent the discrete and uncertain aspects of data as part of a discrete latent variable model. Learning in such models necessitates taking gradients with respect to the parameters of the categorical probability distributions, which is often intractable due to their combinatorial nature. A popular technique to estimate these otherwise intractable gradients is the Log-Derivative trick. This trick forms the basis of the well-known REINFORCE gradient estimator and its many extensions. While the Log-Derivative trick allows us to differentiate through samples drawn from categorical distributions, it does not take into account the discrete nature of the distribution itself. Our first contribution addresses this shortcoming by introducing the CatLog-Derivative trick - a variation of the Log-Derivative trick tailored towards categorical distributions. Secondly, we use the CatLog-Derivative trick to introduce IndeCateR, a novel and unbiased gradient estimator for the important case of products of independent categorical distributions with provably lower variance than REINFORCE. Thirdly, we empirically show that IndeCateR can be efficiently implemented and that its gradient estimates have significantly lower bias and variance for the same number of samples compared to the state of the art.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes