TL;DR
This paper introduces CCDD, a new knowledge representation language that extends Decision-DNNF by incorporating "kernelized conjunctions" to efficiently capture literal equivalences. This novel representation enables polynomial-time model counting and uniform sampling, outperforming existing methods on a large benchmark suite.
What Problem Does This Paper Address?
The field of knowledge compilation (KC) aims to transform complex logical representations into simpler, tractable target languages that support efficient querying. A key challenge is to balance expressiveness with tractability, especially for fundamental AI tasks like model counting (determining the number of satisfying assignments for a propositional formula) and uniform sampling (generating a random satisfying assignment). Existing tractable languages like Decision-DNNF, while powerful, struggle to efficiently represent and leverage "literal equivalences" – relationships where a variable or its negation is equivalent to another literal. This limitation hinders the performance of model counters and samplers. The authors seek to address this by developing a new representation that can effectively capture these equivalences, leading to improved performance.
Methods
The core contribution is the introduction of CCDD (Conjunction & Decision Diagram), a generalization of existing decision diagrams. CCDD extends these by allowing for:
- Kernelized Conjunctions: This is the key novelty. Instead of simply decomposing conjunctions into independent sub-formulas, kernelized conjunctions explicitly represent literal equivalences. This is achieved by designating a "core child" and a set of "remaining children" that define these equivalences.
- Decomposed Conjunctions: Standard decomposition where conjuncts share no variables.
- Decision Nodes: Standard nodes that branch based on variable assignments.
The paper also presents:
- Panini: A compiler that transforms propositional formulas in Conjunctive Normal Form (CNF) into CCDD. Panini employs a heuristic (
SHOULDKERNELIZE) to decide when to use kernelization, aiming to balance the cost of detecting equivalences with their potential benefits. - ExactMC: A model counter that leverages the CCDD representation without explicitly constructing the full CCDD, optimizing for memory usage.
- ExactUS: A uniform sampler that utilizes the compiled CCDD and the model counts derived from it.
The tractability of model counting and uniform sampling on CCDD is proven through recursive algorithms that operate on the DAG structure of the representation.
Datasets
The paper evaluates its methods on a comprehensive set of 1114 benchmarks from various application areas, including automated planning, Bayesian networks, configuration, combinatorial circuits, inductive inference, model checking, program synthesis, and quantitative information flow analysis. These benchmarks are standard in the field and have been used to evaluate prior KC techniques.
Key Insights and Ideas
- Literal Equivalences are Crucial: The paper strongly emphasizes that explicitly capturing literal equivalences is key to improving the performance of model counting and uniform sampling. Existing methods often miss these opportunities, leading to less efficient representations and slower computations.
- Kernelization as a Powerful Tool: The introduction of kernelized conjunctions in CCDD is shown to be a significant advancement. It allows for more compact representations and faster query answering by directly encoding these logical relationships.
- Orthogonality of Kernelization: The authors suggest that kernelization is a technique orthogonal to other KC notions like determinism and decomposability, implying it can be combined with existing approaches to further enhance tractability.
- Practical Impact of Theoretical Advances: The development of Panini, ExactMC, and ExactUS demonstrates how theoretical advancements in representation languages (CCDD) can translate into practical, high-performance tools.
Key Results
- Improved Compilation: Panini compiled 35-251 more instances than state-of-the-art compilers for Decision-DNNF, SDD, and OBDD[^] compilers, often with smaller representations.
- Enhanced Model Counting: ExactMC solved 886 instances, outperforming the prior state-of-the-art (Ganak) which solved 843 instances, a gain of 43 instances. This represents a significant improvement over existing methods across different paradigms.
- Superior Uniform Sampling: ExactUS solved 780 instances, significantly outperforming SPUR (648 instances) and KUS (594 instances), a gain of 132 and 186 instances, respectively.
- Tractability Guarantees: CCDD supports model counting and uniform sampling in polynomial time.
Limitations and Future Work
- Heuristic Dependence: The performance of Panini relies on heuristics like
SHOULDKERNELIZEand decision variable ordering (DLCP), which are determined empirically. While effective, their performance might vary on different problem instances. - Memory for Full CCDD: While ExactMC avoids constructing the full CCDD to save memory, the paper acknowledges that storing a complete CCDD for complex formulas can be memory-intensive.
- Future Work: The authors suggest that kernelization, being orthogonal to other KC notions, can be combined with determinism and decomposability to identify and develop even more interesting and powerful knowledge representation languages. They also highlight the potential for further improvements in decision heuristics and caching schemes for CCDD-based tools.
Summary updated