flip-hoisting: Exploiting Repeated Parameters in Discrete Probabilistic Programs
Not on the map. Why?
Abstract (arXiv)
Many of today's probabilistic programming languages (PPLs) have brittle inference performance: the performance of the underlying inference algorithm is very sensitive to the precise way in which the probabilistic program is written. A standard way of addressing this challenge in traditional programming languages is via program optimizations, which seek to unburden the programmer from writing low-level performant code, freeing them to work at a higher-level of abstraction. The arsenal of applicable program optimizations for PPLs to choose from is scarce in comparison to traditional programs; few of today's PPLs offer significant forms of automated program optimization. In this work we develop a new family of program optimizations specific to discrete-valued knowledge compilation based PPLs. We identify a particular form of program structure unique to these PPLs that tangibly affects exact inference performance in these programs: redundant random variables -- variables with repeated parameters and inconsistent path conditions. We develop a new program analysis and associated optimization called flip-hoisting that identifies these redundancies and optimizes them into a single random variable. We show that flip-hoisting yields inference speedups of up to 60% on applications of probabilistic programs such as Bayesian networks and probabilistic verification.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 10 of its 45 references that are in the map. First posted on arXiv 19 Oct 2021.
Builds on
10 of 45 references.
References · 10
- 2013Context-Specific Independence in Bayesian Networkscited by 43
- 2016Deep Amortized Inference for Probabilistic Programscited by 23
- 2019Automatic Reparameterisation of Probabilistic Programscited by 18
- 2020SPPL: Probabilistic Programming with Fast Exact Symbolic Inferencecited by 18
- 2019ADDMC: Weighted Model Counting with Algebraic Decision Diagramscited by 13
- 2019Divide, Conquer, and Combine: a New Inference Strategy for Probabilistic Programs with Stochastic Supportcited by 11
- 2017Delayed Sampling and Automatic Rao-Blackwellization of Probabilistic Programscited by 8
- 2014AND/OR Multi-Valued Decision Diagrams (AOMDDs) for Graphical Modelscited by 6
- 2018Autoconj: Recognizing and Exploiting Conjugacy Without a Domain-Specific Languagecited by 4
- 2021Model Checking Finite-Horizon Markov Chains with Probabilistic Inferencecited by 2
Built on by
Citing papers per year: 2024: 1.
1 paper.
- 2024Inference Plans for Hybrid Particle Filteringcited by 0
- 2024Inference Plans for Hybrid Particle Filtering21 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2016Structured Factored Inference: A Framework for Automated Reasoning in Probabilistic Programming Languages
- 2026Probabilistic Programs of Thought
- 2026Likelihood Hacking in Probabilistic Program Synthesis
- 2023Diffusion models for probabilistic programming
- 2025HoarePrompt: Structural Reasoning About Program Correctness in Natural Language
- 2024On Probabilistic and Causal Reasoning with Summation Operators
- 2026Using Probabilistic Programs to Train Inductive Reasoning in Large Language Models
- 2025Program Synthesis via Test-Time Transduction