[Paper Review] Approximate Probabilistic Inference via Word-Level Counting
This paper introduces SMTApproxMC, the first approximate model counter that uses word-level hashing functions to directly leverage SMT solvers for high-dimensional discrete probabilistic inference. By employing 2-universal word-level hash functions compatible with SMT solvers, it outperforms bit-blasting-based propositional counters on benchmarks with uniform, wide word constraints, achieving high accuracy with geometric mean observed error of 0.04—far below the theoretical 0.8 tolerance.
Hashing-based model counting has emerged as a promising approach for large-scale probabilistic inference on graphical models. A key component of these techniques is the use of xor-based 2-universal hash functions that operate over Boolean domains. Many counting problems arising in probabilistic inference are, however, naturally encoded over finite discrete domains. Techniques based on bit-level (or Boolean) hash functions require these problems to be propositionalized, making it impossible to leverage the remarkable progress made in SMT (Satisfiability Modulo Theory) solvers that can reason directly over words (or bit-vectors). In this work, we present the first approximate model counter that uses word-level hashing functions, and can directly leverage the power of sophisticated SMT solvers. Empirical evaluation over an extensive suite of benchmarks demonstrates the promise of the approach.
Motivation & Objective
- To address the gap in approximate model counting for finite discrete domains by enabling direct use of SMT solvers instead of bit-blasting.
- To develop a new class of 2-universal word-level hash functions compatible with SMT solvers that reason over fixed-width words.
- To enable efficient approximate model counting in probabilistic graphical models with high-dimensional discrete variables.
- To demonstrate that word-level reasoning in SMT solvers can significantly improve performance over propositionalization in realistic inference workloads.
Proposed method
- Proposes a new family of 2-universal hash functions operating over fixed-width words, designed to be efficiently reasoned about by SMT solvers.
- Integrates these word-level hash functions into a model counting framework that avoids propositionalization (bit-blasting) of word-level constraints.
- Employs SMT solvers capable of handling linear word-level equalities and constraints, enabling native word-level reasoning.
- Uses a Monte Carlo-style sampling approach with hash functions to estimate the number of solutions to word-level constraint systems.
- Designs the algorithm to maintain theoretical approximation guarantees (within ε = 0.8 tolerance) while exploiting SMT solver optimizations.
- Implements a prototype of SMTApproxMC and evaluates it against state-of-the-art propositional model counters like CDM.
Experimental results
Research questions
- RQ1Can word-level hashing functions be constructed that are 2-universal and efficiently solvable by modern SMT solvers?
- RQ2Does direct use of SMT solvers on word-level constraints outperform bit-blasting and propositional model counting in practice?
- RQ3What is the quality of approximation achieved by word-level model counting compared to exact counts and theoretical bounds?
- RQ4In which types of benchmarks does word-level reasoning provide a performance advantage over propositionalization?
- RQ5How does the geometric mean error of SMTApproxMC compare to its theoretical tolerance guarantee?
Key findings
- SMTApproxMC significantly outperforms the CDM approach on benchmarks with long, uniform word widths and minimal bit-level complexity.
- The geometric mean of observed error (ε_obs) across all benchmarks is 0.04, substantially below the theoretical tolerance of 0.8.
- For all tested benchmarks, the model counts produced by SMTApproxMC fall within the theoretical confidence bounds defined by the tolerance factor.
- The performance gain is most pronounced when the SMT solver can reason over word-level constraints without bit-blasting.
- In benchmarks with heterogeneous word widths or complex operators (e.g., extract, multiplication), SMTApproxMC degrades due to bit-blasting overhead, confirming the limits of word-level reasoning.
- The results suggest that SMTApproxMC can serve as an efficient building block for advanced inference algorithms and may drive future SMT solver development.
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.