Abstract
This paper introduces HTNPLAN-P, a novel planning system that bridges the gap between procedural Hierarchical Task Network (HTN) planning and Preference-Based Planning (PBP). While HTNs excel at following structured task decompositions, they are traditionally "quality-blind." Conversely, standard preference languages like PDDL3 focus on state-centric goals but struggle with action-centric constraints. HTNPLAN-P addresses these limitations by extending PDDL3 with action-centric constructs and utilizing a branch-and-bound search algorithm guided by novel lookahead heuristics. Experimental results across multiple domains demonstrate that HTNPLAN-P generates plans that match or exceed the quality of state-of-the-art planners while respecting complex procedural preferences.
Introduction
In automated planning, two paradigms often exist in isolation: procedural guidance and goal optimization. HTN planning provides a "how-to" guide for decomposing complex tasks into sub-tasks, which is highly efficient for structured domains but often fails to optimize for plan quality. Preference-Based Planning focuses on maximizing user-defined metrics (e.g., cost or specific state conditions) but lacks the ability to express preferences over the process itself, such as preferring one method of task decomposition over another.
HTNPLAN-P merges these approaches, allowing users to define preferences over both states and specific actions or methods. This is particularly vital in domains like travel planning or web service composition, where the sequence and nature of actions are as important as the final outcome.
Methods
The HTNPLAN-P framework is built upon three core components:
- Language Extension: The authors extended PDDL3 to include action-centric constructs:
occ(a)(action occurrence),initiate(x), andterminate(x)(task/method start and end). This allows for nuanced preferences, such as preferring that a specific sub-task completes before another begins. - Preprocessing and Compilation: To maintain efficiency, complex temporal and action-centric preferences are compiled into standard state predicates. This allows the planner to track preference satisfaction as part of the world state during search.
- Search Algorithm and Heuristics: HTNPLAN-P utilizes a branch-and-bound search based on the SHOP2 planner. It introduces three key metrics to guide the search:
- Optimistic Metric (OM): Estimates the best possible future quality by assuming all remaining preferences will be met.
- Pessimistic Metric (PM): Measures progress based only on preferences already guaranteed to be satisfied.
- Lookahead (LA): A two-phase heuristic that performs limited-depth probes to sample the quality of potential future plans, preventing the search from entering low-quality branches early on.
Evaluation and Results
The system was evaluated using modified IPC-5 benchmarks (Rovers and Trucks) and a complex new Travel domain featuring over 130 preferences and 50+ conflicting constraints.
As shown in the figure above, the Lookahead (LA) heuristic is critical for performance. In the Trucks domain, the LA heuristic allowed the planner to converge on high-quality solutions significantly faster than the version without lookahead, ultimately improving plan quality by approximately 60%.
When compared against state-of-the-art planners like SGPlan5 and HPLAN-P, HTNPLAN-P (specifically with the LA heuristic) consistently found a higher number of "Best" quality plans across all tested domains. In the Travel domain, HTNPLAN-P with LA found the best plan in 37 out of 41 problems, significantly outperforming its competitors.
Conclusion
HTNPLAN-P successfully integrates hierarchical structure with complex preference optimization. By enabling action-centric preferences and utilizing sophisticated lookahead heuristics, the planner offers a powerful tool for domains where the process of reaching a goal is as important as the goal itself. Future work includes exploring mixed-initiative planning to allow real-time human-AI collaboration in refining preferences during the planning process.
Summary updated