Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Sharpness-Aware Pruning for Robust Sparse Networks

Anna Bair, Hongxu Yin|arXiv (Cornell University)|Jun 25, 2023
Energy Efficient Wireless Sensor NetworksComputer Science3 citations
TL;DR

AdaSAP introduces a three-stage pruning framework that enhances model robustness and sparsity by optimizing the loss landscape for flatter minima through adaptive weight perturbations and sharpness regularization. It achieves state-of-the-art performance, improving robust accuracy by up to +6% on ImageNet-C and +4% on corrupted VOC datasets across diverse architectures and sparsity levels.

ABSTRACT

Robustness and compactness are two essential attributes of deep learning models that are deployed in the real world. The goals of robustness and compactness may seem to be at odds, since robustness requires generalization across domains, while the process of compression exploits specificity in one domain. We introduce Adaptive Sharpness-Aware Pruning (AdaSAP), which unifies these goals through the lens of network sharpness. The AdaSAP method produces sparse networks that are robust to input variations which are unseen at training time. We achieve this by strategically incorporating weight perturbations in order to optimize the loss landscape. This allows the model to be both primed for pruning and regularized for improved robustness. AdaSAP improves the robust accuracy of pruned models on image classification by up to +6% on ImageNet C and +4% on ImageNet V2, and on object detection by +4% on a corrupted Pascal VOC dataset, over a wide range of compression ratios, pruning criteria, and network architectures, outperforming recent pruning art by large margins.

Motivation & Objective

  • To address the open challenge of jointly optimizing deep neural networks for model compactness and robustness to distribution shifts and corruptions.
  • To unify sparsity and robustness through the lens of loss landscape flatness, avoiding the trade-off between compression and generalization.
  • To develop a pruning method that maintains high performance under distribution shift and image corruption, especially at high sparsity ratios.
  • To demonstrate that flatness-based optimization can simultaneously prime models for pruning and improve robustness to out-of-distribution inputs.

Proposed method

  • Adaptive weight perturbations are applied during fine-tuning to encourage flatter minima in regions likely to be pruned, minimizing performance degradation upon removal of low-importance neurons.
  • A structured pruning step is applied after adaptive perturbation, using saliency criteria such as magnitude or Taylor approximation to identify and remove redundant channels.
  • Post-pruning, the model is finetuned with a uniform sharpness penalty across all layers to promote flatter loss landscapes and improved robust generalization.
  • The method uses a modified loss function that incorporates a sharpness regularization term based on the maximum loss increase under bounded weight perturbations, defined as $\max_{\|\epsilon\|_{2}\leq\rho}L_{S}(w+\epsilon)-L_{S}(w)$.
  • The approach is compatible with various pruning criteria and network architectures, including ResNet50, MobileNet V1/V2, and SSD512, across classification and detection tasks.
  • The method is designed to be agnostic to the specific pruning criterion, enabling integration with magnitude, Taylor, or other importance metrics.

Experimental results

Research questions

  • RQ1Can a unified optimization strategy improve both model sparsity and robustness to distribution shift and image corruption?
  • RQ2Does adaptive weight perturbation during training lead to flatter minima that are more resilient to pruning and out-of-distribution inputs?
  • RQ3To what extent can sharpness regularization after pruning enhance robust generalization without sacrificing accuracy?
  • RQ4How does AdaSAP compare to SOTA pruning methods in terms of robustness under high sparsity ratios and diverse data corruptions?

Key findings

  • AdaSAP improves robust accuracy by +6% on ImageNet-C and +4% on ImageNet-V2 and corrupted VOC datasets compared to SOTA pruning methods at high sparsity levels.
  • At 80% pruning ratio, AdaSAP with magnitude pruning achieves 37.30% robust accuracy on ImageNet-C, outperforming the next best method by 3.33 percentage points.
  • The method maintains a flatter loss landscape before and after pruning, as measured by the sharpness metric, with values of 0.037 before and 0.039 after pruning—consistently flatter than baseline methods.
  • Confidence intervals show stable performance across three random seeds, with AdaSAP achieving 78.23±0.06% clean validation accuracy at 23% pruned ratio, significantly outperforming baselines.
  • AdaSAP is flexible and effective across multiple pruning criteria: it outperforms SGD with Taylor pruning and matches or exceeds performance with magnitude pruning.
  • The method achieves state-of-the-art results across diverse setups, including two tasks (classification and detection), four networks, two pruning paradigms (parameter- and latency-based), and sparsity ratios from 25% to 80%.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.