Skip to main content
QUICK REVIEW

[Paper Review] Efficient Formal Safety Analysis of Neural Networks

Shiqi Wang, Kexin Pei|arXiv (Cornell University)|Sep 19, 2018
Adversarial Robustness in Machine LearningComputer Science188 citations
TL;DR

Neurify introduces symbolic linear relaxation and directed constraint refinement to formally verify safety properties of neural networks, scaling to networks over 10,000 ReLUs and outperforming Reluplex and ReluVal by orders of magnitude.

ABSTRACT

Neural networks are increasingly deployed in real-world safety-critical domains such as autonomous driving, aircraft collision avoidance, and malware detection. However, these networks have been shown to often mispredict on inputs with minor adversarial or even accidental perturbations. Consequences of such errors can be disastrous and even potentially fatal as shown by the recent Tesla autopilot crash. Thus, there is an urgent need for formal analysis systems that can rigorously check neural networks for violations of different safety properties such as robustness against adversarial perturbations within a certain $L$-norm of a given image. An effective safety analysis system for a neural network must be able to either ensure that a safety property is satisfied by the network or find a counterexample, i.e., an input for which the network will violate the property. Unfortunately, most existing techniques for performing such analysis struggle to scale beyond very small networks and the ones that can scale to larger networks suffer from high false positives and cannot produce concrete counterexamples in case of a property violation. In this paper, we present a new efficient approach for rigorously checking different safety properties of neural networks that significantly outperforms existing approaches by multiple orders of magnitude. Our approach can check different safety properties and find concrete counterexamples for networks that are 10$ imes$ larger than the ones supported by existing analysis techniques. We believe that our approach to estimating tight output bounds of a network for a given input range can also help improve the explainability of neural networks and guide the training process of more robust neural networks.

Motivation & Objective

  • Motivate the need for formal safety analysis in safety-critical domains using neural networks.
  • Develop accurate, scalable methods to verify safety properties or find counterexamples for neural networks.
  • Enable analysis for networks far larger than prior approaches by reducing overestimation in bounds.
  • Showcase Neurify’s performance across diverse properties, datasets, and architectures.

Proposed method

  • Introduce symbolic linear relaxation combining symbolic interval analysis with linear relaxation to tighten output bounds.
  • Identify overestimated nodes during relaxation and refine via directed constraint refinement.
  • Prioritize and split overestimated nodes to tighten output ranges without exhaustive enumeration.
  • Use linear solvers (and sometimes quadratic constraints) to check safety properties and generate counterexamples.
  • Iteratively validate solver results by running the actual network to confirm counterexamples or tighten bounds.
  • Check safety properties defined by input perturbations (L-infinity, L1, L2) and output invariances across classifications.

Experimental results

Research questions

  • RQ1Can a scalable formal analysis framework verify multiple safety properties for large neural networks beyond prior capabilities?
  • RQ2To what extent does symbolic linear relaxation reduce overestimation compared to prior interval methods?
  • RQ3Does directed constraint refinement reliably tighten bounds and provide concrete counterexamples for large networks?
  • RQ4How does Neurify perform relative to Reluplex and ReluVal across diverse datasets and architectures?

Key findings

  • Neurify analyzes networks with more than 10,000 ReLUs, outperforming prior methods by orders of magnitude.
  • On average, Neurify is 5,000× faster than Reluplex and 20× faster than ReluVal.
  • The approach scales to networks 10× larger than those supported by existing techniques.
  • Neurify evaluated safety properties across six property types on nine networks trained on five datasets.
  • The system demonstrated concrete counterexamples and tight output bounds aiding robustness and explainability.

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.