Backdoors to Normality for Disjunctive Logic Programs

Johannes Klaus Fichte, Stefan Szeider

Abstract

Reasoning in Disjunctive Answer Set Programming (ASP) is a computationally intensive task, typically residing at the second level of the Polynomial Hierarchy ($\Sigma_2^P$). This paper introduces a novel approach to mitigate this complexity by identifying "backdoors to normality"—small sets of atoms whose deletion or assignment transforms a disjunctive program into a normal one. We present a fixed-parameter tractable (FPT) reduction that translates these "harder-than-NP" problems into standard SAT instances. Our empirical analysis shows that structured real-world problems often possess very small backdoors, enabling efficient reasoning via modern SAT solvers.

Introduction

In the field of Artificial Intelligence, Answer Set Programming (ASP) serves as a robust framework for modeling complex combinatorial search problems. While normal logic programs are relatively manageable (NP-complete), Disjunctive ASP—where rule heads can contain multiple atoms—introduces significant complexity. Fundamental tasks like Brave Reasoning (determining if a fact is true in at least one answer set) and Skeptical Reasoning (determining if a fact is true in all answer sets) are $\Sigma_2^P$-complete and $\Pi_2^P$-complete, respectively.

Directly translating these problems into SAT formulas usually results in a combinatorial explosion. This paper addresses this challenge by leveraging structural properties of programs to find a "shortcut" that confines the exponential growth to a small parameter, rather than the entire input size.

Methodology

The authors utilize the framework of Parameterized Complexity, focusing on the concept of Backdoors to Normality.

Backdoors to Normality

A "normal" logic program is one where every rule has at most one atom in its head. Reasoning for such programs is significantly easier, dropping to the first level of the complexity hierarchy. A strong normal-backdoor is a set of atoms $k$ such that for every truth assignment to $k$, the resulting program is normal.

FPT-Reductions and the MINCHECK Algorithm

The core contribution is an algorithm that transforms the ASP reasoning problem into a SAT formula in $O(2^k n^2)$ time, where $n$ is the input size and $k$ is the size of the backdoor. To maintain the "minimality" requirement of answer sets—the primary source of complexity in disjunctive ASP—the authors developed the MINCHECK procedure. This procedure is encoded directly into the SAT formula, ensuring that the solver only considers valid minimal models.

Backdoor Detection

The authors demonstrate that finding the smallest backdoor is equivalent to finding a Vertex Cover in a "head dependency graph." Since Vertex Cover is a well-studied problem with efficient FPT algorithms, detecting these backdoors is feasible for small $k$.

Empirical Evaluation

The prevalence of these backdoors was evaluated using several established ASP benchmark sets from international competitions. These include structured sets like ConformantPlanning, MinimalDiagnosis, MUS (Minimal Unsatisfiable Subsets), and StrategicCompanies, as well as synthetic "hard" sets like Mutex and RandomQBF.

Key Results

The theoretical results prove that Brave and Skeptical reasoning are fixed-parameter tractable when parameterized by the size of the strong normal-backdoor. The empirical findings, summarized in the table below, highlight a stark contrast between structured and random instances.

Table 1: Average backdoor sizes (bd %) across various ASP benchmark sets.

As shown in the data, structured problems like ConformantPlanning exhibit remarkably small backdoors, averaging only 0.69% of the total atoms. In these cases, the $2^k$ overhead of the FPT reduction is negligible. Conversely, random instances like RandomQBF have backdoors approaching 50%, confirming that this technique is specifically optimized for structured, human-designed problems.

Discussion and Conclusion

The most significant insight of this work is that structural parameters can effectively bridge the gap between different levels of the complexity hierarchy. By identifying "normality" as a uniquely powerful structural lever, the authors show that SAT solvers can be applied to problems previously considered out of reach.

Future work includes optimizing the SAT encoding to reduce the formula size from quadratic to linear and integrating this method into portfolio-based solvers. Such solvers could dynamically detect backdoor sizes and choose the most efficient reasoning strategy, extending the reach of ASP to even more complex AI domains like abduction and high-level planning.

Summary updated

BibTeX
@inproceedings{fichte2013backdoors,
  author = {Johannes Klaus Fichte and Stefan Szeider},
  title = {{Backdoors to Normality for Disjunctive Logic Programs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2013},
  doi = {10.1609/aaai.v27i1.8624},
}
Figure