Learning Sketches for Decomposing Planning Problems into Subproblems of Bounded Width

Dominik Drexler, Jendrik Seipp, Hector Geffner

Introduction

Classical automated planning is a PSPACE-complete challenge where state spaces expand exponentially with the number of objects. While width-based search offers a potential solution by efficiently solving problems with low "width" ($k$), many real-world problems possess high width. To bridge this gap, "sketches"—sets of simple rules that decompose high-width problems into low-width subgoals—have been proposed. Historically, these sketches required manual crafting by experts. This paper introduces a novel method to automatically learn sketches from a few small examples, enabling a greedy planner to solve complex tasks in polynomial time.

Methodology

The authors frame sketch learning as a combinatorial optimization problem solved via Answer Set Programming (ASP). The process involves:

  1. Logical Formulation: Defining a theory ($T_{k,m}$) to find $m$ rules satisfying constraints that ensure subgoals are reachable, subproblems maintain a width bound $k$, and the process terminates without infinite loops.
  2. Feature Generation: Automatically generating a pool of potential features (e.g., "number of packages held") using a description logic grammar from basic domain predicates.
  3. Incremental Learning: Learning sketches on minimal instances and incrementally adding larger ones only if the current sketch fails.
  4. Optimization: Using the ASP solver Clingo to find the simplest sketch that satisfies all constraints.
Example of a learned sketch for a delivery domain, illustrating how complex tasks are broken down into simple rule-based subgoals.

Experimental Evaluation

The approach was evaluated on nine challenging domains from the International Planning Competition (IPC), including standard benchmarks like Blocks-world and Gripper, as well as trickier domains like Childsnack and Spanner. Training was conducted on tiny instances (often with only 10–20 states), while testing involved much larger, unseen instances with up to 100 objects.

Results and Discussion

The learned sketches demonstrated remarkable generalization and efficiency. Width-1 sketches achieved 100% coverage across all tested domains, often significantly outperforming state-of-the-art planners.

Performance comparison showing that learned sketches (particularly at $w=1$) achieve full coverage (30/30) and often superior speed compared to LAMA and BFWS.

Key insights from the evaluation include:

  • Generalization: Sketches learned from "toy" problems generalize perfectly to massive instances by capturing the underlying structural logic rather than memorizing paths.
  • Compactness: Learned sketches are typically very small (1–5 rules), making them human-readable and suggesting that strategies for many planning domains are fundamentally simple once the right features are identified.
  • Performance: In domains like Spanner, where standard planners like LAMA failed entirely, the sketch-based approach solved all instances in seconds.

Conclusion

By automatically decomposing planning problems into subproblems of bounded width, this method transforms exponential searches into polynomial ones. While limited by the grounding bottleneck of ASP solvers for training, the approach offers a powerful way to derive general strategies from minimal data. Future work will focus on scaling to more complex features and applying symbolic sketches to Reinforcement Learning (RL), where they could serve as automatically learned subgoals.

Summary updated

BibTeX
@inproceedings{drexler2022learning,
  author = {Dominik Drexler and Jendrik Seipp and Hector Geffner},
  title = {{Learning Sketches for Decomposing Planning Problems into Subproblems of Bounded Width}},
  booktitle = {ICAPS},
  year = {2022},
}
Figure