Introduction
In real-time domains such as video games and autonomous robotics, agents must often initiate movement before a complete path to the goal is computed. Traditional search algorithms like A introduce significant "first-move lag" as the agent remains stationary during path calculation. Learning Real-Time A (LRTA) addresses this by interleaving planning and execution. However, standard LRTA suffers from slow convergence, requiring numerous traversals of the same environment to identify an optimal route. This paper introduces Prioritized-LRTA (P-LRTA), an algorithm designed to minimize convergence execution cost while maintaining sub-millisecond responsiveness.
Methodology: Prioritized-LRTA*
P-LRTA* adapts the concept of "Prioritized Sweeping" from reinforcement learning to real-time heuristic search. The core innovation lies in treating heuristic updates as a prioritized resource.
- Prioritized Updates: When an agent updates the heuristic value of its current state, it calculates the magnitude of change ($\Delta$). Neighboring states are then added to a priority queue with priority $\Delta$.
- Bounded Planning Phase: During each step, the agent updates its current state and processes up to $N$ states from the priority queue. By using a fixed maximum queue size and a fixed number of updates per move, P-LRTA* ensures a constant time budget, critical for real-time performance.
- Information Propagation: Unlike local search methods that only update states near the agent, P-LRTA* allows information about obstacles or shortcuts to propagate efficiently across the map via the priority queue.
The researchers found that performance improvements from increasing queue size and the number of updates are largely independent, allowing for flexible tuning based on available memory or CPU cycles.
Experimental Evaluation
The algorithm was evaluated on five maps from a commercial computer game, ranging from 2,700 to 16,000 states. A total of 10,000 test cases were conducted, comparing P-LRTA against standard LRTA, Local Repair A (LRA), and hierarchical methods like PR-LRTS.
Key Results and Analysis
P-LRTA demonstrated substantial improvements in learning efficiency and responsiveness. As shown in the comparative data, P-LRTA significantly reduces the distance traveled before convergence compared to standard LRTA*.
Specifically, P-LRTA with 40 updates per move achieved a convergence execution cost of 462.4, nearly a 20-fold improvement over standard LRTA (9808.5). Furthermore, it maintained a minimal first-move lag (8.3 states touched), drastically outperforming LRA, which required touching 2255.2 states before the first move. Notably, P-LRTA also outperformed the more complex PR-LRTS, suggesting that intelligent update prioritization is more effective than structural abstractions in these environments.
Conclusion and Future Directions
P-LRTA* provides a robust framework for real-time pathfinding by focusing computational effort on the most significant heuristic updates. Future work may explore adding lookahead to action selection to further improve path quality and extending the algorithm to dynamic environments where paths may open or close over time. Additionally, investigating dynamic parameterization to automatically adjust update limits based on system load remains a promising area for research.
Summary updated