Skip to main content
QUICK REVIEW

[Paper Review] Constrained Sampling and Counting: Universal Hashing Meets SAT Solving

Kuldeep S. Meel, Moshe Y. Vardi|arXiv (Cornell University)|Dec 21, 2015
Bayesian Modeling and Causal InferenceComputer Science52 references29 citations
TL;DR

This paper presents a scalable, correct-by-construction approach to constrained sampling and counting by combining universal hashing with SAT solving, enabling efficient approximate sampling and counting for large industrial-scale Boolean formulas while maintaining strong theoretical guarantees. The key innovation lies in restricting hash functions to minimal independent supports, reducing XOR constraint density and accelerating performance by two to three orders of magnitude without sacrificing correctness.

ABSTRACT

Constrained sampling and counting are two fundamental problems in artificial intelligence with a diverse range of applications, spanning probabilistic reasoning and planning to constrained-random verification. While the theory of these problems was thoroughly investigated in the 1980s, prior work either did not scale to industrial size instances or gave up correctness guarantees to achieve scalability. Recently, we proposed a novel approach that combines universal hashing and SAT solving and scales to formulas with hundreds of thousands of variables without giving up correctness guarantees. This paper provides an overview of the key ingredients of the approach and discusses challenges that need to be overcome to handle larger real-world instances.

Motivation & Objective

  • To bridge the gap between theoretically sound but impractical algorithms and scalable but unreliable practical tools in constrained sampling and counting.
  • To enable scalable, correct-by-construction sampling and counting for large real-world Boolean formulas.
  • To reduce the density of XOR constraints in hashing-based techniques, which otherwise hinder performance.
  • To develop an automated method for computing minimal independent supports to enable efficient hashing over smaller variable sets.
  • To enable exact weighted model counting via a black-box reduction to unweighted model counting, leveraging advances in unweighted solvers.

Proposed method

  • Leverages SAT solvers as oracles to check satisfiability of formulas with added universal hash constraints.
  • Applies universal hashing over the minimal independent support of a formula to reduce the number of XOR constraints and improve efficiency.
  • Introduces the MIS algorithm to compute minimal independent supports by reducing the problem to Group Minimal Unsatisfiable Subset (GMUS).
  • Employs a reduction from literal-weighted model counting (WMC) to unweighted model counting (UMC), preserving input normal form and enabling black-box integration of UMC solvers.
  • Uses the projected solution space from hashing to enable uniform or approximately uniform sampling from the solution set of a CNF formula.
  • Employs a recursive hashing and splitting strategy to estimate the total number of solutions with bounded error.

Experimental results

Research questions

  • RQ1Can universal hashing combined with SAT solving provide scalable and correct-by-construction algorithms for constrained sampling and counting?
  • RQ2How can the density of XOR constraints in hashing-based counting be reduced to improve practical performance?
  • RQ3Can minimal independent supports be computed algorithmically to enable efficient hashing over smaller variable sets?
  • RQ4Is there an efficient, black-box reduction from weighted model counting to unweighted model counting that preserves input structure and enables use of existing UMC solvers?
  • RQ5To what extent can SAT-solving advances be leveraged to scale probabilistic inference in graphical models via model counting?

Key findings

  • The proposed hashing-based approach achieves two to three orders of magnitude speedup in sampling and counting performance by restricting hashing to minimal independent supports.
  • The MIS algorithm successfully computes minimal independent supports, enabling efficient hashing while preserving theoretical guarantees.
  • The reduction from weighted to unweighted model counting allows exact weighted counters to be built as black-box extensions of unweighted counters, enabling scaling to larger instances.
  • The use of minimal independent supports reduces XOR constraint density significantly, improving runtime without compromising correctness.
  • Experiments show that the resulting solvers (UniGen2 and ApproxMC) scale to formulas with hundreds of thousands of variables while maintaining strong theoretical approximation guarantees.
  • The black-box WMC-to-UMC reduction enables automatic leveraging of advances in unweighted model counting, leading to improved performance on large benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.