---
title: "Additive Merge-and-Shrink Heuristics for Diverse Action Costs"
authors:
  - "Gaojian Fan"
  - "Martin Müller"
  - "Robert Holte"
doi: "10.24963/ijcai.2017/599"
url: "https://ijcai.org/proceedings/2017/599"
pdf: "https://ijcai.org/proceedings/2017/0599.pdf"
venue: "Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence"
year: 2017
pages: "4287-4293"
track: "Main track"
keywords:
  - "Planning and Scheduling: Search in Planning and Scheduling"
  - "Combinatorial & Heuristic Search: Combinatorial search/optimisation"
  - "Planning and Scheduling: Planning Algorithms"
  - "Combinatorial & Heuristic Search: Heuristic Search"
---

# Additive Merge-and-Shrink Heuristics for Diverse Action Costs

Gaojian Fan, Martin Müller, Robert Holte

*Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence*, pages 4287-4293. DOI: [10.24963/ijcai.2017/599](https://doi.org/10.24963/ijcai.2017/599)

## Abstract

In many planning applications, actions can have highly diverse costs. Recent studies focus on the effects of diverse action costs on search algorithms, but not on their effects on domain-independent heuristics. In this paper, we demonstrate there are negative impacts of action cost diversity on merge-and-shrink (M&S), a successful abstraction method for producing high-quality heuristics for planning problems. We propose a new cost partitioning method for M&S to address the negative effects of diverse action costs. We investigate non-unit cost IPC domains, especially those for which diverse action costs have severe negative effects on the quality of the M&S heuristic. Our experiments demonstrate that in these domains, an additive set of M&S heuristics using the new cost partitioning method produces much more informative and effective heuristics than creating a single M&S heuristic which directly encodes diverse costs.

## Full text

## 1 Introduction

Diverse action costs are common in many real-world planning problems. Typical examples are logistics-like domains, in which loading or unloading a package is cheaper than moving a vehicle, or where the cost of moving a vehicle varies widely with the distance between locations. Another set of examples are manufacturing applications, where different types of processing incur a diverse set of costs.

There have been several studies of the effects of action cost diversity on heuristic search [Cushing et al., 2010; Aghighi and B¨ackstr¨om, 2015; 2016; Fan et al., 2017], and improved search algorithms designed to address diverse action costs [Thayer and Ruml, 2011; Wilt and Ruml, 2011; 2014]. However, to the best of our knowledge, there is no study on the influence of diverse action costs on the construction and performance of domain-independent heuristics in the planning literature.

Merge-and-shrink (M&amp;S) is an abstraction method that can produce high-quality abstraction heuristics [Helmert et al., 2014]. While M&amp;S heuristics can be computed for general non-unit action costs, little is known about how action cost diversity affects this abstraction method. In this paper, we study the impact of action cost diversity on the merge-andshrink process, and develop an improved algorithm, called DCP-MS, which computes additive M&amp;S heuristics for diverse action costs.

After a brief discussion of background in Section 2, we show in Section 3 that the M&amp;S heuristic suffers from diverse action costs on several domains from the International Planning Competition 1 (IPC), compared to their unit-cost counterparts. The section includes in-depth analysis of experimental results. Motivated by these results, in Section 4 we propose a new cost partitioning method, delta cost partitioning, which limits the cost diversity of partitioned cost functions to only two costs so that M&amp;S can process them more effectively.

The cost partitioning exploits the power of M&amp;S for unit costs to help improve the quality of the heuristic for the nonunit cost case. Our experiments in Section 5 show that an additive set of M&amp;S abstractions using delta cost partitioning can produce much more informed heuristics than a single M&amp;S heuristic that encodes the diverse action costs directly, and the benefits are most pronounced in domains where action cost diversity has extremely negative effects on M&amp;S.

## 2 Background

A transition graph is a quintuple S = 〈S,L, T, sinit, S∗〉 where the state space S is a finite set of states, L is a finite set of transition labels, and T ⊆ S × L × S is a set of labelled transitions. sinit ∈ S is an initial state and S∗ ⊆ S is a set of goal states. An abstraction α is a mapping from S to an abstract state space, which induces an abstract transition graph α(S) = 〈α(S),L, {(α(s), l, α(t)) | (s, l, t) ∈ T }, α(sinit), α(S∗)〉.

Let S = 〈S, L, T, sinit, S∗〉. A cost function is a mapping C : L ↦→ R+0 , where R+0 is the set of non-negative real numbers. For a cost function C, the distance from state s to state t in S is the cost of a least-cost path from s to t, where a path is a sequence (s0, l1, s1, ..., sn-1, ln, sn) such that n ∈ N0 and (si-1, li, si) ∈ T for i ∈ {1, 2, ..., n}, and its cost is ∑nj=1 C(lj). The goal distance h∗ (s) of state s is the distance from s to a nearest goal state.

A heuristic function h : S ↦→ R+0 maps each state to a nonnegative value or infinity. Heuristic h is admissible if h(s) ≤

1 www.icaps-conference.org/index.php/Main/ Competitions

![Image](https://ijcai.org/proceedings/2017/fulltext/599/image_000000_28c6299aec0b163654a376e8fdc1ebf32260faaf36a933c000cbbd477a72110a.png)

(b) NU vs. NC

Figure 1: (a) RD vs. RM on instances solved by both A* with M&amp;S and Dijkstra's algorithm; (b) NU vs. NC on instances that can only be solved by A* with M&amp;S.

h∗ (s). For a cost function C, an abstraction α provides an abstraction heuristic hCα in which the heuristic value of s in S is the goal distance of α(s) in the abstract transition graph α(S). Any abstraction heuristic is admissible.

Merge-and-shrink (M&amp;S) [Helmert et al., 2014] builds an abstraction by transforming a set of abstract transition graphs into a single one. The transformations consist of merging two abstract transition graphs into one, shrinking the size of an abstract transition graph by combining multiple states into one state, and label reduction which maps different transition labels into one label. Label reduction is essential for M&amp;S to compactly represent bisimulation abstractions which capture the goal distance h∗ (s) for all states s [Nissim et al., 2011].

For a cost function C on L, a cost partitioning of C is a set of cost functions C1, C2, ..., Cn on L, such that ∑ni=1 Ci(l) ≤ C(l) for any l ∈ L. A set of heuristics h1, h2, ..., hn is additive if hsum(s) = ∑ni=1 hi(s) is an admissible heuristic. For any transition graph S, cost function C, cost partitioning C1, C2, ..., Cn of C, and set of abstractions α1, α2, ..., αn for S, the set of abstraction heuristics hC1 α1 , hC2 α2 , ..., hCn αn is additive [Yang et al., 2008].

## 3 Action Cost Diversity andM&amp;S Heuristics

There have been several studies on the effects of diverse action costs on search, but none of them focuses on the effects on domain-independent heuristics like M&amp;S. In this section, we first verify experimentally that diverse action costs have negative effects on the merge-and-shrink heuristic compared to the unit cost, then discuss how diverse action costs could influence M&amp;S abstraction construction.

## 3.1 Experimental Verification

To determine whether action cost diversity is indeed a problem for planning with M&amp;S, we ran experiments on both unit cost and non-unit cost versions of a set of IPC domains with and without M&amp;S heuristics. Our test set contains the 12 nonunit cost IPC domains, as well as the unit cost domain GRIPPER. We include GRIPPER because M&amp;S can build bisimulations for all instances in this domain [Nissim et al., 2011].

We build the unit cost version for each non-unit cost IPC instance, as well as a non-unit action cost version of GRIPPER instances as follows: the move action still costs 1, but pick and drop actions for ball b now have cost (b mod nc) + 1, where nc = 4 in this experiment.

## Relative effects of cost diversity on M&amp;S heuristics

For any planning instance, let U and C be the unit cost function and the non-unit cost function respectively. We ran A* with the default M&amp;S heuristics 2 separately for U and C for each of our instances. Each run has a 30 minute time limit and a 2 GB memory limit. For each instance we compute the ratio RM = NC/NU, where NC and NU are the numbers of node expansions by A* with M&amp;S heuristics using C and U respectively. RM is the y-axis of Figure 1(a) (the xaxis is defined below, for now we are only considering RM, the height of each point in Figure 1(a)). The plot uses a log scale and RM = 1.0 is the horizontal line in the middle of the plot. Points above this line represent instances for which RM &gt; 1.0, i.e. A* with M&amp;S expands more nodes (performs worse) with C than it does with U. Points below the line are instances on which A* with M&amp;S performs better with C than with U. If an instance is solved using C but not U it is placed at the bottom of the plot (on the line labelled uns. unit). There are no instances solved using U but not C in this plot. Instances that are unsolved with both U and C are not shown in the plot.

Changing the action costs can affect search performance even without heuristics. The instances with RM &gt; 1.0 may be simply harder to solve with C than with U even without M&amp;S. In order to separate the effects of diverse costs on the M&amp;S heuristics from their effects on search without heuristics we solved all the instances again, with both cost functions, without a heuristic (Dijkstra's algorithm, f = g), with the same 30min/2GB limit per instance. Analogous to RM we define RD to be the ratio of the number of nodes Dijkstra's algorithm expands using C to the number of nodes it expands using U. This is the x-axis in Figure 1(a). Like the y-axis it is a log-scale, RD = 1.0 is the vertical line in the middle of the plot, and instances solved using C but not U are placed on the left edge of the plot (on the line labelled uns. unit). The vertical gray zone indicates 10-1 ≤ RD ≤ 10. Note that Dijkstra's algorithm performs better with C than with U (more instances with RD &lt; 1 than RD &gt; 1 and more with RD &lt; 10-1 than RD &gt; 10), which has been observed before [Fan et al., 2017].

2 The recommended configuration: DFP merging, bisimulation shrinking, label reduction before shrinking, maximum of 50,000 states per abstraction (from www.fast-downward.org/Doc/ Heuristic#Merge-and-shrink\_heuristic).

Table 1: Numbers of instances in specific regions of Figure 1(a).

| Region    | RD    | RM RD   |
|-----------|-------|---------|
| < 1 < 0.1 | 61 17 | 41 3    |
| > 1 > 10  | 36 0  | 53      |
|           |       | 19      |

Table 2: The cost mapping of delta cost partitioning.

| C        | c1   | c2    | c3    | · · ·       | cn-1   | cn    |
|----------|------|-------|-------|-------------|--------|-------|
| C1 C2 C3 | ∆1 0 | ∆1 ∆2 | ∆1 ∆2 | · · · · · · | ∆1 ∆2  | ∆1 ∆2 |
|          | 0    | 0     | ∆3    | · · ·       | ∆3     | ∆3    |
| .        |      |       |       | .           |        |       |
| . .      |      |       |       | . .         |        |       |
| Cn       | 0    | 0     | 0     | · · ·       | 0      | ∆n    |

The points above the diagonal line y = x are instances for which RM &gt; RD, meaning that compared to Dijkstra, the M&amp;S heuristic performs worse with C than with U. For such instances, the M&amp;S heuristic may reduce the number of node expansions for both C and U, but reduce it proportionally less for C than for U. For instances below the line y = x, M&amp;S performs worse using U than C. For a point close to the diagonal line, the M&amp;S heuristic shows no obvious advantage for either C or U. The diagonal gray zone indicates the difference within the factor of 10.

Table 1 gives the number of instances in specific regions of Figure 1(a). Dijkstra's algorithm expands more nodes using U than C on more instances (61 instances for RD &lt; 1 vs. 36 for RD &gt; 1 in column "RD"). In contrast, the M&amp;S heuristic shows inferior performance when using C instead of U compared to Dijkstra's algorithm (41 instances for RM &lt; RD but 53 for RM &gt; RD, in column "RM/RD"). 19 instances have a more than 10-fold increase in the ratio of node expansions from using C compared to using U, while only 3 instances have a more than 10-fold decrease.

## Newly solved instances with M&amp;S

A handful of instances that cannot be solved with either U or C by Dijkstra's algorithm can be solved by A* with M&amp;S heuristics. These instances are omitted from Figure 1(a) as they do not have a meaningful value of RD. We show these instances in Figure 1(b), which compares their NU (x-axis) and NC (y-axis).

Figure 1(b) shows many more instances above the diagonal line than below. The instances above the gray zone (NC &gt; 10NU) or on the top uns. line are those solved by A* with M&amp;S using U but require orders of magnitude more node expansions or cannot be solved within memory/time limits using C. There are 46 such instances in total, from 5 domains: WOODWORKING, GRIPPER, ELEVATORS, PARCPRINTER and TRANSPORT. On the other hand, there are only 6 instances for which A* with M&amp;S performs much better using C than using U (on the uns. line on the right edge of Figure 1(b)).

Results in Figure 1 and Table 1 show that negative effects outweigh positive ones for action cost diversity on A* with the M&amp;S heuristic. Diverse action costs have an extreme negative effect on WOODWORKING and GRIPPER, while ELEVATORS, PARCPRINTER and TRANSPORT are affected negatively to a more moderate degree. Neither U nor C have a clear advantage in domains CAVEDIVING, SCANALYZER, TETRIS 3 and OPENSTACKS. C beats U in domains PEGSOL, FLOORTILE and SOKOBAN by a small margin. CITYCAR is a special domain because its instances are easier to solve with C than with U, both with and without M&amp;S, but the M&amp;S heuristics reduce the search effort more for U than for C, relative to Dijkstra's algorithm.

Table 3: DCP of a cost function C that have three different costs 1, 3 and 10.

| C   |   1 |   3 |   10 |
|-----|-----|-----|------|
| C1  |   1 |   1 |    1 |
| C2  |   0 |   2 |    2 |
| C3  |   0 |   0 |    7 |

## 3.2 Building aM&amp;S Heuristic with Diverse Costs

In M&amp;S, label reduction [Sievers et al., 2014] facilitates bisimulation shrinking [Nissim et al., 2011] in reducing abstraction sizes without information loss in heuristics. It is a critical, often necessary (e.g., for GRIPPER), technique for M&amp;S to create compact bisimulations. Action cost diversity has a direct impact on label reduction. Current label reduction techniques are cost-exact: to avoid information loss, only labels with the same cost can be reduced to a single label. With unit costs, cost-exactness is guaranteed trivially. With non-unit costs, label reductions are much more limited. With more distinct labels in a transition system, bisimulation abstractions become larger, and more harmful shrinking operations are required to limit the abstraction size.

Action cost diversity affects M&amp;S not only through label reduction, but also through changes in merging and shrinking decisions. Non-unit and unit cost induce different distributions of states regarding their distances from the abstract initial state and to the abstract goal. Merging and shrinking decisions are often based on such distance information. For example, the state-of-the-art merging and shrinking strategies [Dr¨ager et al., 2006; Nissim et al., 2011] tend to prioritize regions close to the abstract goal, and thus heuristics are more informed in these regions than elsewhere. In this paper, we do not address such issues, and leave them as promising directions for future studies.

## 4 Cost Partitioning for Diverse Action Costs

In this section, we propose a cost partitioning method, called delta cost partitioning (DCP), for M&amp;S to handle diverse action costs better. As M&amp;S benefits from the simplicity of unit cost in many cases, we partition action costs into cost functions that are as simple as possible.

3 5 TETRIS instances were not solved by M&amp;S method with either C or U, but solved by Dijkstra's algorithm because M&amp;S cannot build the abstraction within the time limit for these instances. Since this is not a cost-related problem, we omit these instances.

Figure 2: Compare DCP-MS (x-axes) and single M&amp;S (y-axes) on: (a) Numbers of node expansions; (b) The final f-value before time/memory limit is reached of unsolved instances (but with M&amp;S abstractions built successfully).

![Image](https://ijcai.org/proceedings/2017/fulltext/599/image_000001_bc4b8b7b5050db3f26b7c85ad467a87950bb66a1cffee0288b2bfd6de00c646e.png)

In the remainder of this section, let L be the label set of a planning task, and C be any cost function on L. Let c0 = 0 and 0 &lt; c1 &lt; c2 &lt; · · · &lt; cn be the n different positive cost values to which the labels in L are mapped by C, and ∆i = ci -ci-1 for i ∈ {1, 2, ..., n}. Let Li = {l | C(l) = ci} be the set of labels that have cost ci for i ∈ {0, 1, ..., n}. DCP divides the costs c1, c2, · · · , cn among n delta cost functions C1, C2, · · · , Cn as follows. For i ∈ {1, 2, ..., n},

<!-- formula-not-decoded -->

DCP maps a label to a new cost in a delta cost function depending on the label's original cost and the delta cost function. This mapping is illustrated in Table 2, and an example is shown in Table 3.

Since each delta cost function Ci maps a label to either cost 0 or ∆i, it has at most two different costs. With the limited number of distinct costs in a delta cost function, label reduction becomes much less restricted. This could be extremely beneficial if label reduction is essential for constructing a high quality M&amp;S heuristic for the planning task.

After the cost partitioning, we then run M&amp;S on each delta cost function and obtain an additive set of M&amp;S heuristics. In the rest of the paper, we call this method DCP-MS and use the term "single M&amp;S" to refer to the classical use of a single M&amp;S heuristic.

## 5 Experiments

In this section, we compare DCP-MS with single M&amp;S from the following perspectives:

First, there could be complex interactions between action costs and M&amp;S's behaviour. While cost functions with limited cost diversity seem beneficial for label reduction, we do not know how shrinking and merging strategies are affected, so the effects of delta cost partitioning on M&amp;S need to be tested experimentally.

Second, DCP-MS incurs obvious computational overhead from constructing multiple M&amp;S, and from multiple lookups required for the additive heuristic. We need to evaluate whether the benefit of a better heuristic outweighs the overhead.

Third, because GRIPPER is a domain where label reduction is essential but suffers from cost diversity, we perform a case study on this domain with cost functions of different cost diversity to see how DCP-MS ameliorates the problem.

Our experimental setting is the same as in Section 3.1. The M&amp;S construction of DCP-MS uses the same configuration as single M&amp;S (the default recommended configuration). Domains PEGSOL, SOKOBAN and OPENSTACKS are excluded here, since these domains use only action costs 0 and 1 and thus delta cost partitioning only reproduces the single original cost function. In addition, from the results in Section 3.1, these three domains are not affected negatively by the action cost diversity in their non-unit cost function, so they are not the target domains for our method.

## 5.1 Performance of Delta Cost Partitioning

In Figure 2(a), the numbers of nodes expanded by single M&amp;S (y-axis) are plotted against DCP-MS (x-axis). In the gray zone, the ratio is within a factor of 10. Points above the gray zone are strongly favorable for DCP-MS, while it is much inferior for points below.

Overall, DCP-MS outperforms single M&amp;S on many more instances, with 24 instances above the gray zone, of which 15 are solved only by DCP-MS. These instances are from the three domains GRIPPER, WOODWORKING and PARCPRINTER, which are the domains that are most affected by action cost diversity, according to the results in Section 3.1. In particular, for the 12 GRIPPER instances solved only by DCPMS, they are solved with the minimal search effort, i.e., only states along the optimal solution are expanded. The performance of DCP-MS on the non-unit cost version of GRIPPER matches that of single M&amp;S on the unit cost version of GRIPPER. Single M&amp;S outperforms DCP-MS on only 4 instances. Among them, two are unsolved by DCP-MS because it times out when building the abstractions.

## Final f-value on unsolved instances

A* expands an open node with the smallest f-value. This f-value, which increases as A* search progresses for consistent heuristics, indicates how much progress A* has made towards finding an optimal path to goal. For instances that are unsolved by A* with either DCP-MS or single M&amp;S (but with M&amp;S abstractions built successfully and A* search started), we compare their final f-values when the time/memory limit is reached in Figure 2(b).

Figure 3: Compare DCP-MS (x-axes) and single M&amp;S (y-axes) on: (a) Memory used for M&amp;S constructions; (b) Search time (in seconds) of instances with successful M&amp;S abstraction constructions (search time less than 1 second is treated as 1 second).

![Image](https://ijcai.org/proceedings/2017/fulltext/599/image_000002_e1655ea8748c3e6fa312e655da2e8592cbed3de4eb8debba554c49138d5fc268.png)

Let fsingle and fDCP denote the largest f-value of states A* has expanded when the time/memory limit is reached, using single M&amp;S and DCP-MS respectively. We normalize the f-values due to the wide value range across domains. A small difference between fsingle and fDCP could mean an exponential difference in numbers of node expansions, so Figure 2(b) compares fDCP (x-axis) and fsingle (y-axis) in a linear scale plot. The gray zone is defined between the lines fsingle = 11 10 fDCP and fsingle = 10 11 fDCP. The dashed line is defined by fDCP = 32 fsingle. In Figure 2(b), there is only one instance above to the gray zone (fsingle is at least 10% larger than fDCP). In contrast, there are 21 instances below the gray zone (fDCP is at least 10% larger than fsingle), and 7 of them are even below the dashed line (fDCP &gt; 150% × fsingle).

## 5.2 Computational Overhead

For the IPC domains in our experiments, a delta cost partitioning could produce between 2 and 27 delta cost functions depending on the planning instances. DCP-MS may have heavy computational overheads due to multiple M&amp;S constructions and multiple heuristic lookups.

## M&amp;S constructions in DCP-MS

Building a M&amp;S abstraction can be an expensive process. However, our results show that both DCP-MS and single M&amp;S finish the M&amp;S constructions on most of the instances. Among the 237 instances tested in our experiments, there are only 9 instances where DCP-MS fails during the M&amp;S construction phase due to time out but single M&amp;S succeeds, and 5 instances where single M&amp;S fails to build the M&amp;S abstraction due to running out of memory but DCP-MS builds multiple M&amp;S abstractions successfully.

Figure 3(a) compares DCP-MS (x-axis) with single M&amp;S (y-axis) in terms of the maximal memory allocated during M&amp;S construction. The memory usage of M&amp;S construction for DCP-MS does not increase linearly with the number of delta cost functions. Most points are located within the gray zone (within the difference of the factor of 4), and clustered approximately evenly on both sides of the diagonal line, meaning the neither single M&amp;S nor DCP-MS has a clear advantage in peak memory usage. On 5 PARCPRINTER instances, single M&amp;S runs out of memory during the M&amp;S constructions, while DCP-MS successfully builds multiple abstractions.

The key to the lower memory consumption of DCP-MS in such cases, and its good memory performance overall, is that M&amp;S requires much less memory for the heuristic lookup tables than for abstract transition graphs. Because only the heuristic lookup tables are needed in search and DCP-MS constructs one M&amp;S abstraction at a time for each cost function, the memory for the M&amp;S abstract transition graphs can be released and reused after each construction.

DCP-MS fails to build abstractions while single M&amp;S succeeds for 9 instances (right fail line) due to time out. Table 4 compares the M&amp;S construction time used by DCP-MS and single M&amp;S for instances where both methods build M&amp;S abstractions successfully. In Table 4, column "N" shows the average number of M&amp;S abstractions that DCP-MS has to build for each domain. The M&amp;S construction time of DCPMS is expected to be N times larger than that of single M&amp;S. Column "ratio" gives the ratios of the average construction time of DCP-MS (shown in column "DCP-MS") to that of single M&amp;S (shown in column "single"). We see that the ratio of actual time of M&amp;S constructions for DCP-MS to that of single M&amp;S is often less than N. The ratio is larger than N in only two domains. The 9 instances where DCP-MS times out during the M&amp;S construction are from the domains CAVEDIVING, CITYCAR and TETRIS where building a M&amp;S abstraction takes a relatively long time. Note that in domain PARCPRINTER, the ratio of construction time for DCP-MS to single M&amp;S is much less than N, which means building a M&amp;S abstraction with the original cost function takes much more time than building one with a delta cost function of reduced cost diversity.

## Search time

To evaluate the overhead of multiple heuristic lookups, in Figure 3(b) we compare the search time of DCP-MS and single M&amp;S on all instances where M&amp;S construction succeeds. DCP-MS reduces the search time for several instances from GRIPPER, WOODWORKING and PARCPRINTER, because the reduction of numbers of node expansions by DCPMS outweighs the overhead of multiple heuristic lookups for the three domains whose average numbers of heuristic lookups per state are 4.00, 3.30 and 12.13 respectively (instances that fail during M&amp;S constructions are excluded).

Table 4: Comparing the M&amp;S construction time (in second) for DCP-MS and single M&amp;S.

| Domain      |     N |   ratio |   DCP-MS |   single |
|-------------|-------|---------|----------|----------|
| cavediving  |  4.44 |    4.08 |   597.66 |   146.31 |
| citycar     |  3.00 |    3.40 |   502.47 |   147.71 |
| elevators   |  8.38 |    3.21 |    15.15 |     4.72 |
| floortile   |  4.00 |    4.50 |    70.27 |    15.61 |
| gripper     |  4.00 |    2.46 |    15.97 |     6.50 |
| parcprinter | 11.92 |    1.23 |   125.80 |   102.35 |
| scanalyzer  |  2.00 |    1.59 |   147.53 |    92.62 |
| tetris      |  3.00 |    1.60 | 1,281.99 |   802.71 |
| transport   | 19.55 |   13.48 |    44.65 |     3.31 |
| woodworking |  5.80 |    4.04 |   202.39 |    50.12 |

There are instances where search takes less time with a single M&amp;S heuristic than with the additive heuristics of DCPMS. However, for all these instances, the search time is within the factor of 4 (in the gray zone in Figure 3(b)).

TRANSPORT and ELEVATORS instances have the two highest average numbers of heuristic lookups per state evaluation: 13.86 for TRANSPORT and 8.25 for ELEVATORS. The search time of DCP-MS on instances from these two domains certainly does not grow linearly in the number of heuristic lookups per state, as the numbers of node expansions of DCPMS on these instances are very close to that of single M&amp;S (see Figure 2(a)).

There are 105 instances where both methods finish building M&amp;S abstractions but fail during search. On only 8 of these instances DCP-MS fails due to time out during search while single M&amp;S fails due to the memory limit, and on the other 97 instances both methods fail due to the memory limit.

Overall, DCP-MS has only a small computational overhead in its M&amp;S construction and search.

## 5.3 Case Study of GRIPPER

The non-unit cost function in the modified GRIPPER domain from Section 3.1 has 4 different costs. Our earlier experiments showed that single M&amp;S has trouble dealing with such diversity, while DCP-MS works very well. In this section, we further test how well DCP-MS performs as the cost diversity increases.

The pick/drop action costs for ball b are (b mod nc)+1. The parameter nc gives an upper bound on the number of different costs for pick/drop actions. The number of balls in IPC GRIPPER instances ranges from 4 to 42. We compare the number of instances solved by single M&amp;S and DCP-MS as nc increases. In addition to the default M&amp;S configuration, we also test the variant that does not limit abstraction size, which has the best performance on the unit cost GRIPPER.

Table 5 shows the coverage of DCP-MS and single M&amp;S for different nc. For the last row of nc = "#balls", each ball has a different pick/drop cost. The columns under "50K" and "no limit" show the coverage of DCP-MS and single M&amp;S using M&amp;S configurations with and without the 50K abstraction size limit respectively. For single M&amp;S with 50K size limit, the number of instances solved with the minimal search effort are shown in brackets. For all other methods, all solved instances are actually solved with the minimal search effort. With either M&amp;S configuration, the coverage of single M&amp;S decreases faster than DCP-MS as nc increases. When every ball has a different cost, DCP-MS with no size limit can solve 18 instances with the minimal search effort, while single M&amp;S can only solve the 7 smallest instances.

Table 5: Coverage of GRIPPER with increasing cost diversity for DCP-MS and single M&amp;S using two different M&amp;S configurations.

| nc     |   50K - DCP-MS | 50K - single   |   no limit - DCP-MS |   no limit - single |
|--------|----------------|----------------|---------------------|---------------------|
| 1      |             19 | 19 (19)        |                  20 |                  20 |
| 2      |             19 | 12 (12)        |                  20 |                  20 |
| 4      |             19 | 7 (6)          |                  20 |                  20 |
| 8      |             16 | 7 (4)          |                  20 |                  11 |
| 16     |             14 | 7 (4)          |                  20 |                   7 |
| #balls |             13 | 7 (4)          |                  18 |                   7 |

## 6 RelatedWork

To our knowledge, there is no previously published work on practical cost partitioning for additive M&amp;S. A theoretical result by Helmert and Domshlak [2009] demonstrates that additive M&amp;S heuristics strictly dominate the additive hmax [Bonet and Geffner, 2001] and landmark heuristics, in the sense that for a given state, additive M&amp;S can provide a better heuristic. While optimal cost partitioning for abstraction heuristics can be computed in polynomial time [Katz and Domshlak, 2008], more efficient methods are needed in practice. Saturated cost partitioning [Seipp and Helmert, 2014; Seipp et al., 2017] is a practical method for approximating optimal cost partitioning for abstractions.

## 7 Conclusion

We study the effects of diverse action costs on M&amp;S. We show that action cost diversity can affect M&amp;S negatively and propose a new method, DCP-MS, additive M&amp;S with delta cost partitioning, to address this issue. Our experiments show that DCP-MS produces much more informative heuristics than the standard M&amp;S on several IPC domains, especially on those affected negatively by action cost diversity.

## 8 Acknowledgments

The authors gratefully acknowledge the funding from Canada's Natural Sciences and Engineering Research Council (NSERC).

## References

1. [Aghighi and Bäckström, 2015] Meysam Aghighi and Christer Bäckström. Cost-optimal and net-benefit plan- ning -A parameterised complexity view. In Proceedings of the 24th International Joint Conference on Artificial Intelligence, pages 1487-1493, 2015.
2. [Aghighi and Bäckström, 2016] Meysam Aghighi and Christer Bäckström. A multi-parameter complexity analysis of cost-optimal and net-benefit planning. In Proceedings of the 26th International Conference on Automated Planning and Scheduling, pages 2-10, 2016.
3. [Bonet and Geffner, 2001] Blai Bonet and Hector Geffner. Planning as heuristic search. Artificial Intelligence, 129(1- 2):5-33, 2001.
4. [Cushing et al., 2010] William Cushing, J. Benton, and Sub- barao Kambhampati. Cost based search considered harm- ful. In Proceedings of the 3rd Annual Symposium on Com- binatorial Search, pages 140-141, 2010.
5. [Dräger et al., 2006] Klaus Dräger, Bernd Finkbeiner, and Andreas Podelski. Directed model checking with distance- preserving abstractions. In Proceedings of Model Check- ing Software, 13th International SPIN Workshop, volume 3925, pages 19-34, 2006.
6. [Fan et al., 2017] Gaojian Fan, Martin Müller, and Robert Holte. The two-edged nature of diverse action costs. In Proceedings of the 27th International Conference on Au- tomated Planning and Scheduling, 2017. To appear. [Helmert and Domshlak, 2009] Malte Helmert and Carmel Domshlak. Landmarks, critical paths and abstractions: What's the difference anyway? In Proceedings of the 19th International Conference on Automated Planning and Scheduling, pages 162-169, 2009.
7. [Helmert et al., 2014] Malte Helmert, Patrik Haslum, Jörg Hoffmann, and Raz Nissim. Merge-and-shrink abstrac- tion: A method for generating lower bounds in factored state spaces. Journal of the ACM, 61(3):16:1-16:63, 2014.
8. [Katz and Domshlak, 2008] Michael Katz and Carmel Domshlak. Optimal additive composition of abstraction- based admissible heuristics. In Proceedings of the 18th International Conference on Automated Planning and Scheduling, pages 174-181, 2008.
9. [Nissim et al., 2011] Raz Nissim, Jörg Hoffmann, and Malte Helmert. Computing perfect heuristics in polynomial time: On bisimulation and merge-and-shrink abstraction in opti- mal planning. In Proceedings of the 22nd International Joint Conference on Artificial Intelligence, pages 1983- 1990, 2011.
10. [Seipp and Helmert, 2014] Jendrik Seipp and Malte Helmert. Diverse and additive cartesian abstraction heuristics. In Proceedings of the 24th International Conference on Automated Planning and Scheduling, pages 289-297, 2014.
11. [Seipp et al., 2017] Jendrik Seipp, Thomas Keller, and Malte Helmert. Narrowing the gap between saturated and opti- mal cost partitioning for classical planning. In Proceed- ings of the 31st AAAI Conference on Artificial Intelligence, pages 3651-3657, 2017.
12. [Sievers et al., 2014] Silvan Sievers, Martin Wehrle, and Malte Helmert. Generalized label reduction for merge- and-shrink heuristics. In Proceedings of the 28th AAAI Conference on Artificial Intelligence, pages 2358-2366, 2014.
13. [Thayer and Ruml, 2011] Jordan Tyler Thayer and Wheeler Ruml. Bounded suboptimal search: A direct approach us- ing inadmissible estimates. In Proceedings of the 22nd International Joint Conference on Artificial Intelligence, pages 674-679, 2011.
14. [Wilt and Ruml, 2011] Christopher Makoto Wilt and Wheeler Ruml. Cost-based heuristic search is sensitive to the ratio of operator costs. In Proceedings of the 4th Annual Symposium on Combinatorial Search, pages 192-197, 2011.
15. [Wilt and Ruml, 2014] Christopher Makoto Wilt and Wheeler Ruml. Speedy versus greedy search. In Pro- ceedings of the 7th Annual Symposium on Combinatorial Search, pages 184-192, 2014.
16. [Yang et al., 2008] Fan Yang, Joseph C. Culberson, Robert Holte, Uzi Zahavi, and Ariel Felner. A general theory of additive state space abstractions. Journal of Artificial In- telligence Research, 32:631-662, 2008.
