RADIUM: Predicting and Repairing End-to-End Robot Failures using Gradient-Accelerated Sampling

Charles Dawson, Anjali Parashar, Chuchu Fan

TL;DR

RADIUM is a simulation-based framework that reframes robot failure prediction and policy repair as a joint, sequential Bayesian inference problem. By leveraging differentiable simulation and rendering, RADIUM efficiently samples a diverse set of rare failure modes and continuously updates the robot's control policy to mitigate them, achieving up to a 5x robustness improvement in real-world vision-in-the-loop hardware deployments.

What Problem Does This Paper Address?

Before deploying autonomous systems like self-driving cars or drone swarms into safety-critical environments, we must verify their safety. Real-world testing is often too dangerous or expensive, making simulation-based adversarial testing (searching for "counterexamples" where a robot fails) the standard alternative.

However, existing adversarial testing methods suffer from three major flaws:

  1. Loss of Diversity: Standard optimization techniques greedily search for the worst failure mode. This causes the system to overfit to a single type of failure during retraining, leaving it vulnerable to other edge cases.
  2. The Curse of Dimensionality: Rare-event sampling methods struggle to scale when searching through high-dimensional environmental parameters.
  3. Vision-in-the-Loop Blindspots: Modern robots rely heavily on visual perception, but backpropagating gradients through a standard rendering pipeline to find vision-based failures has historically been impossible due to non-differentiable rendering steps.

RADIUM addresses these gaps by co-evolving failure prediction and policy repair within a unified probabilistic framework.

Methods

RADIUM (Robustness via Adversarial Diversity using MCMC) treats adversarial testing not as a optimization game, but as a sequential inference problem.

Fig. 1: An overview of our approach for closed-loop rare-event prediction, which efficiently predicts and repairs failures in autonomous systems. Our framework alternates between failure prediction and repair sub-solvers, which use a simulated environment to efficiently sample from the distributions (4) and (5). We use differentiable rendering and simulation to accelerate our method with end-to-end gradients, but we also propose a gradient-free implementation.

The framework operates by alternating between two core sub-solvers:

  • Failure Prediction: Samples environmental parameters ($\phi$) from a pseudo-posterior distribution conditioned on a failure occurring.
  • Failure Repair: Samples policy parameters ($\theta$) from a pseudo-posterior conditioned on the failure not occurring, regularized to stay close to the original policy design.

To make this process efficient and robust, the authors introduce two key algorithmic mechanisms:

  • Tempering: Sampling from highly multi-modal failure distributions is notoriously difficult. RADIUM utilizes a tempering schedule ($\tau$) that smoothly interpolates from an easy-to-sample prior distribution to the complex, multi-modal target posterior, ensuring broad exploration of the failure space.
  • Gradient Acceleration via Differentiable Pipelines: When available, RADIUM utilizes the Metropolis-adjusted Langevin algorithm (MALA) driven by end-to-end gradients. It backpropagates through the cost function, the system dynamics, and a custom differentiable rendering engine (using signed distance functions and raytracing). For non-differentiable simulators, it seamlessly falls back to a gradient-free Random-walk Metropolis-Hastings (RMH) sampler.

Datasets

The authors evaluated RADIUM across 12 distinct simulated environments spanning 7 benchmark domains, categorized into two types:

  • Non-Vision Benchmarks: Multi-robot Search (seeker vs. hider trajectories), Drone Formation Control (maintaining swarm connectivity under complex wind fields), and Power Grid Dispatch (scheduling generators safely during transmission line outages).
  • Vision-in-the-Loop Benchmarks: Autonomous Vehicle (AV) Highway Overtaking, AV Intersection Navigation, Drone Obstacle Avoidance, and Robotic Grasping (box/mug manipulation using depth images).

Initial policies were pretrained using standard Reinforcement Learning (PPO) or Behavior Cloning.

Key Insights and Ideas

  • Sampling Over Maximizing: By sampling from a failure distribution rather than optimizing for a single global maximum, RADIUM maintains a diverse portfolio of failure cases. This prevents the policy from playing "whack-a-mole" with individual bugs.
  • Interleaved Co-Evolution: Repairing a policy inherently causes a distribution shift—old failures become stale, and new vulnerabilities emerge. By interleaving prediction and repair, the failure sampler continuously adapts to attack the updated policy.
  • The Metropolis Safeguard: In vision-in-the-loop tasks, gradients derived from differentiable renderers can be noisy or poorly conditioned due to visual occlusions. The authors discovered that MALA's accept/reject step acts as an excellent filter, discarding erratic gradient steps while retaining sample efficiency.

Key Results

  • Convergence & Cost: In non-vision tasks, the gradient-based variant of RADIUM ($R_1$) achieved up to 10x lower cost and required up to 2x fewer iterations to converge compared to gradient-free alternatives.
  • Baseline Comparisons: RADIUM consistently outperformed competitive baselines like Learning to Collide (L2C) and standard Gradient Descent with Adversarial Counterexamples ($GD_a$) by discovering more diverse failures and generating safer policies.
  • Sim2Real Success: The authors deployed a vision-in-the-loop neural network policy repaired by RADIUM onto a physical 1/10th-scale autonomous vehicle. The nominal policy failed in 25% of real-world trials, whereas the RADIUM-repaired policy dropped the real-world failure rate to just 5%—a 5x robustness improvement.

Limitations and Future Work

The primary bottleneck of RADIUM is its dependency on simulation fidelity. The gradient-based version requires an entirely differentiable simulator and renderer, which are computationally intensive to build and maintain. Furthermore, RADIUM cannot protect against unmodeled realities, such as loose physical cables or hardware network packet drops.

Moving forward, the authors plan to integrate RADIUM with emerging photorealistic differentiable renderers (like Mitsuba) and explore hybrid frameworks that blend accelerated simulation testing with sparse, high-fidelity physical hardware experiments.

Summary updated

Abstract

Before autonomous systems can be deployed in safety-critical applications, we must be able to understand and verify the safety of these systems. For cases where the risk or cost of real-world testing is prohibitive, we propose a simulation-based framework for a) predicting ways in which an autonomous system is likely to fail and b) automatically adjusting the system's design and control policy to preemptively mitigate those failures. Existing tools for failure prediction struggle to search over high-dimensional environmental parameters, cannot efficiently handle end-to-end testing for systems with vision in the loop, and provide little guidance on how to mitigate failures once they are discovered. We approach this problem through the lens of approximate Bayesian inference and use differentiable simulation and rendering for efficient failure case prediction and repair. For cases where a differentiable simulator is not available, we provide a gradient-free version of our algorithm, and we include a theoretical and empirical evaluation of the trade-offs between gradient-based and gradient-free methods. We apply our approach on a range of robotics and control problems, including optimizing search patterns for robot swarms, UAV formation control, and robust network control. Compared to optimization-based falsification methods, our method predicts a more diverse, representative set of failure modes, and we find that our use of differentiable simulation yields solutions that have up to 10x lower cost and requires up to 2x fewer iterations to converge relative to gradient-free techniques. In hardware experiments, we find that repairing control policies using our method leads to a 5x robustness improvement. Accompanying code and video can be found at https://mit-realm.github.io/radium/
BibTeX
@article{dawson2025radium,
  author = {Charles Dawson and Anjali Parashar and Chuchu Fan},
  title = {{RADIUM: Predicting and Repairing End-to-End Robot Failures using Gradient-Accelerated Sampling}},
  journal = {IEEE Trans. Robotics},
  year = {2025},
  doi = {10.1109/tro.2025.3551198},
}
Figure