Introduction
Evaluating queries on probabilistic databases—where each tuple exists with a specific probability—is a fundamental yet computationally daunting task, often classified as #P-hard. To manage this complexity, researchers employ query compilation. This process involves taking a query's "lineage"—a Boolean formula representing the combinations of tuples that satisfy the query—and transforming it into a "tractable" circuit format. If the resulting circuit is both decomposable and deterministic, computing probabilities becomes a linear-time operation.
Historically, efficiency was tied to the pathwidth of the lineage, which allowed for compilation into Ordered Binary Decision Diagrams (OBDDs). However, pathwidth is a restrictive metric. This paper explores a more general graph-theoretic measure: treewidth. The authors bridge database theory and knowledge compilation by proving that a Boolean circuit's treewidth perfectly characterizes its Sentential Decision Diagram (SDD) width.
The SDD Breakthrough
Sentential Decision Diagrams (SDDs) were originally introduced in the AI community as a more flexible and exponentially more succinct alternative to OBDDs. A major contribution of this work is identifying SDDs as the "right" target for bounded-treewidth circuits.
To achieve this, the authors moved away from standard indirect compilation methods, such as Tseitin transformations, which often lead to exponential circuit bloat. Instead, they introduced the concepts of factors and factorized implicants. By using these structures, they can directly and recursively build a canonical SDD. This novel approach ensures that the compiled SDD size depends linearly on the number of variables $n$ (the database tuples), a significant improvement over previous methods that scaled with the number of gates in the original circuit.
Formal Results
The paper establishes a definitive link between structural graph properties and circuit complexity. The core result is the equivalence of widths: a Boolean circuit with $n$ variables and treewidth $k$ has an SDD width of $f(k)$ and can be compiled into an SDD of size $O(f(k)n)$. Conversely, any Boolean function with SDD width $k$ possesses a circuit treewidth of $O(k)$.
Beyond positive results, the authors use communication complexity to establish lower bounds. They prove that certain syntactic patterns in queries, known as "inversions," guarantee intractability. Specifically, for Unions of Conjunctive Queries (UCQs) containing inversions, the lineage cannot be efficiently compiled into any deterministic structured form, requiring circuits of size $2^{\Omega(n/k)}$. This result generalizes known limits of OBDDs to the more powerful SDD class.
Additionally, the authors resolve an open question by proving that circuit treewidth is a computable parameter. They also demonstrate that the Indirect Access Storage (ISA) function, once thought to separate SDDs from general deterministic structured forms, actually has a polynomial SDD size ($O(n^{13/5})$).
Limitations and Future Work
While the linear scaling $O(f(k)n)$ is a theoretical milestone, the function $f(k)$ applied to the treewidth is triple-exponential. This suggests that while the approach is theoretically efficient, it is practically viable only for lineages with very small treewidths.
Future research may focus on resolving the Jha and Suciu conjecture regarding whether bounded circuit treewidth implies bounded OBDD width for UCQs with inequalities. Furthermore, the authors suggest that the "factorized implicants" used in their compilation bear a strong resemblance to structures in factorized databases, opening new avenues for research in the knowledge compilation map.
Summary updated