Abstract
Research on macro-operators has a long history in planning and other search applications. There has been a revival of interest in this topic, leading to systems that successfully combine macro-operators with current state-of-the-art planning approaches based on heuristic search. However, research is still necessary to make macros become a standard, widely-used enhancement of search algorithms. This article introduces sequences of macro-actions, called iterative macros. Iterative macros exhibit both the potential advantages (e.g., travel fast towards goal) and the potential limitations (e.g., utility problem) of classical macros, only on a much larger scale. A family of techniques are introduced to balance this trade-off in favor of faster planning. Experiments on a collection of planning benchmarks show that, when compared to low-level search and even to search with classical macro-operators, iterative macros can achieve an impressive speed-up in search.
Introduction
In automated planning, a "macro-operator" is a sequence of actions treated as a single step—for instance, "pick up key, move to door, unlock door." While macros can help a search algorithm take "big leaps" toward a goal, they frequently suffer from the utility problem: adding too many macros increases the branching factor, which can paradoxically slow down the search.
Classical macros are typically static and short. This research identifies a critical gap: the lack of a standard method to combine these macros into longer, more powerful sequences that adapt to the specific state of the search. The challenge lies in gaining the speed of long-distance "travel" through the search space without succumbing to an exponential explosion of possible macro combinations.
The Iterative Macro Framework
The authors propose a three-stage framework to manage iterative macros, treating them as dynamic chains of macro-actions built at runtime.
- Macro Extraction: Potential macro-operators are extracted from solutions to small training problems.
- Static Filtering: To mitigate the utility problem, macros are ranked based on their ability to reduce search effort on training data. Only a small, high-performing subset (typically the top 5) is retained.
- Dynamic Composition: This is the core innovation. Instead of picking a pre-made macro, the system builds an iterative macro—a sequence of macros—on the fly.
The composition process is guided by a relaxed plan (a simplified version of the problem ignoring negative side effects). The algorithm greedily chains macros from its filtered library to match the actions suggested by the relaxed plan. If the relaxed plan is missing a step needed for a macro, a "gap filling" heuristic finds a consistent action to complete the sequence. This allows the planner to operate at a higher level of abstraction, treating macros as new "atomic" building blocks.
Experimental Evaluation
The approach was evaluated using standard benchmarks from the International Planning Competitions (IPC), including logistics (Depots, Rovers, Zeno Travel), puzzles (Blocksworld, Freecell), and system modeling (Promela Dining Philosophers, Airport).
Key Results
- Search Speedup: In domains such as Satellite, Blocksworld, and Rovers, iterative macros reduced the number of expanded nodes by at least an order of magnitude on difficult problem instances.
- Problem Coverage: The method solved significantly more problems within a 5-minute time limit than standard search. In the Optical Telegraph domain, it solved 37 more problems than the baseline.
- Solution Quality: While macros can lead to longer paths, the solution length overhead was usually under 20%, a trade-off justified by the massive gains in search speed.
- Comparative Performance: Iterative macros consistently outperformed both low-level search and search using only classical, non-iterative macros.
Discussion and Future Work
While highly effective, iterative macros introduce computational overhead per node, particularly during the "gap filling" step. In some domains like Power Supply Restoration (PSR), this overhead can outweigh the search benefits. Future work may focus on optimizing operator schema mapping to reduce this bottleneck.
Additionally, while the current model assumes a deterministic environment, extending iterative macros to temporal planning or planning under uncertainty remains an open challenge. There is also potential in exploring how iterative macros could improve the accuracy of heuristic state evaluations themselves, rather than just accelerating movement through the search space.
Summary updated