RAPT: Model-Predictive Out-of-Distribution Detection and Failure Diagnosis for Sim-to-Real Humanoid Deployment

Humphrey Munn1,2  ·  Brendan Tidd2  ·  Peter Böhm1,2  ·  Marcus Gallagher1  ·  David Howard2

1The University of Queensland    2CSIRO Robotics, Data61

arXiv preprint 2602.01515 · February 2026

Paper PDF Code Video Dataset BibTeX

Abstract

Deploying learned control policies is risky because policies that appear robust in simulation can confidently enter out-of-distribution (OOD) states after Sim-to-Real transfer, causing silent failures and potential hardware damage. Existing anomaly detectors often fail to meet the combined requirements of high-rate control, extremely low false-positive rates, and interpretable failure feedback.

We present RAPT (Recurrent Anomaly Probabilistic Trajectory Model), a lightweight, self-supervised 50 Hz deployment monitor that learns nominal execution from large-scale simulation and produces calibrated, per-dimension predictive-deviation signals online. RAPT enables OOD detection under strict false-positive constraints while localizing when and where real execution departs from nominal behavior. For post-hoc diagnosis, RAPT combines temporal saliency, joint-kinematic summaries, and LLM-based semantic reasoning to classify likely failure causes in a zero-shot setting.

In simulation across four Isaac Lab tasks, RAPT improves TPR by 37% over the strongest baseline at 0.5% episode-level FPR; on hardware, it achieves 89% TPR across 78 trials with fewer false positives than high-frequency-compatible baselines, and reaches 75% semantic failure diagnosis accuracy across 21 categories on a challenging OOD subset.

Method

A residual state encoder, recurrent latent bridge, and probabilistic decoder model nominal trajectories with a heteroscedastic Gaussian likelihood. At deployment, the per-dimension negative log-likelihood feeds three calibrated statistical gates — a per-dimension spike gate, a global drift gate, and a physical range gate — evaluated in ~1.6 ms per control step. Thresholds are calibrated on a nominal batch from simulation, or from a brief verified real-world run to absorb static deployment offsets. When a detection fires, integrated gradients through time localize which observation dimensions drove the anomaly and when, and a multimodal LLM classifies the physical root cause from a fixed 21-class failure taxonomy.

RAPT architecture, hierarchical OOD detection pipeline, and diagnosis pipeline
(A) RAPT OOD-detection architecture. (B) Hierarchical OOD pipeline using three statistical gates for real-time (~1.6 ms) monitoring. (C) Detected anomalies trigger gradient-based saliency generation for zero-shot diagnosis via a multimodal LLM.

Results

0.92AUROC in simulation (4 tasks, 5 seeds)
+37%TPR over strongest baseline @ 0.5% FPR
56 / 63real-world anomalous trials detected (88.9% TPR)
1 FPin over an hour of nominal operation (15 trials)
1.6 msper 50 Hz control step
100%top-3 root-cause accuracy with visual keyframe

Real-world highlights

Nominal operation (5×). Continuous omni-directional walking with no false positives — one flag in over an hour of nominal trials overall.
Collision. The robot collides with an obstruction; RAPT detects the off-nominal contact and triggers a controlled safe fall.
Deformable ground. Stepping onto an unmodelled soft mattress is flagged from proprioception alone.
Safety response. On detection, RAPT can trigger a predefined behavior — here, walking back away from the anomaly.
Real-world OOD scenarios: policy latency, strong push, collision, deformable ground — each detected and met with a safety response
RAPT detects diverse real-world out-of-distribution events on a Unitree G1 — policy latency, strong pushes, collisions, deformable ground — and triggers predefined safety responses (safe stop, safe fall, walk-away recovery) before hardware damage occurs.

Dataset

The G1 simulation OOD benchmark used for evaluation is available on HuggingFace: hmunn/rapt-g1-ood — nominal training episodes, dedicated calibration splits, and labeled test sequences spanning all 14 OOD categories for velocity tracking and both motion-mimicry tasks (~1.6 GB, float16). Loading snippets, the data format, and single-command benchmarking live in the code release.

Citation

If you find RAPT useful, please cite:

@article{munn2026rapt,
  title   = {RAPT: Model-Predictive Out-of-Distribution Detection and Failure
             Diagnosis for Sim-to-Real Humanoid Deployment},
  author  = {Munn, Humphrey and Tidd, Brendan and B{\"o}hm, Peter and
             Gallagher, Marcus and Howard, David},
  journal = {arXiv preprint arXiv:2602.01515},
  year    = {2026}
}

License

The paper is distributed under the arXiv.org perpetual non-exclusive license (arXiv:2602.01515v1). The code release is available under the BSD 3-Clause License.