Additive Merge-and-Shrink Heuristics for Diverse Action Costs

Gaojian Fan, Martin Müller, Robert HolteIJCAI 2017

TL;DR

This paper tackles the problem of diverse action costs in AI planning, which negatively impacts the performance of the popular Merge-and-Shrink (M&S) heuristic. The authors introduce "delta cost partitioning" (DCP), a novel method that breaks down complex cost functions into simpler ones, allowing M&S to generate more effective additive heuristics. Experiments show DCP-MS significantly outperforms standard M&S in domains with high action cost diversity.

What Problem Does This Paper Address?

In many real-world AI planning scenarios, actions don't have uniform costs. For instance, moving a robot might be cheap, but picking up an object could be significantly more expensive. This "diverse action cost" problem has been studied in the context of search algorithms, but its impact on heuristic functions – which guide the search – has been less explored. The Merge-and-Shrink (M&S) heuristic is a powerful, domain-independent method for generating high-quality heuristics. However, this paper demonstrates that M&S struggles when faced with diverse action costs, leading to worse performance compared to using unit costs. The core problem is that M&S's internal mechanisms, particularly label reduction for creating compact abstractions, become less effective with a wide range of costs, leading to larger, less informative heuristics.

Methods

The paper's main contribution is the Delta Cost Partitioning (DCP) method. The core idea is to transform a single, complex cost function $C$ into a set of simpler cost functions, $C_1, C_2, \dots, C_n$. Each new cost function $C_i$ assigns at most two distinct costs: 0 and a "delta" cost $\Delta_i$, which represents the difference between consecutive cost levels in the original function. This simplification is crucial because M&S works much better with unit costs. By creating multiple M&S heuristics, one for each delta cost function, and summing their values (an additive heuristic), the authors aim to leverage M&S's strength on simple costs. This approach is termed DCP-MS. The paper also details how label reduction in M&S is affected by cost diversity and how DCP can alleviate these issues.

Datasets

The experiments were conducted on a set of International Planning Competition (IPC) domains. Specifically, the authors used 12 non-unit cost IPC domains and a unit-cost version of the GRIPPER domain. For the non-unit cost IPC domains, they also created unit-cost versions to compare performance. For GRIPPER, they specifically modified the pick/drop actions to introduce varying costs based on the ball's index and a parameter $n_c$ controlling the cost diversity.

Key Insights and Ideas

  • Action cost diversity is a significant problem for M&S heuristics: The paper provides strong empirical evidence that diverse action costs degrade M&S heuristic quality, leading to increased search effort.
  • M&S's internal mechanisms are sensitive to cost diversity: Label reduction, a key component for creating compact M&S abstractions, is particularly hampered by non-unit costs, as it can only merge labels with identical costs.
  • Additive heuristics are a powerful way to handle diverse costs: By breaking down the problem into multiple simpler M&S heuristics and summing their outputs, DCP-MS effectively mitigates the negative impacts of cost diversity.
  • DCP-MS offers a practical trade-off: While DCP-MS incurs some computational overhead from building multiple heuristics, the resulting improvement in heuristic quality often leads to significantly reduced search times, outweighing the overhead.
  • GRIPPER as a case study highlights the benefits: This domain, known to be sensitive to cost diversity, shows dramatic improvements with DCP-MS, especially as the cost diversity increases.

Key Results

  • Improved Search Performance: In domains with high action cost diversity, DCP-MS significantly reduces the number of node expansions compared to a single M&S heuristic. For example, in Figure 2(a), many instances show DCP-MS expanding far fewer nodes than single M&S.
  • More Solved Instances: DCP-MS successfully solves instances that single M&S fails to solve, particularly in domains like GRIPPER, WOODWORKING, and PARCPRINTER.
  • Reduced Final f-value: For unsolved instances, DCP-MS results in a lower final f-value (a measure of heuristic progress), indicating a more informed search. Figure 2(b) shows DCP-MS achieving significantly lower f-values on many instances.
  • M&S Construction Overhead: While DCP-MS builds multiple M&S abstractions, the memory usage doesn't scale linearly, and the heuristic lookup tables can be reused. In some cases, DCP-MS even succeeds where single M&S fails due to memory limits.
  • Search Time Efficiency: Despite the overhead of multiple heuristic lookups, DCP-MS often achieves faster overall search times due to the improved heuristic guidance. Table 4 shows that the M&S construction time for DCP-MS is often less than the theoretical maximum, and Figure 3(b) shows competitive search times.
  • GRIPPER Domain Performance: As cost diversity increases in GRIPPER (controlled by $n_c$), single M&S's ability to solve instances drops sharply, while DCP-MS maintains much higher coverage, especially with the "no limit" abstraction size configuration.

Limitations and Future Work

  • Computational Overhead: The paper acknowledges that DCP-MS incurs computational overhead from constructing multiple M&S heuristics and performing multiple heuristic lookups during search. While experiments suggest this is often outweighed by heuristic benefits, it remains a factor.
  • M&S Construction Failures: In a small number of instances, DCP-MS times out during M&S construction, while single M&S succeeds. This is noted for domains where M&S construction is already time-consuming.
  • Future Work: The authors mention that they do not address how merging and shrinking decisions in M&S are affected by diverse costs, leaving this as a promising direction for future research. They also suggest exploring more efficient cost partitioning methods.

Summary updated

BibTeX
@inproceedings{fan2017additive,
  author = {Gaojian Fan and Martin Müller and Robert Holte},
  title = {{Additive Merge-and-Shrink Heuristics for Diverse Action Costs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=SJWULEMOZS},
}
Figure