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

Hengjia Xiao, Peng Wang, Mingzhe Yu, Mattia Robbiani
12/4/2023
cs.ROcs.AIcs.HC

Official code: speedhawk/LLM-A- (7 stars, last commit 2025-04-13).

Abstract

This research focuses on how Large Language Models (LLMs) can help with (path) planning for mobile embodied agents such as robots, in a human-in-the-loop and interactive manner. A novel framework named LLM A*, aims to leverage the commonsense of LLMs, and the utility-optimal A* is proposed to facilitate few-shot near-optimal path planning. Prompts are used for two main purposes: 1) to provide LLMs with essential information like environments, costs, heuristics, etc.; 2) to communicate human feedback on intermediate planning results to LLMs. This approach takes human feedback on board and renders the entire planning process transparent (akin to a `white box') to humans. Moreover, it facilitates code-free path planning, thereby fostering the accessibility and inclusiveness of artificial intelligence techniques to communities less proficient in coding. Comparative analysis against A* and RL demonstrates that LLM A* exhibits greater efficiency in terms of search space and achieves paths comparable to A* while outperforming RL. The interactive nature of LLM A* also makes it a promising tool for deployment in collaborative human-robot tasks. Codes and Supplemental Materials can be found at GitHub: https://github.com/speedhawk/LLM-A-.

View on arXivView PDF

Code Implementations(1)

speedhawk/LLM-A-Official100%
71Python, Jupyter NotebookMar 13, 20241 years ago

Similar Papers

Cite this paper

@article{xiao2023human,
  title  = {LLM A*: Human in the Loop Large Language Models Enabled A* Search for Robotics},
  author = {Hengjia Xiao and Peng Wang and Mingzhe Yu and Mattia Robbiani},
  year   = {2023},
  eprint = {2312.01797},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.01797v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.01797.svg)](https://codeofpaper.com/paper/2312.01797)

Discussion