Lune

PLDI2024Top-tier venue

Static Posterior Inference of Bayesian Probabilistic Programming via Polynomial Solving

Peixin Wang, Tengshun Yang, Hongfei Fu, Guanyan Li, C.-H. Luke Ong

Abstract

In Bayesian probabilistic programming, a central problem is to estimate the normalised posterior distribution (NPD) of a probabilistic program with conditioning via score (a.k.a. observe ) statements. Most previous approaches address this problem by Markov Chain Monte Carlo and variational inference, and therefore could not generate guaranteed outcomes within a finite time limit. Moreover, existing methods for exact inference either impose syntactic restrictions or cannot guarantee successful inference in general. In this work, we propose a novel automated approach to derive guaranteed bounds for NPD via polynomial solving. We first establish a fixed-point theorem for the wide class of score-at-end Bayesian probabilistic programs that terminate almost-surely and have a single bounded score statement at program termination. Then, we propose a multiplicative variant of Optional Stopping Theorem (OST) to address score-recursive Bayesian programs where score statements with weights greater than one could appear inside a loop. Bayesian nonparametric models, enjoying a renaissance in statistics and machine learning, can be represented by score-recursive Bayesian programs and are difficult to handle due to an integrability issue. Finally, we use polynomial solving to implement our fixed-point theorem and OST variant. To improve the accuracy of the polynomial solving, we further propose a truncation operation and the synthesis of multiple bounds over various program inputs. Our approach can handle Bayesian probabilistic programs with unbounded while loops and continuous distributions with infinite supports. Experiments over a wide range of benchmarks show that compared with the most relevant approach (Beutner et al. , PLDI 2022) for guaranteed NPD analysis via recursion unrolling, our approach is more time efficient and derives comparable or even tighter NPD bounds. Furthermore, our approach can handle score-recursive programs which previous approaches could not.

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.

11 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

  • Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with Loops cites Central moment analysis for cost accumulators in probabilistic programs
  • Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with Loops cites SPPL: probabilistic programming with fast exact symbolic inference
  • Quantitative Supermartingale Certificates cites Quantitative analysis of assertion violations in probabilistic programs
  • Quantitative Supermartingale Certificates cites Central moment analysis for cost accumulators in probabilistic programs
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites Quantitative analysis of assertion violations in probabilistic programs
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites Central moment analysis for cost accumulators in probabilistic programs
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites λPSI: exact inference for higher-order probabilistic programs
  • Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back cites SPPL: probabilistic programming with fast exact symbolic inference
  • Supermartingale Certificates for Quantitative Omega-Regular Verification and Control cites Quantitative analysis of assertion violations in probabilistic programs
  • SPPL: probabilistic programming with fast exact symbolic inference cites λPSI: exact inference for higher-order probabilistic programs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Quantitative Supermartingale CertificatesAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2025 · 7 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. Supermartingale Certificates for Quantitative Omega-Regular Verification and ControlThomas A. Henzinger, Kaushik Mallik, Pouya Sadeghi, Dorde ZikelicCAV 2025 · 6 citations
  4. Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and BackKevin Batz, Joost-Pieter Katoen, Francesca Randone, Tobias WinklerOOPSLA 2025 · 2 citations
  5. Verifying Sampling Algorithms via Distributional InvariantsDaniel Zilken, Kevin Batz, Joost-Pieter Katoen, Tobias WinklerFM 2026 · 1 citation

Builds on10

  1. SPPL: probabilistic programming with fast exact symbolic inferenceFeras A. Saad, Martin C. Rinard, Vikash K. MansinghkaPLDI 2021 · 38 citations
  2. λPSI: exact inference for higher-order probabilistic programsTimon Gehr, Samuel Steffen, Martin T. VechevPLDI 2020 · 29 citations
  3. Towards verified stochastic variational inference for probabilistic programsWonyeol Lee, Hangyeol Yu, Xavier Rival, Hongseok YangPOPL 2020 · 22 citations
  4. Quantitative analysis of assertion violations in probabilistic programsJinyi Wang, Yican Sun, Hongfei Fu, Krishnendu Chatterjee et al.PLDI 2021 · 18 citations
  5. Central moment analysis for cost accumulators in probabilistic programsDi Wang, Jan Hoffmann, Thomas W. RepsPLDI 2021 · 18 citations

Related papers

  1. Guaranteed bounds for posterior inference in universal probabilistic programmingRaven Beutner, C.-H. Luke Ong, Fabian ZaiserPLDI 2022 · 18 citations
  2. Exact Bayesian Inference for Loopy Probabilistic Programs using Generating FunctionsLutz Klinkenberg, Christian Blumenthal, Mingshuai Chen, Darion Haase et al.OOPSLA 2024 · 11 citations
  3. On probabilistic termination of functional programs with continuous distributionsRaven Beutner, Luke OngPLDI 2021 · 12 citations
  4. 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
  5. Compiling Probabilistic Programs for Variable Elimination with Information FlowJianlin Li, Eric Wang, Yizhou ZhangPLDI 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines