AutoGPT+P: Affordance-based Task Planning using Large Language Models

Timo Birr, Christoph Pohl, Abdelrahman Younes, Tamim Asfour

Introduction

AutoGPT+P is a hybrid task-planning system that combines the creative reasoning of Large Language Models (LLMs) with the reliability of classical PDDL (Planning Domain Definition Language) planners. By representing scenes through "affordances"—the functional actions an object allows—the system can dynamically suggest alternatives for missing items and automatically correct its own planning errors. This neuro-symbolic approach achieves a 98% success rate on standard benchmarks, bridging the gap between high-level common sense and low-level logical execution.

The Challenge of Grounding and Flexibility

Robotic task planning traditionally faces a trade-off between two paradigms: classical symbolic planners and LLM-based planners. Classical planners are mathematically rigorous but operate under a "closed-world assumption," failing if a required object is missing from the initial environment map. Conversely, LLMs possess vast "common sense" knowledge but often struggle with long-horizon logic and the generation of syntactically valid code.

The core challenge lies in grounding and flexibility. A robot must be able to interpret a natural language command like "I'm thirsty," recognize that a glass is missing, and decide to use a cup instead, all while ensuring the resulting plan is logically sound and executable.

Figure 1: The robot initiates affordance reasoning based on a user request for milk.

Methods: The AutoGPT+P Architecture

AutoGPT+P utilizes a multi-stage architecture to address these challenges:

  1. Affordance-based Scene Representation: Instead of relying solely on object labels (e.g., "mug"), the system employs an Object Affordance Mapping (OAM). Generated automatically via ChatGPT, this mapping defines functional capabilities (e.g., a bowl affords "containing" and "pouring").
  2. Tool-Based Feedback Loop: The system operates as an agent with access to four specialized tools:
  3. Plan: Executes the task if all objects are present.
  4. Partial Plan: Advances toward a subgoal when the full goal is temporarily unreachable.
  5. Suggest Alternative: Leverages affordance reasoning to find substitutes (e.g., using a pot instead of a bowl).
  6. Explore: Directs the robot to search for missing items in unexplored areas.
  7. Automated Self-Correction: A critical technical contribution is the integration of an external validator. When the LLM generates a PDDL goal, the validator checks for syntactic errors and semantic contradictions. If errors are detected, the feedback is returned to the LLM for iterative refinement.
Figure 2: The full pipeline of AutoGPT+P, from affordance reasoning to plan execution and human-robot cooperation.

Evaluation and Datasets

The system was evaluated using the SayCan Instruction Set, a standard benchmark for robotic NLU, and a new custom dataset of 150-180 complex scenarios designed to test open-world challenges like missing objects. Additionally, an OAM Evaluation Set of 70 object classes verified the accuracy of the LLM-generated affordance mappings.

Key Insights

  • Function over Form: Planning based on affordances provides "functional common sense." The robot understands that the utility of a container is what matters, not its specific label.
  • Neuro-Symbolic Error Correction: LLMs excel at fixing mistakes when provided with specific feedback from a symbolic validator, bridging the gap between probabilistic reasoning and deterministic requirements.
  • Dynamic Domain Generation: AutoGPT+P generates PDDL domains on the fly, tailored to the robot's capabilities and the specific objects detected in the scene.

Results

  • Benchmark Performance: On the SayCan dataset, AutoGPT+P achieved a 98% success rate, significantly outperforming the original SayCan (81%) and naive LLM-as-planner baselines.
  • Open-World Robustness: In scenarios involving missing objects and exploration, the system maintained a 79% success rate.
  • Substitution Efficacy: The affordance-guided "Suggest Alternative" tool outperformed naive LLM approaches by 13% in complex scenes.
  • Real-World Deployment: The system was successfully validated on ARMAR-6 and ARMAR-DE humanoid robots for tasks such as pouring, wiping, and object handover.

Limitations and Future Work

While robust, future work will address deterministic bottlenecks in object recognition by incorporating probabilistic scene representations. Additionally, the authors plan to introduce "clarification" tools for ambiguous commands and improve execution resilience to handle physical failures, such as dropped objects, during plan execution.

Summary updated

BibTeX
@inproceedings{birr2024autogpt,
  author = {Timo Birr and Christoph Pohl and Abdelrahman Younes and Tamim Asfour},
  title = {{AutoGPT+P: Affordance-based Task Planning using Large Language Models}},
  booktitle = {Robotics: Science and Systems},
  year = {2024},
  doi = {10.15607/rss.2024.xx.112},
}
Figure