Failure Probability Estimation for Black-Box Autonomous Systems using State-Dependent Importance Sampling Proposals

Harrison Delecki, Sydney M. Katz, Mykel J. Kochenderfer

TL;DR

This paper introduces SPAIS, a novel adaptive importance sampling method for estimating failure probabilities in complex, black-box autonomous systems. SPAIS addresses the impracticality of traditional Monte Carlo methods for rare events by learning state-dependent proposal distributions, significantly improving accuracy and reducing variance compared to existing techniques.

What Problem Does This Paper Address?

Developing safe autonomous systems, especially those operating in safety-critical domains like aviation or autonomous driving, requires rigorous validation. A key aspect of this validation is estimating the probability of system failure. However, failures in well-designed safe systems are rare, making direct estimation using methods like Monte Carlo sampling computationally infeasible due to the immense number of simulations required. Furthermore, sequential decision-making systems operate in high-dimensional state spaces over long time horizons, and can exhibit complex, multimodal failure behaviors, all of which exacerbate the estimation challenge. Existing importance sampling methods often struggle to scale to these complex, sequential scenarios.

Methods

The core contribution of this paper is the State-dependent Proposal Adaptive Importance Sampling (SPAIS) algorithm. SPAIS tackles the problem by:

  • Sequential State-Based Importance Sampling Proposal: Instead of learning a single proposal for the entire trajectory, SPAIS learns a proposal distribution for the disturbances at each timestep, conditioned on the current system state. This breaks down the complex, high-dimensional problem into a series of more manageable, state-dependent subproblems.
  • Proposal Optimization via KL Divergence Minimization: The algorithm optimizes the learned proposal distribution by minimizing the forward Kullback-Leibler (KL) divergence between the proposal and an approximation of the optimal importance sampling distribution (which is proportional to the failure distribution).
  • Markov Score Ascent: To estimate the KL divergence objective, SPAIS employs Markov score ascent methods. This technique uses samples from an MCMC kernel (specifically, Independent Metropolis-Hastings) that is ergodic with respect to the target distribution. This allows for lower-variance estimates of the objective, crucial for effective optimization.
  • Approximating the Failure Distribution: To handle the discontinuous nature of the true failure distribution and avoid issues with low acceptance rates in MCMC, SPAIS uses a smooth approximation of the indicator function, enabling more stable sampling and optimization.
  • Adaptive Updates: The algorithm iteratively updates the proposal distribution based on samples generated by the current proposal and the MCMC kernel, adapting it to better focus on failure regions.

Datasets

The paper does not explicitly mention training datasets. Instead, it evaluates its method on four distinct simulated environments designed to represent safety-critical scenarios:

  • Inverted Pendulum: An underactuated pendulum with additive torque disturbances.
  • Crosswalk: An autonomous vehicle (AV) interacting with a pedestrian.
  • Aircraft Collision Avoidance: A system based on the AVOIDDS dataset and simulator.
  • F-16 Ground Collision Avoidance: A model of the GCAS system for an F-16 aircraft.

These environments are used for evaluation, and their properties (failure probability, state size, disturbance size, horizon) are detailed in Table 1.

Key Insights and Ideas

  • State-dependency is Crucial: The paper highlights that for sequential systems, a proposal distribution that adapts to the current state is far more effective than a static or state-independent one. This allows the sampler to intelligently explore failure-inducing disturbances based on where the system is.
  • Smooth Approximations Enable Optimization: The use of a smoothed approximation for the failure distribution is a key enabler for applying score-based optimization methods. Without it, the discontinuous nature of the true failure probability would make gradient-based optimization unstable.
  • MCMC for Gradient Estimation is Powerful: Leveraging Markov score ascent with an MCMC kernel provides a robust way to estimate gradients for optimizing the proposal, even when direct sampling from the target distribution is difficult. This is a significant departure from simpler importance sampling optimization techniques.
  • Failure Modes Matter: The results (particularly for the Inverted Pendulum) suggest that methods failing to capture multiple failure modes (like the CEM baseline) will exhibit higher bias. SPAIS's ability to explore diverse failure scenarios is a major advantage.

Key Results

SPAIS consistently outperforms baseline methods (Monte Carlo, CEM, and PG-AIS) across all four validation problems in terms of both relative and absolute error.

  • Reduced Bias and Variance: SPAIS achieves under 10% empirical bias and at least 2 times lower empirical variance compared to baselines.
  • Improved Accuracy: Table 2 shows SPAIS achieving significantly lower errors (e.g., for the Pendulum problem, SPAIS has an absolute error of 0.06 ± 0.03, compared to MC's 0.81 ± 0.65).
  • Qualitative Improvements: Figure 4 demonstrates that SPAIS samples trajectories that are more representative of actual failure modes, whereas baselines like CEM can exhibit "mode collapse" (focusing on only one failure type) or be too spread out, leading to high variance. For instance, in the Inverted Pendulum, SPAIS samples both leftward and rightward falls, while CEM only samples negative disturbances.

Limitations and Future Work

  • Computational Cost: While SPAIS is more efficient than pure Monte Carlo for rare events, the adaptive optimization process still involves MCMC sampling and gradient descent, which can be computationally intensive.
  • Proposal Flexibility: The paper notes that while their state-dependent Gaussian proposal is effective, future work could investigate even more flexible parameterized proposals to further improve estimation accuracy.
  • Generalization: The authors suggest exploring more flexible state-based proposals to enhance estimation. Future work could also investigate applying SPAIS to even more complex systems with different types of failure modes or dynamics.

Summary updated

BibTeX
@misc{delecki2024failure,
  author = {Harrison Delecki and Sydney M. Katz and Mykel J. Kochenderfer},
  title = {{Failure Probability Estimation for Black-Box Autonomous Systems using State-Dependent Importance Sampling Proposals}},
  year = {2024},
  eprint = {2412.02154},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02154},
}
Figure