[Paper Review] Robust Sparse Regularization: Simultaneously Optimizing Neural Network Robustness and Compactness
This paper proposes Robust Sparse Regularization (RSR), a multi-objective training method that simultaneously enhances deep neural network robustness against adversarial attacks and achieves high model compactness through weight pruning. By fusing channel-wise noise injection, L1 (lasso) regularization, and adversarial training, RSR enables ResNet-18 to maintain 86.79% clean accuracy and 53.03% PGD robustness accuracy while pruning 85.36% of its weights.
Deep Neural Network (DNN) trained by the gradient descent method is known to be vulnerable to maliciously perturbed adversarial input, aka. adversarial attack. As one of the countermeasures against adversarial attack, increasing the model capacity for DNN robustness enhancement was discussed and reported as an effective approach by many recent works. In this work, we show that shrinking the model size through proper weight pruning can even be helpful to improve the DNN robustness under adversarial attack. For obtaining a simultaneously robust and compact DNN model, we propose a multi-objective training method called Robust Sparse Regularization (RSR), through the fusion of various regularization techniques, including channel-wise noise injection, lasso weight penalty, and adversarial training. We conduct extensive experiments across popular ResNet-20, ResNet-18 and VGG-16 DNN architectures to demonstrate the effectiveness of RSR against popular white-box (i.e., PGD and FGSM) and black-box attacks. Thanks to RSR, 85% weight connections of ResNet-18 can be pruned while still achieving 0.68% and 8.72% improvement in clean- and perturbed-data accuracy respectively on CIFAR-10 dataset, in comparison to its PGD adversarial training baseline.
Motivation & Objective
- To address the dual challenge of improving deep neural network robustness against adversarial attacks and reducing model size through pruning.
- To overcome the limitation of prior methods that either sacrifice accuracy or fail to significantly improve robustness when combining pruning and defense.
- To develop a training framework that enables simultaneous optimization of robustness, compactness, and clean accuracy without gradient obfuscation.
- To demonstrate that sparse models can be more robust than dense counterparts when trained with proper regularization.
Proposed method
- Integrates channel-wise noise injection (CNI) during adversarial training to improve robustness by injecting trainable, layer-specific Gaussian noise.
- Applies L1 (lasso) regularization to the network weights to promote sparsity, enabling high pruning rates by shrinking many weights toward zero.
- Combines adversarial training with PGD and FGSM attacks to enhance robustness against white-box attacks.
- Uses a threshold-based pruning strategy post-training, where weights below a learned gamma threshold (γ) are removed, achieving high sparsity.
- Employs a multi-objective loss function that jointly optimizes clean accuracy, robustness under PGD attack, and weight sparsity.
- Validates that the defense does not rely on gradient masking by showing consistent performance degradation under increasing attack strength and better performance on black-box attacks.
Experimental results
Research questions
- RQ1Can weight pruning improve adversarial robustness rather than degrade it, contrary to conventional assumptions?
- RQ2Does combining L1 regularization with adversarial training and noise injection lead to a model that is both sparse and robust?
- RQ3Can a single training procedure simultaneously optimize for clean accuracy, robustness under PGD and FGSM attacks, and high sparsity?
- RQ4Is the observed robustness due to genuine generalization or artifacts like gradient masking?
- RQ5How does the presence of inference-time noise affect robustness in pruned models?
Key findings
- RSR enables 85.36% weight pruning in ResNet-18 while improving PGD robustness accuracy by 8.72% and clean accuracy by 0.68% over PGD adversarial training baseline on CIFAR-10.
- The pruned ResNet-18 model achieves 53.03% PGD robustness accuracy, outperforming state-of-the-art defenses including PGD, PNI, DQ, SR, DP, and RSE.
- Even after disabling inference noise, the pruned RSR model maintains 41.61% PGD accuracy, confirming that robustness stems from regularization and sparsity, not noise alone.
- The method shows no signs of gradient masking: robustness degrades linearly with increasing attack strength and performs better on black-box than white-box attacks.
- Weight distribution analysis confirms that 85% of ResNet-18’s weights are near zero (below 1e-5) after RSR training, enabling high sparsity with minimal accuracy loss.
- The optimal pruning threshold γ can be tuned to balance clean accuracy, robustness, and sparsity, demonstrating the method’s flexibility and effectiveness across architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.