Adversarial Neural Pruning

Divyam Madaan, Sung Ju HwangarXiv 2019

Abstract

Despite the remarkable performance of deep neural networks on various computer vision tasks, they are known to be susceptible to adversarial perturbations, which makes it challenging to deploy them in real-world safety-critical applications. In this paper, we conjecture that the leading cause of adversarial vulnerability is the distortion in the latent feature space, and provide methods to suppress them effectively. Explicitly, we define vulnerability for each latent feature and then propose a new loss for adversarial learning, Vulnerability Suppression (VS) loss, that aims to minimize the feature-level vulnerability during training. We further propose a Bayesian framework to prune features with high vulnerability to reduce both vulnerability and loss on adversarial samples. We validate our Adversarial Neural Pruning with Vulnerability Suppression (ANP-VS) method on multiple benchmark datasets, on which it not only obtains state-of-the-art adversarial robustness but also improves the performance on clean examples, using only a fraction of the parameters used by the full network. Further qualitative analysis suggests that the improvements come from the suppression of feature-level vulnerability.

Introduction: The Fragility of Deep Networks

Deep neural networks (DNNs) have achieved human-level performance in many domains, yet they remain notoriously fragile. Small, imperceptible adversarial perturbations can drastically alter a model's prediction, leading to a "cat-and-mouse" game between attackers and defenders. This paper argues that the root cause of this vulnerability lies in latent feature distortion. When a network is presented with an adversarial example, certain internal features "explode" or distort significantly, overwhelming the robust features and leading to incorrect classification.

Methodology: Adversarial Neural Pruning with Vulnerability Suppression (ANP-VS)

To address latent distortion, the authors propose a two-pronged strategy:

  1. Defining Feature Vulnerability: Vulnerability is formally defined as the expected Manhattan distance between a feature's response to a clean image and its response to an adversarial version of that same image.
  2. Adversarial Neural Pruning (ANP): Utilizing a Bayesian framework (specifically Beta-Bernoulli dropout), the model learns to identify and prune features with high vulnerability. By "muting" these easily confused internal neurons, the network removes the primary pathways used by adversarial attacks.
  3. Vulnerability Suppression (VS) Loss: A novel loss term is introduced during training to explicitly penalize differences between internal feature representations of clean and adversarial pairs. This forces the network to learn representations that are invariant to small input changes.
The ANP-VS framework: Pruning vulnerable features (red) and applying VS loss to minimize feature-level distortion.

Experimental Results

The ANP-VS method was evaluated on MNIST, CIFAR-10, and CIFAR-100 datasets using LeNet-5-Caffe and VGG-16 architectures.

  • Robustness and Accuracy: On CIFAR-10, ANP-VS achieved approximately 56% accuracy under strong PGD attacks, outperforming standard Adversarial Training (~50%) and TRADES (~52%). Notably, it also improved clean accuracy, suggesting that vulnerability suppression acts as an effective regularizer.
  • Efficiency: The method produces highly compact models. For CIFAR-10, the resulting network achieved 76.5% sparsity, requiring only about 12% of the memory of the original full network.
  • Vulnerability Reduction: Quantitative analysis shows that VS loss reduces internal distortion by over 60% compared to standard models.
Quantitative mean distortion across datasets and qualitative saliency map comparisons showing how ANP-VS focuses on core semantic structures.

Discussion: Sparsity as a Shield

A key insight of this work is that pruning is not just for model compression; it is a powerful defense mechanism. By removing vulnerable neurons, the model becomes more robust. Furthermore, visualizations of the loss landscape indicate that ANP-VS results in a much smoother, flatter surface, making it harder for optimization-based attacks to find successful perturbations. Qualitative saliency maps confirm that robust features capture the core structure of objects, while vulnerable features often correspond to noisy, non-semantic patterns.

Conclusion and Future Work

ANP-VS provides a state-of-the-art defense by targeting the fundamental issue of latent feature distortion. While the training process is computationally intensive due to the need for adversarial example generation, the resulting models are both robust and efficient. Future research could explore scaling this approach to larger architectures like Vision Transformers and deeper ResNets on datasets like ImageNet.

Summary updated

BibTeX
@misc{madaan2019adversarial,
  author = {Divyam Madaan and Sung Ju Hwang},
  title = {{Adversarial Neural Pruning}},
  year = {2019},
  eprint = {1908.04355},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.04355},
}
Figure