Abstract
Deep neural networks require significant compression for edge deployment, yet pruning often compromises adversarial robustness. This paper introduces the Module Robust Pruning and Fine-Tuning (MRPF) framework, centered on a novel metric called Module Robustness Sensitivity (MRS). MRS identifies layer-specific criticality for defense, allowing for dynamic adjustment of pruning ratios. Our findings suggest that the specific pruning criterion is less significant than the layer-wise ratio and subsequent fine-tuning. MRPF achieves high compression while significantly outperforming state-of-the-art methods in adversarial robustness across multiple benchmarks.
Introduction
The deployment of deep neural networks on resource-constrained devices necessitates pruning to reduce memory and computational overhead. However, a critical security trade-off exists: pruning typically degrades a model's adversarial robustness. While over-parameterization is often cited as a requirement for maintaining complex decision boundaries against adversarial perturbations, compression aims for the opposite. Traditional pruning methods often apply uniform pruning rates across layers using simple weight-based criteria, which can inadvertently destroy structures essential for model defense.
Methodology: The MRPF Framework
The proposed Module Robust Pruning and Fine-Tuning (MRPF) framework shifts the focus from how to prune to where to prune. The pipeline consists of three primary stages:
- Module Robustness Sensitivity (MRS) Evaluation: Instead of relying on weight magnitudes, the framework generates adversarial examples and "stresses" individual layers by perturbing weights via gradient ascent. Layers exhibiting a significant spike in adversarial loss are deemed high-sensitivity "defense hubs."
- Adaptive Layer-wise Pruning: Using MRS scores, the framework allocates pruning ratios dynamically. Sensitive layers are pruned conservatively, while less critical layers are pruned more aggressively to meet global sparsity targets.
- Adversarial Fine-Tuning: Post-pruning, the model undergoes specialized fine-tuning (e.g., TRADES or MART) to recover decision boundaries lost during parameter removal.
Experimental Setup
The framework was evaluated using ResNet-18/50, VGG-16, and MobileViT-xs architectures across four image classification benchmarks: CIFAR-10, CIFAR-100, SVHN, and Tiny-ImageNet. These datasets provide a range of complexity from simple digit recognition to 200-class high-resolution image classification.
Analysis and Discussion
A key finding of this research is the "Fine-Tuning Dominance" effect. At moderate compression levels (up to 50%), the choice of pruning criteria—whether random, magnitude-based, or Taylor expansion—has negligible impact on final performance, provided the model is fine-tuned correctly. Fine-tuning acts as a "great equalizer" for different selection heuristics.
However, as sparsity increases beyond 80%, a "point of no return" is reached where the model lacks the capacity to represent robust decision boundaries regardless of the fine-tuning method. Furthermore, MRS analysis reveals that deeper layers are generally more sensitive to perturbations, highlighting their role as critical defense hubs.
Results
MRPF consistently outperforms state-of-the-art structured pruning methods like TwinRep and HARP, particularly at high sparsity levels. For ResNet-18 on CIFAR-10 at 90% sparsity, MRPF achieved 46.44% robustness (AutoAttack), a +2.14% improvement over TwinRep. On VGG-16, the improvement was even more pronounced, with a +7.16% gain in robustness. On the more challenging Tiny-ImageNet, MRPF improved adversarial accuracy by up to 182.7% compared to standard baselines.
Conclusion
This work demonstrates that adaptive layer-wise pruning guided by robustness sensitivity is superior to uniform pruning for maintaining model security. Future work will extend this analysis to pure Transformer-based models and Large Language Models (LLMs), as well as incorporating hardware-aware metrics like latency and energy consumption for mobile deployment.
Summary updated