Abstract
The ability to detect and analyze failed executions automatically is crucial for an explainable and robust robotic system. Recently, Large Language Models (LLMs) have demonstrated strong reasoning abilities on textual inputs. To leverage the power of LLMs for robot failure explanation, we introduce REFLECT, a framework which queries LLM for failure reasoning based on a hierarchical summary of robot past experiences generated from multisensory observations. The failure explanation can further guide a language-based planner to correct the failure and complete the task. To systematically evaluate the framework, we create the RoboFail dataset with a variety of tasks and failure scenarios. We demonstrate that the LLM-based framework is able to generate informative failure explanations that assist successful correction planning.
Introduction
As robots transition from controlled factory floors to complex, long-horizon tasks in human environments, failures become inevitable. Currently, when a robot fails, human developers must often sift through tedious execution logs or hours of video to debug the system. This process highlights two critical gaps in modern robotics: a lack of explainability (the robot cannot communicate why it failed) and a lack of autonomous recovery (the robot cannot plan a correction without understanding the root cause).
REFLECT addresses these challenges by bridging the gap between raw, unstructured multisensory data—such as pixels and sound—and high-level reasoning. By converting robot experiences into a structured, hierarchical text summary, the framework enables Large Language Models (LLMs) to diagnose errors and plan recovery strategies effectively.
The REFLECT Framework
REFLECT processes robot experiences through a three-stage pipeline designed to maximize the reasoning capabilities of LLMs while managing their context window limitations.
1. Hierarchical Robot Summary
To avoid overwhelming the LLM with redundant data, REFLECT creates a summary with three levels of abstraction:
- L0 (Sensory-Input): Converts RGB-D video into Task-Informed Scene Graphs, tracking object states and spatial relations (e.g., "inside" or "on top of"). It also utilizes models like AudioCLIP to translate sounds into text (e.g., "faucet turns on").
- L1 (Event-Based): Filters data into keyframes where significant changes occur, such as an object being picked up or a sound starting.
- L2 (Subgoal-Based): Captures the environment state only at the completion of high-level subgoals, such as "Move to Sink."
2. Progressive Failure Explanation
REFLECT employs a "top-down" logic to identify failures:
- Success Verification: The system first checks the L2 summary to see if all subgoals were met.
- Execution Analysis: If a subgoal failed, the system "zooms in" on L1 and L0 data around that timestamp to identify physical errors, such as a carrot falling out of a pot.
- Plan Analysis: If all subgoals were met but the task still failed, the system analyzes the high-level logic, such as the robot placing a pot on the wrong burner.
3. Failure Correction Planner
Once a failure is explained in natural language, that explanation is fed back into the LLM to generate a recovery plan. This plan allows the robot to resume from its current failed state and complete the original goal.
The RoboFail Dataset
To systematically evaluate the framework, the authors introduced RoboFail, a new benchmark for robot failure analysis featuring:
- Simulation: 100 failure scenarios in AI2THOR across 10 different household tasks.
- Real-World: 30 failure demonstrations using a UR5e robot arm in a kitchen environment.
- Taxonomy: Failures are categorized into Execution Failures (unexpected dynamics, low-level errors) and Planning Failures (wrong action order, missing actions, or ambiguous references).
Key Insights
- Hierarchy is Essential: LLMs can become confused by redundant data. Summarizing at the subgoal level first drastically reduces the search space for the reasoning engine.
- Audio as a First-Class Citizen: Some failures are nearly invisible but highly audible. For instance, a robot might not "see" that a stove is on if a pot blocks the burner, but it can "hear" the click of the igniter. Removing audio data dropped explanation accuracy for execution failures by approximately 20%.
- Language as a Unified Interface: By converting vision, sound, and proprioception into text, REFLECT leverages the massive pre-trained reasoning capabilities of GPT-4 without requiring a specialized, end-to-end robot-failure model.
Results
REFLECT significantly outperformed baselines in three key metrics:
- Explanation (Exp): In simulation, REFLECT generated correct and informative explanations 88.4% of the time for execution failures.
- Localization (Loc): The framework correctly identified the exact moment of failure with 96% accuracy in simulation and 93.8% in the real world.
- Correction (Co-plan): The system achieved an 80.7% success rate in planning recoveries for planning-related failures.
Limitations and Future Work
While REFLECT demonstrates strong performance, it currently relies on hand-coded heuristics for scene graph generation. Future iterations could incorporate end-to-end spatial reasoning models. Additionally, the framework assumes a static environment where only the robot acts; future work will need to address dynamic scenes involving other agents. Finally, while REFLECT excels at high-level failures, it may struggle with subtle control issues, such as motor vibrations, unless they are explicitly translated into the text summary.
Summary updated