Skip to main content
QUICK REVIEW

[Paper Review] Verisig: verifying safety properties of hybrid systems with neural network controllers

Radoslav Ivanov, James Weimer|arXiv (Cornell University)|Nov 5, 2018
Adversarial Robustness in Machine LearningComputer Science26 references37 citations
TL;DR

Verisig proposes a novel approach to verify safety properties of hybrid systems with sigmoid-based neural network controllers by transforming the DNN into an equivalent hybrid system using the sigmoid's solution to a quadratic differential equation. This enables composition with plant dynamics and verification via reachability tools like Flow*, achieving linear scalability with network depth and decidability for one-hidden-layer networks, with broader decidability conditional on Schanuel’s conjecture.

ABSTRACT

This paper presents Verisig, a hybrid system approach to verifying safety properties of closed-loop systems using neural networks as controllers. Although techniques exist for verifying input/output properties of the neural network itself, these methods cannot be used to verify properties of the closed-loop system (since they work with piecewise-linear constraints that do not capture non-linear plant dynamics). To overcome this challenge, we focus on sigmoid-based networks and exploit the fact that the sigmoid is the solution to a quadratic differential equation, which allows us to transform the neural network into an equivalent hybrid system. By composing the network's hybrid system with the plant's, we transform the problem into a hybrid system verification problem which can be solved using state-of-the-art reachability tools. We show that reachability is decidable for networks with one hidden layer and decidable for general networks if Schanuel's conjecture is true. We evaluate the applicability and scalability of Verisig in two case studies, one from reinforcement learning and one in which the neural network is used to approximate a model predictive controller.

Motivation & Objective

  • To address the challenge of verifying safety properties in closed-loop cyber-physical systems where neural networks serve as controllers, especially when traditional DNN verification techniques fail due to non-linear plant dynamics.
  • To overcome the limitation of existing SMT/MILP-based DNN verification tools, which cannot model continuous, non-linear plant dynamics.
  • To enable formal verification of safety properties in hybrid systems by transforming sigmoid-based DNNs into equivalent hybrid systems using their differential equation properties.
  • To evaluate the scalability and applicability of the proposed method on real-world case studies involving reinforcement learning and model predictive control approximation.
  • To explore the theoretical decidability of the verification problem for general feedforward sigmoid networks under Schanuel’s conjecture.

Proposed method

  • Exploits the fact that the sigmoid activation function is the solution to a specific quadratic differential equation, enabling a continuous-time dynamical system representation of each neuron.
  • Transforms a fully connected feedforward DNN with L layers and N neurons per layer into a hybrid system with L+1 modes and 2N states per layer.
  • Composes the resulting DNN hybrid system with the continuous-time plant dynamics to form a composite hybrid system representing the full closed-loop system.
  • Applies state-of-the-art hybrid system reachability tools, such as dReach and Flow*, to compute the reachable state space and verify safety properties.
  • Uses piecewise-linear approximation in Flow* to handle the non-linear dynamics, with approximation error bounded by the number of linear pieces used per sigmoid.
  • Employs MILP-based verification as a baseline for comparison, using 100 linear pieces per sigmoid to ensure comparable approximation accuracy.

Experimental results

Research questions

  • RQ1Can safety properties of hybrid systems with sigmoid-based neural network controllers be formally verified when traditional DNN verification techniques fail due to non-linear plant dynamics?
  • RQ2Is it possible to represent a sigmoid-based DNN as an equivalent hybrid system using its differential equation properties?
  • RQ3Does the proposed transformation enable scalable verification of deep networks using existing reachability tools?
  • RQ4Under what mathematical assumptions is the verification problem decidable for general feedforward sigmoid networks?
  • RQ5How does the scalability of Verisig compare to existing MILP-based DNN verification approaches on deep networks?

Key findings

  • Verisig achieves linear scalability with respect to the number of network layers, as the same reachability computation is performed per layer (mode), enabling verification of deep networks.
  • The MILP-based approach exhibits exponential growth in runtime with increasing depth due to the combinatorial explosion of binary variables, making it infeasible for deeper networks.
  • For shallow networks (few layers), the MILP-based method is faster, but its performance is highly sensitive to problem structure, as evidenced by a faster runtime for a nine-layer network than an eight-layer one.
  • Verisig+Flow* demonstrates predictable and scalable performance across a wide range of network depths, from two to ten layers, and widths from 16 to 128 neurons per layer.
  • The verification problem is decidable for DNNs with one hidden layer, and decidable for general networks if Schanuel’s conjecture holds true.
  • The coarse piecewise-linear approximation used in Flow* does not introduce significant error in practice, suggesting it is well-suited for sigmoid dynamics despite its simplicity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.