Learning Generalized Unsolvability Heuristics for Classical Planning

Simon Ståhlberg, Guillem Francès, Jendrik Seipp

Abstract

Detecting dead-end states is a critical challenge in classical planning. This paper introduces a novel framework for learning generalized logic-based heuristics by training on small, exhaustively searched problem instances. Using Description Logic (DL) with arithmetic comparisons, the system generates human-readable logic formulas that accurately identify unsolvable states across entire planning domains, often achieving perfect characterization where traditional heuristics fail.

Introduction

In classical planning, agents seek action sequences to reach a goal. A significant computational bottleneck arises when solvers enter "unsolvable states"—dead ends from which the goal is unreachable. While traditional unsolvability detection is instance-specific, this research explores generalized planning: learning universal rules for an entire domain. For example, rather than analyzing a specific map, the system might learn that a state is unsolvable if a truck lacks fuel and is not at a gas station, regardless of the problem's scale.

Methodology

The authors frame unsolvability detection as a self-supervised binary classification task (Solvable vs. Unsolvable). The pipeline involves three primary stages:

  1. State Labeling: Small instances of domains are exhaustively searched to label every reachable state.
  2. Feature Generation: Thousands of "first-order" features are automatically generated using Description Logic. These features describe relational properties (e.g., "the number of broken tools") rather than specific objects, enabling cross-instance generalization. A key innovation is the inclusion of arithmetic comparisons (e.g., $|Concept A| > |Concept B|$).
  3. Heuristic Learning: Three algorithms are proposed to find optimal logic formulas in Disjunctive Normal Form (DNF):
  4. $𝕋$-PERFECT: Employs a Weighted Max-SAT solver to find the simplest formula that perfectly classifies training data.
  5. $𝕋$-SAFE: Prioritizes safety by ensuring no solvable state is flagged as unsolvable (zero false positives), making it suitable for search pruning.
  6. DECISIONTREE: Utilizes the standard CART algorithm for rapid, interpretable tree construction.

Experimental Setup

The approach was evaluated on six domains from the International Planning Competition (IPC): Barman, Childsnack, Hiking, Nomystery, Spanner, and Woodworking. Since standard IPC benchmarks are too large for exhaustive labeling, the authors generated a new dataset of smaller, diverse instances.

Table 1: Statistics for the training and test datasets across six planning domains, including feature counts and state labels.

Results and Key Insights

The experimental results demonstrate that fundamental reasons for unsolvability are often present in small-scale versions of a problem. By mastering the "physics" of these small instances, the learned models can effectively prune search in much larger maps.

Table 2: Performance comparison of learned heuristics (T-PERFECT, T-SAFE, DECISIONTREE) against standard domain-independent baselines and k-consistency heuristics.

Key findings include:

  • Perfect Characterization: In domains like Hiking and Spanner, the learned formulas were sound and complete, capturing the exact logic of unsolvability.
  • Superiority Over Baselines: The learned heuristics frequently identified unsolvable states missed by standard domain-independent heuristics (e.g., $h^{max}$ or $k$-consistency). In Spanner, where standard heuristics show low recall, the learned formulas achieved a perfect 1.0.
  • Interpretability: The output logic formulas are human-readable. For instance, in Hiking, the model learned that a state is unsolvable if no agents are at a location with a car—a rule easily verified by experts.
  • The Role of Arithmetic: Allowing the model to compare set sizes (e.g., "fewer unused spanners than remaining nuts") allowed it to characterize domains previously considered difficult for automated learners.

Limitations and Future Work

While effective, the Max-SAT approach ($𝕋$-PERFECT) is computationally intensive and timed out on complex domains like Barman. Additionally, the learner is constrained by the Description Logic grammar; if unsolvability requires logic beyond the set complexity limit $k$, a perfect rule cannot be found. Future work involves integrating these heuristics into state-of-the-art planners to evaluate real-world speedups on large-scale competition problems.

Summary updated

BibTeX
@inproceedings{stahlberg2021learning,
  author = {Simon Ståhlberg and Guillem Francès and Jendrik Seipp},
  title = {{Learning Generalized Unsolvability Heuristics for Classical Planning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/574},
}
Figure