Grounding LLMs For Robot Task Planning Using Closed-loop State Feedback

Vineet Bhat, Ali Umut Kaypak, Prashanth Krishnamurthy, Ramesh Karri, Farshad Khorrami · OpenReview

Abstract

Planning algorithms decompose complex problems into intermediate steps that can be sequentially executed by robots to complete tasks. Recent works have employed Large Language Models (LLMs) for task planning, using natural language to generate robot policies in both simulation and real-world environments. LLMs like GPT-4 have shown promising results in generalizing to unseen tasks, but their applicability is limited due to hallucinations caused by insufficient grounding in the robot environment. The robustness of LLMs in task planning can be enhanced with environmental state information and feedback. In this paper, we introduce a novel approach to task planning that utilizes two separate LLMs for high-level planning and low-level control, improving task-related success rates and goal condition recall. Our algorithm, BrainBody-LLM, draws inspiration from the human neural system, emulating its brain-body architecture by dividing planning across two LLMs in a structured, hierarchical manner. BrainBody-LLM implements a closed-loop feedback mechanism, enabling learning from simulator errors to resolve execution errors in complex settings. We demonstrate the successful application of BrainBody-LLM in the VirtualHome simulation environment, achieving a 29% improvement in task-oriented success rates over competitive baselines with the GPT-4 backend. Additionally, we evaluate our algorithm on seven complex tasks using a realistic physics simulator and the Franka Research 3 robotic arm, comparing it with various state-of-the-art LLMs. Our results show advancements in the reasoning capabilities of recent LLMs, which enable them to learn from raw simulator/controller errors to correct plans, making them highly effective in robotic task planning.

Introduction

Large Language Models (LLMs) like GPT-4 possess immense "world knowledge"—they understand that making coffee requires finding a mug and grabbing milk. However, they often lack environmental grounding. In a robotic context, an LLM might generate a plan that assumes a fridge is open when it is actually closed, or it might "hallucinate" objects that do not exist in the robot's immediate vicinity.

Existing methods often rely on "static" plans or rigid, expert-defined heuristics to check preconditions. When these plans fail in the real world due to physical constraints or unexpected states, the robot typically becomes stuck. This research addresses the challenge of making LLM-based planners robust and adaptive by closing the loop with natural language feedback derived directly from simulator or controller errors.

Methods: The BrainBody-LLM Framework

The proposed hierarchical framework, BrainBody-LLM, is inspired by the human neural system, dividing responsibilities between two distinct models:

  1. Brain-LLM (The Planner): This high-level model receives the task instruction (e.g., "Eat chips on the sofa") and environment information. It decomposes the task into a sequence of natural language steps.
  2. Body-LLM (The Actor): This low-level model translates each natural language step into specific, executable robot commands (primitives) based on the current scene.
  3. Closed-loop Feedback: If an action fails (e.g., the robot tries to grab an object out of reach), the simulator or controller generates an error message. This error is translated into natural language and sent back to the Brain-LLM, which then reasons about the failure and generates a revised plan starting from the point of error.
The BrainBody-LLM architecture showing the hierarchical flow from high-level planning to low-level execution and the feedback loop.

A critical component of this system is the <pass> token. By allowing the Body-LLM to output a <pass> token if a high-level instruction is currently impossible or unnecessary, the system avoids "oscillatory" loops where it repeatedly tries and fails the same action.

The planning prompt used for the Brain-LLM, incorporating environment information and task instructions.

Experimental Evaluation

The framework was evaluated using two primary setups:

  • VirtualHome (VH): A simulator for "Human-In-A-Household" scenarios. The study used a dataset of 80 tasks involving interactive objects like fridges, TVs, and ovens.
  • Franka Research 3 (FR3) Environment: A more realistic setup using a 7-DOF robotic arm. Seven complex pick-and-place tasks (e.g., arranging cubes to form specific shapes) were evaluated in both the MuJoCo physics simulator and on a physical robot arm.

Key Results

The results demonstrate the superiority of the hierarchical, closed-loop approach:

  • VirtualHome Success: BrainBody-LLM (using GPT-4) improved the task-oriented success rate by 29% over competitive baselines with the GPT-4 backend.
  • Goal Condition Recall (GCR): The system achieved an average GCR of 81%, indicating successful completion of the vast majority of sub-goals within complex tasks.
  • Physical Robustness: In Franka arm experiments, GPT-4 succeeded in 100% of the tasks, including "Hard" tasks that required multiple iterations of feedback to resolve spatial reasoning errors. In contrast, GPT-3.5 and PaLM 2 struggled significantly with these complex scenarios.

Discussion and Future Work

The research confirms that the reasoning required for closed-loop feedback is a frontier capability; GPT-4 significantly outperformed smaller models in its ability to utilize feedback effectively. However, several limitations remain. The current framework assumes that errors are reversible; it does not yet account for "catastrophic" or irreversible errors, such as spilling a liquid.

Future work will focus on integrating Vision-Language Models (VLMs) to remove the need for pre-known object locations and designing formal safety guarantees for low-level action primitives to ensure the robot operates safely during creative re-planning.

Summary updated

BibTeX
@inproceedings{bhat2025grounding,
  author = {Vineet Bhat and Ali Umut Kaypak and Prashanth Krishnamurthy and Ramesh Karri and Farshad Khorrami},
  title = {{Grounding LLMs For Robot Task Planning Using Closed-loop State Feedback}},
  booktitle = {Advanced},
  year = {2025},
  doi = {10.1002/adrr.202500072},
}
Figure