Differentiable Sampling of Categorical Distributions Using the CatLog-Derivative Trick
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
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2013Black Box Variational Inferencecited by 319
- 2019Monte Carlo Gradient Estimation in Machine Learningcited by 283
- 2017Neural-Symbolic Learning and Reasoning: A Survey and Interpretationcited by 196
- 2016Discrete Variational Autoencoderscited by 125
- 2014Neural Variational Inference and Learning in Belief Networkscited by 117
- 2017Backpropagation through the Void: Optimizing control variates for black-box gradient estimationcited by 106
- 2021Implicit MLE: Backpropagating Through Discrete Exponential Family Distributionscited by 98
21 more
- 2016Variational inference for Monte Carlo objectivescited by 84
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 79
- 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 75
- 2013Deep AutoRegressive Networkscited by 61
- 2018Memory Augmented Policy Optimization for Program Synthesis and Semantic Parsingcited by 57
- 2015MuProp: Unbiased Backpropagation for Stochastic Neural Networkscited by 37
- 2020Rao-Blackwellizing the Straight-Through Gumbel-Softmax Gradient Estimatorcited by 37
- 2020Estimating Gradients for Discrete Random Variables by Sampling without Replacementcited by 31
- 2016The Generalized Reparameterization Gradientcited by 30
- 2020DisARM: An Antithetic Gradient Estimator for Binary Latent Variablescited by 28
- 2023Neural Probabilistic Logic Programming in Discrete-Continuous Domainscited by 25
- 2018Rao-Blackwellized Stochastic Gradients for Discrete Distributionscited by 24
- 2022Gradient Estimation with Discrete Stein Operatorscited by 23
- 2020Probabilistic Best Subset Selection via Gradient-Based Optimizationcited by 17
- 2019ARSM: Augment-REINFORCE-Swap-Merge Estimator for Gradient Backpropagation Through Categorical Variablescited by 10
- 2021ARMS: Antithetic-REINFORCE-Multi-Sample Gradient for Binary Variablescited by 9
- 2021Coupled Gradient Estimators for Discrete Latent Variablescited by 9
- 2021Double Control Variates for Gradient Estimation in Discrete Latent Variable Modelscited by 9
- 2021CARMS: Categorical-Antithetic-REINFORCE Multi-Sample Gradient Estimatorcited by 4
- 2019Direct Policy Gradients: Direct Optimization of Policies in Discrete Action Spacescited by 3
Built on by
Citing papers per year: 2024: 6; 2025: 5; 2026: 3.
14 papers.
Sort:
By area:
- 2025Neurosymbolic Diffusion Modelscited by 13
- 2025A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfactioncited by 11
- 2024ULLER: A Unified Language for Learning and Reasoningcited by 9
- 2024On the Hardness of Probabilistic Neurosymbolic Learningcited by 9
- 2024Data-Efficient Learning with Neural Programscited by 7
- 2024Dolphin: A Programmable Framework for Scalable Neurosymbolic Learningcited by 5
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
- 2024Revisiting Score Function Estimators for k-Subset Samplingcited by 1
- 2025The Gradient of Algebraic Model Countingcited by 1
- 2025CTSketch: Compositional Tensor Sketching for Scalable Neurosymbolic Learningcited by 1
- 2025Zero-Variance Gradients for Variational Autoencoderscited by 1
- 2026EM-NeSy: Expectation Maximization for Neurosymbolic Learningcited by 0
2 more
- 2026Variance-Optimal Control Variates for Learning with Black-box Feedback3 Oct 2026
- 2026Parallel Noising in Neural Markov Logic Networks21 Jul 2026
- 2026EM-NeSy: Expectation Maximization for Neurosymbolic Learning12 Jun 2026
- 2025Zero-Variance Gradients for Variational Autoencoders5 Aug 2025
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025CTSketch: Compositional Tensor Sketching for Scalable Neurosymbolic Learning31 Mar 2025
- 2025A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfaction25 Mar 2025
- 2025The Gradient of Algebraic Model Counting25 Feb 2025
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning4 Oct 2024
- 2024Revisiting Score Function Estimators for k-Subset Sampling22 Jul 2024
- 2024Data-Efficient Learning with Neural Programs10 Jun 2024
2 more
- 2024On the Hardness of Probabilistic Neurosymbolic Learning6 Jun 2024
- 2024ULLER: A Unified Language for Learning and Reasoning1 May 2024
- 2025Neurosymbolic Diffusion Modelscited by 13
- 2024On the Hardness of Probabilistic Neurosymbolic Learningcited by 9
- 2024Dolphin: A Programmable Framework for Scalable Neurosymbolic Learningcited by 5
- 2026EM-NeSy: Expectation Maximization for Neurosymbolic Learningcited by 0
- 2026EM-NeSy: Expectation Maximization for Neurosymbolic Learning12 Jun 2026
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2024Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning4 Oct 2024
- 2024On the Hardness of Probabilistic Neurosymbolic Learning6 Jun 2024
- 2026Parallel Noising in Neural Markov Logic Networkscited by 0
- 2026Parallel Noising in Neural Markov Logic Networks21 Jul 2026
- 2025A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfactioncited by 11
- 2024ULLER: A Unified Language for Learning and Reasoningcited by 9
- 2024Data-Efficient Learning with Neural Programscited by 7
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimationcited by 4
- 2024Revisiting Score Function Estimators for k-Subset Samplingcited by 1
- 2025The Gradient of Algebraic Model Countingcited by 1
- 2025CTSketch: Compositional Tensor Sketching for Scalable Neurosymbolic Learningcited by 1
- 2025Zero-Variance Gradients for Variational Autoencoderscited by 1
- 2026Variance-Optimal Control Variates for Learning with Black-box Feedbackcited by 0
- 2026Variance-Optimal Control Variates for Learning with Black-box Feedback3 Oct 2026
- 2025Zero-Variance Gradients for Variational Autoencoders5 Aug 2025
- 2025CTSketch: Compositional Tensor Sketching for Scalable Neurosymbolic Learning31 Mar 2025
- 2025A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfaction25 Mar 2025
- 2025The Gradient of Algebraic Model Counting25 Feb 2025
- 2024Generalizing Stochastic Smoothing for Differentiation and Gradient Estimation10 Oct 2024
- 2024Revisiting Score Function Estimators for k-Subset Sampling22 Jul 2024
- 2024Data-Efficient Learning with Neural Programs10 Jun 2024
- 2024ULLER: A Unified Language for Learning and Reasoning1 May 2024