TL;DR
This paper challenges the long-held belief that bidirectional heuristic search is inherently inefficient due to search wavefronts missing each other. The authors propose new e-admissible bidirectional search algorithms with a novel termination criterion that significantly improves efficiency, especially when allowing for slightly suboptimal solutions. Their findings suggest that bidirectional search can outperform unidirectional counterparts without complex wave-shaping techniques.
What Problem Does This Paper Address?
For decades, the AI search community has grappled with the problem of finding optimal paths in large state spaces. While unidirectional search algorithms like A* have been extensively studied, bidirectional search, which explores from both the start and goal nodes simultaneously, has been plagued by the perceived issue of its search "frontiers" failing to meet effectively. This "missile metaphor" suggested that the two searches might expand in opposite directions without ever intersecting efficiently, leading to wasted effort. Consequently, unidirectional search was often considered superior, especially when aiming for optimal solutions. This paper investigates this assumption and proposes a new approach to bidirectional search that addresses a different, more critical problem: the significant effort required to not only find a solution but also to prove its optimality and improve its quality.
Methods
The authors introduce several new e-admissible bidirectional search algorithms that do not rely on complex "wave-shaping" techniques. The core innovation lies in a novel termination criterion designed to tackle the problem of proving optimality and improving solution quality after the initial meeting of the search fronts. This criterion, when combined with other improvements like the ability to reopen closed nodes and a more efficient meeting detection mechanism, leads to significant performance gains.
Key algorithmic contributions include:
- e-admissibility: Algorithms guarantee solutions within a (1+e) factor of the optimal cost.
- Novel Termination Criterion: This is the central piece, designed to address the post-meeting effort for proving optimality.
- Improved Meeting Detection: Algorithms now consider meeting points between any newly generated node and any node in the opposing frontier, rather than just between closed nodes.
- Reopening Nodes: Similar to A*, algorithms allow nodes to be moved back from the closed set to the open set if a better path is found, crucial for maintaining e-admissibility.
- BS Derivatives (BSA, BSA): These algorithms incorporate technical improvements from the BS* algorithm, such as "nipping" (not expanding nodes already closed in the opposite search tree) and "pruning" (removing descendants of nipped nodes).
- HPA Derivatives (IBHPA, IBHPA): These build upon the HPA (a bidirectional version of A) framework, incorporating the new termination criterion and other enhancements.
Datasets
The experiments were conducted on two main types of domains:
- Sliding-tile puzzles: Specifically, the 8-Puzzle and the 15-Puzzle. These are standard benchmarks in AI for evaluating search algorithms. The paper references a sample of 100 instances for the 15-Puzzle from a previous work.
- Route planning: Randomly generated route planning problems on a map of the Viennese public transport network. This domain is presented as having more "real-world flavor" compared to puzzles.
Key Insights and Ideas
- The "Missile Metaphor" is Misleading: The primary bottleneck in bidirectional search isn't necessarily wavefronts missing each other, but rather the substantial effort required after the initial meeting to prove optimality and refine solution quality.
- Relaxing Optimality Pays Off: Slightly relaxing the requirement for a strictly optimal solution (allowing for an e-bound) leads to dramatic improvements in search efficiency.
- A Smarter Termination Criterion is Key: The novel termination criterion is crucial for addressing the post-meeting effort and enabling efficient e-admissible bidirectional search.
- Bidirectional Search Can Outperform Unidirectional: Without complex wave-shaping, bidirectional search, when implemented with the proposed techniques, can be more efficient than its unidirectional counterparts, especially on harder problems.
- BS* Derivatives Show Promise: Algorithms derived from BS (like IBS) often outperform HPA derivatives (like IBHPA) in terms of "winning" instances, suggesting the BS* improvements are beneficial.
Key Results
- Significant Efficiency Gains: The proposed bidirectional algorithms (IBHPA, IBS) consistently outperformed unidirectional algorithms like HPA on the 15-Puzzle and route planning domains, especially as the allowed error bound (e) increased. For example, on the 15-Puzzle with e=0.5, IBHPA and IBS generated an order of magnitude fewer nodes than WIDA*.
- Reduced Memory Usage: For the 15-Puzzle, IBHPA and IBS required significantly less memory than HPA* to solve the same set of instances, making them more practical for difficult problems.
- Trade-off Between Optimality and Efficiency: As the allowed error (e) decreased, the performance advantage of bidirectional search over unidirectional search diminished, but it remained significant for non-zero e.
- BSA vs. A: For the 8-Puzzle, BSA (with a specific parameter setting) expanded fewer nodes than A for e ≥ 0.2, demonstrating bidirectional advantage even in this domain.
- Cross-Domain Consistency: The general trend of bidirectional search outperforming unidirectional search when relaxing optimality held across both the puzzle and route planning domains.
Limitations and Future Work
- Memory Requirements: While improved, the proposed algorithms still rely on best-first search, which can have significant memory requirements. The authors acknowledge this and mention ongoing work on combining bidirectional search with linear-space algorithms (like WIDA* and RBFS) to mitigate this.
- Domain Dependence: The "best" algorithm can depend on the specific problem characteristics. The authors note that while their algorithms are efficient when sufficient memory is available, linear-space algorithms are necessary when memory is constrained.
- Running Time: While node generation is a key metric, actual running time can be influenced by the overhead of managing data structures and the cost of computing heuristic values. This was not exhaustively studied for all algorithms.
- Future Work: The authors are investigating combinations of bidirectional search with linear-space techniques and exploring parallel implementation possibilities. They also suggest that their work could renew interest in bidirectional search, a paradigm previously considered less promising.
Summary updated