Skip to content

Adaptive Iterative Feedback Prompting for Obstacle-Aware Path Planning via LLMs - LM4Planning - AAAI2025

License

Notifications You must be signed in to change notification settings

Adaptive-Robotic-Lab/AIFP

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Adaptive Iterative Feedback Prompting (AIFP) for Obstacle-Aware Path Planning via LLMs

πŸ“œ Overview

This repository contains the code and dataset for the paper:

"Adaptive Iterative Feedback Prompting for Obstacle-Aware Path Planning via LLMs."

πŸ“Œ Abstract

Planning is a critical component for intelligent agents, especially in Human-Robot Interaction (HRI). Large Language Models (LLMs) demonstrate potential in planning but struggle with spatial reasoning. This work introduces Adaptive Iterative Feedback Prompting (AIFP), a novel framework that improves LLM-based path planning by incorporating real-time environmental feedback. AIFP prompts an LLM iteratively to generate partial trajectories, evaluates them for collision detection, and refines them when necessary using a Receding Horizon Planning (RHP) approach.

πŸ”‘ Key Features

βœ… LLM-based path planning with adaptive feedback
βœ… Collision-aware trajectory generation
βœ… Iterative re-planning mechanism using Receding Horizon Planning (RHP)
βœ… Handles static and dynamic obstacles
βœ… Improves success rate by 33.3% compared to naive prompting
βœ… Fully implemented with OpenAI's GPT-4 API

βœ… A star and RRT planners in the same 2D domain

πŸ“‚ Repository Structure

β”œβ”€β”€ src/                   # Source code for AIFP framework
β”‚   β”œβ”€β”€ aifp_planner.ipynb              # Core implementation of AIFP
β”‚   β”œβ”€β”€ naive_llm_planner.ipynb         # A naive llm planner
β”‚   β”œβ”€β”€ astar_planner.py                # A* Planner in the grid version of same 2D domain
β”‚   β”œβ”€β”€ rrt_planner.py                  # RRT Planner in the same 2D domain
β”œβ”€β”€ results/               # Outputs of path planning trials
β”œβ”€β”€ README.md              # This README file
└── requirements.txt       # Required Python dependencies

πŸ›  Installation & Setup

1️⃣ Clone the repository:

git clone https://github.com/yourusername/AIFP-PathPlanning.git
cd AIFP-PathPlanning

πŸ“Š Experimental Results

Environment AIFP Success Rate (%) NaΓ―ve Prompting (%)
Single Obstacle 55.6% 22.3%
Double Obstacles 36.7% 14.0%
Random Obstacles 31.5% 12.5%
Moving Obstacle 48.5% N/A
Moving Goal 51.5% N/A

βœ”οΈ AIFP significantly outperforms naΓ―ve prompting, especially in static environments! πŸš€

πŸ“Œ Citation

If you use this work, please cite:

@article{AIFP2025,
  title={Adaptive Iterative Feedback Prompting for Obstacle-Aware Path Planning via LLMs},
  author={Masoud Jafaripour, Shadan Golestan, Shotaro Miwa, Yoshihiro Mitsuka, Osmar R. Zaiane},
  year={2025},
  Conference={AAAI LM4Planning Workshop}
}

πŸ—οΈ Future Work

  • πŸ”Ή Extend AIFP to 3D navigation tasks
  • πŸ”Ή Integrate Vision-Language Models (VLMs) for richer environmental perception
  • πŸ”Ή Explore graph-based path representations for improved trajectory optimization

πŸš€ Star ⭐ this repo if you find it useful!
πŸ“§ Feel free to submit issues, PRs, or suggestions.

this repo is being updating.

About

Adaptive Iterative Feedback Prompting for Obstacle-Aware Path Planning via LLMs - LM4Planning - AAAI2025

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 67.6%
  • Python 32.4%