GradInf: Gradient Estimation as Probabilistic Inference
Not on the map. Why?
Abstract (arXiv)
Gradient estimation -- the task of computing the gradient of the expected value of a probabilistic program -- has diverse applications in scientific computing, but is notoriously difficult because of issues such as high-dimensional integration, discrete random choices, and complex stochastic dependencies. This article introduces gradient inference, a new approach to developing sound and efficient gradient estimators for probabilistic programs. Gradient inference rests on a formal reduction from a gradient estimation problem to a closely related probabilistic inference problem, whose solution can be differentiated to obtain a gradient estimator. This inference problem is obtained by applying two powerful statistical operations -- coupling and factorization -- to the input probabilistic program. Our reduction lets us leverage the rich toolkit of probabilistic inference algorithms to design novel gradient estimators that extend and improve upon existing methods. We introduce GradInf, a probabilistic programming system that facilitates the sound and automated implementation of gradient inference. GradInf is centered around programmable source-to-source transformations for coupling and factorizing higher-order probabilistic programs, whose soundness is proven in terms of a denotational semantics. Key to our development is the use of information-flow typing to allow random choices in a probabilistic program to be factored out and partially evaluated, which improves our ability to deploy sophisticated probabilistic inference algorithms. The resulting system offers practitioners a principled framework for designing gradient estimators. We apply GradInf to several challenging case studies, showing that it can express prominent gradient estimators from the literature and enables the construction of new state-of-the-art estimators that outperform the best existing baselines.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 39 of its 87 references that are in the map. First posted on arXiv 8 Jul 2026.
Builds on
39 of 87 references.
References · 39
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2015Automatic differentiation in machine learning: a surveycited by 846
- 2018Pyro: Deep Universal Probabilistic Programmingcited by 379
- 2019Monte Carlo Gradient Estimation in Machine Learningcited by 281
- 2015Gradient Estimation Using Stochastic Computation Graphscited by 120
- 2017TensorFlow Distributionscited by 105
- 2017Variational Sequential Monte Carlocited by 93
- 2017Filtering Variational Objectivescited by 91
- 2016Variational inference for Monte Carlo objectivescited by 83
- 2014Reweighted Wake-Sleepcited by 66
- 2022Automatic Differentiation of Programs with Discrete Randomnesscited by 28
27 more
- 2020DisARM: An Antithetic Gradient Estimator for Binary Latent Variablescited by 27
- 2022Differentiable Rendering of Neural SDFs through Reparameterizationcited by 26
- 2018Rao-Blackwellized Stochastic Gradients for Discrete Distributionscited by 23
- 2020On Correctness of Automatic Differentiation for Non-Differentiable Functionscited by 20
- 2020SPPL: Probabilistic Programming with Fast Exact Symbolic Inferencecited by 18
- 2017A Convenient Category for Higher-Order Probability Theorycited by 14
- 2019Credit Assignment Techniques in Stochastic Computation Graphscited by 14
- 2020Correctness of Automatic Differentiation via Diffeologies and Categorical Gluingcited by 11
- 2021Storchastic: A Framework for General Stochastic Automatic Differentiationcited by 11
- 2022ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programscited by 11
- 2017Denotational validation of higher-order Bayesian inferencecited by 9
- 2020Maximal couplings of the Metropolis-Hastings algorithmcited by 7
- 2022Gradient Estimation for Binary Latent Variables via Gradient Variance Clippingcited by 7
- 2020On the Versatility of Open Logical Relations: Continuity, Automatic Differentiation, and a Containment Theoremcited by 5
- 2020Conditional independence by typingcited by 5
- 2022Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inferencecited by 5
- 2024Probabilistic Programming with Programmable Variational Inferencecited by 4
- 2018A Separation Logic for Concurrent Randomized Programscited by 3
- 2018Probabilistic Programming with Densities in SlicStan: Efficient, Flexible and Deterministiccited by 3
- 2015Relational reasoning via probabilistic couplingcited by 2
- 2023Fast and Correct Gradient-Based Optimisation for Probabilistic Programming via Smoothingcited by 2
- 2025Tuning Random Generators: Property-Based Testing as Probabilistic Programmingcited by 2
- 2016Coupling proofs are probabilistic product programscited by 1
- 2018Relational Reasoning for Markov Chains in a Probabilistic Guarded Lambda Calculuscited by 1
- 2018Formal verification of higher-order probabilistic programscited by 1
- 2023Asynchronous Probabilistic Couplings in Higher-Order Separation Logiccited by 1
- 2024Approximate Relational Reasoning for Higher-Order Probabilistic Programscited by 1
Built on by
Not cited yet.