Skip to main content
QUICK REVIEW

[Paper Review] Scalable Algorithms for Approximate DNF Model Counting

Burkhardt, Paul, David G. Harris|arXiv (Cornell University)|Jan 15, 2026
Bayesian Modeling and Causal InferenceComputer Science0 citations
TL;DR

The paper proposes a new Monte Carlo algorithm with adaptive stopping and short-circuiting for approximate DNF model counting, achieving PAC guarantees and outperforming prior FPRAS methods while scaling to million-variable problems.

ABSTRACT

Model counting of Disjunctive Normal Form (DNF) formulas is a critical problem in applications such as probabilistic inference and network reliability. For example, it is often used for query evaluation in probabilistic databases. Due to the computational intractability of exact DNF counting, there has been a line of research into a variety of approximation algorithms. These include Monte Carlo approaches such as the classical algorithms of Karp, Luby, and Madras (1989), as well as methods based on hashing (Soos et al. 2023), and heuristic approximations based on Neural Nets (Abboud, Ceylan, and Lukasiewicz 2020). We develop a new Monte Carlo approach with an adaptive stopping rule and short-circuit formula evaluation. We prove it achieves Probably Approximately Correct (PAC) learning bounds and is asymptotically more efficient than the previous methods. We also show experimentally that it out-performs prior algorithms by orders of magnitude, and can scale to much larger problems with millions of variables.

Motivation & Objective

  • Motivate the need for scalable approximate DNF counting in probabilistic inference, databases, and reliability.
  • Develop a new Monte Carlo approach with adaptive stopping and short-circuit evaluation.
  • Provide theoretical PAC guarantees and compare asymptotic costs to prior methods.
  • Demonstrate empirical scalability to very large problem instances over millions of variables.

Proposed method

  • Introduce Lazy Monte Carlo Sampling to estimate the DNF model ratio via sampling a clause and a partial assignment.
  • Develop L-KLM: a lazy sampling variant of KLM with reduced sampling by delaying variable assignment (Algorithm 1).
  • Present the Main Algorithm with an adaptive stopping rule and a fixed clause order to improve memory locality (Algorithm 2).
  • Use a permutation generation procedure P1 to blend heuristic and random clause orders for performance gains.
  • Prove PAC-type guarantees and derive time, randomness, and space bounds (Theorems 1, 4, 5, 6).
  • Implement and benchmark against Pepin, KLM, L-KLM, and Neural#DNF on synthetic DNFs.

Experimental results

Research questions

  • RQ1Can a Monte Carlo approach with adaptive stopping and short-circuiting provide PAC guarantees for DNF model counting?
  • RQ2How does reusing a fixed clause permutation affect memory locality and runtime vs. fully randomized approaches?
  • RQ3What are the asymptotic time, randomness, and space complexities of the new algorithm relative to prior FPRAS methods?
  • RQ4How does the new method scale to DNFs with millions of variables and clauses?

Key findings

  • The proposed Main Algorithm achieves PAC guarantees with expected work O(m w log(2/p) log(1/δ) / ε^2) and randomized complexity O(min{m log(2/p), n/p} log(1/δ) / ε^2) under certain conditions.
  • L-KLM further reduces sampling by lazily assigning variables, achieving improved scalability and lower constants than KLM.
  • Empirical results show the new approach outperforms existing state-of-the-art FPRAS methods and scales to problems with over 10^6 variables, often matching Neural#DNF in speed.
  • The method benefits from reduced randomness usage, fixed clause order improving memory locality, and effective short-circuiting of clause checks.
  • Experiments on synthetic DNFs indicate strong scaling and accuracy under tight PAC parameters (ε, δ).

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.