Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and Sampling
Mate Soos, Stephan Gocht, Kuldeep S. Meel
Abstract
Given a Boolean formula, the problem of counting seeks to estimate the number of solutions of F while the problem of uniform sampling seeks to sample solutions uniformly at random. Counting and uniform sampling are fundamental problems in computer science with a wide range of applications ranging from constrained random simulation, probabilistic inference to network reliability and beyond. The past few years have witnessed the rise of hashing-based approaches that use XOR-based hashing and employ SAT solvers to solve the resulting CNF formulas conjuncted with XOR constraints. Since over 99% of the runtime of hashing-based techniques is spent inside the SAT queries, improving CNF-XOR solvers has emerged as a key challenge. In this paper, we identify the key performance bottlenecks in the recently proposed architecture, and we focus on overcoming these bottlenecks by accelerating the XOR handling within the SAT solver and on improving the solver integration through a smarter use of (partial) solutions. We integrate the resulting system, called , with the state of the art approximate model counter, , and the state of the art almost-uniform model sampler . Through an extensive evaluation over a large benchmark set of over 1896 instances, we observe that leads to consistent speed up for both counting and sampling, and in particular, we solve 77 and 51 more instances for counting and sampling respectively.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers22
- Certifying Parity Reasoning Efficiently Using Pseudo-Boolean ProofsStephan Gocht, Jakob NordströmAAAI 2021 · 37 citations
- Constraint-Driven Explanations for Black-Box ML ModelsAditya A. Shrotri, Nina Narodytska, Alexey Ignatiev, Kuldeep S. Meel et al.AAAI 2022 · 25 citations
- ApproxASP - a Scalable Approximate Answer Set CounterMohimenul Kabir, Flavio O. Everardo, Ankit K. Shukla, Markus Hecher et al.AAAI 2022 · 21 citations
- The Power of Literal Equivalence in Model CountingYong Lai, Kuldeep S. Meel, Roland H. C. YapAAAI 2021 · 19 citations
- Rounding Meets Approximate Model CountingJiong Yang, Kuldeep S. MeelCAV 2023 · 8 citations
Builds on1
Related papers
- Sparse Hashing for Scalable Approximate Model Counting: Theory and PracticeKuldeep S. Meel, S. AkshayLICS 2020 · 20 citations
- Towards Real-Time Approximate CountingYash Pote, Kuldeep S. Meel, Jiong YangAAAI 2025 · 3 citations
- Formally Certified Approximate Model CountingYong Kiam Tan, Jiong Yang, Mate Soos, Magnus O. Myreen et al.CAV 2024 · 1 citation
- Solving Satisfiability Modulo Counting for Symbolic and Statistical AI Integration with Provable GuaranteesJinzhao Li, Nan Jiang, Yexiang XueAAAI 2024 · 1 citation
- Engineering an Efficient Preprocessor for Model CountingMate Soos, Kuldeep S. MeelDAC 2024 · 2 citations
