Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks

Guy Katz, Clark W. Barrett, David L. Dill, Kyle Julian, Mykel J. Kochenderfer · DOI

Abstract: Deep neural networks have emerged as a widely used and effective means for tackling complex, real-world problems. However, a major obstacle in applying them to safety-critical systems is the great difficulty in providing formal guarantees about their behavior. We present a novel, scalable, and efficient technique for verifying properties of deep neural networks (or providing counter-examples). The technique is based on the simplex method, extended to handle the non-convex Rectified Linear Unit (ReLU) activation function, which is a crucial ingredient in many modern neural networks. The verification procedure tackles neural networks as a whole, without making any simplifying assumptions. We evaluated our technique on a prototype deep neural network implementation of the next-generation airborne collision avoidance system for unmanned aircraft (ACAS Xu). Results show that our technique can successfully prove properties of networks that are an order of magnitude larger than the largest networks verified using existing methods.

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains, such as autonomous driving and airborne collision avoidance. Despite their success, DNNs remain "black boxes" susceptible to adversarial perturbations—small input changes that trigger drastically incorrect outputs. Formal verification offers a path to guarantee system behavior under all possible inputs, but verifying DNNs is NP-complete. Standard Linear Programming (LP) and Satisfiability Modulo Theories (SMT) solvers often fail to handle the non-convexity of the Rectified Linear Unit (ReLU) activation function ($y = \max(0, x)$) at scale. Prior to this work, dedicated tools were limited to networks with fewer than 20 hidden nodes.

The Reluplex Algorithm

The authors propose Reluplex (ReLU with Simplex), an algorithm that integrates ReLU constraints directly into the Simplex calculus. Unlike standard Simplex, which maintains feasibility for linear equations, Reluplex allows variables in a ReLU pair to temporarily violate the $y = \max(0, x)$ constraint.

The Reluplex calculus extends the Simplex method with rules for pivoting and updating variables to resolve ReLU violations.

The solver iteratively attempts to resolve these violations using specialized "Update" and "Pivot" operations. When simple updates are insufficient, the algorithm employs Lazy Splitting (ReluSplit). It branches the search by assuming a node is either active ($x > 0$) or inactive ($x \leq 0$). By delaying these splits, Reluplex significantly prunes the search space. To enhance scalability, the implementation includes tighter bound derivation, conflict analysis, and the use of floating-point arithmetic with a "tableau restoration" mechanism to manage numerical stability.

Experimental Evaluation

Reluplex was evaluated using the ACAS Xu (Airborne Collision Avoidance System for unmanned aircraft) benchmark. This system consists of 45 DNNs designed to replace a massive lookup table. Each network features 5 inputs, 5 outputs, and 6 hidden layers, totaling 300 ReLU nodes.

A deep neural network architecture illustrating the multi-layer structure and connectivity that Reluplex is designed to verify.

In comparative tests against state-of-the-art solvers like CVC4, Z3, and Gurobi, Reluplex was the only tool capable of solving all eight benchmark properties. While other solvers timed out, Reluplex successfully verified safety properties, such as ensuring the system does not issue unnecessary turning advisories when an intruder is distant.

Discussion and Conclusion

Reluplex demonstrates that the piecewise linear nature of ReLUs can be leveraged for efficient verification. It formalizes $\delta$-local robustness, proving that no perturbation within a distance $\delta$ of a specific input can change the network's classification. Furthermore, it identified discrepancies between the DNN behavior and the original ACAS Xu specification, providing counter-examples for model refinement.

While Reluplex is a major step forward, challenges remain. Proving global robustness across all inputs is still computationally expensive. Additionally, while tableau restoration helps, the use of floating-point math poses ongoing questions for absolute formal soundness. Future work aims to extend these techniques to other activation functions (e.g., Sigmoid, Tanh) and complex layer types like Max-Pooling.

Summary updated

BibTeX
@inproceedings{katz2017reluplex,
  author = {Guy Katz and Clark W. Barrett and David L. Dill and Kyle Julian and Mykel J. Kochenderfer},
  title = {{Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networks}},
  booktitle = {CAV},
  year = {2017},
  doi = {10.1007/978-3-319-63387-9\_5},
}
Figure