Abstract
Adversarial examples are perturbed inputs which can cause a serious threat for machine learning models. Finding these perturbations is such a hard task that we can only use the iterative methods to traverse. For computational efficiency, recent works use adversarial generative networks to model the distribution of both the universal or image-dependent perturbations directly. However, these methods generate perturbations only rely on input images. In this work, we propose a more general-purpose framework which infers target-conditioned perturbations dependent on both input image and target label. Different from previous single-target attack models, our model can conduct target-conditioned attacks by learning the relations of attack target and the semantics in image. Using extensive experiments on the datasets of MNIST and CIFAR10, we show that our method achieves superior performance with single target attack models and obtains high fooling rates with small perturbation norms.
Introduction
Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial examples—images with tiny, human-imperceptible perturbations that cause models to misclassify them. Traditionally, finding these perturbations involves slow, iterative optimization methods like the Carlini-Wagner attack. To improve computational efficiency, researchers have developed "model-based" attacks that use a neural network generator to produce perturbations in a single forward pass.
However, existing model-based attacks are typically "single-target," requiring a separate generator for every possible target class. This lack of flexibility makes them computationally expensive to scale. GAP++ addresses this by introducing a generative framework that produces adversarial perturbations conditioned on both the input image and a specific target label. By using a single, lightweight model to conduct any targeted or non-targeted attack, GAP++ achieves higher fooling rates with significantly less training overhead.
Methodology
The GAP++ framework is based on conditional Generative Adversarial Networks (cGANs). The architecture is designed to learn the relationship between image semantics and desired attack targets through a unified generation process.
Target-Conditioned Architecture
The attacker network takes two primary inputs: the original image and a target label $y^*$. The target label is represented as a one-hot vector for targeted attacks or an all-zeros vector for non-targeted attacks. This vector is spatially expanded and concatenated with the image features during the generation process, allowing the network to learn target-specific features.
Unified Attack Strategy
For non-targeted attacks, the model is trained to push the prediction toward the "least-likely" class of the original image. This allows a single model to handle both targeted and non-targeted scenarios seamlessly, reducing the need for multiple specialized generators.
Norm Constraints
To ensure perturbations remain imperceptible, the generator includes a normalization layer to enforce $L_0, L_2,$ or $L_\infty$ norm bounds. The $L_0$ constraint is implemented by selecting the top-$k$ highest-magnitude pixels in the perturbation map. The model is trained using a combination of cross-entropy "fooling" loss and a distance loss to minimize the perturbation magnitude while maximizing attack success.
Experimental Results
The authors evaluated GAP++ on the MNIST and CIFAR10 datasets against various victim architectures, including LeNet, ResNet18, VGG11, and SENet18.
Performance and Efficiency
GAP++ consistently outperforms traditional methods and single-target generators. On MNIST with an $L_\infty$ bound of $\epsilon=0.2$, GAP++ achieved an average fooling rate of ~12.5% across five targets using a single model, whereas standard GAP models averaged between ~1.5% and 12.2% despite requiring multiple training runs. In non-targeted attacks on CIFAR10 (ResNet18), GAP++ achieved a fooling rate of ~82% at $\epsilon=0.1$, significantly outperforming the Fast Gradient Sign Method (FGSM), which achieved only ~16%.
Key Insights
- Multi-task Synergy: Training one model to handle all targets improves performance on individual targets. The model likely learns a more robust internal representation of the victim's decision boundaries by seeing a wider variety of attack objectives.
- Norm Constraint Analysis: $L_\infty$ constraints are easier for generators to learn than $L_2$ or $L_0$, allowing the model to more effectively learn the underlying patterns of successful perturbations.
- Speed: The model is highly efficient, converging in approximately 30 minutes on a standard dual-GPU setup (two Tesla P100s).
Conclusion and Future Work
While GAP++ is highly effective in white-box settings, its primary limitation is transferability to unknown models. Adversarial examples generated for one victim architecture do not always fool different models as effectively. Future research will focus on improving the black-box performance of these target-conditioned perturbations to enhance their real-world applicability.
Summary updated