Towards Understanding and Improving the Transferability of Adversarial Examples in Deep Neural Networks

Lei Wu, Zhanxing Zhu

Abstract

Adversarial examples often transfer between models, allowing black-box attacks. This paper identifies local non-smoothness of the loss surface as a major barrier to transferability and proposes the Smoothed Gradient Attack (sg-IGSM). By averaging gradients in a local neighborhood, sg-IGSM finds more stable directions that generalize across architectures, improving transfer success rates on ImageNet by up to 30%.

Introduction

Deep Neural Networks (DNNs) are susceptible to adversarial examples—inputs with small, imperceptible perturbations that cause misclassification. A critical property is transferability: an adversarial example crafted for one model (the source) often fools another (the target). This allows for "black-box" attacks where the adversary lacks knowledge of the target model. This work explores why transferability varies and how to enhance it.

Methods: Addressing Local Non-Smoothness

The authors investigate how architecture, capacity, and accuracy affect transferability. They identify local non-smoothness as a key factor. The loss surface of a DNN is often jagged; a gradient at a single point might reflect a model-specific local spike rather than a general direction.

To address this, the Smoothed Gradient Attack (sg-IGSM) is introduced. Instead of the raw gradient $g(x)$, it uses the average gradient in a Gaussian neighborhood:

$$G_\sigma(x) = \mathbb{E}_{\xi \sim \mathcal{N}(0, I)} [g(x + \sigma\xi)]$$

This smoothing process filters out high-frequency noise unique to the source model, focusing on stable features shared across models.

Conceptual illustration of gradient smoothing. The smoothed gradient $G_A$ aligns better with the direction needed to cross the decision boundary of model B compared to the raw gradient $g_A$.

Key Insights from Empirical Study

The researchers evaluated transferability across standard benchmarks (MNIST, CIFAR-10, ImageNet) using architectures like ResNet, VGG, and DenseNet.

Empirical study of transferability across different model architectures. The plots show Top-1 Error vs. Number of Parameters for various target models when attacked using IGSM and FGSM on specific source models.

Key observations include:

  • Transferability is Non-Symmetric: Success from Model A to B does not guarantee success from B to A.
  • The Depth Paradox: Deeper models often produce less transferable examples, likely due to more complex, model-specific decision boundaries.
  • Accuracy Correlation: Higher accuracy models tend to produce more effective adversarial examples, as they better approximate the true data distribution.

Results

The sg-IGSM attack significantly outperformed standard methods. On ImageNet, transfer success rates improved by up to 30%. For instance, an attack from ResNet152 to VGG19 increased from 42.9% to 72.6%. Furthermore, smoothed gradients enhanced the robustness of adversarial examples against transformations like rotation, blurring, and JPEG compression.

Conclusion

This research highlights the role of loss surface geometry in adversarial transferability. By smoothing gradients, attackers can find more "universal" directions that generalize across architectures. Future work will focus on a deeper theoretical understanding of the depth paradox and further refining hyperparameter selection for different domains.

Summary updated

BibTeX
@inproceedings{wu2020towards,
  author = {Lei Wu and Zhanxing Zhu},
  title = {{Towards Understanding and Improving the Transferability of Adversarial Examples in Deep Neural Networks}},
  booktitle = {ACML},
  year = {2020},
}
Figure