Adding Diversity to Classical Heuristic Planning

Carlos Linares López, Daniel Borrajo

Introduction

In classical heuristic planning, the search for a sequence of actions to reach a goal state relies heavily on heuristic functions. While these functions provide estimates of the distance to the goal, they are frequently imperfect, leading to search space features like plateaus—where many states appear equally promising—or unrecognized dead-ends. Standard greedy algorithms, such as Enforced Hill Climbing (EHC), often commit to a single path and can become trapped in these regions, a phenomenon known as stagnation.

K-Best-First Search (KBFS)

To address the limitations of greedy search, this research introduces K-Best-First Search (KBFS) to the planning domain. Unlike standard Best-First Search (BFS), which expands only the single most promising node, KBFS expands the top $k$ nodes in the "OPEN" list during each iteration. This approach introduces "diversity" into the search process, allowing the planner to explore multiple promising paths simultaneously. If one path leads to a dead-end or a plateau, the search can continue along other branches that were progressed in parallel.

The authors also developed Enhanced KBFS (EKBFS), which incorporates established planning optimizations such as "helpful actions" and "goal agendas."

Experimental Evaluation

The performance of KBFS and EKBFS was evaluated using benchmarks from the International Planning Competitions (IPC), categorized by their search difficulty. Domains like Pipesworld and Freecell represent significant challenges due to dead-ends, while Blocksworld is known for its complex plateaus.

Table 1: Number of problems solved across various IPC domains. Bold entries indicate the best performance in each category.

As shown in the results table above, EKBFS variants significantly outperform EHC in difficult domains. For instance, in the Pipesworld domain, EHC solved only 4 problems, whereas EKBFS(5) solved 23. Similarly, in Blocksworld, KBFS variants demonstrated superior robustness in navigating plateaus that caused EHC to fail.

Impact on Plan Quality

Beyond simply finding solutions more reliably, the introduction of diversity often leads to higher-quality results. By exploring multiple paths, the algorithm is more likely to discover shorter sequences of actions to reach the goal.

Figure 1: Plan-length distribution function comparing EHC with EKBFS variants. The x-axis represents plan length on a log scale.

The plan-length distribution functions illustrate that EKBFS variants (particularly with larger $k$) tend to find shorter plans than EHC. This is evidenced by the EKBFS curves being shifted to the left, indicating a higher probability of finding a solution within a smaller number of steps.

Conclusion

Adding diversity through KBFS provides a robust mechanism for escaping the stagnation traps common in classical heuristic planning. While the optimal value for $k$ is domain-dependent—with very high $k$ potentially "shuffling" the search unnecessarily in easy domains—the technique consistently improves coverage and plan quality in challenging environments. Future work may involve dynamic adjustment of the $k$ parameter to optimize performance across varying problem topologies.

Summary updated

BibTeX
@inproceedings{lopez2010adding,
  author = {Carlos Linares López and Daniel Borrajo},
  title = {{Adding Diversity to Classical Heuristic Planning}},
  booktitle = {SOCS},
  year = {2010},
  doi = {10.1609/socs.v1i1.18171},
}
Figure