Introduction
Hierarchical Task Network (HTN) planning is a powerful paradigm for solving complex real-world problems, such as logistics and satellite management. However, its effectiveness is often hampered by the "knowledge engineering bottleneck." HTN planners require a detailed hierarchy of methods—procedural knowledge provided by human experts—to decompose abstract goals into primitive actions. Unfortunately, human experts are prone to errors and omissions, leading to incomplete models that fail to generate valid plans.
The METHODREFINE Framework
To address this, the authors propose METHODREFINE, a framework designed to repair incomplete HTN domains by observing successful plan executions that utilize "Task Insertion."
Task Insertion and Completion Profiles
The framework leverages HTN planning with Task Insertion (TIHTN). In this hybrid approach, a planner can insert primitive tasks from outside the defined hierarchy to bridge gaps in a decomposition. When a task is inserted, METHODREFINE must determine which compound task in the hierarchy should "own" this new step.
The core innovation is the use of Prioritized Preferences. The authors observe that experts typically forget low-level, detailed steps rather than high-level abstract ones. Consequently, METHODREFINE prioritizes attaching inserted tasks to more "detailed" methods (lower in the hierarchy) rather than abstract ones. This stratum-based insight allows the algorithm to identify the correct insertion point more accurately than random assignment.
Method Substitution and Minimization
Once methods are refined with inserted tasks, the domain may contain redundant or overly specific rules. METHODREFINE employs a substitution and greedy minimization process to find the smallest set of refined methods that maintain the ability to solve all training instances, ensuring the resulting domain is efficient and manageable.
Experimental Evaluation
The framework was evaluated on three classic planning benchmarks: Logistics, Satellite, and Blocks-World. To simulate real-world expert errors, the researchers created three levels of incomplete domains:
- MR-H (High): Minimal tasks removed from the original expert domain.
- MR-M (Medium): Moderate task removal.
- MR-L (Low): Significant portions of the hierarchy removed.
Key Results
METHODREFINE demonstrated significant robustness and efficiency compared to existing state-of-the-art learners like HTN-MAKER.
As shown in the results, METHODREFINE (particularly the MR-H and MR-M variants) quickly reaches a 100% solving rate after exposure to only a few training instances. In the Satellite domain, HTN-MAKER's performance was found to degrade as it learned more, due to the creation of recursive loops that hindered the planner. METHODREFINE avoids this by learning from acyclic decomposition trees. Furthermore, the refined domains produced by METHODREFINE were more concise; in the Logistics domain, it achieved optimal results with far fewer methods than HTN-MAKER.
Conclusion
METHODREFINE effectively bridges the gap between expert-provided procedural knowledge and the requirements of automated planners. By treating the initial hierarchy as a valuable asset to be patched rather than a constraint to be bypassed, the framework significantly reduces the burden of knowledge engineering. Future work will explore inventing entirely new hierarchical branches and integrating declarative goals more deeply into the refinement process.
Reference: Xiao, Z., Wan, H., Zhuo, H. H., Herzig, A., Perrussel, L., & Chen, P. (2020). Refining HTN Methods via Task Insertion with Preferences. Proceedings of the AAAI Conference on Artificial Intelligence, 34(06), 10009-10016.
Summary updated