Introduction
This paper introduces a clever transformation that simplifies a notoriously difficult task in logic programming: verifying "stable models" in Disjunctive Logic Programming (DLP). By reducing this co-NP-complete problem to a standard Boolean Satisfiability (SAT) problem—specifically checking for unsatisfiability—the authors allow DLP engines to leverage decades of high-performance SAT solver research, resulting in massive speedups for complex reasoning tasks.
The Challenge of Stable Model Checking
In the world of Knowledge Representation, Disjunctive Logic Programming (DLP) is a heavyweight champion. It allows researchers to model complex, "nonmonotonic" problems—situations where new information might invalidate previous conclusions. However, this power comes at a steep computational cost.
The bottleneck is stable model checking: given a candidate solution (a model), is it actually "stable" according to the rules of the program? For standard logic programs, this is a polynomial-time task. For DLP, it is co-NP-complete. This difficulty has historically discouraged the development of DLP engines. Before this paper, the dlv system was one of the few tools capable of handling these programs, but its model-checking component was a significant performance drag.
Methodology
The authors propose a new transformation, denoted as $\Gamma_M(P)$, which converts the model-checking problem into a propositional formula in Conjunctive Normal Form (CNF).
The process involves three main simplification steps:
- Pruning: Deleting rules whose conditions aren't met by the candidate model.
- Simplification: Removing negative literals and false atoms to create a "positive" version of the program.
- The "Swap": The core innovation involves swapping the heads and bodies of the remaining rules to generate a CNF formula.
The "Aha!" moment is their proof that a candidate model $M$ is stable if and only if this generated CNF formula is unsatisfiable (UNSAT). Crucially, this transformation is parsimonious (no new symbols), efficient (runs in logspace), and compact (the resulting formula is never larger than the original program).
The authors integrated this into the dlv system, using the SATO solver to handle the resulting UNSAT checks. They also introduced modular evaluation, which breaks the program into smaller independent components to be checked one by one.
Experimental Evaluation
The researchers evaluated their approach using the "Strategic Companies" benchmark, a classic $\Sigma_2^P$-complete problem involving a holding company that owns various subsidiaries. They generated random instances ranging from 5 to 100 companies, with each company controlled by 1 to 5 others and producing various products.
As shown in Figure 1, the new method dramatically outperformed the previous "Old Checker." While the old checker's execution time grew exponentially, reaching nearly 2000 seconds for 100 companies, the new SAT-based approach remained efficient, solving the same instances in a fraction of the time.
Key Results and Insights
The experimental results showed a dramatic improvement over the "Old Checker" previously used in the dlv system:
- Massive Speedup: For instances with 100 companies, the old checker was essentially unusable, while the new approach solved them in seconds.
- Efficiency of Modularity: The modular version was significantly faster than the non-modular SAT approach. In some cases, the modular version took less than 5% of the time required by the standard SAT-based transformation.
- Scalability: While the "worst-case" time for a single call remained high for very hard instances, the average performance allowed the system to handle much larger problem sizes than previously possible.
Figure 2 illustrates how these improvements translate to the overall performance of the dlv system. By bridging high-level nonmonotonic reasoning with low-level, highly optimized SAT solving, the authors successfully mapped the search for "unfounded sets" onto the search for a satisfying assignment in a CNF formula.
Limitations and Future Work
While the results are impressive, the paper focuses primarily on the checking phase of solving. Future research could explore how this transformation affects the generation of model candidates. Additionally, while the "Strategic Companies" benchmark is a standard and difficult test, further validation on a wider variety of real-world Knowledge Representation problems would be beneficial. The authors also note that since stable model checking generalizes minimal model checking, their results could be applied to other areas like circumscription and minimal model reasoning.
Summary updated