Automating Robot Failure Recovery Using Vision-Language Models With Optimized Prompts

Hongyi Chen, Yunchao Yao, Ruixuan Liu, Changliu Liu, Jeffrey Ichnowski · DOI

Abstract

Robotic systems often fail when encountering conditions outside their predefined Operational Design Domain (ODD). This paper explores the use of Vision-Language Models (VLMs), specifically GPT-4o, as high-level failure detection and correction modules. By implementing prompt optimization strategies—including visual markers, relative-positioning language, and reasoning decomposition—the researchers demonstrate a significant improvement in spatial reasoning and recovery performance. The proposed method achieves a 65.78% accuracy gain in target reaching and outperforms specialized Vision-Language-Action (VLA) models in out-of-distribution scenarios.

Introduction

Robots are notoriously "brittle," typically operating within a strict Operational Design Domain (ODD). When a robot encounters a scenario slightly outside its programmed parameters—such as a block slipping or a gripper misalignment—it often fails and halts operations. Traditionally, resolving these failures required manual human intervention or the exhaustive coding of recovery behaviors for every conceivable edge case.

While modern Vision-Language Models (VLMs) possess vast general knowledge, they have historically struggled with the precise spatial reasoning required for robotic manipulation. This research addresses the challenge of bridging the gap between a VLM’s high-level reasoning and the low-level precision needed for autonomous failure recovery.

Methodology: Prompt Optimization Strategies

The researchers propose a pipeline that treats a VLM as a "black-box" Failure Detection and Correction module. Rather than requesting a direct fix, the system utilizes three specific prompt optimization strategies to enhance the VLM's performance:

  1. Visual Prompt Optimization: VLMs often struggle to identify relevant features in raw images. To mitigate this, the researchers "highlight" the goal by overlaying artificial visual markers, such as a red square around a target area, before the image is processed by the model.
  2. Relative-Position Language: Recognizing that VLMs are better at logic than numerical measurement, the prompts shift from absolute coordinates to relative positioning. By asking the model to determine if an object is "left or right" or "above or below" a target, the task is transformed from a difficult numerical problem into a simpler logical one.
  3. Reasoning Decomposition: Complex tasks are broken down into manageable steps. For motion, the model solves horizontal and vertical directions separately. For task-level failures, the process is split into three distinct phases: Detection (identifying the failure), Analysis (determining the cause), and Planning (formulating a recovery strategy).

Experimental Setup

The approach was evaluated using a 7-DoF Kinova robot arm across several benchmarks:

  • Motion-Level Tasks: Lego assembly alignment, gripper rotation, target reaching, and object grasping in 1D, 2D, and 3D environments.
  • Task-Level Failures: A "Lego Pick and Place" benchmark featuring eight common failure modes, including picking the wrong color, grabbing multiple blocks, or structural collapses.
  • Baselines: The optimized GPT-4o approach was compared against OpenVLA, a state-of-the-art open-source model specifically trained for robot actions.

Results and Discussion

The experimental results demonstrate that optimized prompts significantly enhance the utility of VLMs in robotics:

  • Accuracy Gains: In target-reaching tasks, optimized prompts improved the VLM's accuracy by 65.78% compared to standard, unoptimized prompts.
  • Outperforming Specialized Models: The optimized VLM approach significantly outperformed OpenVLA in motion-level corrections. In 3D object grasping, the proposed method achieved a 40% success rate (4/10), while OpenVLA failed completely (0/10) when faced with out-of-distribution positions.
  • Reliable Detection: In Lego assembly tasks, the system achieved a 96.6% success rate in failure detection and a 91.6% success rate in correctly analyzing the cause of the failure.

Key Insights

A primary takeaway of this research is that VLMs function more effectively as "Reasoners" than "Rulers." They excel at qualitative reasoning when spatial problems are converted into logical comparisons. Furthermore, using off-the-shelf VLMs provides a "Black-Box Advantage," allowing for greater adaptability in out-of-distribution scenarios compared to specialized models that require massive, specific datasets.

Limitations and Future Work

Despite these advancements, challenges remain. The model still struggles with subtle visual distinctions, such as identifying a misplaced block among others of the same color. Additionally, the VLM occasionally suffers from "plan hallucinations," where it suggests irrelevant or out-of-sequence recovery steps.

Future research will focus on automating the prompt engineering process, potentially allowing the VLM to refine its own decomposition strategies through trial and error, further reducing the need for human-in-the-loop optimization.

Summary updated

BibTeX
@inproceedings{chen2025automating,
  author = {Hongyi Chen and Yunchao Yao and Ruixuan Liu and Changliu Liu and Jeffrey Ichnowski},
  title = {{Automating Robot Failure Recovery Using Vision-Language Models With Optimized Prompts}},
  booktitle = {ACC},
  year = {2025},
  doi = {10.23919/acc63710.2025.11107751},
}
Figure