Heuristics for Hard ASP Programs

Wolfgang Faber, Nicola Leone, Francesco RiccaIJCAI 2005

Introduction

Answer Set Programming (ASP) is a robust paradigm for knowledge representation and reasoning. While many ASP problems fall within the NP complexity class, "disjunctive" ASP—where rule heads can contain multiple choices—is significantly more expressive, reaching the $\Sigma^P_2$ level of the polynomial hierarchy. This expressivity allows ASP to solve complex problems like planning under uncertainty or diagnosis that cannot be translated into SAT in polynomial time.

However, this power introduces a substantial computational bottleneck: verifying if a candidate model is a valid answer set in disjunctive ASP is itself a co-NP-hard problem. Historically, optimization efforts have focused on simpler, non-disjunctive programs. This research addresses the lack of heuristics specifically designed to navigate the search space of these "hard" $\Sigma^P_2/\Pi^P_2$ programs efficiently.

The $h_{DS}$ Heuristic

The authors propose a new heuristic, $h_{DS}$ (Disjunctive Support), implemented within the DLV system. Standard ASP solvers utilize a "Model Generator" to branch on undefined atoms. The previous state-of-the-art heuristic, $h_{UT}$, focused on minimizing "UnsupportedTrue" (UT) atoms—those true in the current interpretation but lacking a supporting rule.

The $h_{DS}$ heuristic refines this approach by adding a second layer of optimization. First, it continues to minimize UT atoms to reach a supported model quickly. Second, among choices that minimize UT atoms, it selects atoms that maximize the average number of supporting rules for true atoms. The intuition is that a model with many supporting rules is "sturdier" and more likely to pass the expensive minimality check required to be a valid answer set, effectively pruning the search space.

Experimental Evaluation

The heuristic was evaluated using two primary datasets:

  1. Random 2QBF Formulas: 100 randomly generated 2-level Quantified Boolean Formulas.
  2. QBF Competition Instances: Real-world benchmarks including "Robot," "Random," "Tree," and "KPH" (Knight's Path) problems.

Performance and Scaling

In experiments with random 2QBF instances, $h_{DS}$ demonstrated superior scaling compared to $h_{UT}$. As shown in the performance data, $h_{DS}$ increased the maximum solvable size from approximately 56 variables to 92 variables within the same time limit.

Maximum execution time comparison between the standard $h_{UT}$ heuristic and the proposed $h_{DS}$ heuristic on random 2QBF instances.

Comparison with QBF Solvers

A key finding of this research is that general-purpose ASP solvers with specialized heuristics can outperform dedicated Quantified Boolean Formula (QBF) solvers on $\Sigma^P_2$ problems. When compared against three prominent QBF solvers—Quantor, Semprop, and yQuaffle—DLV equipped with $h_{DS}$ proved to be the most robust system.

Comparison of DLV($h_{DS}$) against state-of-the-art QBF solvers across various benchmark categories.

As the table indicates, DLV ($h_{DS}$) solved 96% (137/142) of the competition instances, whereas the best-performing QBF solver (Semprop) solved only 73%. Notably, on "Random" instances, DLV achieved a 100% success rate, while QBF solvers struggled, with success rates as low as 12%.

Conclusion and Future Work

The $h_{DS}$ heuristic significantly improves ASP performance on hard disjunctive programs without sacrificing efficiency on easier NP-level problems. By prioritizing "sturdy" models, it allows ASP solvers to dominate specialized QBF tools in several domains. Future research may explore the memory overhead of maintaining supportedness calculations and the potential for automatic heuristic selection based on program structure.

Summary updated

BibTeX
@inproceedings{faber2005heuristics,
  author = {Wolfgang Faber and Nicola Leone and Francesco Ricca},
  title = {{Heuristics for Hard ASP Programs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure