Abstract
With the rapid development of deep learning, the sizes of deep neural networks are getting larger beyond the affordability of hardware platforms. Given the fact that neural networks are often over-parameterized, one effective way to reduce such computational overhead is neural network pruning, by removing redundant parameters from trained neural networks. It has been recently observed that pruning can not only reduce computational overhead but also can improve empirical robustness of deep neural networks (NNs), potentially owing to removing spurious correlations while preserving the predictive accuracies. This paper for the first time demonstrates that pruning can generally improve $L_\infty$ certified robustness for ReLU-based NNs under the complete verification setting. Using the popular Branch-and-Bound (BaB) framework, we find that pruning can enhance the estimated bound tightness of certified robustness verification, by alleviating linear relaxation and sub-domain split problems. We empirically verify our findings with off-the-shelf pruning methods and further present a new stability-based pruning method tailored for reducing neuron instability, that outperforms existing pruning methods in enhancing certified robustness. Our experiments show that by appropriately pruning an NN, its certified accuracy can be boosted up to 8.2% under standard training, and up to 24.5% under adversarial training on the CIFAR10 dataset. We additionally observe the possible existence of certified lottery tickets in our experiments that can match both standard and certified robust accuracies of the original dense models across different datasets. Our findings offer a new angle to study the intriguing interaction between sparsity and robustness, i.e. interpreting the interaction of sparsity and certified robustness via neuron stability.
Introduction
Deep neural networks (DNNs) have achieved remarkable success but remain susceptible to adversarial attacks—small, carefully crafted perturbations that can drastically change a model's output. While empirical robustness (resistance to specific attacks) is common, safety-critical applications require certified robustness, which provides a mathematical guarantee that no perturbation within a defined range can alter the prediction.
However, certifying a network is an NP-hard task. State-of-the-art verifiers often employ a Branch-and-Bound (BaB) framework. The efficiency and tightness of these verifiers are primarily limited by "unstable neurons"—ReLU units whose input range spans zero, meaning they could be either active or inactive. This paper explores whether neural network pruning, a technique typically used for model compression, can improve certified robustness by eliminating these problematic neurons.
The Challenge: Neuron Instability in Verification
In the context of formal verification, a ReLU neuron is considered "unstable" if its input bounds $[l, u]$ contain zero ($l < 0 < u$). For such neurons, verifiers must use linear relaxations (like the convex hull) to approximate the non-linear behavior, which introduces "relaxation error" and leads to loose output bounds.
As shown in the figure above, unstable neurons (a, d) require a yellow-shaded relaxation area, whereas stable neurons (b, c) are perfectly represented by linear functions or constants. Pruning helps by removing these unstable neurons or forcing them into stable states, thereby tightening the mathematical bounds and reducing the need for expensive sub-domain splitting in the BaB process.
Methods and Contributions
The authors evaluate standard pruning techniques like Iterative Magnitude Pruning (IMP), SNIP, and HYDRA. Their key technical contribution is NRSLoss (Normalized RS Loss), a training regularizer designed to minimize neuron instability.
Unlike previous approaches, NRSLoss incorporates Batch Normalization (BN) weights to normalize the penalty across different layers. This ensures that the regularization effectively suppresses instability in less critical neurons without harming the performance of essential ones. The study utilizes complete verifiers such as Beta-CROWN and auto-LiRPA to measure the exact certified robustness.
Key Findings
- Sparsity Enhances Stability: Pruning naturally removes the "noise" that causes neuron instability. By reducing the number of paths through the network, it limits the ways small input changes can flip ReLU states.
- Certified Lottery Tickets: The experiments suggest the existence of sparse subnetworks that can match or exceed both the standard and certified accuracy of the original dense models.
- Significant Robustness Gains: On the CIFAR10 dataset, pruning with NRSLoss improved certified accuracy by 8.2% under standard training and a massive 24.5% under adversarial training.
- Verification Efficiency: Structured pruning (removing entire neurons) led to a roughly 50% reduction in verification time and significant GPU memory savings, making formal certification more scalable.
Conclusion
This work demonstrates that pruning is not just a compression tool but a powerful mechanism for enhancing the provable safety of neural networks. By interpreting the interaction between sparsity and certified robustness through the lens of neuron stability, the authors provide a new pathway for developing robust and efficient AI systems. Future work includes scaling these methods to larger architectures and exploring automated sparsity selection during training.
Summary updated