Introduction
Model counting—the task of determining the number of satisfying assignments for a Boolean formula—is a central problem in computer science with applications in probabilistic reasoning, formal verification, and artificial intelligence. While the problem is #P-complete in the general case, researchers often employ Knowledge Compilation to transform formulas into tractable representations like d-DNNF (deterministic Decomposable Negation Normal Form). Once compiled, counting can be performed in linear time.
Traditionally, efficient compilation has been restricted to formulas in Conjunctive Normal Form (CNF) with low treewidth. However, many real-world problems are more naturally expressed using complex constraints like parity (XOR) or cardinality. Converting these to CNF often destroys their structural simplicity. This paper addresses this gap by providing a framework to compile systems of non-CNF constraints directly while maintaining computational efficiency.
The Concept of Slim Functions
The core theoretical contribution of this work is the identification of slim functions. A Boolean function is considered "slim" if it can be represented by constant-width decision diagrams, such as Ordered Binary Decision Diagrams (OBDDs), regardless of the variable ordering. This property is vital because it ensures that the "state" of a constraint remains manageable during the compilation process, independent of how variables are arranged within a tree decomposition.
Algorithmic Frameworks: Compilation vs. Counting
The authors introduce two primary methods for handling these complex constraints:
- Tseitin-based Compilation: By encoding slim constraints into CNF using auxiliary variables (Tseitin encoding), the authors prove that systems of these constraints are Fixed-Parameter Tractable (FPT) with respect to incidence treewidth. This allows for the generation of d-DNNF circuits in time $2^{O(w \cdot k)} \cdot \text{poly}(|F|)$, where $w$ is the state size and $k$ is the treewidth.
- Direct Dynamic Programming: For tasks where only a single count is needed, the authors propose a dynamic programming approach over a tree decomposition. To optimize the "join" step—often a computational bottleneck—they utilize algebraic techniques like the Convolution Theorem and Fast Fourier Transforms (FFT) for specific constraints such as modulo or XOR.
Key Results and Complexity Bounds
The paper establishes that the "slimness" requirement is a fundamental boundary for efficiency. The authors demonstrate a lower bound showing that the state size $w$ must appear in the exponent of the running time; otherwise, one could solve W[1]-hard problems in polynomial time. Furthermore, for constraints that are even slightly more complex than slim ones, the size of the d-DNNF representation can explode exponentially, proving that the slimness property is a tight boundary for FPT compilation.
Conclusion
By expanding the boundaries of knowledge compilation beyond CNF, this research provides a more robust framework for handling real-world Boolean constraints. While the requirement for a function to be slim in all orderings is strict, it provides a rigorous foundation for future tools. Future work will investigate whether this "beyond CNF" approach is always superior or if there are specific cases where clever CNF encodings remain more efficient.
Summary updated