Introduction
KOCO-SMC is a novel exact solver for Satisfiability Modulo Counting (SMC) that bridges the gap between symbolic logic and probabilistic reasoning. By integrating Probabilistic Circuits (PCs) directly into the search process, it can detect conflicts using only partial assignments, solving complex problems orders of magnitude faster than existing exact methods.
The Challenge of SMC
Many real-world problems require reasoning about both hard logical constraints and probabilistic uncertainty. For example, finding a delivery route that visits all stops (a symbolic constraint) while ensuring the probability of a traffic delay remains below 10% (a statistical constraint). This intersection is the domain of Satisfiability Modulo Counting (SMC).
SMC problems are notoriously difficult ($NP^{PP}$-complete). Existing approaches generally fall into two camps:
- Approximate Solvers: These are fast but can return solutions that violate constraints or provide "unverifiable" results.
- Naive Exact Solvers: These treat SAT solvers and probabilistic inference engines as separate "black boxes." The SAT solver proposes a full variable assignment, and the inference engine checks it. This leads to a massive computational bottleneck due to constant back-and-forth communication and the inability to prune the search space until a complete solution is proposed.
The KOCO-SMC Approach
The authors introduce KOCO-SMC, which integrates probabilistic reasoning into the core of a Conflict-Driven Clause Learning (CDCL) SAT framework.
The core innovation is the Upper-Lower Watch (ULW) algorithm. Instead of waiting for a full assignment, ULW uses Probabilistic Circuits (PCs)—computational graphs that allow for efficient marginalization—to track the upper and lower bounds of a probability as variables are assigned one by one.
- Early Conflict Detection: If the upper bound of a probability falls below the required threshold $q$, the solver knows immediately that the current partial assignment can never satisfy the constraint.
- Pruning: When a conflict is detected, KOCO-SMC generates a "learned clause" that prevents the solver from ever exploring that branch of the search tree again.
- Efficiency: By moving probabilistic checks into the "propagation" phase of the SAT solver, it avoids the expensive "back-and-forth" of previous exact methods.
Key Insights and Real-World Application
The researchers evaluated KOCO-SMC on a massive scale, utilizing 1,350 SMC problems derived from the UAI Competition (2010–2022), spanning domains like Markov Random Fields, Dynamic Bayesian Networks, and medical diagnosis. They also applied it to real-world case studies, such as robust supply chain design and package delivery routing in Los Angeles using real Google Maps data.
A key takeaway is that partial assignments are enough. You don't need a complete picture to know a plan is failing. By tracking bounds, the solver can "fail fast," which is crucial for scaling in combinatorial search. Probabilistic Circuits are uniquely suited for this task because they are smooth and decomposable, allowing the solver to update probability bounds in a single bottom-up pass. Furthermore, while approximate solvers often fail on "medium-threshold" cases (the transition point where a problem moves from satisfiable to unsatisfiable), KOCO-SMC handles these tricky boundaries reliably.
Experimental Results
- Massive Speedup: KOCO-SMC solved 45% of instances within 10 seconds, whereas baseline exact solvers required up to 3 hours to reach the same completion rate.
- Superior Scaling: Given a 20-minute window, KOCO-SMC solved 80% of the dataset; the best exact baselines could only manage 40% even after 3 hours.
- ULW Effectiveness: Ablation studies showed that the ULW algorithm alone makes the solver 10 times faster on difficult instances compared to versions of the solver without early bound tracking.
- Quality: Unlike approximate methods (like XOR-SMC or SAA), KOCO-SMC never returned "wrong" or "unverifiable" solutions, providing a gold standard for safety-critical applications.
Limitations and Future Work
While highly effective, KOCO-SMC requires an initial "knowledge compilation" step to turn probability distributions into PCs. For very simple problems, this overhead can make it slower than a naive solver, though it pays off handsomely as problem complexity grows. Additionally, large Probabilistic Circuits can become memory-intensive, potentially limiting the size of the probabilistic models the solver can handle. Future work may explore extending the framework to handle more complex probabilistic predicates beyond simple thresholds and utilizing more advanced PC structures to further reduce compilation time.
Summary updated