Bidirectional Bounded-Suboptimal Heuristic Search with Consistent Heuristics

Shahaf S. Shperberg, Natalie Morad, Lior Siag, Ariel Felner, Dor Atzmon

TL;DR

This paper introduces WBAE, a new family of bidirectional bounded-suboptimal heuristic search algorithms designed for consistent heuristics. By adapting the state-of-the-art optimal search algorithm BAE and introducing a tunable error-weight parameter ($\lambda$), the authors provide a flexible framework that significantly reduces search effort when finding solutions within a guaranteed suboptimality bound.

What Problem Does This Paper Address?

Pathfinding in massive graphs is a foundational problem in AI, utilized in everything from robotics to video games. While finding the absolute shortest path (optimal search) is ideal, it is often computationally infeasible due to time and memory constraints.

To tackle this, researchers use Bounded-Suboptimal Search (BSS), which trades a bit of solution quality for a massive boost in speed. Given a suboptimality bound $W \ge 1$, these algorithms guarantee that the cost of the path found will not exceed $W$ times the optimal cost ($C^*$).

While unidirectional BSS (searching forward from start to goal, like Weighted A) is well-understood, bidirectional BSS (searching simultaneously from both the start and the goal) has received much less attention. Specifically, existing bidirectional BSS algorithms don't fully exploit consistent heuristics—heuristics that satisfy the triangle inequality and allow algorithms to estimate and correct search errors dynamically. This paper bridges that gap by adapting BAE, the state-of-the-art optimal bidirectional search algorithm, into the bounded-suboptimal domain.

Methods

The authors introduce WBAE (Weighted BAE). The core innovation lies in its node priority function:

$$b_W(n) = g(n) + W \cdot h(n) + \lambda \cdot d(n)$$

Where:

  • $g(n)$ is the cost to reach node $n$.
  • $h(n)$ is the heuristic estimate to the target.
  • $W$ is the user-defined suboptimality bound (used to inflate the heuristic, similar to Weighted A*).
  • $d(n)$ is the heuristic error term, which measures the underestimation of the heuristic based on paths discovered from the opposite search direction.
  • $\lambda$ is a new parameter ($\lambda \le W$) that controls how much weight is given to this error correction term.

The authors mathematically prove that WBAE* maintains its bounded-suboptimal guarantees for any real value of $\lambda \le W$.

Additionally, they introduce two techniques to tighten the search's lower bounds, allowing for earlier termination:

  1. Alternative Termination Criteria (ALB): Tracks the minimum standard $f$-values to halt the search earlier, though it requires maintaining extra open lists.
  2. Greatest Common Denominator (GCD) Pricing: Uses the structural edge costs of the graph to round up lower bounds, providing a "free" optimization with zero computational overhead.

Datasets

The algorithms were evaluated across five distinct benchmark domains:

  • Towers of Hanoi (ToH): 12-disk, 4-peg instances evaluated using various additive Pattern Databases (PDBs) to simulate different heuristic strengths.
  • Sliding Tile Puzzle (STP): The standard 15-puzzle benchmark using the Manhattan Distance heuristic.
  • Pancake Puzzle: 18-pancake instances evaluated using GAP, GAP-1, and GAP-2 heuristics.
  • Grid-Based Pathfinding (MovingAI Repository): 156 maps from Dragon Age: Origins (DAO) and various maze layouts with varying widths.

Key Insights and Ideas

  • The $\lambda$ Trade-Off: The parameter $\lambda$ acts as a balancing lever between two competing tasks in heuristic search: finding a solution (lowering the upper bound) and proving its quality (raising the lower bound).
  • Heuristic Strength Dictates $\lambda$: The authors validate a crucial hypothesis: larger values of $\lambda$ (closer to $W$) excel when the heuristic is weak and $W$ is small because the search needs the error term $d(n)$ to help prove suboptimality. Conversely, when the heuristic is highly accurate or $W$ is large, the error term actually hinders the search; thus, a smaller or zero $\lambda$ is preferred.
  • Hyperparameter Tuning Pays Off: Using an automated framework (Optuna) to tune $\lambda$ dynamically ($\lambda^*$) consistently yielded the best overall performance across varying suboptimality bounds.

Key Results

  • Exponential State Spaces: WBAE shines brightest in exponential domains like the 15-puzzle and Towers of Hanoi. For optimal search ($W=1$), WBAE outperformed standard Weighted A* by factors of 6 to 10.
  • Impact of Lower Bound Tighter Methods: The GCD and ALB enhancement methods proved highly effective at reducing node expansions for small values of $W$ (e.g., $W \in \{1.1, 1.2\}$). As seen in the STP domain evaluations, GCD reduced node expansions to roughly 85% of the baseline at no extra CPU cost.
Comparison of lower bound methods on STP
  • Diminishing Returns for Large $W$: As the suboptimality bound $W$ grows large (e.g., $W=10$), the need to prove path quality drops significantly. Under these conditions, simpler algorithms like WBiA (which ignores the error term entirely) or WBAE with a very small $\lambda$ become the top performers.

Limitations and Future Work

  • Polynomial State Spaces: In domains with polynomial state spaces (like Mazes and DAO maps), the performance differences between WBAE and simpler baselines like Weighted A largely flatten out, minimizing WBAE*'s architectural advantages.
  • Future Directions: The authors suggest extending the WBAE* framework to support asymmetric heuristics by utilizing separate $\lambda$ values for the forward and backward search frontiers. They also aim to adapt other unidirectional BSS strategies (like Explicit Estimation Search) into the bidirectional paradigm.

Summary updated

BibTeX
@inproceedings{shperberg2026bidirectional,
  author = {Shahaf S. Shperberg and Natalie Morad and Lior Siag and Ariel Felner and Dor Atzmon},
  title = {{Bidirectional Bounded-Suboptimal Heuristic Search with Consistent Heuristics}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i43.41046},
}
Figure