REFLECT: Summarizing Robot Experiences for Failure Explanation and Correction

Zeyi Liu, Arpit Bahety, Shuran Song

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 such as cooking or cleaning, failures become inevitable. Raw robot logs, containing high-frequency sensor data and joint positions, are difficult for humans to parse and even harder for autonomous systems to reason about. This "semantic gap" between unstructured multimodal data and high-level reasoning hinders the development of robust, self-correcting robots. Previous approaches often focused on narrow failure types or relied on simple visual captions that miss crucial context, such as auditory cues or internal object states.

The REFLECT Framework

The REFLECT framework bridges the semantic gap by generating a hierarchical text-based summary of robot experiences. This summary is structured into three distinct layers to facilitate efficient LLM reasoning:

  1. L0 (Sensory-Input Summary): Converts raw RGB-D video into task-informed scene graphs (tracking relations like "apple inside bowl") and processes audio into text labels (e.g., "faucet turns on").
  2. L1 (Event-Based Summary): Identifies key milestones based on changes in the scene graph or specific audio events, generating concise captions for these events.
  3. L2 (Subgoal-Based Summary): Aggregates data at the end of high-level subgoals (e.g., "Move to Sink") to verify if the intended outcome was achieved.
The REFLECT hierarchical summary architecture, showing the transition from raw sensory input to structured text summaries across three levels.

REFLECT employs a top-down reasoning approach. It first evaluates subgoals at the L2 level. If a failure is detected, it drills down into L1 and L0 data to perform Execution Analysis (identifying physical errors like slips) or Plan Analysis (identifying logical flaws like missing steps). This structured explanation then informs a Correction Planner, which prompts an LLM to generate a recovery sequence.

The RoboFail Dataset

To systematically evaluate the framework, we introduced the RoboFail dataset. This dataset includes 100 failure scenarios across 10 tasks in the AI2-THOR simulation environment and 30 real-world demonstrations using a UR5e robot arm. Failures are categorized into two primary types: Execution Failures, involving unexpected physical dynamics or low-level control errors, and Planning Failures, involving logic errors or ambiguous task references.

Examples from the RoboFail dataset illustrating execution failures (e.g., a carrot falling out of a pot) and planning failures (e.g., choosing the wrong bowl).

Experimental Results

REFLECT significantly outperforms standard captioning baselines and non-hierarchical LLM prompts. In simulation, the framework achieved 88.4% accuracy in explaining failures and correctly localized the time of failure in 96% of cases.

Crucially, REFLECT demonstrated robustness in real-world trials, maintaining a 68.8% explanation accuracy despite perception noise. In contrast, standard visual captioning models like BLIP-2 achieved only 6.25% accuracy in the same real-world scenarios. A key finding was the importance of audio; auditory feedback often provided unambiguous evidence of events (like a stove burner clicking) that were visually occluded. Furthermore, the framework achieved an approximately 80% success rate in generating and executing correction plans in simulation.

Conclusion

The REFLECT framework demonstrates that hierarchical, multisensory summaries enable LLMs to effectively diagnose and correct robotic failures. By abstracting raw sensor data into structured text, REFLECT bridges the gap between perception and high-level reasoning, paving the way for more autonomous and explainable robotic systems. Future work will explore replacing hand-coded heuristics with large spatial reasoning models to handle more dynamic environments.

Summary updated

BibTeX
@inproceedings{liu2023reflect,
  author = {Zeyi Liu and Arpit Bahety and Shuran Song},
  title = {{REFLECT: Summarizing Robot Experiences for Failure Explanation and Correction}},
  booktitle = {LangRob @ CoRL},
  year = {2023},
  url = {https://openreview.net/forum?id=46A8MZidbn},
}
Figure