Abstract
This research establishes a formal bridge between two previously distinct areas of AI: systematic search algorithms (like DPLL) and knowledge compilation into propositional languages (like OBDDs). By interpreting the "trace" of an exhaustive search as a combinational circuit, the authors prove that different search strategies directly define and generate specific propositional languages, providing a unified framework to build efficient compilers and understand the fundamental limits of search.
Introduction: Search vs. Compilation
In automated reasoning, a fundamental trade-off exists between performing a search for every query (e.g., "Is this formula satisfiable?") and compiling the knowledge base into a tractable format once to answer future queries efficiently. While search algorithms, particularly for SAT, have undergone decades of optimization, knowledge compilation has largely remained a separate theoretical endeavor. This paper addresses the lack of a formal connection between these worlds, asking: What exactly is a search algorithm doing to the structure of a problem, and can we use that work to produce a reusable, compiled representation?
Methods: The Search Trace as a Circuit
The core innovation is the concept of the search trace. When an exhaustive search algorithm like DPLL explores a tree of variable assignments, the resulting exploration path (or Directed Acyclic Graph, if redundancies are merged) can be interpreted as a Negated Normal Form (NNF) circuit.
The paper maps specific algorithmic constraints to well-known propositional languages:
- Exhaustive DPLL generates FBDD (Free Binary Decision Diagrams).
- Exhaustive DPLL with fixed variable ordering generates OBDD (Ordered Binary Decision Diagrams).
- Exhaustive DPLL with decomposition (partitioning independent sub-problems) generates decision-DNNF (a subset of deterministic Decomposable Negation Normal Form).
To operationalize these mappings, the authors incorporate standard search optimizations such as unique nodes to merge isomorphic sub-structures and formula caching to avoid re-solving identical sub-problems encountered via different paths.
Experimental Evaluation
The authors evaluated their search-based compilers using standard benchmarks:
- Random 3-CNF formulas: (uf75, uf100, uf200) from the SATLIB repository.
- Graph coloring problems: (flat75, flat100, flat200) from SATLIB.
- ISCAS89 circuits: Benchmark circuits used in design automation (e.g., s820, s1196, s1494).
Key Insights: Search is Compilation
The most profound insight is that an exhaustive search is a compilation process. The effort spent searching is not lost once a result is found; recording the trace yields a circuit logically equivalent to the original problem.
Furthermore, the authors highlight the Power of Decomposition. Adding decomposition to DPLL allows the search to generate d-DNNF, a language significantly more succinct than OBDDs. However, a "Determinism Bottleneck" remains: because DPLL-based search splits on variables ($x$ vs $\neg x$), it cannot generate more general languages like full DNNF, which allow non-deterministic disjunctions.
Key Results: A Hierarchy of Succinctness
Experimental results demonstrate a clear hierarchy in succinctness and efficiency among the compiled formats.
- Succinctness: d-DNNF was consistently the smallest representation, followed by FBDD and then OBDD. For the
s820benchmark, the OBDD required over 1.3 million edges, while the d-DNNF version required only ~23,000. - Efficiency: The d-DNNF compiler was generally the fastest and handled larger problems (e.g.,
uf200ors1423) that caused OBDD and FBDD compilers to time out. - Practicality: Modern SAT techniques like conflict analysis and clause learning can be directly harnessed to build state-of-the-art knowledge compilers.
Limitations and Future Work
Despite these advances, search algorithms are currently limited to deterministic languages. Moving beyond simple variable-splitting may be necessary to reach the full potential of succinct languages like DNNF. Additionally, the choice of caching schemes (e.g., dtrees vs. dynamic partitioning) significantly impacts performance on different problem structures. Finally, unlike OBDDs, FBDDs and d-DNNFs are not canonical, meaning a single formula can have multiple representations, which complicates operations like equivalence testing.
Summary updated