Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programming

Mahyar Fazlyab, Manfred Morari, George J. Pappas
3/4/2019
math.OCcs.LG

Official code: mahyarfazlyab/DeepSDP (14 stars, Apache-2.0, last commit 2021-06-28).

Abstract

Certifying the safety or robustness of neural networks against input uncertainties and adversarial attacks is an emerging challenge in the area of safe machine learning and control. To provide such a guarantee, one must be able to bound the output of neural networks when their input changes within a bounded set. In this paper, we propose a semidefinite programming (SDP) framework to address this problem for feed-forward neural networks with general activation functions and input uncertainty sets. Our main idea is to abstract various properties of activation functions (e.g., monotonicity, bounded slope, bounded values, and repetition across layers) with the formalism of quadratic constraints. We then analyze the safety properties of the abstracted network via the S-procedure and semidefinite programming. Our framework spans the trade-off between conservatism and computational efficiency and applies to problems beyond safety verification. We evaluate the performance of our approach via numerical problem instances of various sizes.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programming.

144MATLABJun 16, 20205 years agoApache-2.0

Similar Papers

Cite this paper

@article{fazlyab2019safety,
  title  = {Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programming},
  author = {Mahyar Fazlyab and Manfred Morari and George J. Pappas},
  year   = {2019},
  eprint = {1903.01287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.01287}
}

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/1903.01287.svg)](https://codeofpaper.com/paper/1903.01287)

Discussion