CD-UAP: Class Discriminative Universal Adversarial Perturbation

Chaoning Zhang, Philipp Benz, Tooba Imtiaz, In So Kweon

Abstract

A single universal adversarial perturbation (UAP) can be added to all natural images to change most of their predicted class labels. It is of high practical relevance for an attacker to have flexible control over the targeted classes to be attacked, however, the existing UAP method attacks samples from all classes. In this work, we propose a new universal attack method to generate a single perturbation that fools a target network to misclassify only a chosen group of classes, while having limited influence on the remaining classes. Since the proposed attack generates a universal adversarial perturbation that is discriminative to targeted and non-targeted classes, we term it class discriminative universal adversarial perturbation (CD-UAP). We propose one simple yet effective algorithm framework, under which we design and compare various loss function configurations tailored for the class discriminative universal attack. The proposed approach has been evaluated with extensive experiments on various benchmark datasets. Additionally, our proposed approach achieves state-of-the-art performance for the original task of UAP attacking all classes, which demonstrates the effectiveness of our approach.

Introduction

Deep Neural Networks (DNNs) are notoriously vulnerable to Universal Adversarial Perturbations (UAPs)—single, static noise patterns that, when added to any natural image, cause a model to fail. Traditional UAP methods are "all-classes" attacks (AC-UAP), attempting to fool the network on every possible input. However, from an attacker's perspective, such broad attacks are often "too loud" and easily detected.

This research introduces Class Discriminative Universal Adversarial Perturbation (CD-UAP), a method designed to break a model for a specific subset of classes while maintaining high accuracy on others. This surgical precision allows for more covert attacks, as the system continues to function normally for non-targeted categories.

Methodology

The CD-UAP framework utilizes a simple but effective algorithmic approach to generate discriminative perturbations:

  1. Half-Half Batch Strategy: To ensure the noise learns to distinguish between classes, each training batch consists of a 50/50 split of images from "targeted" classes (to be fooled) and "non-targeted" classes (to be preserved).
  2. Loss Function Design: The researchers compared standard Cross-Entropy ($L^{CE}$) and Logit Loss ($L^L$) against a novel Bounded Logit Loss ($L^{BL}$). $L^{BL}$ prevents the loss from targeted classes from dominating the optimization, ensuring the model still prioritizes preserving non-targeted class accuracy.
  3. Optimization: Using the ADAM optimizer, the resulting noise is projected onto an $l_p$ ball to ensure the perturbation remains visually inconspicuous to human observers.
Overview of the CD-UAP framework: a single perturbation is added to images from both targeted and non-targeted classes to achieve selective misclassification.

Results and Key Insights

Experiments on CIFAR10, CIFAR100, and ImageNet demonstrate that CD-UAP achieves high discriminative power. For instance, on CIFAR10 using ResNet20, the method achieved an 81.33% accuracy drop on targeted classes with only a 4.67% drop on non-targeted ones.

Complexity vs. Control

A key finding is the relationship between the number of targeted classes and the attack's effectiveness. The "gap" between targeted failure and non-targeted success is widest when targeting very few or nearly all classes. The attack faces its greatest challenge—the "middle ground struggle"—when trying to target approximately half of the available classes, as shown in the accuracy drop trends below.

Average Accuracy Drop (AAD) for targeted ($AAD_t$) and non-targeted ($AAD_{nt}$) classes. The discriminative gap is most pronounced at the extremes of the class count.

State-of-the-Art Performance

Beyond selective attacks, the CD-UAP framework also sets a new benchmark for traditional AC-UAP tasks. When configured to attack all classes, it outperformed existing state-of-the-art methods like GAP on architectures including VGG16 and ResNet152.

Conclusion and Future Work

While CD-UAP provides unprecedented control over universal attacks, challenges remain in cross-architecture transferability. Perturbations designed for VGG networks (which appear as random pixels) do not easily transfer to ResNet architectures (which favor more structured noise). Future research will focus on improving this transferability and developing robust defenses against these increasingly surgical and stealthy adversarial threats.

Summary updated

BibTeX
@inproceedings{zhang2020cd,
  author = {Chaoning Zhang and Philipp Benz and Tooba Imtiaz and In So Kweon},
  title = {{CD-UAP: Class Discriminative Universal Adversarial Perturbation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6154},
}
Figure