HTN planning is a variation of classical planning where, instead of searching for a linear sequence of actions, an algorithm decomposes higher-level tasks using a method library until only executable actions remain. On the one hand, this allows one to introduce domain knowledge that can speed up the search for a solution through the method library. On the other hand, it creates challenges that go beyond those of classical state-space search. While recent research produced a number of heuristics and novel algorithms that speed up HTN planning, these heuristics are not yet as informative as those available in classical planning algorithms. We investigate whether large language models (LLMs) can generate effective search heuristics for HTN planning, extending the methodology of Corrêa et al. (arXiv:2503.18809) from classical to hierarchical planning. Using the Pytrich planner on seven standard total-order HTN benchmark domains, we evaluate heuristics generated by nine LLMs under domain-specific prompting and compare them against two established domain-independent heuristics in the same planner and against the PANDA planner. A configuration fixed in advance solves more instances than either domain-independent heuristic, the best generated heuristics expand fewer nodes than both on most instances, and the virtual best over all models is on par with PANDA in coverage.
翻译:暂无翻译