[Paper Review] Connecting Width and Structure in Knowledge Compilation (Extended Version)
This paper presents a linear-time algorithm to compile Boolean circuits into deterministic, structured DNNF (d-SDNNF) with bounded treewidth, leveraging tree decomposition and MSO logic. The key contribution is a construction that preserves circuit equivalence while ensuring tractable query evaluation, with runtime complexity $ O(|T| \times 2^{(4+\varepsilon)k}) $ for any $ \varepsilon > 0 $, where $ k $ is the treewidth.
Several query evaluation tasks can be done via knowledge compilation: the query result is compiled as a lineage circuit from which the answer can be determined. For such tasks, it is important to leverage some width parameters of the circuit, such as bounded treewidth or pathwidth, to convert the circuit to structured classes, e.g., deterministic structured NNFs (d-SDNNFs) or OBDDs. In this work, we show how to connect the width of circuits to the size of their structured representation, through upper and lower bounds. For the upper bound, we show how bounded-treewidth circuits can be converted to a d-SDNNF, in time linear in the circuit size. Our bound, unlike existing results, is constructive and only singly exponential in the treewidth. We show a related lower bound on monotone DNF or CNF formulas, assuming a constant bound on the arity (size of clauses) and degree (number of occurrences of each variable). Specifically, any d-SDNNF (resp., SDNNF) for such a DNF (resp., CNF) must be of exponential size in its treewidth; and the same holds for pathwidth when compiling to OBDDs. Our lower bounds, in contrast with most previous work, apply to any formula of this class, not just a well-chosen family. Hence, for our language of DNF and CNF, pathwidth and treewidth respectively characterize the efficiency of compiling to OBDDs and (d-)SDNNFs, that is, compilation is singly exponential in the width parameter. We conclude by applying our lower bound results to the task of query evaluation.
Motivation & Objective
- To develop a method for compiling Boolean circuits into deterministic, structured DNNF (d-SDNNF) while preserving circuit semantics.
- To ensure the compilation process runs in linear time relative to the input circuit size, given bounded treewidth.
- To establish a connection between tree decomposition width and the structural properties of knowledge-compilation circuits.
- To enable efficient probabilistic inference and query evaluation on compiled circuits using tractable representations.
Proposed method
- Transform an arbitrary tree decomposition into a binary, full, and nice form while preserving width and structure, using chain replacements for bags with more than two children.
- Construct a v-tree for the resulting d-SDNNF by mapping each bag in the nice tree decomposition to a corresponding node in the v-tree.
- Define a signature $\sigma$ to encode circuits into relational instances with relations for gate types, wires, and truth valuations.
- Formulate an MSO formula $\varphi$ that checks circuit evaluation under a given valuation by existentially guessing a set of true gates satisfying gate semantics.
- Use known results to compute a d-SDNNF $C'$ capturing the provenance of $\varphi$ on the relational instance in linear time.
- Modify $C'$ to fix input values for non-True facts, yielding $C''$, which is equivalent to the original circuit and remains a d-SDNNF.
Experimental results
Research questions
- RQ1Can a Boolean circuit be compiled into a d-SDNNF in time linear in the circuit size, given bounded treewidth?
- RQ2How can tree decomposition width be leveraged to ensure the structural properties of d-SDNNF, such as determinism and decomposability?
- RQ3What is the relationship between pathwidth, degree, and path-structure width in hypergraphs, and how does it affect circuit compilation?
- RQ4Is it possible to maintain equivalence between the original circuit and the compiled d-SDNNF while enabling efficient probabilistic inference?
Key findings
- The paper presents a linear-time algorithm to compile any Boolean circuit into an equivalent d-SDNNF, with runtime complexity $ O(|T| \times 2^{(4+\varepsilon)k}) $ for any $ \varepsilon > 0 $, where $ k $ is the treewidth of the circuit's tree decomposition.
- The construction ensures that the resulting d-SDNNF is deterministic and structured, with a v-tree derived from the nice tree decomposition.
- The method preserves circuit semantics: $ C'' $ evaluates to true under a valuation $ \nu $ if and only if the original circuit $ C $ evaluates to true under $ \nu $.
- The algorithm maintains the width of the original tree decomposition throughout all transformations, including binaryization, normalization, and fullness enforcement.
- The proof establishes that the number of gates introduced per bag is bounded by $ 2^{O(k)} $, ensuring the exponential dependence on treewidth is minimal.
- The paper proves $ \mathrm{psw}(H) \leq \mathrm{degree}(H) \times (\mathrm{pw}(H) + 1) $, providing a useful bound for path-structure width in hypergraphs.
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.