LLM A*: Human in the Loop Large Language Models Enabled A* Search for Robotics

Hengjia Xiao, Peng WangarXiv 2023 · DOI

Introduction

Path planning is a foundational challenge in robotics, typically addressed by two distinct paradigms: classical search algorithms and learning-based methods. Classical algorithms like A* are "admissible," guaranteeing the shortest path, but they are computationally expensive because they explore the environment blindly. Conversely, Reinforcement Learning (RL) offers flexibility but often suffers from "jittery" movements and requires extensive training.

A new approach, "LLM A: Human in the Loop Large Language Models Enabled A Search for Robotics," proposes a hierarchical framework that bridges this gap. By combining the rigorous logic of A* with the "commonsense" reasoning of Large Language Models (LLMs), the authors create a system that plans paths more efficiently while remaining transparent and accessible to human users.

The LLM A* Framework

The core of the LLM A* system is its hierarchical structure, which divides the planning task into two levels:

  1. High-Level (LLM as Determiner): The LLM analyzes the environment's natural language description and the robot's exploration history to suggest sub-goals or key points. This provides the robot with an "intuition" of where the goal might be, similar to how a human might navigate a building.
  2. Low-Level (A* for Execution): A modified A* algorithm handles the step-by-step movement. It uses the standard cost function $f(s) = g(s) + h(s)$, where $g(s)$ is the cost to reach the current state and $h(s)$ is the heuristic estimate to the goal.

Human-in-the-Loop Alignment

A key innovation is the "code-free" interaction model. Users can guide the robot using natural language, providing feedback that the system uses to refine its strategy. This interaction acts as a reward function, allowing the LLM to align its high-level suggestions with human intent and safety constraints.

The natural language interface allows users to define maps and goals, which the LLM then uses to provide high-level guidance through a dialogue-based interaction.

Experimental Results and Key Insights

The researchers evaluated LLM A against standard A, pure LLM planning, and PPO (a common RL algorithm) across various grid map environments like Aisle, Canyon, and Double Door.

Reducing Search Complexity

The primary advantage of LLM A is its ability to focus the search. By providing a "smart" starting point, the LLM significantly reduces the number of nodes the A algorithm needs to visit. In the Aisle environment, LLM A reduced the search space to 352 nodes, compared to 372 for standard A.

Comparison of path planning strategies: (a) pure LLM planning often results in hallucinations or unsafe paths, while (b) LLM A* uses LLM guidance to focus the A* search (green area), ensuring both safety and efficiency.

Safety and Smoothness

The study confirmed that LLMs cannot plan paths reliably in isolation; "pure" LLM planning frequently resulted in paths that collided with obstacles. The A component serves as a necessary safety rail. Furthermore, LLM A produced much smoother paths than RL models, which often exhibit erratic "back-and-forth" movements. LLM A* consistently outperformed PPO across metrics including path length, smoothness, and complexity.

Conclusion and Future Directions

While LLM A* demonstrates a powerful synergy between symbolic logic and neural intuition, challenges remain regarding token efficiency and the computational cost of running large models for simple navigation tasks. The authors suggest that future research should focus on fine-tuning smaller, specialized language models for spatial reasoning to maintain performance while reducing resource consumption.

Summary updated

BibTeX
@misc{xiao2023llm,
  author = {Hengjia Xiao and Peng Wang},
  title = {{LLM A*: Human in the Loop Large Language Models Enabled A* Search for Robotics}},
  year = {2023},
  eprint = {2312.01797},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.01797},
}
Figure