[Paper Review] On Hashing-Based Approaches to Approximate DNF-Counting
This paper introduces a novel hashing-based approach to approximate DNF model counting that achieves a fully polynomial randomized approximation scheme (FPRAS) with time complexity comparable to state-of-the-art Monte Carlo methods—previously thought unattainable for hashing-based DNF counting. The key innovations are Symbolic Hashing, Stochastic Cell Counting, and a new family of Row-Echelon hash functions (HREX), enabling efficient enumeration via Gray codes and reducing complexity to Õ(mn log(1/δ)/ε²).
Propositional model counting is a fundamental problem in artificial intelligence with a wide variety of applications, such as probabilistic inference, decision making under uncertainty, and probabilistic databases. Consequently, the problem is of theoretical as well as practical interest. When the constraints are expressed as DNF formulas, Monte Carlo-based techniques have been shown to provide a fully polynomial randomized approximation scheme (FPRAS). For CNF constraints, hashing-based approximation techniques have been demonstrated to be highly successful. Furthermore, it was shown that hashing-based techniques also yield an FPRAS for DNF counting without usage of Monte Carlo sampling. Our analysis, however, shows that the proposed hashing-based approach to DNF counting provides poor time complexity compared to the Monte Carlo-based DNF counting techniques. Given the success of hashing-based techniques for CNF constraints, it is natural to ask: Can hashing-based techniques provide an efficient FPRAS for DNF counting? In this paper, we provide a positive answer to this question. To this end, we introduce two novel algorithmic techniques: \emph{Symbolic Hashing} and \emph{Stochastic Cell Counting}, along with a new hash family of \emph{Row-Echelon hash functions}. These innovations allow us to design a hashing-based FPRAS for DNF counting of similar complexity (up to polylog factors) as that of prior works. Furthermore, we expect these techniques to have potential applications beyond DNF counting.
Motivation & Objective
- Address the gap in efficient hashing-based approximation for DNF model counting, despite their success in CNF counting.
- Overcome the poor time complexity of prior hashing-based DNF counting approaches, which were quartic in formula size.
- Design a hashing-based FPRAS for DNF counting with complexity matching that of state-of-the-art Monte Carlo techniques.
- Enable practical scalability of hashing-based methods for DNF by introducing new algorithmic primitives and a specialized hash family.
- Lay foundations for extending hashing-based techniques to other constraint classes, including CNF+XOR and probabilistic SAT solving.
Proposed method
- Propose a new family of 2-universal hash functions, HREX (Row-Echelon), designed for sparse, fast enumeration of solutions using Gray codes.
- Introduce Symbolic Hashing, a technique that enables efficient representation and manipulation of hash functions over DNF structures.
- Develop Stochastic Cell Counting to estimate the number of solutions per cell probabilistically, reducing reliance on exact SAT solving per cell.
- Leverage the sparsity of HREX functions to accelerate solution enumeration and reduce computational overhead.
- Integrate median boosting over multiple runs to amplify confidence to 1−δ, ensuring high-probability correctness.
- Use a recursive thresholding strategy to identify the correct cell size by estimating solution counts via sampling and concentration bounds.
Experimental results
Research questions
- RQ1Can hashing-based techniques achieve an FPRAS for DNF model counting with time complexity competitive to Monte Carlo methods?
- RQ2What novel algorithmic techniques are required to make hashing-based DNF counting both efficient and correct with high probability?
- RQ3How can the structure of DNF formulas be exploited to design fast, sparse hash functions that support efficient solution enumeration?
- RQ4Can the framework be generalized to other constraint classes, such as CNF+XOR or probabilistic SAT?
- RQ5What is the theoretical time complexity of the proposed hashing-based FPRAS for DNF counting, and how does it compare to prior approaches?
Key findings
- The proposed algorithm, SymbolicDNFApproxMC, achieves an FPRAS for DNF counting with time complexity Õ(mn log(1/δ)/ε²), matching the best-known Monte Carlo techniques.
- The HREX family of hash functions enables efficient solution enumeration using Gray codes, significantly reducing the cost of evaluating cell solution counts.
- Symbolic Hashing allows compact representation and fast computation of hash functions over DNF clauses, improving scalability.
- Stochastic Cell Counting reduces the need for exact SAT solving per cell by using probabilistic estimation, enhancing performance.
- Theoretical analysis confirms that the algorithm returns a (1+ε)-approximate count with probability at least 1−δ, with error bounds derived from concentration inequalities.
- The complexity is nearly optimal, with only polylogarithmic factors differing from the state-of-the-art, resolving a long-standing open question on the feasibility of efficient hashing-based DNF counting.
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.