Abstract
Traditional real-time search algorithms often suffer from "scrubbing"—repeatedly visiting the same states—due to their reliance on learning only heuristic distances to the goal ($h$-costs). This paper introduces $f$-LRTA, a novel algorithm that learns both the distance from the start ($g$-costs) and the distance to the goal. By incorporating $g$-cost learning and a novel pruning mechanism, $f$-LRTA enables agents to escape local minima significantly faster and prune inefficient paths, approaching the efficiency of offline search algorithms.
Introduction
In agent-centered heuristic search, an autonomous agent must navigate an initially unknown environment with limited sensing and memory. The standard approach, exemplified by Learning Real-Time A (LRTA), involves iteratively updating a heuristic estimate ($h$-cost) of the distance to the goal. However, these algorithms are prone to "scrubbing" behavior. When an agent enters a local minimum—a region where the heuristic values are misleadingly low—it must traverse the same states multiple times to "fill in" the heuristic map before it can escape.
Mathematically, escaping a local minimum of $N$ states can take $O(N^{1.5})$ steps. In large-scale environments, this inefficiency prevents real-time performance. This research aims to achieve $O(N)$ performance, where each state is expanded only once, mirroring the efficiency of offline A*.
Methodology: The $f$-LRTA* Algorithm
The proposed solution shifts from learning only $h$-costs to learning both $g$-costs (distance from the start) and $h$-costs. The $f$-LRTA* algorithm combines these two components to calculate the total estimated path cost $f = g + h$.
$g$-cost Learning and Pruning
Inspired by the RIBS algorithm, $f$-LRTA* tracks the distance traveled from the starting point. The key innovation lies in using these $g$-costs for pruning. On an optimal path, $g$-costs must strictly increase as the agent moves forward. If an agent reaches a state where no neighboring states have a higher $g$-cost, that state cannot be part of an optimal path and is pruned from future searches.
While $h$-cost pruning is often redundant, $g$-cost pruning is highly effective at identifying and closing off local minima that appear attractive due to low heuristic values. Remarkably, $f$-LRTA* remains robust even when using estimates of $g$-costs rather than perfect values, making it suitable for real-time applications.
Experimental Evaluation
The algorithms were evaluated using grid-based maps from the RPG Dragon Age: Origins. The movement model used was octile (8-way movement), and benchmarks were sourced from standardized sets at movingai.com.
Results
The performance of $f$-LRTA was compared against LSS-LRTA, a common benchmark, across several metrics including distance traveled, states expanded, and convergence speed.
As shown in the experimental data, $f$-LRTA significantly outperforms LSS-LRTA in the "First Trial" (initial exploration). For instance, with a lookahead of 100, $f$-LRTA reached the goal in 10,890 units of distance, compared to 18,976 for LSS-LRTA. Furthermore, $f$-LRTA demonstrates superior convergence. In "All Trials" testing, $f$-LRTA required only 69 trials to reach optimality, whereas LSS-LRTA* required 295. The time taken per trial was also consistently lower, confirming its suitability for real-time systems.
Conclusion
By integrating $g$-cost learning with traditional heuristic updates, $f$-LRTA* effectively addresses the scrubbing problem in real-time search. The algorithm's ability to prune states based on path-cost estimates allows for faster exploration and quicker convergence to optimal solutions. Future work will focus on dynamic parameter tuning and exploring more advanced pruning schemes to further minimize planning costs in diverse domains.
Summary updated