[Paper Review] A Model Counter's Guide to Probabilistic Systems
This paper presents a systematic framework for modeling probabilistic systems—such as Markov chains and finite discrete distributions—using unweighted model counting by encoding probabilistic behaviors through Boolean functions and unbiased coin flips. The key contribution is a compositional, SAT-based approach that enables efficient probabilistic inference via standard model counters, with a novel equivalence between weighted model counting and bit-vector comparisons via the less-than operator.
In this paper, we systematize the modeling of probabilistic systems for the purpose of analyzing them with model counting techniques. Starting from unbiased coin flips, we show how to model biased coins, correlated coins, and distributions over finite sets. From there, we continue with modeling sequential systems, such as Markov chains, and revisit the relationship between weighted and unweighted model counting. Thereby, this work provides a conceptual framework for deriving #SAT encodings for probabilistic inference.
Motivation & Objective
- To develop a systematic method for modeling probabilistic systems as unweighted model counting problems.
- To enable efficient probabilistic inference using SAT-based model counters by avoiding reliance on weighted model counting.
- To bridge the gap between probabilistic inference and random bit generation techniques by encoding them into Boolean circuits.
- To provide a compositional, Boolean-function-centric framework that preserves model counts and supports sequential systems like Markov chains.
- To demonstrate how standard model counting can replace Monte Carlo and BDD-based methods for rare-event analysis.
Proposed method
- Modeling biased and correlated coin flips using Boolean predicates applied to streams of unbiased random bits.
- Using bit-vector comparisons (specifically, the less-than operator on unsigned integers) to simulate weighted model counting via unweighted encodings.
- Constructing sequential circuits through decomposition (e.g., Fig. 6) to encode Markov chains as Boolean functions over time steps.
- Encoding arbitrary finite discrete distributions (e.g., binomial, Knuth-Yao) using Boolean circuits derived from the random bit model.
- Applying the H^k_n gadget to represent integer comparisons, which enables exact counting of weighted models via unweighted counting.
- Reducing literal-weighted model counting to unweighted model counting by modeling each literal’s weight as a biased coin via Boolean functions.
Experimental results
Research questions
- RQ1How can probabilistic systems such as Markov chains be encoded as unweighted model counting problems?
- RQ2What is the role of Boolean functions in composing model counts for complex probabilistic behaviors?
- RQ3How can the reduction from weighted to unweighted model counting be made systematic and compositional?
- RQ4Can classical random number generation algorithms (e.g., Knuth-Yao) be encoded as Boolean circuits for use in model counting?
- RQ5How does the use of unbiased coin flips as a primitive enable the construction of arbitrary probability distributions?
Key findings
- The H^k_n gadget, which counts the number of satisfying assignments equal to k, is equivalent to the condition that a bit vector is less than k, providing a direct link between model counting and integer comparison.
- The framework enables exact probabilistic inference for rare events by avoiding Monte Carlo sampling and BDD-based methods.
- The model counting approach preserves the count of satisfying assignments, ensuring correctness when modeling conditional and correlated probabilities.
- The encoding of the Knuth-Yao algorithm into a sequential Boolean circuit demonstrates the feasibility of integrating classical random variate generation into SAT-based inference.
- The reduction from weighted to unweighted model counting via the less-than operator is both conceptually simple and formally equivalent to prior reductions, but more composable and modular.
- The framework allows for automated and efficient encoding of distributions such as the binomial distribution using Boolean circuits, with implementations available in the py-aiger-coins library.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.