Towards Understanding and Boosting Adversarial Transferability from a Distribution Perspective

Yao Zhu, Yuefeng Chen, Xiaodan Li, Kejiang Chen, Yuan He, Xiang Tian, Bolun Zheng, Yaowu Chen, Qingming Huang · DOI

Abstract

Transferable adversarial attacks against Deep neural networks (DNNs) have received broad attention in recent years. An adversarial example can be crafted by a surrogate model and then attack the unknown target model successfully, which brings a severe threat to DNNs. The exact underlying reasons for the transferability are still not completely understood. Previous work mostly explores the causes from the model perspective, e.g., decision boundary, model architecture, and model capacity. Here, we investigate the transferability from the data distribution perspective and hypothesize that pushing the image away from its original distribution can enhance the adversarial transferability. To be specific, moving the image out of its original distribution makes different models hardly classify the image correctly, which benefits the untargeted attack, and dragging the image into the target distribution misleads the models to classify the image as the target class, which benefits the targeted attack. Towards this end, we propose a novel method that crafts adversarial examples by manipulating the distribution of the image. We conduct comprehensive transferable attacks against multiple DNNs to demonstrate the effectiveness of the proposed method. Our method can significantly improve the transferability of the crafted attacks and achieves state-of-the-art performance in both untargeted and targeted scenarios, surpassing the previous best method by up to 40% in some cases.

Introduction

Adversarial attacks involve making tiny, imperceptible changes to an image to trick a Deep Neural Network (DNN). A major security concern is transferability: an attack crafted to fool a specific surrogate model often successfully fools a different target model, even if the attacker knows nothing about the target's architecture. While previous research focused on model-specific causes—like decision boundaries or model capacity—the exact reason why these perturbations generalize across different architectures remains a mystery. This paper shifts the focus from the model to the data distribution, arguing that transferability is rooted in how an image is moved relative to its natural data manifold.

Methodology: The Distribution-Relevant Attack (DRA)

The authors propose the Distribution-Relevant Attack (DRA), which operates in two distinct phases to align adversarial perturbations with the underlying data distribution.

1. Distribution-Aware Fine-tuning

Since the exact mathematical distribution of all natural images is unknown, the authors utilize a technique from generative modeling known as score-matching. They fine-tune the surrogate model using a specialized Distribution-Conditioned Gradient (DCG) loss. This process encourages the model's gradients to align with the gradients of the actual data distribution, effectively making the surrogate model "distribution-aware."

2. The Attack Phase

Once the surrogate is fine-tuned, it is used to generate adversarial examples through two strategies:

  • Untargeted Attacks: The goal is to push the image away from its original distribution. By moving an image into an "out-of-distribution" (OOD) state, the attack exploits the fact that most models naturally struggle to classify OOD data correctly, leading to high transferability.
  • Targeted Attacks: The goal is to "drag" the image into the distribution of a specific target class. This effectively "imprints" subtle semantic features of the target class onto the original image, making it appear as the target class to various models.
Visual comparison of PGD and DRA targeted attacks showing semantic imprinting.

Key Results and Performance

The researchers evaluated DRA using standard benchmarks like ImageNet and ImageNet-V2, as well as real-world tests against the Google Cloud Vision API.

  • State-of-the-Art Transferability: DRA outperformed previous methods across the board. In targeted scenarios, it improved success rates by as much as 40% compared to the previous best methods.
  • Cross-Architecture Success: DRA demonstrates exceptional performance when transferring between different architectures. For example, when attacking a Vision Transformer (ViT) using a ResNet-50 surrogate, DRA achieved a 58.46% success rate, a massive leap from the 3.82% achieved by standard Projected Gradient Descent (PGD).
Success rates of DRA compared to other state-of-the-art methods across different architectures.
  • Real-World Impact: In tests against the Google Cloud Vision API, DRA achieved an 86.6% untargeted success rate and a 48.6% targeted success rate, significantly higher than previous iterative methods, proving its effectiveness against commercial black-box systems.

Conclusion

By introducing a distribution perspective, this research provides a new understanding of why adversarial attacks transfer. The success of DRA suggests that transferability is not merely a byproduct of model architecture but is deeply tied to the underlying data distribution. While the fine-tuning process adds computational overhead, the significant gains in attack success rates highlight the importance of considering data manifolds in both adversarial attack and defense research.

Summary updated

BibTeX
@article{zhu2022towards,
  author = {Yao Zhu and Yuefeng Chen and Xiaodan Li and Kejiang Chen and Yuan He and Xiang Tian and Bolun Zheng and Yaowu Chen and Qingming Huang},
  title = {{Towards Understanding and Boosting Adversarial Transferability from a Distribution Perspective}},
  journal = {IEEE Trans. Image Process.},
  year = {2022},
  doi = {10.1109/tip.2022.3211736},
}
Figure