Abstract
Formal verification of neural networks is essential for safety-critical applications but faces a combinatorial explosion due to non-linear activation functions like ReLU. This paper introduces PEREGRiNN, a sound and complete verifier that utilizes a novel "penalized relaxation" strategy. By minimizing the discrepancy between relaxed and actual neuron behaviors (slack), PEREGRiNN significantly accelerates the search process, outperforming existing state-of-the-art tools in both speed and verification success rates.
Introduction: The Challenge of ReLU Verification
As neural networks (NNs) are increasingly deployed in safety-critical systems like autonomous vehicles, formal guarantees against adversarial failures are paramount. However, verifying these networks is computationally expensive. The primary obstacle is the Rectified Linear Unit (ReLU) activation function. Since each ReLU can be either "active" or "inactive," a network with $N$ neurons presents $2^N$ possible activation patterns. Existing verification tools often rely on convex relaxations to simplify this search space, but these approximations frequently fail to provide effective guidance for the search algorithm.
Methods: The PEREGRiNN Architecture
PEREGRiNN (Penalized-Relaxation Greedy Neural Network Verifier) enhances the standard "search and optimization" framework through several key innovations designed to prune the search space more effectively.
The core technical contributions include:
- Sum-of-Slacks Penalty: Instead of a simple feasibility check, PEREGRiNN employs an $L_1$-norm penalty to minimize "slack"—the distance between a neuron's relaxed variable and its true ReLU output. This encourages sparsity, pushing neurons toward valid binary states.
- Layer-wise-Weighted Penalty: By applying higher weights to later layers, the algorithm forces relaxation errors toward the input layers.
- Max-Slack Conditioning Priority: The algorithm prioritizes branching on neurons with the highest slack. Because the weighted penalty concentrates these errors in early layers, the search algorithm addresses the most influential neurons first, leading to more efficient pruning of the search tree.
- Sampling Inference: PEREGRiNN utilizes the Volesti library to rapidly sample the input space, allowing for the quick identification of counterexamples in unsafe networks before proceeding to intensive formal proofs.
Experimental Evaluation
The authors evaluated PEREGRiNN using a standard MNIST robustness verification suite. The testbench included three fully connected ReLU networks (FC1, FC2, and FC3) with up to 1536 neurons. Verification tasks involved 300 cases across 50 MNIST images with adversarial perturbations of $\epsilon = 0.02$ and $\epsilon = 0.05$.
Key Results and Ablation Study
PEREGRiNN demonstrated superior performance compared to state-of-the-art verifiers including Neurify, Venus, nnenum, and Marabou. On average, PEREGRiNN achieved speedups ranging from 1.25x to 1.85x. In a 300-case testbench with a 300-second timeout, PEREGRiNN successfully proved 206 properties, significantly more than nnenum (172) and Marabou (125).
Ablation studies confirmed that the "weighted sum of slacks" was the primary driver of performance. As shown in the performance plots, the "Maximum slack" strategy consistently outperforms random choice or minimum slack strategies, proving that relaxation error is a powerful heuristic signal for branching.
Conclusion and Future Directions
PEREGRiNN establishes that treating relaxation error (slack) as a heuristic signal, rather than just an approximation artifact, can dramatically improve verification efficiency. While currently specialized for ReLU networks and fully connected architectures, future work aims to extend this penalized relaxation logic to smooth non-linearities (e.g., Sigmoid, Tanh) and scale the approach to large-scale Convolutional Neural Networks (CNNs).
Summary updated