Leveraging Pre-trained Large Language Models with Refined Prompting for Online Task and Motion Planning

With the rapid advancement of artificial intelligence, there is an increasing demand for intelligent robots capable of assisting humans in daily tasks and performing complex operations. Such robots not only require task planning capabilities but must also execute tasks with stability and robustness. In this paper, we present a closed-loop task planning and acting system, LLM-PAS, which is assisted by a pre-trained Large Language Model (LLM). While LLM-PAS plans long-horizon tasks in a manner similar to traditional task and motion planners, it also emphasizes the execution phase of the task. By transferring part of the constraint-checking process from the planning phase to the execution phase, LLM-PAS enables exploration of the constraint space and delivers more accurate feedback on environmental anomalies during execution. The reasoning capabilities of the LLM allow it to handle anomalies that cannot be addressed by the robust executor. To further enhance the system's ability to assist the planner during replanning, we propose the First Look Prompting (FLP) method, which induces LLM to generate effective PDDL goals. Through comparative prompting experiments and systematic experiments, we demonstrate the effectiveness and robustness of LLM-PAS in handling anomalous conditions during task execution.
View on arXiv@article{guo2025_2504.21596, title={ Leveraging Pre-trained Large Language Models with Refined Prompting for Online Task and Motion Planning }, author={ Huihui Guo and Huilong Pi and Yunchuan Qin and Zhuo Tang and Kenli Li }, journal={arXiv preprint arXiv:2504.21596}, year={ 2025 } }