Verification of Neural Reachable Tubes via Scenario Optimization and Conformal Prediction

2312.08604

YC

0

Reddit

0

Published 4/11/2024 by Albert Lin, Somil Bansal
Verification of Neural Reachable Tubes via Scenario Optimization and Conformal Prediction

Abstract

Learning-based approaches for controlling safety-critical systems are rapidly growing in popularity; thus, it is important to assure their performance and safety. Hamilton-Jacobi (HJ) reachability analysis is a popular formal verification tool for providing such guarantees, since it can handle general nonlinear system dynamics, bounded adversarial system disturbances, and state and input constraints. However, its computational and memory complexity scales exponentially with the state dimension, making it intractable for large-scale systems. To overcome this challenge, neural approaches, such as DeepReach, have been used to synthesize reachable tubes and safety controllers for high-dimensional systems. However, verifying these neural reachable tubes remains challenging. In this work, we propose two verification methods, based on robust scenario optimization and conformal prediction, to provide probabilistic safety guarantees for neural reachable tubes. Our methods allow a direct trade-off between resilience to outlier errors in the neural tube, which are inevitable in a learning-based approach, and the strength of the probabilistic safety guarantee. Furthermore, we show that split conformal prediction, a widely used method in the machine learning community for uncertainty quantification, reduces to a scenario-based approach, making the two methods equivalent not only for verification of neural reachable tubes but also more generally. To our knowledge, our proof is the first in the literature to show a strong relationship between conformal prediction and scenario optimization. Finally, we propose an outlier-adjusted verification approach that uses the error distribution in neural reachable tubes to recover greater safe volumes. We demonstrate the efficacy of the proposed approaches for the high-dimensional problems of multi-vehicle collision avoidance and rocket landing with no-go zones.

Create account to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper proposes a novel approach for verifying the safety of neural reachable tubes, which are used to model the behavior of neural network controllers.
  • The approach combines scenario optimization and conformal prediction to provide probabilistic safety guarantees for neural network controllers.
  • The method is demonstrated on a case study involving a neural network controller for a quadrotor UAV, showing its effectiveness in verifying the safety of the controller's behavior.

Plain English Explanation

The paper focuses on the problem of verifying the safety of neural network controllers, which are algorithms that use artificial intelligence to control complex systems like drones or self-driving cars. These neural network controllers can be difficult to analyze and verify, which is a major concern for safety-critical applications.

The researchers propose a new approach that combines two techniques - scenario optimization and conformal prediction - to provide probabilistic safety guarantees for neural network controllers. Scenario optimization is used to generate a set of "worst-case" scenarios that the controller might encounter, while conformal prediction is used to analyze the controller's behavior in these scenarios and quantify the safety risk.

The researchers demonstrate their approach on a case study involving a neural network controller for a quadrotor drone. They show that their method can effectively verify the safety of the controller's behavior, providing important assurances for the safe deployment of such systems in real-world applications.

Technical Explanation

The paper presents a novel approach for verifying the safety of neural network controllers using a combination of scenario optimization and conformal prediction.

The key idea is to first use scenario optimization to generate a set of "worst-case" scenarios that the controller might encounter. This involves solving an optimization problem to find a set of initial conditions and disturbances that are most likely to result in unsafe behavior from the controller.

Once these scenarios have been identified, the researchers then use conformal prediction to analyze the controller's behavior in these scenarios and quantify the safety risk. Conformal prediction is a technique for constructing probabilistic safety guarantees based on the controller's observed behavior in the generated scenarios.

The researchers demonstrate their approach on a case study involving a neural network controller for a quadrotor UAV. They show that their method can effectively verify the safety of the controller's behavior, even in the presence of disturbances and uncertainties. This provides important assurances for the safe deployment of such systems in real-world applications.

The paper also discusses the connection between their approach and other methods in the literature, such as control Lyapunov functions and multi-agent reinforcement learning, suggesting opportunities for further integration and synergies.

Critical Analysis

The paper presents a promising approach for verifying the safety of neural network controllers, but it also acknowledges several limitations and areas for further research.

One key limitation is that the method relies on the ability to accurately model the system dynamics and generate "worst-case" scenarios using scenario optimization. In practice, there may be significant uncertainty and complexity in the system dynamics, which could limit the effectiveness of this approach.

Additionally, the paper notes that the computational cost of the approach can be high, particularly for large-scale systems. This could limit the scalability of the method and its practical applicability in real-world settings.

The paper also does not address the challenge of synthesizing robust and adaptive controllers that can maintain safety guarantees in the face of changing system dynamics or environmental conditions. This is an important area for further research.

Overall, the paper presents a valuable contribution to the field of safety verification for neural network controllers, but there are still several open challenges and areas for improvement that warrant further investigation.

Conclusion

This paper proposes a novel approach for verifying the safety of neural network controllers using a combination of scenario optimization and conformal prediction. The method is demonstrated on a case study involving a neural network controller for a quadrotor UAV, showing its effectiveness in providing probabilistic safety guarantees.

While the paper presents a promising approach, it also acknowledges several limitations and areas for further research, such as the challenge of accurately modeling system dynamics and the need for scalable and adaptive control synthesis methods. Addressing these challenges will be crucial for enabling the safe deployment of neural network controllers in real-world, safety-critical applications.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Related Papers

Safe Reach Set Computation via Neural Barrier Certificates

Safe Reach Set Computation via Neural Barrier Certificates

Alessandro Abate, Sergiy Bogomolov, Alec Edwards, Kostiantyn Potomkin, Sadegh Soudjani, Paolo Zuliani

YC

0

Reddit

0

We present a novel technique for online safety verification of autonomous systems, which performs reachability analysis efficiently for both bounded and unbounded horizons by employing neural barrier certificates. Our approach uses barrier certificates given by parameterized neural networks that depend on a given initial set, unsafe sets, and time horizon. Such networks are trained efficiently offline using system simulations sampled from regions of the state space. We then employ a meta-neural network to generalize the barrier certificates to state space regions that are outside the training set. These certificates are generated and validated online as sound over-approximations of the reachable states, thus either ensuring system safety or activating appropriate alternative actions in unsafe scenarios. We demonstrate our technique on case studies from linear models to nonlinear control-dependent models for online autonomous driving scenarios.

Read more

4/30/2024

👁️

Discovering Closed-Loop Failures of Vision-Based Controllers via Reachability Analysis

Kaustav Chakraborty, Somil Bansal

YC

0

Reddit

0

Machine learning driven image-based controllers allow robotic systems to take intelligent actions based on the visual feedback from their environment. Understanding when these controllers might lead to system safety violations is important for their integration in safety-critical applications and engineering corrective safety measures for the system. Existing methods leverage simulation-based testing (or falsification) to find the failures of vision-based controllers, i.e., the visual inputs that lead to closed-loop safety violations. However, these techniques do not scale well to the scenarios involving high-dimensional and complex visual inputs, such as RGB images. In this work, we cast the problem of finding closed-loop vision failures as a Hamilton-Jacobi (HJ) reachability problem. Our approach blends simulation-based analysis with HJ reachability methods to compute an approximation of the backward reachable tube (BRT) of the system, i.e., the set of unsafe states for the system under vision-based controllers. Utilizing the BRT, we can tractably and systematically find the system states and corresponding visual inputs that lead to closed-loop failures. These visual inputs can be subsequently analyzed to find the input characteristics that might have caused the failure. Besides its scalability to high-dimensional visual inputs, an explicit computation of BRT allows the proposed approach to capture non-trivial system failures that are difficult to expose via random simulations. We demonstrate our framework on two case studies involving an RGB image-based neural network controller for (a) autonomous indoor navigation, and (b) autonomous aircraft taxiing.

Read more

4/11/2024

📉

Parameter-Conditioned Reachable Sets for Updating Safety Assurances Online

Javier Borquez, Kensuke Nakamura, Somil Bansal

YC

0

Reddit

0

Hamilton-Jacobi (HJ) reachability analysis is a powerful tool for analyzing the safety of autonomous systems. However, the provided safety assurances are often predicated on the assumption that once deployed, the system or its environment does not evolve. Online, however, an autonomous system might experience changes in system dynamics, control authority, external disturbances, and/or the surrounding environment, requiring updated safety assurances. Rather than restarting the safety analysis from scratch, which can be time-consuming and often intractable to perform online, we propose to compute textit{parameter-conditioned} reachable sets. Assuming expected system and environment changes can be parameterized, we treat these parameters as virtual states in the system and leverage recent advances in high-dimensional reachability analysis to solve the corresponding reachability problem offline. This results in a family of reachable sets that is parameterized by the environment and system factors. Online, as these factors change, the system can simply query the corresponding safety function from this family to ensure system safety, enabling a real-time update of the safety assurances. Through various simulation studies, we demonstrate the capability of our approach in maintaining system safety despite the system and environment evolution.

Read more

4/24/2024

🏋️

Bridging Dimensions: Confident Reachability for High-Dimensional Controllers

Yuang Geng, Jake Brandon Baldauf, Souradeep Dutta, Chao Huang, Ivan Ruchkin

YC

0

Reddit

0

Autonomous systems are increasingly implemented using end-to-end learning-based controllers. Such controllers make decisions that are executed on the real system, with images as one of the primary sensing modalities. Deep neural networks form a fundamental building block of such controllers. Unfortunately, the existing neural-network verification tools do not scale to inputs with thousands of dimensions -- especially when the individual inputs (such as pixels) are devoid of clear physical meaning. This paper takes a step towards connecting exhaustive closed-loop verification with high-dimensional controllers. Our key insight is that the behavior of a high-dimensional controller can be approximated with several low-dimensional controllers. To balance the approximation accuracy and verifiability of our low-dimensional controllers, we leverage the latest verification-aware knowledge distillation. Then, we inflate low-dimensional reachability results with statistical approximation errors, yielding a high-confidence reachability guarantee for the high-dimensional controller. We investigate two inflation techniques -- based on trajectories and control actions -- both of which show convincing performance in three OpenAI gym benchmarks.

Read more

5/3/2024