Generating probabilistic safety guarantees for neural network controllers

Sydney M. Katz, Kyle D. Julian, Christopher A. Strong, Mykel J. KochenderferMachine Learning 2021

TL;DR

This paper introduces a novel method for generating probabilistic safety guarantees for neural network controllers, crucial for their deployment in safety-critical applications. By combining neural network verification with probabilistic model checking and employing adaptive strategies to reduce approximation errors, the authors provide a robust framework for assessing the safety of complex control systems.

What Problem Does This Paper Address?

Neural networks are increasingly used as controllers in complex systems due to their ability to learn expressive policies. However, their inherent complexity makes it difficult to verify their behavior, especially in safety-critical domains like aircraft collision avoidance. While simulations can offer insights, they don't guarantee safety across all possible scenarios. Existing formal methods for neural network verification often focus on input-output properties without considering the closed-loop dynamics of the system. This paper addresses the challenge of providing probabilistic safety guarantees for neural network controllers operating within a dynamic environment, accounting for stochasticity in the system's behavior.

Methods

The authors propose a method that frames the closed-loop verification problem as a Markov Decision Process (MDP). The core steps involve:

  • Policy Overapproximation: Using neural network verification tools to obtain an overapproximated neural network policy. This means identifying all possible actions a neural network could take within a given region (cell) of the input space, rather than a single action.
  • Adaptive Verification: An "adaptive verification" strategy is introduced to efficiently partition the input space. This strategy intelligently refines the partition, focusing on regions where the neural network's policy is uncertain (i.e., multiple actions are possible), thereby minimizing overapproximation error. This is achieved through an "informed split" strategy that leverages corner evaluations to guide the partitioning.
  • Probabilistic Model Checking: The overapproximated policy is then used within an MDP model checking framework. This framework is modified to account for the overapproximated policy and the stochastic dynamics of the environment.
  • Error Reduction Techniques: Two key error reduction techniques are employed:
  • Offline Reduction (Adaptive Verification): As described above, this minimizes policy overapproximation error by creating smaller cells near decision boundaries.
  • Online Reduction (State Abstraction): This technique addresses worst-case transition error by adaptively splitting cells during the model checking process based on the range of possible next-state probabilities. This ensures that critical regions of the state space are analyzed with higher resolution.

Datasets

Not discussed in the paper. The authors use a simulated "continuum world problem" for illustrative purposes and a "VerticalCAS repository" for the collision avoidance application, which is based on ACAS X.

Key Insights and Ideas

  • Bridging Verification and Control: The paper effectively bridges the gap between static neural network verification and dynamic system analysis by integrating them within an MDP framework.
  • Probabilistic Guarantees are Crucial: For safety-critical systems with inherent stochasticity, deterministic guarantees might be too conservative or impossible to achieve. Probabilistic guarantees offer a more practical and informative safety assessment.
  • Adaptive Partitioning is Key: Uniformly partitioning the state space is computationally prohibitive for high-dimensional inputs. Adaptive strategies that focus refinement on critical regions (like policy decision boundaries) are essential for efficiency and accuracy.
  • Two Sources of Error: Recognizing and addressing both policy overapproximation and worst-case transition error is vital for obtaining meaningful probabilistic guarantees.

Key Results

  • The proposed method successfully generates probabilistic safety guarantees for neural network controllers.
  • The adaptive verification strategy significantly reduces the number of cells required for analysis compared to uniform partitioning, leading to faster computation times. For instance, the informed split strategy resulted in significantly fewer cells and faster runtimes than uniform partitioning.
  • The error reduction techniques (both offline and online) demonstrably reduce overapproximation error, leading to more accurate probability estimates. For example, in the collision avoidance scenario, the maximum probability of NMAC at T=40 seconds was reduced from 0.0305 to 0.0268 by applying both worst-case transition and policy overapproximation splitting heuristics.
  • The method was applied to a collision avoidance neural network inspired by ACAS X, demonstrating its applicability to real-world safety-critical problems. The results showed that the model checking probabilities were greater than or equal to Monte Carlo simulations and lookup table probabilities, representing a tight and guaranteed overapproximation.

Limitations and Future Work

  • Complexity: The worst-case complexity of the algorithm is exponential in the input dimension of the neural network. While adaptive strategies mitigate this in practice by exploiting system structure, it remains a challenge for controllers with very high-dimensional inputs (e.g., images).
  • Neural Network Verification Tool Limitations: The effectiveness of the algorithm is also limited by the capabilities of current neural network verification tools, which tend to perform best on smaller networks with simple architectures (like ReLU activations).
  • Model Conservatism: The probabilistic dynamics model used represents a conservative aircraft response. Future work could explore other response models to understand their impact on the probabilities.
  • Generalization: The framework is generalizable to other LTL specifications beyond just the probability of NMAC, and future work could explore guarantees for other aspects of the collision avoidance problem or for different safety-critical applications like autonomous driving.
  • Computational Resources: The full-scale analysis required significant computational resources (9 cores, 10 days). More resources could potentially lead to tighter bounds.

Summary updated

BibTeX
@article{katz2021generating,
  author = {Sydney M. Katz and Kyle D. Julian and Christopher A. Strong and Mykel J. Kochenderfer},
  title = {{Generating probabilistic safety guarantees for neural network controllers}},
  journal = {Machine Learning},
  year = {2021},
  doi = {10.1007/s10994-021-06065-9},
}
Figure