Introduction
In the field of automated reasoning, Boolean functions are frequently represented using Negation Normal Forms (NNFs). For these representations to be computationally useful, they must satisfy certain structural properties. Two of the most critical are decomposability (enabling efficient consistency checking) and determinism (enabling efficient model counting). While state-of-the-art knowledge compilers like c2d or DSHARP strictly enforce both properties to produce deterministic DNNFs (d-DNNFs), many practical tasks—such as clausal entailment, model-based diagnosis, and hardware testing—only require decomposability.
This paper investigates the "determinism tax": the significant increase in representation size and compilation time required to maintain determinism. By bypassing this requirement, the authors demonstrate that it is possible to compile far more succinct representations for complex Boolean functions.
The Determinism Tax
The core issue addressed is that d-DNNFs can be exponentially larger than plain DNNFs. By forcing determinism when it is not strictly necessary for the target task, researchers often encounter massive, inefficient structures that may fail to compile entirely on complex benchmarks.
As shown in Figure 3, the structural complexity required to ensure that disjunctions are mutually exclusive (determinism) often leads to a much denser and deeper Directed Acyclic Graph (DAG) compared to a standard decomposable form.
The Equivalent Modulo Forgetting (EMF) Workflow
To avoid this tax while still leveraging existing high-performance deterministic compilers, the authors propose a three-step methodology called Equivalent Modulo Forgetting (EMF):
- Augmentation: The input function $f(\mathbf{X})$ is transformed into a new function $g(\mathbf{X}, \mathbf{Y})$ by adding auxiliary variables $\mathbf{Y}$. This is done such that $f$ is equivalent to $g$ if the variables $\mathbf{Y}$ are existentially quantified (or "forgotten"). The authors utilize Bounded Variable Addition (BVA), a technique from SAT solving, to generate these variables.
- Deterministic Compilation: An off-the-shelf compiler is used to transform $g(\mathbf{X}, \mathbf{Y})$ into a standard d-DNNF.
- Forgetting: The auxiliary variables $\mathbf{Y}$ are removed from the resulting d-DNNF. In a decomposable structure, this is a linear-time operation: all occurrences of the variable's literals are simply replaced with the constant
true($\top$).
This process, illustrated in Figure 4, results in a valid DNNF for the original function $f$. While the final structure is no longer deterministic, it is significantly more compact than a d-DNNF compiled directly from $f$.
Key Insights: Treewidth and Succinctness
A major theoretical contribution of the paper is the link between BVA and treewidth. Treewidth measures how "tree-like" a graph is; lower treewidth generally facilitates easier compilation. The authors prove that adding even a single auxiliary variable can lead to an exponential reduction in representation size. Furthermore, BVA can reduce the treewidth of a formula from unbounded to a small constant, effectively "unlocking" formulas that were previously uncompilable by traditional means.
Experimental Results
The researchers evaluated the c2d_forget approach against traditional c2d compilation using two primary benchmarks:
- Synthetic $\Delta^a_n$ Formulas: These high-treewidth formulas are notoriously difficult for traditional compilers. While standard
c2dhit a wall at $n=20$, the EMF approach handled $n=100$ in just 0.04 seconds, producing a representation with only 312 nodes—orders of magnitude smaller than the deterministic versions for much smaller $n$. - FPGA Routing Problems: On real-world CNF encodings of wire routing, the EMF method successfully compiled five instances that caused traditional compilers to time out after one hour. For instances that both methods could complete, the new approach was consistently faster and produced more compact results.
Conclusion and Future Work
The EMF methodology offers a powerful way to generate succinct DNNFs by avoiding the unnecessary overhead of determinism. The primary trade-off is that the resulting DNNF cannot be used for model counting, as the forgetting step destroys the required determinism. Future research will focus on developing better heuristics for auxiliary variable selection and exploring other EMF transformations to further simplify inputs before compilation.
Summary updated