mlsanityData to 7 Oct 2026

Probabilistic Programming with Programmable Variational Inference

arXiv 2406.15742 ↗First posted 22 Jun 2024cs.PL cs.AI cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Compared to the wide array of advanced Monte Carlo methods supported by modern probabilistic programming languages (PPLs), PPL support for variational inference (VI) is less developed: users are typically limited to a predefined selection of variational objectives and gradient estimators, which are implemented monolithically (and without formal correctness arguments) in PPL backends. In this paper, we propose a more modular approach to supporting variational inference in PPLs, based on compositional program transformation. In our approach, variational objectives are expressed as programs, that may employ first-class constructs for computing densities of and expected values under user-defined models and variational families. We then transform these programs systematically into unbiased gradient estimators for optimizing the objectives they define. Our design enables modular reasoning about many interacting concerns, including automatic differentiation, density accumulation, tracing, and the application of unbiased gradient estimation strategies. Additionally, relative to existing support for VI in PPLs, our design increases expressiveness along three axes: (1) it supports an open-ended set of user-defined variational objectives, rather than a fixed menu of options; (2) it supports a combinatorial space of gradient estimation strategies, many not automated by today's PPLs; and (3) it supports a broader class of models and variational families, because it supports constructs for approximate marginalization and normalization (previously introduced only for Monte Carlo inference). We implement our approach in an extension to the Gen probabilistic programming system (genjax.vi, implemented in JAX), and evaluate on several deep generative modeling tasks, showing minimal performance overhead vs. hand-coded implementations and performance competitive with well-established open-source PPLs.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 48 of its 79 references that are in the map. First posted on arXiv 22 Jun 2024.

Builds on

48 of 79 references.

References · 48

  1. 2016Variational Inference: A Review for Statisticianscited by 1,466
  2. 2021Variational Diffusion Modelscited by 1,145
  3. 2020NVAE: A Deep Hierarchical Variational Autoencodercited by 635
  4. 2014Semi-Supervised Learning with Deep Generative Modelscited by 494
  5. 2015Importance Weighted Autoencoderscited by 454
  6. 2018Pyro: Deep Universal Probabilistic Programmingcited by 379
  7. 2019Monte Carlo Gradient Estimation in Machine Learningcited by 281
  8. 2016Attend, Infer, Repeat: Fast Scene Understanding with Generative Modelscited by 209
  9. 2016Automatic Differentiation Variational Inferencecited by 159
  10. 2016Variational Autoencoder for Deep Learning of Images, Labels and Captionscited by 137
  11. 2015Gradient Estimation Using Stochastic Computation Graphscited by 120
  12. 2022GFlowNets and variational inferencecited by 103
36 more
  1. 2017Variational Sequential Monte Carlocited by 93
  2. 2015Hierarchical Variational Modelscited by 89
  3. 2018Tighter Variational Bounds are Not Necessarily Bettercited by 76
  4. 2016Auxiliary Deep Generative Modelscited by 72
  5. 2014Reweighted Wake-Sleepcited by 66
  6. 2019Elements of Sequential Monte Carlocited by 60
  7. 2018DiCE: The Infinitely Differentiable Monte-Carlo Estimatorcited by 46
  8. 2020Markovian Score Climbing: Variational Inference with KL(p||q)cited by 46
  9. 2015Neural Adaptive Sequential Monte Carlocited by 34
  10. 2022Automatic Differentiation of Programs with Discrete Randomnesscited by 28
  11. 2017Deep Probabilistic Programmingcited by 24
  12. 2014Venture: a higher-order probabilistic programming platform with programmable inferencecited by 20
  13. 2019Importance Weighted Hierarchical Variational Inferencecited by 20
  14. 2018Simple, Distributed, and Accelerated Probabilistic Programmingcited by 18
  15. 2017A Convenient Category for Higher-Order Probability Theorycited by 14
  16. 2019Credit Assignment Techniques in Stochastic Computation Graphscited by 14
  17. 2021Nested Variational Inferencecited by 14
  18. 2015A Lambda-Calculus Foundation for Universal Probabilistic Programmingcited by 12
  19. 2018Reparameterization Gradient for Non-differentiable Modelscited by 11
  20. 2020Correctness of Automatic Differentiation via Diffeologies and Categorical Gluingcited by 11
  21. 2021Storchastic: A Framework for General Stochastic Automatic Differentiationcited by 11
  22. 2022ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programscited by 11
  23. 2022You Only Linearize Once: Tangents Transpose to Gradientscited by 10
  24. 2017Denotational validation of higher-order Bayesian inferencecited by 9
  25. 2020λS: Computable Semantics for Differentiable Programming with Higher-Order Functions and Datatypescited by 8
  26. 2022Recursive Monte Carlo and Variational Inference with Auxiliary Variablescited by 8
  27. 2019Towards Verified Stochastic Variational Inference for Probabilistic Programscited by 6
  28. 2019Functional Tensors for Probabilistic Programmingcited by 6
  29. 2021Learning Proposals for Probabilistic Programs with Inference Combinatorscited by 6
  30. 2023Smoothing Methods for Automatic Differentiation Across Conditional Branchescited by 6
  31. 2017AIDE: An algorithm for measuring the accuracy of probabilistic inference algorithmscited by 5
  32. 2019Tensor Variable Elimination for Plated Factor Graphscited by 5
  33. 2022Smoothness Analysis for Probabilistic Programs with Application to Optimised Variational Inferencecited by 5
  34. 2021An Easy to Interpret Diagnostic for Approximate Inference: Symmetric Divergence Over Simulationscited by 3
  35. 2021Sound Probabilistic Inference via Guide Typescited by 3
  36. 2020Correctness of Sequential Monte Carlo Inference for Probabilistic Programming Languagescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 2.

4 papers.