mlsanityData to 14 Oct 2026

Differentiable Sampling of Categorical Distributions Using the CatLog-Derivative Trick

arXiv 2311.12569 ↗First posted 21 Nov 2023cs.LG stat.MLcited by 14

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 33 of its 53 references that are in the map. First posted on arXiv 21 Nov 2023.

Builds on

33 of 53 references.

References · 33

  1. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  2. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  3. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
  4. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
  5. 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
  6. 2013Black Box Variational Inferencecited by 319
  7. 2019Monte Carlo Gradient Estimation in Machine Learningcited by 283
  8. 2017Neural-Symbolic Learning and Reasoning: A Survey and Interpretationcited by 196
  9. 2016Discrete Variational Autoencoderscited by 125
  10. 2014Neural Variational Inference and Learning in Belief Networkscited by 117
  11. 2017Backpropagation through the Void: Optimizing control variates for black-box gradient estimationcited by 106
  12. 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 98
21 more
  1. 2016Variational inference for Monte Carlo objectivescited by 84
  2. 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
  3. 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 79
  4. 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 75
  5. 2013Deep AutoRegressive Networkscited by 61
  6. 2018Memory Augmented Policy Optimization for Program Synthesis and Semantic Parsingcited by 57
  7. 2015MuProp: Unbiased Backpropagation for Stochastic Neural Networkscited by 37
  8. 2020Rao-Blackwellizing the Straight-Through Gumbel-Softmax Gradient Estimatorcited by 37
  9. 2020Estimating Gradients for Discrete Random Variables by Sampling without Replacementcited by 31
  10. 2016The Generalized Reparameterization Gradientcited by 30
  11. 2020DisARM: An Antithetic Gradient Estimator for Binary Latent Variablescited by 28
  12. 2023Neural Probabilistic Logic Programming in Discrete-Continuous Domainscited by 25
  13. 2018Rao-Blackwellized Stochastic Gradients for Discrete Distributionscited by 24
  14. 2022Gradient Estimation with Discrete Stein Operatorscited by 23
  15. 2020Probabilistic Best Subset Selection via Gradient-Based Optimizationcited by 17
  16. 2019ARSM: Augment-REINFORCE-Swap-Merge Estimator for Gradient Backpropagation Through Categorical Variablescited by 10
  17. 2021ARMS: Antithetic-REINFORCE-Multi-Sample Gradient for Binary Variablescited by 9
  18. 2021Coupled Gradient Estimators for Discrete Latent Variablescited by 9
  19. 2021Double Control Variates for Gradient Estimation in Discrete Latent Variable Modelscited by 9
  20. 2021CARMS: Categorical-Antithetic-REINFORCE Multi-Sample Gradient Estimatorcited by 4
  21. 2019Direct Policy Gradients: Direct Optimization of Policies in Discrete Action Spacescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 5; 2026: 3.

14 papers.

Sort:

By area: