Simultaneously Searching with Multiple Settings: An Alternative to Parameter Tuning for Suboptimal Single-Agent Search Algorithms

Richard Valenzano, Nathan Sturtevant, Jonathan Schaeffer, Karen Buro, Akihiro KishimotoProceedings of the International Conference on Automated Planning and Scheduling 2021

Abstract

Many search algorithms have parameters that need to be tuned to get the best performance. Typically, the parameters are tuned offline, resulting in a generic setting that is supposed to be effective on all problem instances. For suboptimal single-agent search, problem-instance-specific parameter settings can result in substantially reduced search effort. We consider the use of dovetailing as a way to take advantage of this fact. Dovetailing is a procedure that performs search with multiple parameter settings simultaneously. Dovetailing is shown to improve the search speed of weighted IDA by several orders of magnitude and to generally enhance the performance of weighted RBFS. This procedure is trivially parallelizable and is shown to be an effective form of parallelization for WA and BULB. In particular, using WA* with parallel dovetailing yields good speedups in the sliding-tile puzzle domain, and increases the number of problems solved when used in an automated planning system.

The Pitfalls of Offline Parameter Tuning

In the field of heuristic search, researchers often dedicate significant effort to finding the "perfect" parameters. Whether it is the weight $w$ in Weighted A or specific tie-breaking rules in IDA, the standard practice involves extensive offline tuning to identify a single configuration that performs best on average across a benchmark suite.

However, this "best average" setting is often mediocre for almost every individual problem instance. As demonstrated in the research by Valenzano et al., the optimal configuration for one puzzle may be disastrous for another. Instead of searching for a single winner, the authors propose dovetailing: running multiple configurations simultaneously.

The Motivation: Instance-Specific Variance

Most search algorithms are highly sensitive to their configuration. Standard practice assumes that a single configuration can be robust across a domain. However, empirical evidence suggests otherwise.

Figure 1: The ratio of nodes expanded by the "best average" weight ($w=7$) vs. the best weight for each specific problem instance. Note the log scale on the Y-axis.

As shown in Figure 1, the weight that performs best on average ($w=7$ for WIDA*) is actually the optimal choice for only a tiny fraction of problems. For the vast majority of instances, an alternative weight would expand significantly fewer nodes—sometimes by several orders of magnitude. In general-purpose systems like automated planners, where offline tuning for every new domain is impossible, dovetailing offers a way to achieve instance-specific performance without prior knowledge.

Methodology: Sequential and Parallel Dovetailing

Dovetailing can be implemented in two primary ways:

  1. Sequential Dovetailing: On a single processor, the search is interleaved. For example, Configuration A expands one node, followed by Configuration B, and so on. The process terminates as soon as any configuration finds a goal.
  2. Parallel Dovetailing: On multi-core architectures, each core runs a different configuration independently. The first core to find a solution "wins," and the others are terminated.

This approach is "trivially parallelizable" because it requires no communication between the different search threads. The researchers evaluated this by simulating dovetailing over various "candidate sets" (portfolios of configurations) to measure the reduction in search effort compared to the single best-tuned setting.

Key Insights: Diversity and "Mistakes"

The success of dovetailing is rooted in the "Mistake" factor. Search algorithms often get trapped in massive subtrees that do not contain a goal due to a single early bad decision. Different configurations make different mistakes. By running them in parallel, the system ensures that at least one configuration is likely to avoid the specific mistake that would have stalled a single-threaded search.

This highlights that diversity is more important than optimization. Even simple changes, such as altering the operator ordering (the order in which possible moves are checked), can lead to massive performance swings. This diversity allows for super-linear speedups, where the time to find a solution is dominated by the fastest configuration rather than the average.

Empirical Results

The researchers tested dovetailing across several benchmarks, including the 15-Puzzle, the Pancake Puzzle, and 846 problems from the International Planning Competition using the Fast Downward planner.

Table 1: Factor of improvement for dovetailing over operator orderings in WIDA* and WRBFS.

The performance gains were substantial:

  • WIDA* on 15-Puzzle: Dovetailing over 15 different weights reduced total nodes expanded by a factor of 42.5x compared to the single best weight.
  • Super-linear Gains: In the 5x5 sliding-tile puzzle, parallel dovetailing with 24 cores over different operator orderings yielded a speedup of 1032x over the single best configuration.
  • Planning Success: In large-scale planning tests, a parallel dovetailing system solved 789 problems—43 more than the best single configuration could manage alone.

Limitations and Future Work

While powerful, dovetailing is not a universal solution. For memory-intensive algorithms like Weighted A (WA), running multiple instances simultaneously can quickly exhaust RAM. It is far better suited for linear-space algorithms like IDA* or RBFS. Additionally, while dovetailing is robust, the initial choice of the configuration portfolio still matters; configurations must be sufficiently diverse to be effective.

Finally, because dovetailing stops at the first solution found, and that solution may come from a very greedy configuration, solution quality (path length) may be slightly lower than a single, more conservative search. Future research may focus on information sharing between searches or more sophisticated portfolio selection strategies.

Summary updated

BibTeX
@inproceedings{valenzano2021simultaneously,
  author = {Richard Valenzano and Nathan Sturtevant and Jonathan Schaeffer and Karen Buro and Akihiro Kishimoto},
  title = {{Simultaneously Searching with Multiple Settings: An Alternative to Parameter Tuning for Suboptimal Single-Agent Search Algorithms}},
  booktitle = {Proceedings of the International Conference on Automated Planning and Scheduling},
  year = {2021},
  doi = {10.1609/icaps.v20i1.13423},
}
Figure