Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference
Not on the map. Why?
Abstract (arXiv)
We present a static analysis for discovering differentiable or more generally smooth parts of a given probabilistic program, and show how the analysis can be used to improve the pathwise gradient estimator, one of the most popular methods for posterior inference and model learning. Our improvement increases the scope of the estimator from differentiable models to non-differentiable ones without requiring manual intervention of the user; the improved estimator automatically identifies differentiable parts of a given probabilistic program using our static analysis, and applies the pathwise gradient estimator to the identified parts while using a more general but less efficient estimator, called score estimator, for the rest of the program. Our analysis has a surprisingly subtle soundness argument, partly due to the misbehaviours of some target smoothness properties when viewed from the perspective of program analysis designers. For instance, some smoothness properties are not preserved by function composition, and this makes it difficult to analyse sequential composition soundly without heavily sacrificing precision. We formulate five assumptions on a target smoothness property, prove the soundness of our analysis under those assumptions, and show that our leading examples satisfy these assumptions. We also show that by using information from our analysis instantiated for differentiability, our improved gradient estimator satisfies an important differentiability requirement and thus computes the correct estimate on average (i.e., returns an unbiased estimate) under a regularity condition. Our experiments with representative probabilistic programs in the Pyro language show that our static analysis is capable of identifying smooth parts of those programs accurately, and making our improved pathwise gradient estimator exploit all the opportunities for high performance in those programs.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 24 of its 60 references that are in the map. First posted on arXiv 22 Aug 2022.
Builds on
24 of 60 references.
References · 24
- 2013Auto-Encoding Variational Bayescited by 4,053
- 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
- 2013Black Box Variational Inferencecited by 319
- 2016Attend, Infer, Repeat: Fast Scene Understanding with Generative Modelscited by 209
- 2020The Lipschitz Constant of Self-Attentioncited by 174
- 2015Gradient Estimation Using Stochastic Computation Graphscited by 121
- 2017Learning Disentangled Representations with Semi-Supervised Deep Generative Modelscited by 72
- 2018An Introduction to Probabilistic Programmingcited by 63
- 2013Automated Variational Inference in Probabilistic Programmingcited by 34
- 2016Edward: A library for probabilistic modeling, inference, and criticismcited by 28
- 2015Automatic Variational Inference in Stancited by 24
- 2016Deep Amortized Inference for Probabilistic Programscited by 23
12 more
- 2015A New Approach to Probabilistic Programming Inferencecited by 22
- 2014Venture: a higher-order probabilistic programming platform with programmable inferencecited by 20
- 2018Simple, Distributed, and Accelerated Probabilistic Programmingcited by 18
- 2019Automatic Reparameterisation of Probabilistic Programscited by 18
- 2016Design and Implementation of Probabilistic Programming Language Anglicancited by 15
- 2016Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraintscited by 12
- 2019Divide, Conquer, and Combine: a New Inference Strategy for Probabilistic Programs with Stochastic Supportcited by 11
- 2019Towards Verified Stochastic Variational Inference for Probabilistic Programscited by 6
- 2020On the Versatility of Open Logical Relations: Continuity, Automatic Differentiation, and a Containment Theoremcited by 5
- 2020Conditional independence by typingcited by 5
- 2015C3: Lightweight Incrementalized MCMC for Probabilistic Programs using Continuations and Callsite Cachingcited by 3
- 2021Sound Probabilistic Inference via Guide Typescited by 3
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 0; 2026: 2.
6 papers.
- 2023Logic of Differentiable Logics: Towards a Uniform Semantics of DLcited by 15
- 2024Probabilistic Programming with Programmable Variational Inferencecited by 4
- 2023ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programscited by 3
- 2024Inference Plans for Hybrid Particle Filteringcited by 0
- 2026GradInf: Gradient Estimation as Probabilistic Inferencecited by 0
- 2026Sample-Smooth Spaces: A Convenient Category for Differentiable Probabilistic Programmingcited by 0
- 2026Sample-Smooth Spaces: A Convenient Category for Differentiable Probabilistic Programming14 Aug 2026
- 2026GradInf: Gradient Estimation as Probabilistic Inference8 Jul 2026
- 2024Inference Plans for Hybrid Particle Filtering21 Aug 2024
- 2024Probabilistic Programming with Programmable Variational Inference22 Jun 2024
- 2023Logic of Differentiable Logics: Towards a Uniform Semantics of DL19 Mar 2023
- 2023ωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs21 Feb 2023