mlsanityData to 14 Oct 2026

Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inference

arXiv 2208.10530 ↗First posted 22 Aug 2022cs.PL cs.LGcited by 6

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

  1. 2013Auto-Encoding Variational Bayescited by 4,053
  2. 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
  3. 2013Black Box Variational Inferencecited by 319
  4. 2016Attend, Infer, Repeat: Fast Scene Understanding with Generative Modelscited by 209
  5. 2020The Lipschitz Constant of Self-Attentioncited by 174
  6. 2015Gradient Estimation Using Stochastic Computation Graphscited by 121
  7. 2017Learning Disentangled Representations with Semi-Supervised Deep Generative Modelscited by 72
  8. 2018An Introduction to Probabilistic Programmingcited by 63
  9. 2013Automated Variational Inference in Probabilistic Programmingcited by 34
  10. 2016Edward: A library for probabilistic modeling, inference, and criticismcited by 28
  11. 2015Automatic Variational Inference in Stancited by 24
  12. 2016Deep Amortized Inference for Probabilistic Programscited by 23
12 more
  1. 2015A New Approach to Probabilistic Programming Inferencecited by 22
  2. 2014Venture: a higher-order probabilistic programming platform with programmable inferencecited by 20
  3. 2018Simple, Distributed, and Accelerated Probabilistic Programmingcited by 18
  4. 2019Automatic Reparameterisation of Probabilistic Programscited by 18
  5. 2016Design and Implementation of Probabilistic Programming Language Anglicancited by 15
  6. 2016Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraintscited by 12
  7. 2019Divide, Conquer, and Combine: a New Inference Strategy for Probabilistic Programs with Stochastic Supportcited by 11
  8. 2019Towards Verified Stochastic Variational Inference for Probabilistic Programscited by 6
  9. 2020On the Versatility of Open Logical Relations: Continuity, Automatic Differentiation, and a Containment Theoremcited by 5
  10. 2020Conditional independence by typingcited by 5
  11. 2015C3: Lightweight Incrementalized MCMC for Probabilistic Programs using Continuations and Callsite Cachingcited by 3
  12. 2021Sound Probabilistic Inference via Guide Typescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 2; 2025: 0; 2026: 2.

6 papers.