Differentiable Sampling of Categorical Distributions Using the CatLog-Derivative Trick
Lennert De Smet, Emanuele Sansone, Pedro Zuidberg Dos Martires
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Data-Efficient Learning with Neural Programs 引用了 Scallop: From Probabilistic Deductive Databases to Scalable Differentiable Reasoning
- Relational Neurosymbolic Markov Models 引用了 Scallop: From Probabilistic Deductive Databases to Scalable Differentiable Reasoning
- On the Hardness of Probabilistic Neurosymbolic Learning 引用了 Scallop: From Probabilistic Deductive Databases to Scalable Differentiable Reasoning
- VarGrad: A Low-Variance Gradient Estimator for Variational Inference 引用了 Estimating Gradients for Discrete Random Variables by Sampling without Replacement
- Implicit MLE: Backpropagating Through Discrete Exponential Family Distributions 引用了 Estimating Gradients for Discrete Random Variables by Sampling without Replacement
- Neurosymbolic Diffusion Models 引用了 Relational Neurosymbolic Markov Models
- Neurosymbolic Diffusion Models 引用了 On the Hardness of Probabilistic Neurosymbolic Learning
- Neurosymbolic Diffusion Models 引用了 Implicit MLE: Backpropagating Through Discrete Exponential Family Distributions
引用它的顶会 Paper10
- Neurosymbolic Diffusion ModelsEmile van Krieken, Pasquale Minervini, Edoardo Maria Ponti, Antonio VergariNeurIPS 2025 · 12 次引用
- Data-Efficient Learning with Neural ProgramsAlaia Solko-Breslin, Seewon Choi, Ziyang Li, Neelay Velingker 等NeurIPS 2024 · 10 次引用
- On the Hardness of Probabilistic Neurosymbolic LearningJaron Maene, Vincent Derkinderen, Luc De RaedtICML 2024 · 6 次引用
- Generalizing Stochastic Smoothing for Differentiation and Gradient EstimationFelix Petersen, Christian Borgelt, Aashwin Mishra, Stefano ErmonICML 2026 · 4 次引用
- Relational Neurosymbolic Markov ModelsLennert De Smet, Gabriele Venturato, Luc De Raedt, Giuseppe MarraAAAI 2025 · 3 次引用
它引用的 Paper9
- On the Noisy Gradient Descent that Generalizes as SGDJingfeng Wu, Wenqing Hu, Haoyi Xiong, Jun Huan 等ICML 2020 · 125 次引用
- Implicit MLE: Backpropagating Through Discrete Exponential Family DistributionsMathias Niepert, Pasquale Minervini, Luca FranceschiNeurIPS 2021 · 121 次引用
- Scallop: From Probabilistic Deductive Databases to Scalable Differentiable ReasoningJiani Huang, Ziyang Li, Binghong Chen, Karan Samel 等NeurIPS 2021 · 101 次引用
- VarGrad: A Low-Variance Gradient Estimator for Variational InferenceLorenz Richter, Ayman Boustati, Nikolas Nüsken, Francisco J. R. Ruiz 等NeurIPS 2020 · 90 次引用
- Estimating Gradients for Discrete Random Variables by Sampling without ReplacementWouter Kool, Herke van Hoof, Max WellingICLR 2020 · 59 次引用
相关 Paper
- Coupled Gradient Estimators for Discrete Latent VariablesZhe Dong, Andriy Mnih, George TuckerNeurIPS 2021 · 14 次引用
- CARMS: Categorical-Antithetic-REINFORCE Multi-Sample Gradient EstimatorAlek Dimitriev, Mingyuan ZhouNeurIPS 2021 · 10 次引用
- Categorical Reparameterization with Denoising Diffusion ModelsSamson Gourevitch, Alain Oliviero Durmus, Eric Moulines, Jimmy Olsson 等ICML 2026 · 1 次引用
- Beyond Softmax: A Natural Parameterization for Categorical Random VariablesAlessandro Manenti, Cesare AlippiICML 2026
- Gradient Estimation with Discrete Stein OperatorsJiaxin Shi, Yuhao Zhou, Jessica Hwang, Michalis K. Titsias 等NeurIPS 2022 · 27 次引用
