[Paper Review] BAXMC: a CEGAR approach to Max#SAT
This paper presents BAXMC, a CEGAR-based algorithm for solving Max#SAT by iteratively refining over-approximations of model counts using either exact or approximate model counting. It achieves superior performance over existing tools, especially on complex benchmarks, with significant speedups and scalability improvements in both exact and approximate settings.
Max#SAT is an important problem with multiple applications in security and program synthesis that is proven hard to solve. It is defined as: given a parameterized quantifier-free propositional formula compute parameters such that the number of models of the formula is maximal. As an extension, the formula can include an existential prefix. We propose a CEGAR-based algorithm and refinements thereof, based on either exact or approximate model counting, and prove its correctness in both cases. Our experiments show that this algorithm has much better effective complexity than the state of the art.
Motivation & Objective
- To address the high computational complexity of Max#SAT, a problem central to program synthesis and security analysis.
- To develop a scalable and correct algorithm for Max#SAT that supports both exact and approximate solving with probabilistic guarantees.
- To improve performance through integration of SAT symmetry breaking and heuristic techniques.
Proposed method
- Leverages Counterexample-Guided Abstraction Refinement (CEGAR) to iteratively refine over-approximations of projected model counts.
- Uses either an exact or approximate projected model counter as a subprocedure to estimate the number of models for a given witness assignment.
- Applies symmetry breaking techniques from SAT solvers to reduce search space and improve efficiency.
- Employs heuristics such as lead-based search scheduling and literal selection strategies to guide the search process.
- Maintains a set of blocking clauses to prevent revisiting suboptimal or already explored regions of the search space.
- Integrates a relaxation mechanism to handle infeasible constraints and guide refinement toward optimal solutions.
Experimental results
Research questions
- RQ1Can a CEGAR-based approach effectively solve Max#SAT with both correctness and scalability guarantees?
- RQ2How does the integration of approximate model counting affect the performance and precision of Max#SAT solving?
- RQ3To what extent can symmetry breaking and heuristic techniques improve the efficiency of Max#SAT solvers?
- RQ4What is the impact of different literal selection strategies on the convergence and performance of the algorithm?
- RQ5How does BAXMC compare to existing tools like MAXCOUNT in terms of runtime and scalability across diverse benchmarks?
Key findings
- BAXMC significantly outperforms the only other available tool, MAXCOUNT, with speedups of up to 100x on several benchmarks, including ActivityService and ProjectService.
- On the g2_n35e34_n58e61 benchmark, BAXMC solved the problem in 0.17 seconds, while MAXCOUNT timed out after 1000 seconds.
- For the pwd-backdoor benchmark, BAXMC completed in 236.87 seconds, compared to MAXCOUNT’s timeout, demonstrating superior scalability.
- The use of symmetry-breaking heuristics reduced runtime by up to 10% on certain benchmarks, confirming their effectiveness.
- The algorithm with the 'cache' heuristic achieved the best average performance, outperforming 'rnd' and 'vsids' across all tested instances.
- In cases where MAXCOUNT timed out, BAXMC consistently found optimal solutions within reasonable time limits, highlighting its robustness.
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.