Skip to content
Robotics.world

Research

RAFAIL: Relationship-Aware Failure Detection for Robotic Manipulation

Learned manipulation policies fail in the real world for reasons ranging from perception errors to unexpected physical contact, so a robot needs to recognize that an execution has gone wrong.

The paper’s first page · arXiv:2609.18324
arXiv
2609.18324 · Preprint · not peer-reviewed
Published
2026-09-16
Authors
Loris Schneider, Edgar Welte, Rania Rayyes

In plain words

Learned manipulation policies fail in the real world for reasons ranging from perception errors to unexpected physical contact, so a robot needs to recognize that an execution has gone wrong.

AI summary

Overview

Research area: Robotics — runtime failure detection for learned robotic manipulation policies, combining imitation learning, out-of-distribution (OOD) detection, and offline vision-language model (VLM) supervision.

Technical level: Advanced. The paper assumes familiarity with contrastive representation learning, conformal prediction, and OOD detectors such as Random Network Distillation.

Scope: RAFAIL is a framework that detects execution failures in real-world robotic manipulation by monitoring task-relevant relationships between object pairs rather than whole-scene observations, using a VLM only during offline training and no failure data at all.

What This Paper Is About

Learned manipulation policies fail in the real world for reasons ranging from perception errors to unexpected physical contact, so a robot needs to recognize that an execution has gone wrong. Existing detectors either run a VLM continuously (semantically meaningful but computationally expensive) or apply OOD/uncertainty detectors to global observations (cheap but prone to firing on harmless scene changes while missing subtle errors). RAFAIL's goal is to keep the low runtime cost of OOD detection while making the signal failure-relevant, by restricting detection to the specific object relationships that matter for the task at the current stage of execution.

Key Contributions

  1. A relationship-aware failure detection framework that decomposes a global observation into dedicated representations of individual task-relevant relationships — pairs of entities such as gripper and object, or object and target — instead of scoring the whole scene or the policy's internal features.
  2. Relationship importance and task progress estimation via VLM distillation: a VLM supplies semantic pairwise judgments offline, which train labelers whose outputs supervise auxiliary heads on the manipulation policy, so both quantities are predicted at runtime without any VLM inference.
  3. A task-progress-conditioned, importance-gated relationship OOD detector that localizes which interaction is anomalous, fuses progress and importance into a single failure signal, and is independent of policy-internal latent representations.
  4. Empirical validation on three real-world manipulation tasks, reporting 73.4% balanced accuracy versus 65.2% for the strongest evaluated baseline, without requiring any failure data for training.

Main Findings

  • Best overall balanced accuracy: RAFAIL reaches 73.4% balanced accuracy across all 178 autonomous executions, compared with 65.2% for ACE, the second-best and strongest evaluated baseline. It combines a true positive rate of 58.5% with a false positive rate of 11.6%, versus 46.7% and 16.3% for ACE.
  • Task-level results: RAFAIL achieves the highest accuracy on Pouring (82.3%, TPR 81.3%, FPR 16.7%) and on Uprighting (71.4%, TPR 59.5%, FPR 16.7%). On PickPlace it places third with 66.7%, behind RND with max-pooling at 72.8% and logpZO with max-pooling at 68.0%.
  • Baselines trade off inconsistently across tasks: several baseline variants become either overly sensitive (high TPR and high FPR) or overly conservative (low FPR but low TPR) depending on the task. Mean-pooling is described as more stable but often at the cost of lower TPR, while max-pooling is described as overly sensitive.
  • Detections align more closely with the actual failure event: in manually annotated timing analysis, RAFAIL's first detections cluster nearer the annotated failure timestep, particularly for PickPlace and Pouring. Uprighting shows a broader distribution, which the authors partly attribute to failures that develop gradually.
  • Relationship attributions often match the true failure: among true-positive detections, agreement between the relationship that triggered the alarm and the manually annotated failing relationship is 93.3% for PickPlace, 69.3% for Pouring, and 68.0% for Uprighting. The authors caution that these annotations are subjective and not independent ground truth.
  • Whole-scene encoding is worse: replacing relationship-wise encodings with a single whole-scene encoding lowers balanced accuracy on all three tasks, supporting the claim that focusing on individual relationships yields better failure signals.
  • The importance gate is essential: removing it by setting the importance threshold to 0 raises the overall FPR from 11.6% to 69.8% and drops balanced accuracy from 73.4% to 58.1%, despite increasing TPR. That variant does reach the highest accuracy on Pouring but is described as ineffective for PickPlace and Uprighting.
  • Continuous weighting is a more conservative alternative: using importance as a multiplicative weight rather than a hard gate reduces TPR to 37.8% but improves the overall FPR, yielding 68.9% overall balanced accuracy — still above the best baseline.

Methodology in Plain English

Offline, stage one — learning what matters and when. A VLM (the paper cites specific models, referenced as [13] and [14]) is shown grid images built from demonstration frames and asked to describe the task, its start and goal states, and the task-relevant objects. All unique pairs of these objects become the "relationships" the system will monitor. The VLM is then shown pairs of short sequences of four consecutive frames drawn from random demonstrations and asked two questions: which sequence is further along in the task, and which relationships are more important in each sequence, with ties allowed. This produces a comparison dataset of relationship-importance rankings and task-progress rankings.

Offline, stage two — turning comparisons into frame-level labels. An importance labeler (ResNet18 plus an MLP with a sigmoid output) is trained on these comparisons using a ranking loss for strict preferences and a margin loss for ties, then applied to every frame of every demonstration via a moving average. A separate progress labeler (ResNet18 features fed to a BiLSTM) predicts positive progress increments that are normalized into a monotone 0-to-1 progress curve per demonstration; its training filters the VLM comparisons to the informative ones and adds a penalty against progress concentrating in a few frames. Neither labeler runs at deployment.

Offline, stage three — building relationship representations. Task-relevant objects are segmented once with GroundedSAM2 and tracked through each demonstration with SAM3. Each object pair's point cloud is encoded into a low-dimensional vector by a DGCNN, trained with an importance-weighted contrastive loss: an anchor is pulled toward a positive sample (same relationship, same task progress, different demonstration) and pushed away from three deliberately hard negatives (different relationship at the same progress, same relationship at different progress within the same demonstration, and same relationship at different progress in a different demonstration).

Offline, stage four — training detectors and the policy. For each relationship, an RND OOD detector is trained only on successful demonstrations, conditioned on the current task progress through FiLM, with a detection threshold calibrated by conformal prediction. In parallel, the manipulation policy ManiFlow is trained on the demonstrations with two extra learnable output tokens — one for relationship importance, one for task progress — supervised by the labelers' outputs via mean-squared error.

At runtime. The policy predicts actions, relationship importances, and task progress from the point cloud and proprioceptive state. Objects are tracked with Cutie, initialized by GroundedSAM2. Each relationship's point cloud is encoded, scored by its progress-conditioned OOD detector, and the score only counts as a failure signal if that relationship's predicted importance exceeds a threshold of 0.5. An execution is labeled failed if any relationship triggers at any timestep. No VLM inference, no failure data, and no policy-internal features are needed.

Experimental setup. Three tasks — PickPlace, Uprighting, and Pouring — on a UR10e arm with a Robotiq 2F-85 gripper, teleoperated via a Meta Quest 3 headset, with an external Azure Kinect camera and data recorded at 10 Hz. Twelve demonstrations per task are used for training and calibration only. OOD conditions are induced by varying object placement and adding task-unrelated background objects, producing 178 autonomous executions: 42 failed and 18 successful for Uprighting, 48 failed and 12 successful for Pouring, and 45 failed and 13 successful for PickPlace. Baselines are ACE, FIPER, lopO, logpZO, PCA-kmeans, and RND, each with mean- and max-pooled observation latents and conformal prediction thresholds.

Why This Matters

For research, RAFAIL reframes failure detection as a question about which relationships changed, not how far the observation drifted from the training distribution. That reframing addresses the known weakness of OOD-based detection — reacting to harmless variation while missing real errors — without paying the runtime cost of a VLM. It also shows that a VLM's semantic judgment can be distilled into a cheap, always-on predictor, and that failure detection need not depend on a policy exposing a convenient global latent, which matters as high-capacity policies like ManiFlow deliberately avoid such bottlenecks.

Real-world applications:

  • Industrial pick-and-place and kitting: catching a missed grasp or a part dropped outside its bin before the line continues.
  • Logistics and bin picking: detecting when an item is placed in the wrong container amid cluttered, varying scenes.
  • Domestic and service robots: recognizing a failed cup uprighting or a spill during pouring so a recovery behavior can take over.
  • Human-robot shared workspaces: halting execution before a failure causes damage to objects, the robot, or nearby people.

For industry, the practical draw is the combination of no failure data collection (only successful demonstrations are needed), no VLM at runtime, and compatibility with any policy architecture that consumes point clouds. The paper also reports which interaction triggered the alarm, which is useful for logging, diagnostics, and targeted recovery rather than a single opaque stop signal.

Future Directions

  • Detecting subtle failures: small pose deviations can still fall inside the distribution of successful relationship states and go undetected, motivating finer-grained relational representations.
  • Beyond pairwise, segmentable entities: the method assumes task-critical failure modes appear as relations between objects it can segment and track, so failures involving unmodeled entities, global scene properties, or non-geometric contact forces remain out of scope.
  • Robustness to segmentation and tracking breakdown: the paper lists this as another source of undetected failure, suggesting a need for monitoring the perception front end itself.
  • Tuning the importance gate per task: the ablations show the gate is decisive for the TPR/FPR trade-off and that its best setting appears task dependent, raising the question of how to set or adapt it automatically.

Target Audience

Robotics researchers and engineers working on failure detection, runtime monitoring, and safe deployment of learned manipulation policies; practitioners building imitation-learning systems who need a cheap, always-on fault signal without collecting failure data; and readers interested in distilling VLM semantics into lightweight runtime predictors. Familiarity with OOD detection and contrastive learning helps, but the methodology section is readable without it.

Authors’ abstract

Detecting failures during execution is essential for reliable robotic manipulation. Vision-language models (VLMs) can assess task outcomes semantically but add runtime computation, whereas out-of-distribution (OOD) detectors may respond to harmless scene variations rather than failure-relevant deviations. We introduce RAFAIL, a framework for detecting execution failures during robotic manipulation. RAFAIL identifies failures by detecting anomalies in task-relevant…

The full abstract on arXiv
Read the original paper

Related papers