On Creating Complementary Pattern Databases

Santiago Franco, Álvaro Torralba, Levi H. S. Lelis, Mike Barley

Introduction

In the field of classical planning, the A* algorithm is a cornerstone for finding optimal solutions. Its efficiency, however, is heavily dependent on the quality of the heuristic function used to estimate the distance from a given state to the goal. Pattern Databases (PDBs) have emerged as a powerful tool for constructing these heuristics. By solving a simplified version of the problem—one that considers only a subset of variables—PDBs provide a lower bound on the true cost to the goal.

The primary challenge in using PDBs is "pattern selection": determining which variables should be grouped together. Traditional methods often select a batch of patterns simultaneously or rely on simple metrics like average heuristic value. These approaches frequently overlook the concept of complementarity—the idea that a new PDB is only valuable if it provides information that existing PDBs do not. Furthermore, they often fail to account for the computational overhead incurred by evaluating multiple PDBs during the search process.

The CPC Framework

This paper introduces Complementary Pattern Databases Creation (CPC), a novel iterative framework designed to build a collection of PDBs sequentially. Unlike "blind" generators, CPC creates a feedback loop where each new PDB is specifically tailored to address the weaknesses of the current heuristic set.

Search-Time Estimation via Stratified Sampling

A key innovation of CPC is its use of Stratified Sampling (SS) to estimate search time. Rather than relying solely on heuristic values, CPC uses SS to predict the actual running time of A* when a candidate PDB is added. This allows the algorithm to evaluate the "Time vs. Pruning" trade-off: a heuristic that prunes many nodes but takes significantly longer to compute may not be a net benefit. CPC only adds a PDB if it is predicted to reduce the overall search time.

Sequential Complementarity and Selection

CPC starts with an initial heuristic (which can be empty or a base heuristic like a symbolic perimeter) and iteratively adds PDBs. To generate candidate patterns, it employs two "bin-packing" strategies:

  • Regular Bin-Packing (RBP): Groups variables randomly.
  • Causal Bin-Packing (CBP): Groups variables based on the problem's causal structure.

The algorithm uses a Multi-Armed Bandit (UCB1) approach to dynamically learn which strategy is more effective for the specific problem instance at hand. Once a promising PDB is identified, CPC performs local search and mutation to further refine the pattern.

Experimental Evaluation

The researchers evaluated CPC using the optimal STRIPS benchmark suite from the Fast Downward planning system, encompassing 1,667 tasks from various International Planning Competitions (IPC).

Performance and Pruning

The most successful configuration, CPC-S-P (Symbolic PDBs seeded with a symbolic perimeter), demonstrated state-of-the-art performance. It solved 1,055 instances, surpassing established methods such as iPDB (857), Gamer (1,022), and the 2014 IPC winner, SymBA (1,006).

The effectiveness of CPC-S-P is largely due to its ability to significantly prune the search space while maintaining computational efficiency.

Search time comparison between CPC-S-P and the base Symbolic Perimeter heuristic. Points below the diagonal indicate instances where CPC-S-P is faster.

As shown in the search time analysis, CPC-S-P consistently outperforms the standalone symbolic perimeter across a wide range of problem instances. This speedup is directly linked to the reduction in node expansions.

Comparison of node expansions between CPC-S-P and the Symbolic Perimeter. The substantial reduction in expansions highlights the informativeness of the complementary PDBs.

The expansion plot reveals that CPC-S-P often prunes orders of magnitude more nodes than the base heuristic, confirming that the sequentially generated PDBs provide critical information that the perimeter search lacks.

Key Insights

  • Feedback-Driven Generation: By considering what information is already available, CPC avoids redundancy and focuses on "filling the gaps" in the current heuristic.
  • Adaptability: The use of UCB1 to switch between RBP and CBP allows the system to adapt to different problem structures, leveraging the strengths of both random and structured pattern generation.
  • Symbolic Efficiency: Utilizing Symbolic PDBs (via Binary Decision Diagrams) allows CPC to represent much larger state spaces than traditional explicit lookup tables, further enhancing its pruning power.

Conclusion and Future Work

CPC represents a significant step forward in automated heuristic construction. By prioritizing complementarity and using realistic search-time estimates, it builds heuristics that are both informative and efficient. Future research could explore more advanced cost-partitioning schemes to further improve heuristic quality or refine the Stratified Sampling process to better handle duplicate states in the search tree.

Summary updated

BibTeX
@inproceedings{franco2017creating,
  author = {Santiago Franco and Álvaro Torralba and Levi H. S. Lelis and Mike Barley},
  title = {{On Creating Complementary Pattern Databases}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/601},
}
Figure