Lune

OOPSLA2024Top-tier venue

Exact Bayesian Inference for Loopy Probabilistic Programs using Generating Functions

Lutz Klinkenberg, Christian Blumenthal, Mingshuai Chen, Darion Haase, Joost-Pieter Katoen

Abstract

We present an exact Bayesian inference method for inferring posterior distributions encoded by probabilistic programs featuring possibly unbounded loops . Our method is built on a denotational semantics represented by probability generating functions , which resolves semantic intricacies induced by intertwining discrete probabilistic loops with conditioning (for encoding posterior observations). We implement our method in a tool called Prodigy; it augments existing computer algebra systems with the theory of generating functions for the (semi-)automatic inference and quantitative verification of conditioned probabilistic programs. Experimental results show that Prodigy can handle various infinite-state loopy programs and exhibits comparable performance to state-of-the-art exact inference tools over loop-free benchmarks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Probabilistic Inference for Datalog with Correlated Inputs cites Scaling exact inference for discrete probabilistic programs
  • Static Posterior Inference of Bayesian Probabilistic Programming via Polynomial Solving cites λPSI: exact inference for higher-order probabilistic programs
  • Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with Loops cites Static Posterior Inference of Bayesian Probabilistic Programming via Polynomial Solving
  • Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with Loops cites Scaling exact inference for discrete probabilistic programs
  • Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with Loops cites This is the moment for probabilistic loops
  • Roulette: A Language for Expressive, Exact, and Efficient Discrete Probabilistic Programming cites Scaling exact inference for discrete probabilistic programs
  • Roulette: A Language for Expressive, Exact, and Efficient Discrete Probabilistic Programming cites λPSI: exact inference for higher-order probabilistic programs
  • This is the moment for probabilistic loops cites Scaling exact inference for discrete probabilistic programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Static Posterior Inference of Bayesian Probabilistic Programming via Polynomial SolvingPeixin Wang, Tengshun Yang, Hongfei Fu, Guanyan Li et al.PLDI 2024 · 13 citations
  2. Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with LoopsFabian Zaiser, Andrzej S. Murawski, C.-H. Luke OngPOPL 2025 · 6 citations
  3. Roulette: A Language for Expressive, Exact, and Efficient Discrete Probabilistic ProgrammingCameron Moy, Jack Czenszak, John M. Li, Brianna Marshall et al.PLDI 2025 · 3 citations
  4. Probabilistic Inference for Datalog with Correlated InputsJingbo Wang, Shashin Halalingaiah, Weiyi Chen, Chao Wang et al.OOPSLA 2025 · 2 citations
  5. Parf: Adaptive Parameter Refining for Abstract InterpretationZhongyi Wang, Linyu Yang, Mingshuai Chen, Yixuan Bu et al.ASE 2024 · 2 citations

Builds on13

  1. Scaling exact inference for discrete probabilistic programsSteven Holtzen, Guy Van den Broeck, Todd D. MillsteinOOPSLA 2020 · 85 citations
  2. Optimistic Value IterationArnd Hartmanns, Benjamin Lucien KaminskiCAV 2020 · 62 citations
  3. Aiming low is harder: induction for lower bounds in probabilistic program verificationMarcel Hark, Benjamin Lucien Kaminski, Jürgen Giesl, Joost-Pieter KatoenPOPL 2020 · 47 citations
  4. This is the moment for probabilistic loopsMarcel Moosbrugger, Miroslav Stankovic, Ezio Bartocci, Laura KovácsOOPSLA 2022 · 30 citations
  5. λPSI: exact inference for higher-order probabilistic programsTimon Gehr, Samuel Steffen, Martin T. VechevPLDI 2020 · 29 citations

Related papers

  1. Does a Program Yield the Right Distribution? - Verifying Probabilistic Programs via Generating FunctionsMingshuai Chen, Joost-Pieter Katoen, Lutz Klinkenberg, Tobias WinklerCAV 2022 · 14 citations
  2. Exact Bayesian Inference on Discrete Models via Probability Generating Functions: A Probabilistic Programming ApproachFabian Zaiser, Andrzej S. Murawski, Chih-Hao Luke OngNeurIPS 2023 · 17 citations
  3. Trace types and denotational semantics for sound programmable inference in probabilistic languagesAlexander K. Lew, Marco F. Cusumano-Towner, Benjamin Sherman, Michael Carbin et al.POPL 2020 · 30 citations
  4. Exact Recursive Probabilistic ProgrammingDavid Chiang, Colin McDonald, Chung-chieh ShanOOPSLA 2023 · 12 citations
  5. Online and Interactive Bayesian Inference DebuggingNathanael Nussbaumer, Markus Böck, Jürgen CitoICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines