[Paper Review] Sampling Techniques for Boolean Satisfiability
This paper presents UniWit and ApproxMC, two scalable algorithms for near-uniform SAT solution generation and approximate model counting, respectively, using limited-independence hashing. By making polynomial calls to a SAT solver, the methods achieve strong theoretical guarantees and practical scalability on formulas with tens of thousands of variables.
Boolean satisfiability ({\SAT}) has played a key role in diverse areas spanning testing, formal verification, planning, optimization, inferencing and the like. Apart from the classical problem of checking boolean satisfiability, the problems of generating satisfying uniformly at random, and of counting the total number of satisfying assignments have also attracted significant theoretical and practical interest over the years. Prior work offered heuristic approaches with very weak or no guarantee of performance, and theoretical approaches with proven guarantees, but poor performance in practice. We propose a novel approach based on limited-independence hashing that allows us to design algorithms for both problems, with strong theoretical guarantees and scalability extending to thousands of variables. Based on this approach, we present two practical algorithms, {\UniformWitness}: a near uniform generator and {\approxMC}: the first scalable approximate model counter, along with reference implementations. Our algorithms work by issuing polynomial calls to {\SAT} solver. We demonstrate scalability of our algorithms over a large set of benchmarks arising from different application domains.
Motivation & Objective
- Address the lack of practical algorithms for near-uniform SAT solution generation and approximate model counting with strong theoretical guarantees.
- Bridge the gap between theoretical approaches (with guarantees but poor performance) and heuristic methods (with no guarantees).
- Design scalable algorithms capable of handling large industrial and benchmark formulas with tens of thousands of variables.
- Enable practical use of theoretical results on the inter-reducibility of approximate counting and almost uniform generation.
Proposed method
- Leverage limited-independence hashing to construct hash functions that ensure sufficient randomness while remaining efficiently computable.
- Design UniWit as a near-uniform generator by iteratively refining a solution space using SAT queries with carefully constructed hash constraints.
- Develop ApproxMC as an approximate model counter by combining the near-uniform generator with statistical estimation techniques to estimate the total number of satisfying assignments.
- Use polynomially many SAT queries to both generate solutions and estimate model counts, ensuring theoretical soundness and practical feasibility.
- Integrate the algorithms with off-the-shelf SAT solvers, enabling deployment on real-world benchmarks.
- Ensure theoretical guarantees on near-uniformity and approximation accuracy through probabilistic analysis of hash function properties.
Experimental results
Research questions
- RQ1Can limited-independence hashing be used to design a practical near-uniform SAT solution generator with strong theoretical guarantees?
- RQ2Can the same framework be extended to build a scalable approximate model counter with provable accuracy bounds?
- RQ3To what extent can polynomial-time SAT queries be used to achieve both uniform sampling and counting with high scalability?
- RQ4Is it possible to achieve strong theoretical guarantees while maintaining performance on large-scale industrial and benchmark formulas?
- RQ5Can the approach be generalized to other problems in NP and #P beyond Boolean satisfiability?
Key findings
- UniWit achieves near-uniform sampling of satisfying assignments with theoretical guarantees on distributional closeness to uniformity.
- ApproxMC is the first scalable approximate model counter that provides provable accuracy bounds and works on formulas with tens of thousands of variables.
- The algorithms scale effectively across diverse benchmark sets, including those from formal verification, planning, and optimization.
- The use of limited-independence hashing enables efficient computation of hash functions that maintain required statistical properties with minimal overhead.
- Empirical evaluation confirms that both algorithms perform well in practice, with ApproxMC providing accurate estimates within desired error bounds (ε, δ) on large instances.
- The framework demonstrates that near-uniform generation can be used as a white-box component to build an approximate counter, suggesting potential for further optimization and integration with richer constraint languages.
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.