[Paper Review] Sparse DNNs with Improved Adversarial Robustness
The paper analyzes how sparsity in weight connections and activations affects adversarial robustness for linear classifiers and nonlinear DNNs, showing that appropriate sparsity can boost robustness against l_infty and l_2 attacks in nonlinear models. It combines theoretical bounds with empirical pruning experiments on MNIST and CIFAR-10.
Deep neural networks (DNNs) are computationally/memory-intensive and vulnerable to adversarial attacks, making them prohibitive in some real-world applications. By converting dense models into sparse ones, pruning appears to be a promising solution to reducing the computation/memory cost. This paper studies classification models, especially DNN-based ones, to demonstrate that there exists intrinsic relationships between their sparsity and adversarial robustness. Our analyses reveal, both theoretically and empirically, that nonlinear DNN-based classifiers behave differently under $l_2$ attacks from some linear ones. We further demonstrate that an appropriately higher model sparsity implies better robustness of nonlinear DNNs, whereas over-sparsified models can be more difficult to resist adversarial examples.
Motivation & Objective
- Investigate intrinsic relationships between sparsity and robustness in classifiers, including linear and nonlinear DNNs.
- Develop metrics to quantify robustness under l_infty and l_2 attacks.
- Provide theoretical bounds linking sparsity to robustness for linear and nonlinear models.
- Empirically validate how pruning and activation sparsity affect adversarial resistance on MNIST and CIFAR-10.
Proposed method
- Define robustness metrics r_infty and r_2 for linear and multi-class linear classifiers.
- Derive theoretical relations showing how weight sparsity impacts r_infty and r_2 for linear models.
- Extend analysis to nonlinear DNNs using local Lipschitz constants and activation/weight sparsity.
- Propose and apply pruning strategies and l1 activation regularization to evaluate robustness experimentally.
- Conduct adversarial attacks (FGS, DeepFool, C&W, rFGS) to measure robustness across models.
- Evaluate on MNIST (binary and multi-class) and CIFAR-10 with LeNet, VGG-like, and ResNet architectures.
Experimental results
Research questions
- RQ1How does sparsity in weights affect robustness to l_infty and l_2 adversarial attacks in linear classifiers?
- RQ2Do nonlinear DNNs exhibit a consistent robustness boost with increased sparsity in weights and activations across different architectures and datasets?
- RQ3What theoretical relationships can bound robustness metrics in relation to network sparsity?
- RQ4How do pruning and activation regularization influence model robustness before and after accuracy degradation?
Key findings
- In linear binary/multi-class classifiers, higher weight sparsity can improve l_infty robustness (r_infty) but may not improve r_2 robustness.
- Nonlinear DNNs show a consistent robustness improvement with increasing sparsity up to threshold levels, for both l_infty and l_2 attacks.
- Activation sparsity via l1 regularization also correlates with higher robustness in a certain sparsity range.
- Over-pruning leads to sharp drops in adversarial robustness before benign accuracy declines.
- Extremely sparse off-the-shelf sparse models can be more vulnerable to adversarial attacks than their dense counterparts.
- Theoretical results link local Lipschitz constants and sparsity to robustness bounds in nonlinear networks.
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.