Abstract
Path planning in complex environments often faces the "curse of dimensionality," where traditional algorithms like A encounter exponential growth in computational costs. This paper introduces LLM-A, a hybrid framework that integrates the global reasoning capabilities of Large Language Models (LLMs) with the local precision of A. By utilizing LLMs to generate high-level waypoints, LLM-A guides the search process, achieving near-linear scalability and reducing operational overhead by over 50% while ensuring 100% path validity.
Introduction
Finding the shortest, obstacle-free route is a fundamental challenge in robotics and autonomous navigation. While the A algorithm is mathematically optimal, its efficiency degrades rapidly as map size and complexity increase. Conversely, LLMs possess strong global reasoning but lack the spatial precision required for obstacle avoidance, often hallucinating invalid paths. LLM-A bridges this gap by using LLM "intuition" to prune the search space of a rigorous algorithm, combining strategic foresight with tactical accuracy.
Methodology: Guided Heuristic Search
The LLM-A* framework operates in three distinct stages:
- Global Waypoint Generation: An LLM (such as GPT-3.5 or Llama 3) receives a text-based map description and generates a list of intermediate waypoints (the
TARGET list). - Dynamic Heuristic Search: The algorithm performs an A* search toward the first waypoint. The standard heuristic function is modified to incorporate costs derived from the LLM’s suggested path.
- Iterative Refinement: Upon reaching a waypoint, the target is updated to the next one in the list, focusing the search "beam" and preventing exploration of irrelevant map areas.
The researchers explored various prompting strategies, including Few-Shot, Chain-of-Thought (CoT), and a novel Recursive Path Evaluation (RePE) method to improve waypoint accuracy.
Results and Scalability
The performance of LLM-A* was evaluated against a dataset of 100 maps with 1,000 unique start-goal pairs. Key findings include:
- Efficiency: Using Llama 3, LLM-A achieved a 44.59% reduction in operations and a 35.98% reduction in storage compared to standard A.
- Path Quality: Paths generated by LLM-A were only 2-3% longer than the optimal A paths—a minor trade-off for the efficiency gains.
- Reliability: LLM-A maintained a 100% valid path ratio*, whereas LLM-only approaches failed significantly (as low as 7.8% validity).
The most striking result is the scalability curve. As map scale increases from 1 to 10, the operations required for standard A grow exponentially, while LLM-A maintains a much flatter, near-linear trajectory. This synergy allows the LLM to provide the "strategy" while A* handles the "tactics."
Conclusion and Future Work
LLM-A* demonstrates that LLMs are most effective as guides rather than replacements for traditional pathfinding. While the approach sacrifices strict admissibility (optimality), the gains in computational efficiency are substantial. Future research will focus on refining waypoint placement to close the optimality gap and extending the framework to 3D environments and dynamic obstacle scenarios.
Summary updated