NAG: Network for Adversary Generation

Konda Reddy Mopuri, Utkarsh Ojha, Utsav Garg, R. Venkatesh Babu

Abstract

Adversarial perturbations can pose a serious threat for deploying machine learning systems. Recent works have shown existence of image-agnostic perturbations that can fool classifiers over most natural images. Existing methods present optimization approaches that solve for a fooling objective with an imperceptibility constraint to craft the perturbations. However, for a given classifier, they generate one perturbation at a time, which is a single instance from the manifold of adversarial perturbations. Also, in order to build robust models, it is essential to explore the manifold of adversarial perturbations. In this paper, we propose for the first time, a generative approach to model the distribution of adversarial perturbations. The architecture of the proposed model is inspired from that of GANs and is trained using fooling and diversity objectives. Our trained generator network attempts to capture the distribution of adversarial perturbations for a given classifier and readily generates a wide variety of such perturbations. Our experimental evaluation demonstrates that perturbations crafted by our model (i) achieve state-of-the-art fooling rates, (ii) exhibit wide variety and (iii) deliver excellent cross model generalizability. Our work can be deemed as an important step in the process of inferring about the complex manifolds of adversarial perturbations.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile when faced with adversarial perturbations—tiny, structured changes to an image that cause a model to misclassify it. While many attacks are image-specific, researchers recently discovered Universal Adversarial Perturbations (UAPs): a single noise pattern that, when added to any image, causes a classifier to fail.

The gap identified in this work is that existing methods for finding UAPs rely on optimization techniques that produce just one perturbation at a time. These "one-off" solutions provide limited insight into the broader manifold of possible perturbations. To build truly robust models, it is essential to understand the full variety of ways a model can be fooled. NAG shifts the focus from finding a single instance to modeling the entire distribution of adversarial perturbations.

Methodology

The authors propose a GAN-like framework where a generator is trained against a frozen target classifier to learn the distribution of effective noise patterns.

NAG Training Architecture
  1. The Generator ($G$): A deconvolutional network that takes a random latent vector ($z$) and transforms it into a perturbation ($\delta$).
  2. The Target Classifier ($f$): Instead of a standard GAN discriminator, a pre-trained, frozen target classifier is used. The generator’s goal is to create noise that makes this classifier fail.
  3. The Loss Functions:
    • Fooling Objective ($L_f$): Encourages the generator to produce noise that reduces the classifier's confidence in the correct label.
  4. Diversity Objective ($L_d$): Prevents the generator from "collapsing" by forcing the feature embeddings of different generated perturbations to be as far apart as possible.
  5. Constraints: The output is scaled by a factor ($\xi$) to ensure the noise remains "quasi-imperceptible" to the human eye, typically restricted within an $\ell_\infty$ norm.

Experimental Setup

Experiments were conducted using the ILSVRC-2014 (ImageNet) dataset. The training set consisted of 10,000 images (10 per category), and testing was performed on 50,000 images from the validation set. The target models included various architectures such as VGG-F, CaffeNet, GoogLeNet, VGG-16, VGG-19, ResNet-50, and ResNet-152.

Results and Key Insights

NAG demonstrates that treating adversary creation as a generative task allows for sampling infinite perturbations instantly once the model is trained, rather than re-running slow optimization loops.

Universal Adversarial Perturbations for different models
  • Superior Fooling Rates: NAG outperformed the previous state-of-the-art (UAP) by an average of 8% across various architectures.
  • Cross-Model Generalizability: Perturbations generated to fool one model (e.g., VGG-19) were often highly effective at fooling others (e.g., ResNet-152), despite significant architectural differences.
  • Ensemble Performance: A generator trained against an ensemble of four models achieved a remarkable ~80% mean fooling rate across seven different architectures, proving that universal vulnerabilities are shared across different design philosophies.
  • Latent Space Smoothness: The authors show that the vulnerability space is large and contiguous. Interpolating between two latent vectors ($z_1$ and $z_2$) creates a "morphing" effect between two different perturbations, both of which remain highly effective.

Conclusion

NAG represents a significant step in inferring the complex manifolds of adversarial perturbations. By modeling the distribution rather than finding single instances, it provides a powerful tool for both attacking and potentially defending neural networks. While the generated perturbations exhibit visible patterns when viewed in isolation, their effectiveness and speed of generation make them a potent threat to current DNNs. Future work may focus on using this diverse set of perturbations for robust adversarial training.

Summary updated

BibTeX
@inproceedings{mopuri2018nag,
  author = {Konda Reddy Mopuri and Utkarsh Ojha and Utsav Garg and R. Venkatesh Babu},
  title = {{NAG: Network for Adversary Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=HJNn56WuWS},
}
Figure