Understanding model counting for $β$-acyclic CNF-formulas

Johann Brault-Baron, Florent Capelli, Stefan MengelarXiv 2014

Abstract

This paper presents the first polynomial-time algorithm for the propositional model counting problem (#SAT) on $\beta$-acyclic CNF-formulas. While the decision version (SAT) was known to be tractable for this class, the complexity of counting remained an open question. The authors demonstrate that $\beta$-acyclic formulas represent a unique class of tractability that evades standard dynamic programming frameworks, such as those based on bounded PS-width. By introducing a vertex elimination algorithm based on weighted constraint satisfaction with default values (#CSPd), the authors provide a robust theoretical foundation for solving #SAT and MaxSAT on $\beta$-acyclic structures.

1. Introduction

The propositional model counting problem, #SAT, is a fundamental task in computer science that asks for the number of satisfying assignments for a given Boolean formula in Conjunctive Normal Form (CNF). Unlike the decision version (SAT), which is NP-complete, #SAT is #P-complete, making it significantly more challenging to solve.

To identify tractable instances of #SAT, researchers typically look for structural properties in the formula's underlying hypergraph. Most known tractable classes are "tree-like" and are solved using dynamic programming (DP) techniques over decompositions (e.g., low treewidth). However, the class of $\beta$-acyclic formulas—a broad generalization of acyclicity—has long occupied an ambiguous position. While their decision complexity is low, their counting complexity and their relationship to existing structural frameworks remained poorly understood until this work.

2. The Challenge of $\beta$-Acyclicity

A recent unifying framework in the field of counting complexity is PS-width. It was previously conjectured that almost all structurally tractable #SAT problems could be explained through dynamic programming on decompositions of bounded PS-width.

The authors of this paper provide a major theoretical insight: $\beta$-acyclic formulas are "hard" for standard DP. They prove that these formulas can possess a PS-width that is exponential in the number of variables. This discovery implies that $\beta$-acyclic formulas cannot be solved using the standard STV-framework (the state-of-the-art for DP-based #SAT) in subexponential time, necessitating a completely different algorithmic approach.

3. The $\beta$-Elimination Algorithm

To overcome the limitations of dynamic programming, the authors depart from tree-like decompositions and instead utilize a vertex elimination order. The algorithm consists of several key components:

3.1 #CSPd Generalization

The authors first generalize #SAT into #CSPd (Weighted Counting for Constraint Satisfaction with Default Values). This framework allows for the efficient representation of CNF clauses. In a standard clause, most assignments satisfy the constraint (the "default"), while only one specific assignment does not. #CSPd captures this sparsity, allowing the algorithm to handle constraints of unbounded arity without the exponential blow-up typically associated with standard CSP representations.

3.2 Elimination and Weight Updating

$\beta$-acyclic hypergraphs are characterized by the existence of a "nest point" elimination order. The algorithm proceeds by eliminating variables one by one according to this order. As each variable is removed, the algorithm updates the weights of the remaining constraints.

A critical challenge in this process is numerical precision. The authors provide a rigorous analysis to prove that the "bitsize" of the weights (which are rational numbers) grows only polynomially. This ensures that the algorithm remains efficient on a RAM model, requiring only $O(s(I)^2 ||I||)$ arithmetic operations.

4. Key Results and Implications

The primary contribution of the paper is the proof that #SAT on $\beta$-acyclic CNF-formulas is solvable in polynomial time (Corollary 27). Beyond this, the research yields several significant findings:

  • Structural Independence: The paper demonstrates that structural tractability for counting is more diverse than previously thought. We cannot rely solely on "width" measures like PS-width to explain why certain problems are easy.
  • MaxSAT Extension: The elimination technique is versatile enough to be adapted for the MaxSAT problem (finding the maximum number of satisfiable clauses), which is also shown to be polynomial-time for $\beta$-acyclic formulas.
  • Lower Bounds: The authors formally prove the existence of monotone $\beta$-acyclic formulas with PS-width $2^{\Omega(n)}$, providing a concrete counterexample to the universality of the PS-width framework.

5. Conclusion and Future Work

This work fills a significant gap in the landscape of counting complexity. By moving beyond the dynamic programming paradigm, the authors have unlocked a new class of tractable #SAT instances.

Future research may explore whether these techniques can be extended to formulas with bounded $\beta$-hypertree width, a further generalization of acyclicity. Additionally, while this paper is theoretical, the elimination-based approach offers a promising alternative for practical solver development, particularly for structured instances where traditional DP-based heuristics might struggle.

Summary updated

BibTeX
@misc{braultbaron2014understanding,
  author = {Johann Brault-Baron and Florent Capelli and Stefan Mengel},
  title = {{Understanding model counting for $β$-acyclic CNF-formulas}},
  year = {2014},
  eprint = {1405.6043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1405.6043},
}
Figure