Formal safety analysis of neural networks based on symbolic intervalsFormal Security Analysis of Neural Networks using Symbolic Intervals
The authors propose ReluVal, a DNN formal verification system based on interval arithmetic, which on the 15 ACAS Xu properties is on average 200 times faster than Reluplex.
The attacker can take arbitrary values within the input region given by the safety property (e.g., intruder speed 0–500 mph); different features may have different perturbation intervals, and the property may specify an arbitrary output region; the victim system is a safety-critical system that uses a ReLU DNN for decision-making (ACAS Xu, an MNIST classifier).
- DNNs have been used in safety-critical systems such as ACAS Xu, but adversarial example testing only finds counterexamples and does not guarantee their absence; existing SMT-solver-based verification methods are limited by solver overhead, and the authors hope to perform formal safety verification without an SMT solver.
- ReluVal uses interval arithmetic to propagate input intervals layer by layer to obtain output bounds, combined with four optimizations—symbolic interval propagation, iterative interval refinement, influence analysis, and monotonicity—to tighten the estimates, and uses outward rounding to guarantee that the bounds are reliable overestimates of the true outputs.
- On the 15 properties of ACAS Xu, the authors report that ReluVal is on average 200 times faster than Reluplex, and can verify within 4 hours properties on which Reluplex times out after running for 5 days; on MNIST, 956 of 1000 images are proven free of adversarial perturbations for L∞≤1.
- Future directions listed by the authors: supporting activation functions other than ReLU, supporting norms other than L∞, and using counterexamples for adversarial training (Section 9); the experiments cover only ACAS Xu and one MNIST network, and the authors call the MNIST results a preliminary test.
- Evaluated models
- ACAS XuMNIST network
- Benchmarks
- ACAS XuMNIST
- Metrics
- 验证时间加速比二分树深度对抗子区间数量被证明无对抗样本的图像比例
Researchers at Columbia University propose the ReluVal system, which does not rely on an SMT solver and uses interval arithmetic to formally verify safety properties of ReLU neural networks. Methodologically, it uses symbolic interval propagation to preserve input dependencies, reducing output bound estimation error by 85.67% compared with naive interval extension, and combines iterative interval refinement, influence analysis, and monotonicity optimization to tighten bounds. On the 15 safety properties of ACAS Xu it averages 200 times faster than Reluplex, and within 4 hours it verified properties that Reluplex could not decide after running for more than 5 days and timing out; on 40 adversarial properties, the Carlini-Wagner attack missed an average of 61.2%, while ReluVal found all of them. On MNIST models it verified that 39.4% of test images are robust to L∞≤5 perturbations, and the system can also subdivide the input space to e-6 precision to locate safe and adversarial subintervals.
Why it was selectedThe paper uses interval arithmetic rather than an SMT solver to formally verify neural network safety properties, averaging 200 times faster than Reluplex on ACAS Xu.
Paper analysis
What problem does this paper attempt to solve?
How to give a formal guarantee, without using an SMT solver, of whether a ReLU DNN violates a safety property within a given input region.
Core question: how to formally check, without using an SMT solver, whether a ReLU DNN never violates a safety property within a given input region.
- Scenario and motivation: DNNs are being deployed in safety-critical systems such as ACAS Xu; the authors say corner behaviors such as adversarial examples may be exploited by attackers, causing serious consequences in such systems.
- Shortcomings of existing methods: the authors say existing safety testing techniques only search for adversarial examples and do not provide a formal guarantee that "no adversarial example exists"; recent work using SMT solvers for formal verification is limited by the high overhead of the solvers.
- Core observation: DNN computation consists only of linear transformations and simple nonlinear operations such as ReLU; the authors consider interval arithmetic naturally suited to this problem, and unlike solver methods, it is easy to parallelize.
- Proposed approach: ReluVal, a verification system that uses interval arithmetic to compute rigorous bounds on DNN outputs and, together with optimizations such as symbolic interval analysis, tightens the estimates; the authors call it the first system to use interval arithmetic to provide formal guarantees of DNN safety.
- Threat model:
- Attacker goal: find an input within the given input region that makes the DNN violate a safety property (e.g., inducing a wrong turn at a particular approach angle).
- Attacker capability: can take arbitrary values within the region specified by the property; unlike Lp-norm constraints, different input features may have different perturbation intervals.
- Victim system: a safety-critical system that uses a ReLU DNN for decision-making, such as ACAS Xu; the property may specify an arbitrary output region and does not require the predicted label to stay unchanged.
What related research exists?
Related work falls into four groups: adversarial machine learning, SMT-solver-based verification, relaxation/duality/MILP-based verification, and interval analysis itself.
Adversarial machine learning
- Szegedy et al. [48], Goodfellow et al. [16], Carlini-Wagner [7], etc.—show that DNNs can be fooled by small perturbations imperceptible to humans, sparking an arms race between attack and defense; the paper notes that none of these attacks can give a provable guarantee that "no adversarial example exists."
- Engstrom et al. [13], DeepXplore [42], DeepTest [49], etc.—show that semantics-preserving transformations such as lighting changes, occlusion, and rotation can also fool DNNs; the paper notes that most defenses target only a single type of adversary/safety property.
SMT-solver-based verification
- Reluplex (Katz et al. [25])—uses a custom SMT solver to verify DNN safety properties and is the main comparison target of this paper; the paper says such techniques are limited by solver scalability and are expensive.
- Ehlers [12], Huang et al. [21]—also use custom SMT solvers to verify DNNs; the paper says they are either expensive [25] or provide only weaker guarantees [21].
Relaxation-, duality-, and MILP-based verification
- Kolter et al. [29], Raghunathan et al. [44], Gehr et al. [14] (AI2), Dvijotham et al. [11]—transform verification into convex optimization/relaxation problems to overestimate ReLU outputs; the paper points out that they only overestimate the total number of potential adversarial violations and do not find concrete counterexamples, and that false-positive rates are high unless the training algorithm is modified.
- Dutta et al. [9, 10]—use MILP solvers combined with gradient descent for verification; the paper says combining interval analysis with such methods is an interesting future problem.
- Verivis (Pei et al. [43])—a black-box DNN verification system that exploits the discreteness of image pixels; the paper points out that it cannot verify the non-existence of norm-based adversarial examples.
Interval analysis
- Moore et al. [36, 45] laid the foundations of interval analysis, which has been used for solving nonlinear equations and global optimization [23, 34, 35]; the paper builds on this foundation to apply interval analysis to DNN safety property analysis.
Baselines and benchmarks: the comparison baselines are Reluplex (an SMT-solver verifier) and the Carlini-Wagner gradient attack [7]; the evaluation benchmarks are the ACAS Xu models (15 properties, 10 of which come from [25]) and one MNIST network. The authors position this paper as: not using an SMT solver, using interval arithmetic to give provable guarantees, while also being able to find concrete counterexamples and verify pretrained DNNs.
How does the paper address this problem?
ReluVal propagates input intervals layer by layer to obtain output bounds, and uses four optimizations—symbolic intervals, iterative refinement, influence analysis, and monotonicity—to tighten the estimates.
Overall approach: given an input interval X and a safety property P, ReluVal propagates layer by layer using interval arithmetic to compute the output interval, outputting "secure" (no violation within the interval) or "insecure" (a concrete counterexample is found); when the estimate is too wide, it iteratively bisects the input interval to tighten the bounds.
Problem Setting and Correctness
- The verification target is an input-output property: for all inputs within the interval, the output falls within a specified interval; the authors give two theoretical results.
- Correctness: naive interval extension F is inclusion isotonic, so the true output range is always contained within the estimated bounds, i.e., f(X) ⊆ F(X); overestimation does not miss violations.
- Convergence: a finite-layer DNN is Lipschitz continuous, and the error width of N-way uniform refinement is w(E(N)(X)) ≤ 2L · w(X)/N, i.e., the error converges linearly to 0 with the number of bisections, and any precision can be reached in a finite number of steps.
Symbolic Interval Propagation
- For each neuron, linear symbolic equations of the lower and upper bounds (e.g., 2x+3y) are kept, preserving input dependencies during cross-layer propagation and mitigating the dependency problem caused by interval arithmetic treating correlated operands as independent variables.
- When passing through ReLU: if the symbolic lower bound is greater than 0, the equation is kept; otherwise the lower bound is concretized to 0 (similarly for the upper bound); the authors prove that symbolic bounds lie between the true tightest bound and the naive interval bound.
Iterative Interval Refinement
- When the output interval is too wide to draw a conclusion, an input interval is split in half and propagation is redone for the subintervals, forming a bisection tree; if a preset iteration limit is reached, timeout is output.
- For each subinterval, a midpoint sample is taken for a concrete forward computation; if a violation is found, that adversarial example is output and the subinterval is marked; users can configure it to continue bisecting insecure intervals to find secure subintervals within them.
Influence Analysis and Monotonicity
- Influence analysis: backpropagation computes the gradient interval of the output with respect to each input feature (Algorithm 2), and the feature with the greatest influence according to the smear function Si(X)=max|Jij|·w(Xj) is bisected first (Algorithm 3), replacing random selection.
- Monotonicity: if the partial derivative within an input interval is always positive or always negative, that interval is analyzed using only its two endpoints and is no longer bisected.
Implementation
- About 3000 lines of C code, using OpenBLAS for matrix operations; the evaluation machine is an Ubuntu 16.04 server with a 16-core CPU and 256GB memory.
- Parallelization: subintervals can be checked independently, and the authors designed a dynamic thread rebalancing algorithm that reassigns the potentially deeper parts of the bisection tree to idle threads.
- Outward rounding: the bounds of each new interval are rounded outward to guarantee the result is a reliable overestimate of the true output; implemented with 32-bit floating point, which the authors claim is sufficient precision for the ACAS Xu models, and they found that some adversarial examples reported by Reluplex are false positives caused by rounding issues.
What experiments did the paper conduct?
On the 15 ACAS Xu properties, on average 200 times faster than Reluplex; on MNIST, 956 of 1000 images were proven safe for L∞≤1.
Experimental Setup
- Models under test: the 45 DNNs of ACAS Xu (5 inputs, 5 outputs, 6 hidden layers of 50 neurons each); one MNIST network (784 inputs, 10 outputs, 2 hidden layers of 512 neurons each, test accuracy 98.28%).
- Properties: 15 safety properties on ACAS Xu, φ1–φ10 from the Reluplex paper [25], φ11–φ15 newly added by the authors (formal definitions in Appendix A); plus three properties S1–S3 used for adversarial interval localization.
- Baselines: Reluplex (SMT-solver verifier); Carlini-Wagner (CW) gradient attack, used to compare adversarial example discovery capability.
- Metrics: verification time and speedup, deepest/average depth of the bisection tree, number of adversarial properties found, number of adversarial/non-adversarial subintervals, proportion of images proven free of adversarial examples.
- MNIST protocol: 1000 test images randomly selected, arbitrary perturbation allowed on each pixel but total perturbation bounded by the L∞ norm; results on 5000 images for L∞≤5 are also reported.
- Hardware: 16-core CPU, 256GB memory, no GPU; the paper does not report the number of repetitions.
Main Results
According to Table 1 (ACAS Xu, time in seconds):
Swipe horizontally to read the table
Property Number of networks Reluplex ReluVal Speedup φ1 45 >443,560.73* 14,603.27 >30× φ2 34 123,420.40 117,243.26 1× φ6 1 220,330.82 46.59 4729× φ8 1 43,200.01 40.41 1069× φ10 1 23,683.07 10.94 2165× φ12 1 2,556.28 0.104 24580× φ13 1 >172,800.0* 148.21 >1166× φ15 2 31,328.26 876.80 36× (*Reluplex uses different timeout thresholds for different properties; φ3–φ5, φ7, φ9, φ11, φ14 are omitted, among which φ2 has the lowest speedup at 1×.)
- The authors claim ReluVal is faster than Reluplex on all 15 properties, with an average speedup of 200×.
- The authors claim that for properties on which Reluplex times out (such as φ1, φ7, φ13, φ14), ReluVal can terminate in a shorter time; the abstract states that one property on which Reluplex ran for 5 days and timed out was verified within 4 hours.
- The authors report that symbolic intervals reduce the output bound estimation error by 85.67% compared with naive interval extension.
Adversarial Example Discovery and Interval Localization
- Comparison with the CW attack (Table 2, 40 ACAS Xu properties with adversarial inputs): with 50/40/30/20/10 random seeds, CW finds 24/40, 21/40, 17/40, 10/40, 6/40 respectively, while ReluVal requires no seeds and finds all 40/40; the authors claim CW misses 61.2% on average.
- Adversarial interval localization (Table 3, precision e−6): property S1 (model_4_1, ρ∈[400,10000]) is divided into 262,144 subintervals, of which 163,915 are proven safe, 98,229 contain adversarial inputs, and 1 times out; it further localizes ρ=[6402.36,10000] as the adversarial interval and [400,6402.36] as free of adversarial inputs.
Preliminary MNIST Tests
- Of 1000 random test images, 956 are proven free of adversarial perturbations for L∞≤1, and 721 are safe for L∞≤2 (Figure 7); when the norm increases to 5, the proportion proven safe drops to 0, and timeouts increase.
- The introduction additionally reports: of 5000 random test images, 39.4% are verified robust for L∞≤5.
- The authors state these are preliminary results and believe GPU optimization could reduce timeouts and verify larger norm bounds.
Other Ablations and Analysis
- Symbolic interval analysis (Table 4): deepest depth of the bisection tree decreases by 42.06%, average depth by 49.28%, relative to naive interval analysis.
- Influence analysis (Table 4): average depth decreases by 10.85%, runtime decreases by up to 96.04%.
- Monotonicity (Table 4): deepest depth decreases by 0.325%, average depth by 0.497%, average runtime by 16.91%; the authors claim it is more useful when average depth is high.
- Exception: on φ2, ReluVal is essentially on par with Reluplex (1×), and the paper does not explain why.
What are some points that can be further explored?
The authors list three directions: supporting more activation functions, other norms, and adversarial training; the experiments cover only ACAS Xu and one MNIST network.
Limitations and future directions noted by the authors
- Supporting other activation functions (Section 9): the current symbolic interval propagation prototype supports only piecewise-linear activations (ReLU, Leaky ReLU, PReLU); the authors plan to extend to tanh, sigmoid, etc.
- Supporting norms other than L∞ (Section 9): norms such as L2 and L1 can be approximated with intervals; the authors plan to explore this direction.
- Improving DNN robustness (Section 9): adding counterexamples found by ReluVal to the training set for adversarial training, or incorporating interval analysis into the training process; the authors plan this as future work.
- Combining with MILP methods (Section 8): the authors call integrating interval analysis with the MILP-solver-plus-gradient-descent methods [9, 10] an interesting future research question.
- MNIST timeouts (Section 7.3): timeouts increase as the L∞ norm grows; the authors believe the system can be further optimized with GPUs to reduce timeouts and verify larger norm bounds.
- A general analysis tool (Section 10): the authors hope to develop ReluVal in the future into a complete DNN safety analysis tool that can check arbitrary safety properties and rigorously analyze hidden-neuron behavior.
Experimental coverage
- The models tested are the 45 ACAS Xu networks and one MNIST network, two categories in total; the authors call the MNIST experiment a preliminary test (Section 7.3).
- On ACAS Xu, 15 properties are verified (10 from [25], 5 new); on MNIST, robustness is tested for L∞=1 to 5.
- The comparison targets are Reluplex and the CW attack; the CW experiment is on 40 properties with adversarial inputs, using at most 50 random seeds.
- All experiments were completed on a single 16-core CPU server without a GPU; the paper does not report the number of experimental repetitions.
- The correctness and convergence proofs are given for ReLU networks; the authors say they can be extended to tanh and sigmoid (Section 4).
Summarize the main content of the paper
ReluVal replaces the SMT solver with interval arithmetic for DNN formal verification, and is on average 200 times faster than Reluplex on ACAS Xu.
ReluVal is a formal safety verification system for ReLU DNNs; the authors call it the first system to provide formal guarantees of DNN safety using interval arithmetic.
- Problem to solve: existing adversarial-example testing does not provide a guarantee that "no adversarial example exists," while SMT-solver-based verification methods are limited by solver overhead; the authors aim to verify whether a DNN violates a safety property within a given input region without using an SMT solver.
- Method highlights: propagate input intervals layer by layer to compute rigorous output bounds; use symbolic interval propagation to preserve input dependencies, iterative interval refinement to bisect the input space, influence analysis to select features to bisect first, and monotonicity to avoid unnecessary bisection; outward rounding ensures the reliability of overestimation; the authors prove the correctness of overestimation and the linear convergence of refinement.
- Main results: on the 15 ACAS Xu properties, the authors report that ReluVal is faster than Reluplex on all of them, with an average speedup of 200 times (Table 1), where φ12 is 24580× faster and φ2 only 1×; within 4 hours it verified a property on which Reluplex timed out after running 5 days.
- Adversarial example discovery: on all 40 properties with adversarial inputs, ReluVal found counterexamples, while the CW attack with 50 seeds found only 24, missing an average of 61.2% (Table 2); it can also partition the input space into adversarial and non-adversarial subregions with e−6 precision (Table 3).
- Preliminary MNIST results: 956 of 1000 random test images were proven free of adversarial perturbations for L∞≤1; 39.4% of 5000 images were verified robust for L∞≤5.
- Authors' conclusion: the authors consider symbolic interval analysis a promising new direction for rigorously analyzing DNN safety properties, and ReluVal, as a general framework, can be extended in the future into a complete DNN safety analysis tool.