NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transferable Universal Adversarial Perturbations Using Generative Models

Atiye Sadat Hashemi, Andreas Bär, Saeed Mozaffari, Tim FingscheidtarXiv 2020

Introduction

Deep Neural Networks (DNNs) have demonstrated remarkable performance in computer vision, yet they remain vulnerable to adversarial attacks. While most attacks are image-specific, Universal Adversarial Perturbations (UAPs) represent a more significant threat: a single noise pattern that, when added to any image, causes a model to misclassify it. The primary challenge in deploying UAPs is transferability—the ability of a perturbation generated for one model (the source) to successfully fool a different, unseen model (the target) in a black-box setting.

This paper introduces a generative approach to creating highly transferable UAPs. By identifying and targeting the common architectural features shared across diverse neural networks, the authors develop a method that significantly outperforms previous state-of-the-art attacks in both white-box and black-box scenarios.

Methodology: Generative UAP Framework

Instead of traditional iterative optimization techniques, the authors employ a Generative Model ($\mathcal{G}$), specifically a ResNet-based generator, to produce perturbations. The generator learns to map random noise $z$ to a universal perturbation $r$. This perturbation is then added to training images $x$ to create adversarial examples $x^{adv} = x + r$.

Overview of the training and test phases for the proposed generative UAP framework.

The core of the training process lies in a novel composite loss function designed to maximize both the fooling rate and transferability:

  1. Negative Cross-Entropy Loss ($J_{CE}$): This standard adversarial loss pushes the source model $\mathcal{S}$ away from the correct class prediction (non-targeted) or toward a specific incorrect target class.
  2. First-Layer Fast Feature Fool (FFF) Loss ($J_{FFF}^1$): This is the critical innovation. The authors propose that the earliest layers of DNNs act as a "universal interface," extracting similar low-level features like edges and textures regardless of the overall architecture. By maximizing adversarial energy in the first activation layer, the generator creates perturbations that disrupt these fundamental features, which are likely present in the target model as well.

The "Common Ground" Hypothesis

To validate the focus on the first layer, the authors analyzed the internal feature maps of various architectures, including VGG-16, VGG-19, ResNet-18, and ResNet-152. Using the Structural Similarity (SSIM) index, they observed that while deeper layers diverge significantly in their representations, the first activation layers remain remarkably consistent across different model families.

Visualization of feature maps across different layers ($ℓ=1$ to $6$) for various architectures, demonstrating high similarity in the first layer.

As shown in the figure above, the feature maps for $\ell=1$ across VGG and ResNet variants capture nearly identical structural information. This visual evidence supports the hypothesis that targeting the first layer provides a "common ground" for cross-architecture transferability.

Experimental Results

The method was evaluated using the ImageNet dataset, training the generator on a small subset of 10,000 images and validating on the full 50,000-image validation set.

White-Box Performance

When tested against the source models used for training, the proposed method achieved an average fooling rate of 93.36%, a substantial improvement over the previous state-of-the-art of 82.16%.

Black-Box Transferability

The true strength of the approach is evident in black-box attacks. UAPs generated using a ResNet-152 source model achieved fooling rates on VGG-16 and VGG-19 that were approximately 12% higher than existing cutting-edge methods. This confirms that disrupting the "universal interface" of the first layer is a highly effective strategy for cross-model attacks.

Targeted Attacks

The framework also excels in targeted scenarios, where the goal is to force the model to predict a specific label (e.g., "soccer ball"). The authors reported a top-1 target accuracy of 66.57% across 10 random classes, significantly outperforming the 52.0% achieved by the previous Generative Adversarial Perturbation (GAP) method.

Conclusion

By leveraging generative models and a novel loss function targeting the shared feature representations of early neural network layers, this research provides a powerful tool for generating transferable UAPs. The findings highlight a fundamental vulnerability in current DNN architectures: their reliance on a common set of low-level features makes them susceptible to universal attacks that can generalize across entirely different model families. Future work will explore extending this first-layer energy approach to other computer vision tasks such as object detection and semantic segmentation.

Summary updated

BibTeX
@misc{hashemi2020transferable,
  author = {Atiye Sadat Hashemi and Andreas Bär and Saeed Mozaffari and Tim Fingscheidt},
  title = {{Transferable Universal Adversarial Perturbations Using Generative Models}},
  year = {2020},
  eprint = {2010.14919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.14919},
}
Figure