Safety Guarantees for Neural Network Dynamic Systems via Stochastic Barrier Functions

Rayan Mazouz, Karan Muvvala, Akash Ratheesh, Luca Laurenti, Morteza Lahijanian
6/15/2022
eess.SYcs.RO

Official code: aria-systems-group/NeuralNetControlBarrier (9 stars, Julia, MIT, last commit 2024-09-30).

Abstract

Neural Networks (NNs) have been successfully employed to represent the state evolution of complex dynamical systems. Such models, referred to as NN dynamic models (NNDMs), use iterative noisy predictions of NN to estimate a distribution of system trajectories over time.

Show full abstract

Despite their accuracy, safety analysis of NNDMs is known to be a challenging problem and remains largely unexplored. To address this issue, in this paper, we introduce a method of providing safety guarantees for NNDMs. Our approach is based on stochastic barrier functions, whose relation with safety are analogous to that of Lyapunov functions with stability. We first show a method of synthesizing stochastic barrier functions for NNDMs via a convex optimization problem, which in turn provides a lower bound on the system's safety probability. A key step in our method is the employment of the recent convex approximation results for NNs to find piece-wise linear bounds, which allow the formulation of the barrier function synthesis problem as a sum-of-squares optimization program. If the obtained safety probability is above the desired threshold, the system is certified. Otherwise, we introduce a method of generating controls for the system that robustly maximizes the safety probability in a minimally-invasive manner. We exploit the convexity property of the barrier function to formulate the optimal control synthesis problem as a linear program. Experimental results illustrate the efficacy of the method. Namely, they show that the method can scale to multi-dimensional NNDMs with multiple layers and hundreds of neurons per layer, and that the controller can significantly improve the safety probability.

View on arXivView PDF

Code Implementations(1)

MIT

We introduce a method of safety certification and control for Neural Network Dynamic Models (NNDMs) via stochastic barrier functions.

93Julia, DockerfileJun 26, 20222 years agoMIT

Similar Papers

Cite this paper

@article{mazouz2022safety,
  title  = {Safety Guarantees for Neural Network Dynamic Systems via Stochastic Barrier Functions},
  author = {Rayan Mazouz and Karan Muvvala and Akash Ratheesh and Luca Laurenti and Morteza Lahijanian},
  year   = {2022},
  eprint = {2206.07811},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.07811}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.07811.svg)](https://codeofpaper.com/paper/2206.07811)

Discussion