Newtonian Program Analysis of Probabilistic Programs
Di Wang, Thomas Reps

TL;DR
This paper introduces NPA-PMA, a novel interprocedural dataflow analysis framework for probabilistic programs that employs a generalized Newton's method, enabling efficient, non-iterative analysis of complex control flows.
Contribution
It develops NPA-PMA, a non-iterative analysis framework based on Newtonian Program Analysis, handling multiple confluence types and unstructured control flow in probabilistic programs.
Findings
NPA-PMA outperforms Kleene iteration in experiments.
The framework is highly general for designing program analyses.
Introduces $mbda$-continuous pre-Markov algebras for analysis.
Abstract
Due to their quantitative nature, probabilistic programs pose non-trivial challenges for designing compositional and efficient program analyses. Many analyses for probabilistic programs rely on iterative approximation. This article presents an interprocedural dataflow-analysis framework, called NPA-PMA, for designing and implementing (partially) non-iterative program analyses of probabilistic programs with unstructured control-flow, nondeterminism, and general recursion. NPA-PMA is based on Newtonian Program Analysis (NPA), a generalization of Newton's method to solve equation systems over semirings. The key challenge for developing NPA-PMA is to handle multiple kinds of confluences in both the algebraic structures that specify analyses and the equation systems that encode control flow: semirings support a single confluence operation, whereas NPA-PMA involves three confluence operations…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · Bayesian Modeling and Causal Inference · Software Testing and Debugging Techniques
