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

Timo Birr, Christoph Pohl, Abdelrahman Younes, Tamim Asfour · DOI

Introduction

Robots operating in dynamic human environments face a significant challenge known as the "closed-world" problem. Classical planners are highly efficient at determining paths to a goal but rely on a perfect, static map of every object and its properties. If a specific object—such as a glass—is missing, traditional systems typically fail. Conversely, Large Language Models (LLMs) possess the "common sense" to suggest a cup as a substitute but often struggle with long-horizon logical consistency and may generate physically impossible plans.

AutoGPT+P is a hybrid robotic planning system designed to bridge this gap. It combines the linguistic flexibility of LLMs with the logical rigor of classical Planning Domain Definition Language (PDDL) planners. By shifting the focus from what an object is to what it affords (its functional properties), the system can autonomously handle missing objects, suggest functional alternatives, and self-correct its own logical errors.

The AutoGPT+P Framework

The core innovation of AutoGPT+P is its multi-stage approach to bridging perception and action through affordance reasoning. Instead of a simple list of object names, the robot maintains a map of "affordances"—for example, recognizing that a knife affords both cutting and grasping.

The AutoGPT+P pipeline demonstrating affordance reasoning, human-robot cooperation, and final plan execution.

Methodology and Tool Selection

The system utilizes an LLM as a high-level manager that orchestrates four specialized tools:

  1. Plan: Generates a full PDDL plan when all necessary objects are identified.
  2. Partial Plan: Executes as much of a task as possible with currently available items.
  3. Explore: Directs the robot to search unexplored areas for missing components.
  4. Suggest Alternative: Uses affordance reasoning to find functional substitutes (e.g., using a cup when a glass is unavailable).

To support this, the authors developed Automated Object Affordance Mapping (OAM), which uses ChatGPT to generate a database of actions supported by various objects. This allows the robot to reason about novel objects it has never encountered before. Furthermore, a dedicated semantic and syntactic checker validates the LLM’s output. If the LLM suggests an impossible action, the checker provides specific, PDDL-validated feedback (e.g., "An object in the hand cannot simultaneously be in the trash can"), allowing the system to self-correct.

Experimental Evaluation

The researchers evaluated AutoGPT+P using several benchmarks to test its resilience in open-world scenarios:

  • SayCan Instruction Set: A standard benchmark for robotic natural language tasks.
  • AutoGPT+P Dataset: 150 complex scenarios specifically designed to test challenges like missing objects and environmental exploration.
  • OAM Benchmark: A set of 70 object classes to verify the accuracy of the automated affordance mappings.

Key Results

AutoGPT+P achieved a 98% success rate on the SayCan dataset, significantly outperforming the original SayCan (81%) and naive LLM-as-planner baselines. In more difficult scenarios involving missing objects, the system maintained a robust 79% success rate. The affordance-guided "Suggest Alternative" tool proved particularly effective, outperforming naive LLM suggestions by 13% in complex scenes.

Real-world validation was conducted on the ARMAR-6 and ARMAR-DE humanoid robots. The system successfully completed 15 out of 20 real-world tasks, including complex interactions like pouring, wiping surfaces, and performing handovers with humans.

Discussion and Future Work

By planning based on functions (affordances) rather than rigid object labels, AutoGPT+P becomes significantly more resilient. It decouples the goal (e.g., "contain liquid") from the specific instance (e.g., "blue glass #4"). The study also highlights that LLMs are most effective when acting as strategy selectors rather than raw code generators.

However, the current system operates under a deterministic assumption, assuming object detection is always accurate and actions always succeed. Future work will focus on incorporating probabilistic OAMs to account for uncertainty and developing multi-modal feedback loops, allowing robots to ask humans for clarification when faced with vague or ambiguous commands.

Summary updated

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