3P-LLM: Probabilistic Path Planning using Large Language Model for Autonomous Robot Navigation

Ehsan LatifarXiv 2024 · DOI

Abstract

This paper introduces 3P-LLM, a framework that utilizes Large Language Models (LLMs), specifically GPT-3.5-turbo, as real-time path planners for autonomous robots. By converting environmental sensor data into natural language prompts, the system leverages the reasoning capabilities of LLMs to generate navigation strategies. Experimental results in simulated environments demonstrate that 3P-LLM can generate paths significantly faster than traditional algorithms like A* and RRT, though it faces a slight trade-off in path optimality and accuracy.

Introduction

Traditional robotic path planning typically relies on geometric algorithms. A* search provides optimal shortest paths but can be computationally intensive, while Rapidly-exploring Random Trees (RRT) offer speed at the cost of path smoothness. A significant challenge remains in bridging the "embodiment gap"—applying the vast semantic knowledge within LLMs to physical navigation tasks. 3P-LLM addresses this by treating the LLM as a high-speed heuristic engine capable of incorporating "common sense" into spatial reasoning.

The 3P-LLM Framework

The core of this research is the Probabilistic Path Planning (3P-LLM) framework, which translates raw sensor data into actionable linguistic commands.

Overview of the 3P-LLM pipeline

The pipeline consists of four primary stages:

  1. Perception-to-Language Translation: Lidar data and GMapping produce an Occupancy Grid Map (OGM). This grid, along with robot coordinates, is converted into a natural language description, such as "move straight then take a right turn."
  2. Probabilistic Grounding: The system balances Task-Grounding (the likelihood an action achieves the goal) and World-Grounding (the physical feasibility of the action given the map).
  3. LLM Reasoning: GPT-3.5-turbo processes these descriptions. Through prompt tuning, the model can even be directed to emulate specific algorithmic behaviors like Hierarchical Annotated A*.
  4. Execution: The resulting text is parsed into coordinates and velocity commands for the Robot Operating System (ROS).

Experimental Setup

The framework was evaluated within a dynamic "junk world" environment created in the Gazebo simulator. This setup allowed for testing real-time navigation and obstacle avoidance against various physical barriers without the constraints of a static dataset.

Performance Evaluation

The researchers compared 3P-LLM (using GPT-3.5-turbo) against classical A* and RRT planners.

Comparison of path correctness across different planners

Key findings include:

  • Processing Time: GPT-3.5-turbo achieved a remarkable processing time of 10ms, outperforming RRT (21ms) and A (72ms*). This speed makes it highly suitable for high-frequency real-time adjustments.
  • Path Correctness: While faster, the LLM-based approach had lower accuracy. A reached 95% correctness, RRT 87%, and GPT-3.5-turbo 81%*.
  • Path Length: The LLM produced slightly longer paths (average 6.34m) compared to the mathematically optimal routes found by A*.

Discussion and Future Work

The results suggest that LLMs can function as efficient "fast-thinking" systems for navigation. While they lose some geometric precision compared to raw sensor-based algorithms, their ability to provide "good enough" paths almost instantaneously is valuable in dynamic settings. Furthermore, the ability to change navigation logic via simple prompting offers unprecedented algorithmic flexibility.

Future research will focus on:

  • Hybrid Systems: Combining LLM-driven high-level goal setting with classical algorithms for local, precise navigation.
  • Enhanced Context: Integrating richer environmental data to improve world-grounding.
  • Fine-Tuning: Training models specifically on navigation tasks to bridge the current accuracy gap.

Summary updated

BibTeX
@misc{latif2024p,
  author = {Ehsan Latif},
  title = {{3P-LLM: Probabilistic Path Planning using Large Language Model for Autonomous Robot Navigation}},
  year = {2024},
  eprint = {2403.18778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18778},
}
Figure