Formal Security Analysis of Neural Networks using Symbolic Intervals

Shiqi Wang, Kexin Pei, Justin Whitehouse, Junfeng Yang, Suman Jana

Abstract

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical systems, yet they remain vulnerable to adversarial perturbations. Traditional verification methods using SMT solvers are often too slow for practical use. This paper introduces ReluVal, a system that utilizes symbolic interval analysis to formally verify DNN properties. By tracking input dependencies through linear symbolic equations and employing iterative refinement, ReluVal achieves up to a 200x speedup over previous state-of-the-art tools while providing rigorous safety guarantees.

Introduction

As DNNs move into safety-critical domains like autonomous driving and aircraft collision avoidance (e.g., the ACAS Xu system), high accuracy is insufficient; formal guarantees are required. Two major hurdles exist: adversarial vulnerability, where small input changes cause catastrophic failures, and the verification gap, where existing SMT-based tools are computationally expensive and difficult to parallelize.

Neural network architecture for aircraft collision avoidance (ACAS Xu), mapping sensor data to steering angles.

Methodology: ReluVal

ReluVal replaces the search logic of SMT solvers with efficient Interval Arithmetic. The core innovation lies in how intervals are propagated and refined.

Symbolic Interval Propagation

Standard interval arithmetic often overestimates output ranges because it ignores dependencies between neurons. ReluVal addresses this through symbolic interval propagation, tracking dependencies using linear symbolic equations. This reduces estimation errors by over 85% compared to naive methods. To ensure formal correctness, ReluVal uses outward rounding to account for floating-point errors.

Iterative Refinement and Influence Analysis

When initial bounds are too loose to prove a safety property, ReluVal bisects the input range. To optimize this process, it uses gradient-based influence analysis to identify which input dimensions contribute most to output uncertainty ("smear"). This heuristic significantly reduces the number of necessary splits. Unlike SMT solvers, this refinement process is "embarrassingly parallel," allowing for massive scaling across CPU cores.

Comparison of (a) naive interval propagation, (b) symbolic interval propagation, and (c) iterative bisection and refinement.

Experimental Evaluation

The authors evaluated ReluVal on the ACAS Xu benchmark (45 DNNs for pilot advisories) and the MNIST dataset.

Key Results

  • Performance: ReluVal is on average 200x faster than Reluplex. It successfully verified properties in 4 hours that previously timed out after 5 days.
  • Robustness: On MNIST, ReluVal formally proved that 39.4% of tested images were robust against $L_\infty \leq 5$ perturbations.
  • Adversarial Discovery: By exploring the entire input space, ReluVal identified adversarial examples in cases where specialized attacks like Carlini-Wagner failed.

Discussion and Conclusion

ReluVal demonstrates that symbolic interval analysis is a powerful alternative to SMT solvers for DNN verification. Its convergence is mathematically guaranteed for any Lipschitz continuous DNN. While currently optimized for ReLU activations and $L_\infty$ norms, future work aims to extend these techniques to larger vision models and diverse activation functions.

Summary updated

BibTeX
@inproceedings{wang2018formal,
  author = {Shiqi Wang and Kexin Pei and Justin Whitehouse and Junfeng Yang and Suman Jana},
  title = {{Formal Security Analysis of Neural Networks using Symbolic Intervals}},
  booktitle = {USENIX Security},
  year = {2018},
  url = {https://openreview.net/forum?id=A2Wvftxutik},
}
Figure