Adaptive Pruning with Module Robustness Sensitivity: Balancing Compression and Robustness

Lincen Bai, Hedi Tabia, Raúl Santos-Rodríguez · DOI

Abstract

Neural network pruning has traditionally focused on weight-based criteria to achieve model compression, frequently overlooking the crucial balance between adversarial robustness and accuracy. Existing approaches often fail to preserve robustness in pruned networks, leaving them more susceptible to adversarial attacks. This paper introduces Module Robustness Sensitivity (MRS), a novel metric that quantifies layer-wise sensitivity to adversarial perturbations and dynamically informs pruning decisions. Leveraging MRS, we propose Module Robust Pruning and Fine-Tuning (MRPF), an adaptive pruning algorithm compatible with any adversarial training method, offering both flexibility and scalability. Extensive experiments on SVHN, CIFAR, and Tiny-ImageNet across diverse architectures, including ResNet, VGG, and MobileViT, demonstrate that MRPF significantly enhances adversarial robustness while maintaining competitive accuracy and computational efficiency. Furthermore, MRPF consistently outperforms state-of-the-art structured pruning methods in balancing robustness, accuracy, and compression. This work establishes a practical and generalizable framework for robust pruning, addressing the long-standing trade-off between model compression and robustness preservation.

Introduction

Deep learning models are notoriously over-parameterized, necessitating pruning—the removal of redundant weights—to enable deployment on resource-constrained edge devices. However, a critical tension exists: while pruning aims for efficiency, adversarial robustness (the ability to resist small, malicious input perturbations) typically requires a higher parameter count. Traditional pruning methods, which often rely on simple heuristics like weight magnitude, frequently degrade the complex decision boundaries necessary for adversarial defense. This research addresses this gap by identifying which network components are critical for robustness and proposing a method to protect them during compression.

The MRPF Framework

The authors propose Module Robust Pruning and Fine-Tuning (MRPF), a framework designed to maintain security even at high levels of sparsity. The core of this approach is Module Robustness Sensitivity (MRS), which serves as a guide for adaptive pruning.

The MRPF pipeline: from a pretrained network to a pruned and robust model via MRS evaluation and adaptive pruning.

The MRPF process involves three primary stages:

  1. MRS Evaluation: Instead of evaluating weight importance by size, the algorithm perturbs the weights of individual layers and measures the resulting increase in adversarial loss. Layers where the loss spikes are identified as "robustness-critical."
  2. Adaptive Pruning Ratios: Using MRS, the algorithm dynamically allocates pruning budgets. Critical layers are pruned conservatively, while less sensitive layers are pruned more aggressively to meet overall compression targets.
  3. Adversarial Fine-Tuning: Post-pruning, the model undergoes adversarial training (e.g., TRADES or MART) to restore decision boundaries and recover accuracy.

This framework is agnostic to specific pruning criteria or adversarial training methods, making it highly versatile and scalable across different architectures.

Key Insights and Results

Experimental evaluations on datasets like CIFAR-10, CIFAR-100, SVHN, and Tiny-ImageNet reveal that robustness is not uniformly distributed across a network. Certain "defensive anchor" layers are vital; pruning them leads to a collapse in adversarial defense.

Comparison of standard accuracy and robustness (accuracy under PGD attack) across different pruning methods and sparsity levels.

MRPF consistently outperforms state-of-the-art (SOTA) structured pruning methods:

  • ResNet-18 (CIFAR-10): At 90% sparsity, MRPF achieved 81.15% standard accuracy and 46.44% robustness against AutoAttack, surpassing previous SOTA methods by over 2%.
  • VGG-16 (CIFAR-10): Showed a +7.16% improvement in robustness compared to TwinRep at 90% sparsity.
  • Efficiency: These gains were achieved without increasing computational costs (FLOPs) relative to other robust pruning techniques.

The study also found that while the specific pruning criterion (e.g., magnitude vs. Taylor expansion) has a smaller impact on final accuracy than the fine-tuning process, the layer-wise pruning ratio informed by MRS is the decisive factor for maintaining robustness.

Conclusion and Future Directions

MRPF provides a robust framework for balancing model compression and security. While extreme compression (above 90%) still presents challenges for fully recovering defensive capabilities, MRPF significantly pushes the Pareto frontier. Future work will explore extending MRS to Vision Transformers (ViTs) and Large Language Models (LLMs), as well as investigating its behavior in higher-dimensional input spaces and different modalities like audio or medical imaging.

Summary updated

BibTeX
@misc{bai2024adaptive,
  author = {Lincen Bai and Hedi Tabia and Raúl Santos-Rodríguez},
  title = {{Adaptive Pruning with Module Robustness Sensitivity: Balancing Compression and Robustness}},
  year = {2024},
  eprint = {2410.15176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15176},
}
Figure