Abstract
Validating safety-critical autonomous systems—such as self-driving cars and lunar landers—is a significant challenge due to the rarity of failure events. Traditional validation methods often rely on brute-force Monte Carlo sampling or black-box falsification, which are either computationally inefficient or prone to "mode-seeking" behavior that misses diverse failure types. This paper proposes a novel framework that re-imagines safety validation as a Bayesian inference problem. By utilizing differentiable simulators and Hamiltonian Monte Carlo (HMC), the authors efficiently map the distribution of failure modes. Experimental results demonstrate that this approach significantly outperforms traditional methods in failure discovery rate, computational efficiency, and the diversity of identified failure scenarios.
Introduction
As autonomous systems become more complex and are deployed in safety-critical environments, the need for robust validation becomes paramount. However, failures in these systems are typically "rare events." In a system that is 99.9% safe, standard Monte Carlo simulations waste the vast majority of computational resources on safe trajectories that provide no insight into risk.
Existing "falsification" methods attempt to find specific breaking points, but they often suffer from two major drawbacks: they get stuck in local optima (finding only one type of failure) and they struggle to scale as the dimensionality of the environmental disturbance space increases. This paper addresses these limitations by treating the simulator not as a black box, but as a probabilistic program that can be navigated using gradient-based inference.
Methodology
The core innovation of this work is the model-based Bayesian inference framework. The authors shift the objective from finding a single failure to estimating the conditional distribution of trajectories given that a failure has occurred: $p(\mathbf{s} | \mathbf{s} \notin \psi)$.
Automatic Differentiation (AD)
To navigate the high-dimensional space of environmental disturbances, the authors build their simulators in frameworks compatible with Automatic Differentiation (specifically Julia’s Zygote). This allows the system to calculate exactly how infinitesimal changes in disturbances—such as sensor noise or external forces—impact the final safety outcome.
Smoothing the Failure Boundary
A technical challenge in this approach is that failure is typically a binary state (e.g., a crash vs. no crash), which creates a non-differentiable "cliff" in the mathematical landscape. To provide a useful gradient signal, the authors approximate the failure boundary with a Gaussian distribution. This "smoothing" effectively pulls the sampler toward the failure boundary even when starting from safe regions.
Hamiltonian Monte Carlo (HMC)
With a differentiable landscape established, the authors employ Hamiltonian Monte Carlo (specifically the No-U-Turn Sampler). Unlike standard random-walk methods, HMC uses gradient information to take long, purposeful steps toward high-probability failure regions, allowing for efficient exploration of complex, high-dimensional spaces.
Experimental Setup
The framework was evaluated across three distinct simulated environments:
- Inverted Pendulum: A classic control task using a neural network policy to test the method's ability to handle machine-learning-based controllers.
- Autonomous Vehicle (AV) Pedestrian Scenario: A multi-agent simulation based on the Intelligent Driver Model (IDM), testing the discovery of failures in social interactions.
- Partially Observable Lunar Lander: A complex scenario involving an Extended Kalman Filter (EKF) and noisy sensors, designed to test performance in non-Markovian systems where the agent relies on internal beliefs.
Key Results and Insights
Superior Failure Discovery
The HMC-based approach consistently outperformed Particle Gibbs (PG) and standard Monte Carlo (MC) baselines. In the Inverted Pendulum task, HMC achieved a failure rate of 0.98, whereas PG and MC only reached 0.0002 and 0.003, respectively.
Computational Efficiency
HMC found failures 5–10 times faster in wall-clock time than the baselines. While calculating gradients adds a computational cost per sample, the "quality" and informativeness of each sample are significantly higher, leading to faster overall convergence on failure modes.
Diversity of Failure Modes
By running multiple HMC chains, the authors captured "multimodality" in the failure space. In the AV scenario, the method successfully identified distinct failure modes, such as those caused by sensor noise versus those caused by aggressive pedestrian behavior. This is reflected in the mean dispersion metric ($C_{disp}$), where HMC showed a much broader coverage of the disturbance space than black-box alternatives.
Conclusion and Future Work
This research demonstrates that safety validation is fundamentally an inference problem. By leveraging the "superpower" of gradients through differentiable simulators, researchers can move beyond ad-hoc stress testing and utilize the robust tools of Bayesian statistics.
The primary limitation of this approach is the requirement for a differentiable simulator. Future work will explore the use of surrogate models (neural networks that approximate non-differentiable simulators) and variational inference to further accelerate the discovery of complex failure distributions in legacy or non-differentiable systems.
Summary updated