Abstract
Recent years have witnessed impressive robotic manipulation systems driven by advances in imitation learning and generative modeling, such as diffusion- and flow-based approaches. As robot policy performance increases, so does the complexity and time horizon of achievable tasks, inducing unexpected and diverse failure modes that are difficult to predict a priori. To enable trustworthy policy deployment in safety-critical human environments, reliable runtime failure detection becomes important during policy inference. However, most existing failure detection approaches rely on prior knowledge of failure modes and require failure data during training, which imposes a significant challenge in practicality and scalability. In response to these limitations, we present FAIL-Detect, a modular two-stage approach for failure detection in imitation learning-based robotic manipulation. To accurately identify failures from successful training data, we frame the problem as sequential out-of-distribution (OOD) detection. We first distill policy inputs and outputs into scalar signals that correlate with policy failures and capture epistemic uncertainty. FAIL-Detect then employs conformal prediction (CP) as a versatile framework for uncertainty quantification with statistical guarantees. Empirically, we thoroughly investigate both learned and post-hoc scalar signal candidates on diverse robotic manipulation tasks. Our experiments show learned signals based on adapted random networks and a novel flow-based density estimator to be most effective. Furthermore, our method detects failures more accurately and faster than state-of-the-art (SOTA) failure detection baselines. These results highlight the potential of FAIL-Detect to enhance the safety and reliability of imitation learning-based robotic systems as they progress toward real-world deployment.
Introduction
In the world of imitation learning (IL), robots learn complex tasks by watching humans. However, these robots often fail silently. Unlike Reinforcement Learning, IL doesn't have a built-in "reward function" to tell the robot it’s doing a bad job. Existing failure detection methods usually require a massive library of labeled failure examples to train a classifier. This is a huge bottleneck: collecting and annotating thousands of ways a robot can fail is expensive, time-consuming, and often dangerous. Furthermore, robots frequently encounter "Out-of-Distribution" (OOD) scenarios where traditional classifiers fall apart. FAIL-Detect addresses this by asking: Can we detect that something is wrong simply by knowing what "right" looks like?
Methods
FAIL-Detect is a modular two-stage framework designed to identify robotic manipulation failures in real-time without requiring failure data during training.
Stage 1: Score Learning
The system distills high-dimensional inputs (camera images, robot states) and outputs (predicted actions) into a single scalar "failure score." While several methods were tested, the authors' novel contribution is logpZO. This uses a flow-matching model to map observations into a latent space. If an observation is mapped far from the center of this space, it has a low likelihood of being "normal," resulting in a high failure score.
Stage 2: Threshold Calibration
Instead of using a fixed threshold, FAIL-Detect uses Conformal Prediction (CP). By looking at a small set of successful "calibration" runs, CP generates a time-varying statistical "envelope" or band. If the robot's real-time score spikes above this band, the system triggers a failure alert. This allows the threshold to be tighter during critical maneuvers and looser during high-variance parts of a task.
Experimental Evaluation
The researchers evaluated FAIL-Detect across both simulated and physical environments:
- Simulation: Four tasks from the Robomimic benchmark (Square, Transport, Can, and Toolhang).
- Robot Hardware: Two complex, long-horizon tasks on a bimanual Franka Emika Panda setup: FoldRedTowel (folding a towel) and CleanUpSpill (picking up a cup and wiping a spill).
- OOD Scenarios: They specifically introduced "camera bumps" and novel objects to test if the detector could handle environments different from the training data.
Key Results and Insights
- Accuracy: FAIL-Detect achieved a balanced accuracy of ~78% in simulation and ~72% on real hardware, outperforming existing baselines.
- Speed: The system is roughly 36-44x faster than the previous leading method (STAC), running in about 0.04 seconds and enabling true runtime deployment.
- Early Detection: In many cases, the system flagged a failure well before the robot finished its trajectory, providing a crucial window for intervention.
- Learned beats Post-hoc: Scores learned from data (like logpZO) significantly outperform "post-hoc" statistical measures. Learned scores are better at capturing the subtle nuances of what constitutes a "successful" state.
- Physical Correlation: The failure spikes correlate strongly with physical events, such as the exact moment a hammer slips from a gripper or a towel is pulled away by a human.
Conclusion
FAIL-Detect demonstrates that reliable failure detection is possible without explicit failure data. By combining flow-based density estimation with time-varying Conformal Prediction, the system provides a scalable and efficient solution for monitoring imitation learning policies. Future work will explore adding tactile or auditory sensors to detect non-visual failures and incorporating longer temporal sequences to identify slowly developing failure modes.
Summary updated