Abstract
This paper introduces HAMLET, a system designed to learn control rules for guiding nonlinear AI planners through large search spaces. By integrating bounded deductive explanation with incremental inductive refinement, HAMLET effectively learns when to apply specific planning operators. This hybrid approach mitigates the over-specificity of pure explanation-based learning and the data requirements of pure inductive methods, leading to significant improvements in planner performance and plan quality.
Introduction
In AI planning, systems search for sequences of actions to achieve goals. Nonlinear planners, such as the PRODIGY architecture, offer significant flexibility by interleaving subgoals and actions rather than solving them in a strict, isolated sequence. However, this flexibility results in exponentially large search spaces. To navigate these spaces efficiently, planners rely on "control knowledge"—heuristics that guide decisions on which goals to pursue or which operators to apply.
Traditional approaches like Explanation-Based Learning (EBL) often produce rules that are too specific or computationally expensive to generate in complex domains. Conversely, pure inductive learning requires vast datasets to learn from scratch. HAMLET (Heuristics Acquisition Method by Learning from sEarch Trees) addresses these issues by learning reusable, high-quality control rules incrementally, effectively overcoming the "utility problem" where the cost of evaluating a learned rule exceeds the search time it saves.
The HAMLET System Architecture
HAMLET is integrated into the PRODIGY nonlinear planner and operates in three distinct phases to refine its knowledge base dynamically as it encounters new problems.
Methodology
The learning process consists of three main stages:
- Bounded Explanation (Deductive): After the planner solves a problem, HAMLET traverses the search tree and labels nodes as success or failure. It generates an initial control rule based on a predetermined set of features from the problem state. This "bounded" approach avoids the massive computational cost of full EBL, though the resulting rules are initially quite specific.
- Inductive Generalization: As HAMLET encounters more positive examples in new problems, it generalizes its rules. It uses inductive operators such as intersecting preconditions (retaining only commonalities between rules), deleting subsumed rules, and relaxing subgoaling dependencies.
- Refinement: Generalization can occasionally make a rule too broad, leading to suboptimal paths or failures. When a rule leads to a negative example, HAMLET refines it by re-introducing specific preconditions to exclude that failure case.
Learning Algorithm
The overall learning loop is described in the following algorithm, which illustrates how the system iterates through training problems to refine the set of learned control rules $L$.
Experimental Evaluation
The system was evaluated on two classic AI planning domains:
- Blocksworld: A standard domain involving stacking blocks. The authors used 100 randomly generated problems for training and 200 for testing.
- Logistics Transportation: A complex domain involving package delivery via trucks and airplanes. This domain required 350 training problems and was tested on three sets of varying complexity.
In both domains, HAMLET demonstrated massive improvements over the base PRODIGY planner. In Blocksworld, the number of unsolved problems within a 100-second time bound dropped from 21.5% to 9.5%, and the number of search nodes explored plummeted from approximately 34,000 to 9,500. Similar gains were seen in the Logistics domain, where unsolved problems dropped from 19% to 8.3% and total running time was nearly halved.
Key Insights and Conclusion
HAMLET demonstrates that a hybrid learning approach—combining deductive bounds with inductive refinement—is highly effective for nonlinear planning. By mastering nonlinear decisions, such as learning to delay moving an airplane until a package is loaded, the system improves both the speed of the solver and the optimality of the final plan.
While the system is currently sensitive to the order of training examples, future work aims to incorporate information gain measures for feature selection and integrate local control rules with global strategic knowledge to further enhance problem-solving capabilities.
Summary updated