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

Generative Adversarial Examples

Yang Song, Rui Shu, Nate Kushman, Stefano Ermon

Abstract

Adversarial examples are typically constructed by perturbing an existing data point within a small matrix norm, and current defense methods are focused on guarding against this type of attack. In this paper, we propose unrestricted adversarial examples, a new threat model where the attackers are not restricted to small norm-bounded perturbations. Different from perturbation-based attacks, we propose to synthesize unrestricted adversarial examples entirely from scratch using conditional generative models. Specifically, we first train an Auxiliary Classifier Generative Adversarial Network (AC-GAN) to model the class-conditional distribution over data samples. Then, conditioned on a desired class, we search over the AC-GAN latent space to find images that are likely under the generative model and are misclassified by a target classifier. We demonstrate through human evaluation that unrestricted adversarial examples generated this way are legitimate and belong to the desired class. Our empirical results on the MNIST, SVHN, and CelebA datasets show that unrestricted adversarial examples can bypass strong adversarial training and certified defense methods designed for traditional adversarial attacks.

Introduction: The Narrow View of Robustness

For years, the "arms race" in adversarial machine learning has focused on a very specific threat model: the small-norm perturbation. In this scenario, an attacker takes a clean image and adds a tiny amount of noise—mathematically constrained within a small $\epsilon$-ball—to fool a classifier. Because the noise is imperceptible, the ground-truth label remains the same for a human, but the model trips up.

However, current defense methods, including "certified" defenses that provide mathematical guarantees of robustness, are specifically engineered to guard against these tiny tweaks. This represents a narrow view of security. A real-world attacker is not bound by a small $\epsilon$-ball; they could replace a "Stop" sign with a completely different-looking "Stop" sign that still looks like a "Stop" sign to a human but is specifically manufactured to be adversarial. This research introduces the Unrestricted Adversarial Example—any image that a human classifies correctly but a model classifies incorrectly, regardless of its distance from a "clean" original.

Methodology: Synthesis via AC-GAN

The proposed method synthesizes these examples from scratch using a conditional generative model, specifically an Auxiliary Classifier GAN (AC-GAN). The process involves three main stages:

  1. Modeling the Manifold: An AC-GAN is trained to learn the distribution of legitimate images for specific classes (e.g., digits 0-9 or face attributes).
  2. Latent Space Search: Instead of perturbing pixels, the attack searches the GAN's latent space ($z$). It seeks a point that, when passed through the generator, produces an image that fools the target classifier while remaining highly likely to belong to the intended source class according to the GAN's internal discriminator.
  3. Noise Augmentation: To further increase success rates, a small amount of trainable noise can be added to the GAN's output.
Examples of untargeted adversarial attacks generated against different models. Red boxes indicate successful misclassifications.

Crucially, because there is no "original" image for comparison, human verification via Amazon Mechanical Turk (MTurk) is used to ensure the generated images are legitimate. If a human identifies a generated image as a "3" while the model classifies it as an "8," the attack is considered a success.

Experimental Results

The study evaluates the attack on three standard benchmarks: MNIST, SVHN, and CelebA. The results highlight a significant vulnerability in current state-of-the-art defenses.

  • Bypassing Certified Defenses: On MNIST, the attack achieved an 88.8% success rate against the Kolter & Wang certified defense, which was previously considered highly robust within its $\epsilon$-ball.
  • Outperforming Adversarial Training: Against the "Madry Network" (a gold standard for adversarial training), traditional PGD attacks only succeeded ~10% of the time. In contrast, the unrestricted attack achieved an 85.2% success rate.
  • Targeted Attack Success: The method is also highly effective in targeted scenarios, where the attacker aims to force the model into a specific incorrect classification.
Heatmap showing the success rate of targeted attacks between different source and target digit classes on MNIST.

Discussion: The Fragility of Local Robustness

The most striking insight is the fragility of "certified" robustness. These mathematical guarantees only apply within a tiny radius. By using a GAN to find images that are "natural" but exist outside the training data points' immediate vicinity, the attack steps outside the "safe zone" defined by current defenses.

This failure suggests that models are susceptible to covariate shift. They haven't learned the true semantic essence of a class; instead, they've learned a specific distribution that is easily bypassed by high-quality generative models. Moving from editing images to synthesizing them allows attackers to exploit a model's global misunderstanding of a class rather than just local sensitivity to noise.

Conclusion and Future Directions

While highly effective, the attack's success is currently tethered to the quality of the generative model. Scaling this to more complex datasets like ImageNet remains a challenge due to the difficulty of training high-fidelity conditional GANs for thousands of classes.

To defend against these unrestricted attacks, the research suggests moving away from local smoothing and toward models that can generalize to different input distributions or reliably detect when a sample has drifted too far from the training manifold. Robustness must be redefined to encompass the entire semantic space, not just a small neighborhood around known data points.

Summary updated

BibTeX
@inproceedings{song2018generative,
  author = {Yang Song and Rui Shu and Nate Kushman and Stefano Ermon},
  title = {{Generative Adversarial Examples}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=gNjyeQfThB2},
}
Figure