Abstract
With the rapidly increasing popularity of deep neural networks for image recognition tasks, a parallel interest in generating adversarial examples to attack the trained models has arisen. To date, these approaches have involved either directly computing gradients with respect to the image pixels or directly solving an optimization on the image pixels. We generalize this pursuit in a novel direction: can a separate network be trained to efficiently attack another fully trained network? We demonstrate that it is possible, and that the generated attacks yield startling insights into the weaknesses of the target network. We call such a network an Adversarial Transformation Network (ATN). ATNs transform any input into an adversarial attack on the target network, while being minimally perturbing to the original inputs and the target network's outputs. Further, we show that ATNs are capable of not only causing the target network to make an error, but can be constructed to explicitly control the type of misclassification made. We demonstrate ATNs on both simple MNIST-digit classifiers and state-of-the-art ImageNet classifiers deployed by Google, Inc.: Inception ResNet-v2.
Introduction
Traditional adversarial attacks, such as the Fast Gradient Sign Method (FGSM) or L-BFGS optimization, are typically "bespoke." For every new image intended to misclassify, a researcher must run a specific optimization process or calculate gradients relative to that unique input. This approach is computationally expensive and fails to capture the generalized "blind spots" of a target model.
This research introduces Adversarial Transformation Networks (ATNs), shifting the paradigm from per-sample optimization to a generative framework. By training a dedicated network to learn the weaknesses of a target classifier, any image can be instantly converted into an adversarial attack via a single forward pass.
Methodology
An ATN is a neural network $g$ that takes a clean image $x$ and outputs a modified image $x' = g(x)$ designed to fool a target classifier $f$. The training objective is governed by a joint loss function:
- Input Space Loss ($L_X$): Ensures the modified image $x'$ remains visually similar to the original $x$, typically using $L_2$ distance.
- Output Space Loss ($L_Y$): Forces the target classifier $f(x')$ to output a specific target label $t$.
Architectural Framework
The researchers explored two primary architectures for ATNs: the Perturbation ATN (P-ATN) and the Adversarial Autoencoding (AAE) style.
- P-ATN: A residual-style network that learns only the additive "noise" required to perturb the original image.
- AAE-ATN: An autoencoder-style network that reconstructs the entire image from a latent representation, embedding adversarial features during the reconstruction process.
A key innovation is the reranking function. Rather than simply maximizing the probability of the target class, the ATN is encouraged to preserve the relative rank-order of all other non-target classes. This "surgical" approach minimizes unnecessary distortions, making the resulting attacks more subtle.
Experimental Evaluation
The effectiveness of ATNs was evaluated on MNIST digit classification and the state-of-the-art Inception ResNet-v2 (IR2) model using ImageNet.
Key Results
- Success Rates: On ImageNet, AAE-style ATNs successfully generated targeted adversarial examples for 83% to 92% of images in a single pass.
- Speed: ATNs are significantly faster than iterative gradient methods. Generating an attack for an ImageNet-sized image requires as little as 0.16 seconds.
- Visual Fidelity: As seen in the MNIST results, the ATNs maintain the original digit's semantic shape while successfully flipping the classification to the target label.
Discussion and Insights
ATNs provide unique insights into the nature of adversarial perturbations. Unlike gradient-based methods that often add stochastic "salt-and-pepper" noise, AAE-ATNs produce semantic changes. For instance, to misclassify a "Space Shuttle" as a "Zebra," the ATN might darken specific lines to evoke stripes—changes that are semantically meaningful to the classifier but largely ignored by human observers.
Furthermore, the researchers noted that ATNs often exploit high-frequency areas (such as edges) where the target model's reconstruction error is naturally higher. While attacks trained against a single network may lack transferability, training an ATN against a small ensemble of networks significantly boosts its ability to fool unseen models.
Conclusion
Adversarial Transformation Networks demonstrate that adversarial attacks can be learned and generalized. While the current training process relies on white-box access to the target model's gradients, the speed and success rate of the resulting generative models pose a significant challenge for robust machine learning. Future work may involve using Generative Adversarial Networks (GANs) to improve visual indistinguishability or reinforcement learning to enable pure black-box training scenarios.
Summary updated