Learning Sketches for Decomposing Planning Problems into Subproblems of Bounded Width: Extended Version

Dominik Drexler, Jendrik Seipp, Hector Geffner · DOI

Abstract

This paper introduces an automated method for learning sketches—high-level decomposition rules that partition complex planning problems into simpler subproblems of bounded width. By formulating the learning task as a logic program solved via Answer Set Programming (ASP), the authors enable planners to solve large-scale instances with guaranteed polynomial complexity. Experimental results demonstrate that sketches learned from small examples generalize to massive problem instances, often outperforming state-of-the-art domain-independent planners.

Introduction

Classical automated planning involves searching for a sequence of actions to reach a goal within an exponentially large state space. While modern domain-independent planners are highly versatile, they frequently struggle with the underlying "structure" of specific problem domains. Previous research introduced sketches as a formal language to represent this structure, allowing a large problem to be split into subproblems of bounded width ($k$). If $k$ is low, subproblems can be solved in polynomial time. However, the manual creation of these sketches requires significant expert knowledge. This work addresses the challenge of automatically learning these sketches from a small set of example instances.

Methodology

The authors propose a logical framework for sketch induction, implemented using the Answer Set Programming (ASP) solver, Clingo.

Sketch Language and Representation

A sketch consists of rules in the form $C \to E$, where $C$ is a Boolean condition on state features and $E$ represents a qualitative change in those features. These rules guide the planner by defining subgoals that must be reached sequentially.

Example of learned sketch rules for a delivery domain, illustrating how high-level conditions map to feature changes.

Learning via ASP

The learning process is governed by a set of constraints (C1–C8) ensuring that:

  1. Every non-goal state has a valid path toward a subgoal.
  2. Subproblems do not exceed a target width $k$ (typically 0, 1, or 2).
  3. The sketch is terminating, preventing infinite loops.

To manage computational complexity, the system employs incremental learning. It starts with an empty sketch and iteratively adds the smallest training instance that the current sketch fails to solve, refining the rules until all training data is covered.

Experimental Evaluation

The approach was evaluated on several classical planning domains from the International Planning Competition (IPC), including Blocks-world, Gripper, and more challenging domains like Childsnack and Spanner. Training was performed on small instances (under 10,000 states), while testing involved large instances with up to 100 objects.

Performance and Generalization

The results indicate that sketches learned from minimal examples generalize exceptionally well. For a width of $k=1$, the learned sketches solved 100% of large test instances across all nine evaluated domains.

Comparison of performance (S: Solved, T: Time) between the sketch-based planner (SIW_R) at different widths and state-of-the-art planners LAMA and BFWS.

As shown in the table above, the sketch-based planner ($\text{SIW}_R$) significantly outperformed baselines in specific domains. For example, in the Spanner domain, LAMA and BFWS failed to solve any instances, whereas the learned sketch achieved a 100% success rate.

Key Insights and Conclusion

The primary contribution of this work is the demonstration that complex planning problems can be solved by decomposing them into "easy" (low-width) chunks using automatically discovered rules. These learned sketches are remarkably compact, often requiring only a few rules and features to generalize to massive instances.

While the method is highly effective for domains with low-width decompositions, its performance may degrade in "thick" domains lacking clear qualitative features. Future work may explore applying these techniques to Reinforcement Learning (RL) environments, where subgoals could be represented as intrinsic rewards.

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: Extended Version}},
  booktitle = {ICAPS},
  year = {2022},
}
Figure