Backdoor Trees for Answer Set Programming

Johannes Klaus Fichte, Stefan SzeiderASPOCP@LPNMR 2017

Introduction

Answer Set Programming (ASP) is a prominent declarative modeling paradigm used for solving complex combinatorial search problems. While powerful, many ASP reasoning tasks, such as checking for the existence of a stable model, are computationally demanding, often residing at the second level of the polynomial hierarchy ($\Sigma_P^2$-complete). To mitigate this, researchers have long sought "backdoors"—small sets of variables that, when assigned, simplify the problem into a tractable fragment. This paper introduces Backdoor Trees, a refinement of the traditional set-based backdoor approach that offers significant computational advantages.

The Challenge of ASP Complexity

Traditional "strong backdoors" are defined as sets of atoms $B$ such that for every truth assignment to $B$, the resulting simplified program (reduct) falls into a tractable class $\mathcal{C}$, such as Horn programs. However, this approach is inherently "brute-force": a backdoor of size $k$ requires evaluating $2^k$ assignments. In many real-world instances, assigning only a subset of these variables is sufficient to reach tractability, making the full $2^k$ exploration redundant.

Innovation: Backdoor Trees

The authors propose representing backdoors as binary decision trees rather than flat sets. In a Backdoor Tree, internal nodes represent partial assignments, and leaves represent programs that are already within a tractable class $\mathcal{C}$.

Comparison between a full set-based backdoor (a) and a more efficient backdoor tree (b).

As shown in Figure 1, a backdoor tree can terminate branches early. While a set-based approach (a) forces a full binary tree of depth $k$, a backdoor tree (b) can be significantly smaller by stopping as soon as a tractable sub-problem is identified. This allows the algorithm to solve fewer sub-problems, potentially leading to an exponential reduction in work.

Key Parameters and Complexity

Transitioning backdoor trees from Boolean Satisfiability (SAT) to ASP introduces a unique challenge: the "minimality check." ASP solutions must be minimal models of a specific reduct. To account for this, the authors introduce the Gallo-Scutellà parameter ($gs$), which tracks the maximum number of atoms set to true along any path to a leaf.

The complexity of evaluating a backdoor tree with $\ell$ leaves and parameter $g$ is shown to be $O(\ell \cdot 2^g \cdot n^c)$. This fine-grained parameterization allows for a more precise understanding of problem difficulty than the coarse "backdoor size" $k$.

Results and Speedup

The paper demonstrates that the tree-based approach can provide an exponential speedup over set-based backdoors. In specific constructed examples, a traditional backdoor might require $2^m$ evaluations, whereas a carefully constructed backdoor tree requires only $2m+1$ evaluations.

A backdoor tree demonstrating a linear number of leaves ($2m+1$) compared to an exponential number of assignments in a set-based approach.

Furthermore, the authors establish that finding these trees is Fixed-Parameter Tractable (FPT). By using loss-free kernelization, they show that the overhead of detecting a small backdoor tree is manageable, making the technique theoretically viable for structured problem instances.

Conclusion

By moving from sets to trees, this research provides a more flexible and efficient framework for exploiting hidden structure in ASP problems. The introduction of the Gallo-Scutellà parameter successfully bridges the gap between SAT-based backdoor trees and the unique requirements of stable model semantics. Future work will focus on empirical validation within modern ASP solvers and extending these results to broader tractable classes beyond Horn programs.

Summary updated

BibTeX
@inproceedings{fichte2017backdoor,
  author = {Johannes Klaus Fichte and Stefan Szeider},
  title = {{Backdoor Trees for Answer Set Programming}},
  booktitle = {ASPOCP@LPNMR},
  year = {2017},
}
Figure