When Black-Box Robot Policies Fail: Online Sensor Diagnosis and Repair with a Transparent Surrogate

Marc Ziegler, Batu Özen, Sami Mentes, Thomas Waschulzik, Alois KnollarXiv 2026

TL;DR

This paper introduces an external monitoring system that can diagnose and repair sensor faults for "black-box" robot foundation models without needing access to their internal weights. By using a structured, transparent surrogate model to separate periodic gait from sensor-driven corrections, the authors demonstrate a significant increase in walking success for quadruped robots facing simulated sensor failures.

What Problem Does This Paper Address?

As we move toward universal robot foundation models, we encounter a safety challenge: these models are often massive, frozen "black boxes." While they generalize well across tasks, they remain entirely dependent on physical sensors that can—and do—fail. A simple gyroscope bias or a stuck joint encoder can lead to a catastrophic fall.

Traditional fault diagnosis usually requires a detailed mathematical model of the robot (a "plant model") or access to the policy's internal gradients to see which inputs are driving specific actions. When using a proprietary or complex third-party controller, neither is available. The authors ask: Can we monitor, diagnose, and fix corrupted sensor inputs from the outside?

Methods

The researchers propose a two-step "Diagnosis and Repair" framework that wraps around a frozen locomotion policy.

  1. The Structured Action Surrogate: Instead of using another deep network, they fit a transparent surrogate model to the black-box policy's behavior. This surrogate decomposes actions into two parts: a periodic gait (modeled with Fourier harmonics) and sensor-dependent corrections.
  2. $u_t = u_F(\phi_t, v) + r_t$
    • Here, $u_F$ is the base gait, and $r_t$ is the correction based on 57 different sensor inputs.
  3. Mechanism-Based Diagnosis (MBD): When the robot's behavior deviates from the norm, MBD looks at the surrogate’s additive components to see which sensor is contributing most to the "abnormal" correction. It ranks 34 sensor units (like the IMU, joint encoders, and contact sensors) to find the culprit.
  4. Phase-Referenced Repair (PRR): Once a faulty sensor is identified, the system intercepts its signal. Depending on the sensor type, it either replaces the reading with a "healthy" value matched to the current gait phase or estimates and subtracts the bias in real-time.
The system architecture: A surrogate monitors inputs/outputs to find and fix faulty sensors before the policy sees them.

Datasets

The study primarily uses the URMA locomotion policy, a multi-embodiment controller, tested within the MuJoCo simulator.

  • Embodiments: The system was evaluated on three quadrupeds: Unitree Go2 (primary), Go1, and ANYmal C.
  • Fault Suite: The authors created a "stress test" suite of 37 injected faults, including offsets, stuck readings, drift, signal dropouts, spikes, and contact sensor errors.
  • Training Data: The surrogate was trained on 64,000 policy state-action pairs collected across four different walking speeds.

Key Insights and Ideas

  • Transparency > Complexity: The authors compared their structured surrogate to a powerful Gradient Boosting Machine (GBM). While both predicted the robot's actions with similar accuracy ($R^2 \approx 0.97$), the GBM was useless for repair. The structured model's ability to "trace" an action back to a specific sensor is what makes the repair possible.
  • Gait as a Safety Baseline: By recognizing that locomotion is inherently periodic, the system can define "normal" behavior for every phase of a step. This allows it to spot subtle sensor drifts that might not look "wrong" in isolation but are inappropriate for the current gait phase.
  • External Guardrails: This approach treats the foundation model as a "frozen" asset. It suggests that we don't need to retrain or fine-tune massive models to make them robust; we can instead build "runtime guardrails" that clean the data before the model ever sees it.
Example of MBD identifying a thigh encoder offset (a) and PRR supplying a healthy replacement value (b).

Key Results

The framework showed substantial improvements in robot resilience:

  • Success Rate: On the Go2 robot, walking success under fault conditions rose from 259/640 (no repair) to 429/640 with offline diagnosis and 382/640 with fully online, automated repair.
  • Diagnosis Accuracy: MBD correctly identified the faulty sensor in 27 out of 37 different fault types.
  • False Positives: In 64 "clean" episodes (no faults), the online detector never triggered a false repair, demonstrating high reliability.
  • Generalization: The method successfully improved walking performance on the Go1 and ANYmal C robots, though the specific rankings of diagnostic methods varied by embodiment.
Comparison of robot paths: Without repair, the robot drifts and falls; with PRR, it maintains a straight path.

Limitations and Future Work

  • Sim-to-Real Gap: The evidence is currently limited to simulation. Validating these results on physical hardware—where noise and latency are more unpredictable—is a critical next step.
  • Single Fault Assumption: The current system is designed to identify and fix one faulty sensor unit at a time. Simultaneous multi-sensor failures remain a challenge.
  • Phase Dependency: The system relies heavily on accurate gait phase estimation. If the contact sensors (used to reset the phase) fail in a specific way, the surrogate's baseline might become unreliable.
  • Scope: While successful for locomotion, extending this to non-periodic tasks (like robotic manipulation) or vision-language-action (VLA) models will require new ways to define "normal" baseline behaviors.
Summary table showing performance across different robots and methods.

Summary updated

Abstract

Robot foundation models may generalize across tasks and embodiments, but their actions still depend on sensors that can fail. When the policy is frozen or inaccessible, can an external monitor diagnose and repair corrupted inputs without access to its internals? We test a structured surrogate that separates periodic gait from sensor-dependent corrections to guide input repair around a frozen locomotion policy. On simulated Go2, offline diagnosis raises walking success from 259/640 to 429/640 episodes; online repair reaches 382/640, with no triggers in 64 held-out fault-free episodes. A matched boosted-tree surrogate predicts clean actions similarly well but yields no detected repair improvement over no repair. Separate fits improve walking on Go1 and ANYmal C, although phase-aware gradients perform better. Evidence remains limited to one policy and a partly screened simulated fault suite; robot foundation model and hardware validation remain open.
BibTeX
@misc{ziegler2026when,
  author = {Marc Ziegler and Batu Özen and Sami Mentes and Thomas Waschulzik and Alois Knoll},
  title = {{When Black-Box Robot Policies Fail: Online Sensor Diagnosis and Repair with a Transparent Surrogate}},
  year = {2026},
  eprint = {2610.36852},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36852},
}
Figure