A Survey of Algorithms for Black-Box Safety Validation of Cyber-Physical Systems

Anthony Corso, Robert J. Moss, Mark Koren, Ritchie Lee, Mykel J. Kochenderfer

TL;DR

This paper surveys state-of-the-art algorithms for validating the safety of cyber-physical systems (CPS) when their internal workings are unknown (black-box). It categorizes techniques for finding failures, estimating failure likelihood, and ensuring sufficient testing, crucial for deploying complex autonomous systems like self-driving cars and aircraft.

What Problem Does This Paper Address?

Autonomous cyber-physical systems (CPS) promise significant advancements in safety and efficiency, but their complexity makes traditional verification and real-world testing challenging. Failures in safety-critical CPS can have severe consequences. This paper addresses the critical need for robust safety validation techniques that treat these systems as "black boxes," meaning their internal code or design is not accessible. The challenge lies in finding disturbances that cause these systems to fail, estimating the probability of such failures, and determining when enough testing has been done to declare the system safe, especially when failures are rare.

Methods

The paper surveys algorithms categorized by the information they use and the validation tasks they address:

  • Optimization-based methods: These algorithms search the space of disturbance trajectories to find those that cause the system to fail. Techniques include simulated annealing, evolutionary algorithms, and Bayesian optimization.
  • Path Planning: These methods use the environment's state to guide the search for failures, often employing algorithms like Rapidly-exploring Random Trees (RRT).
  • Reinforcement Learning (RL): RL algorithms model the problem as a Markov Decision Process and learn a policy to generate disturbances that lead to failures. This includes deep RL approaches like DQN and policy gradient methods.
  • Importance Sampling: Used for estimating failure probabilities, especially when failures are rare. These methods artificially increase the likelihood of failures to get unbiased estimates with fewer samples.
  • Problem Decomposition: Techniques to break down large, complex state and disturbance spaces into smaller, more manageable subproblems to improve scalability.
  • Coverage Metrics: Methods to determine when sufficient testing has been performed, including probabilistic coverage, disturbance-space coverage, and state-space coverage.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Black-box validation is essential: For complex systems, especially those incorporating machine learning, understanding internal workings is often infeasible. Black-box approaches are thus crucial for practical safety validation.
  • Three core validation tasks: The paper clearly defines falsification (finding any failure), most-likely failure analysis (finding the most probable failure), and failure probability estimation (quantifying the overall risk).
  • Scalability is the main hurdle: Large state and disturbance spaces are a pervasive challenge. Techniques like problem decomposition and efficient sampling (e.g., importance sampling) are vital.
  • Trade-offs between methods: Optimization is flexible but can be slow; path planning leverages state information but can struggle with stochasticity; RL handles stochasticity well but can be sample-inefficient.
  • Coverage metrics are key for "when to stop": With infinite possible test cases, coverage metrics provide a principled way to determine if sufficient testing has been done to declare a system safe.

Key Results

The paper is a survey, not an empirical study, so it doesn't present new quantitative results. However, it highlights the successful application of these algorithms in various domains:

  • Autonomous Vehicles: Used for lane-following, intersection scenarios, and platooning, often employing miss distance as a heuristic for optimization.
  • Aircraft: Applied to flight control software and collision avoidance systems, including the ACAS X system.
  • General Systems: Demonstrated on hybrid systems, neural network controllers, and planning modules.

The survey also reviews numerous academic and commercial tools that implement these algorithms, providing a landscape of available resources.

Limitations and Future Work

  • Scalability: While decomposition and advanced sampling techniques are discussed, scaling to extremely high-dimensional or complex systems remains an ongoing challenge.
  • Simulator Requirements: Many black-box methods still rely on simulators that can be stepped forward or reset, which can be a limitation for complex, real-world systems.
  • Domain-Specific Knowledge: While aiming for black-box approaches, some techniques benefit from or require domain-specific heuristics or knowledge to be most effective.
  • Future Work: The authors suggest continued development in problem decomposition, combining different algorithmic approaches (e.g., RL with optimization), and improving coverage metrics. The ongoing development of tools and competitions like ARCH-COMP is also highlighted as a driver for progress.

Summary updated

BibTeX
@article{corso2021survey,
  author = {Anthony Corso and Robert J. Moss and Mark Koren and Ritchie Lee and Mykel J. Kochenderfer},
  title = {{A Survey of Algorithms for Black-Box Safety Validation of Cyber-Physical Systems}},
  journal = {J. Artif. Intell. Res.},
  year = {2021},
  doi = {10.1613/jair.1.12716},
}
Figure