Lune

CAV2020Top-tier venue

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 BIRD\mathsf {BIRD} 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 BIRD2\mathsf {BIRD2} , with the state of the art approximate model counter, ApproxMC3\mathsf {ApproxMC3} , and the state of the art almost-uniform model sampler UniGen2\mathsf {UniGen2} . Through an extensive evaluation over a large benchmark set of over 1896 instances, we observe that BIRD2\mathsf {BIRD2} 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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

22 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • The Power of Literal Equivalence in Model Counting cites Quantitative Verification of Neural Networks and Its Security Applications
  • Rounding Meets Approximate Model Counting cites Quantitative Verification of Neural Networks and Its Security Applications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers22

  1. Certifying Parity Reasoning Efficiently Using Pseudo-Boolean ProofsStephan Gocht, Jakob NordströmAAAI 2021 · 37 citations
  2. Constraint-Driven Explanations for Black-Box ML ModelsAditya A. Shrotri, Nina Narodytska, Alexey Ignatiev, Kuldeep S. Meel et al.AAAI 2022 · 25 citations
  3. ApproxASP - a Scalable Approximate Answer Set CounterMohimenul Kabir, Flavio O. Everardo, Ankit K. Shukla, Markus Hecher et al.AAAI 2022 · 21 citations
  4. The Power of Literal Equivalence in Model CountingYong Lai, Kuldeep S. Meel, Roland H. C. YapAAAI 2021 · 19 citations
  5. Rounding Meets Approximate Model CountingJiong Yang, Kuldeep S. MeelCAV 2023 · 8 citations

Builds on1

  1. Quantitative Verification of Neural Networks and Its Security ApplicationsTeodora Baluta, Shiqi Shen, Shweta Shinde, Kuldeep S. Meel et al.CCS 2019 · 115 citations

Related papers

  1. Sparse Hashing for Scalable Approximate Model Counting: Theory and PracticeKuldeep S. Meel, S. AkshayLICS 2020 · 20 citations
  2. Towards Real-Time Approximate CountingYash Pote, Kuldeep S. Meel, Jiong YangAAAI 2025 · 3 citations
  3. Formally Certified Approximate Model CountingYong Kiam Tan, Jiong Yang, Mate Soos, Magnus O. Myreen et al.CAV 2024 · 1 citation
  4. Solving Satisfiability Modulo Counting for Symbolic and Statistical AI Integration with Provable GuaranteesJinzhao Li, Nan Jiang, Yexiang XueAAAI 2024 · 1 citation
  5. Engineering an Efficient Preprocessor for Model CountingMate Soos, Kuldeep S. MeelDAC 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines