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

Constructing Unrestricted Adversarial Examples with Generative Models

Yang Song, Rui Shu, Nate Kushman, Stefano Ermon

Introduction

Traditional adversarial attacks rely on tiny, imperceptible tweaks to existing images. This paper introduces "unrestricted" adversarial examples—images synthesized entirely from scratch using generative models (GANs). These generated images look perfectly legitimate to human observers but completely baffle state-of-the-art classifiers. By moving beyond small-norm perturbations, the authors demonstrate that current "certified" defenses may provide a false sense of security against real-world threats.

The Problem: Beyond Pixel-Level Tweaks

For years, the field of adversarial machine learning has been locked in an arms race centered on a very specific threat model: the norm-bounded perturbation. In this scenario, an attacker takes a real image and adds a tiny amount of noise (constrained by a mathematical limit like an $l_\infty$ or $l_2$ norm) to flip the model's prediction. Consequently, the strongest modern defenses—like adversarial training and theoretically certified defenses—are specifically engineered to resist these tiny pixel-level shifts.

The authors argue that this focus is too narrow. In the real world, an attacker doesn't have to start with an existing image and change it slightly. Instead, they can manufacture a completely new object (like a stop sign with a non-standard font or size) that a human recognizes instantly but a machine misclassifies. This paper tackles the challenge of generating these "unrestricted" examples that are semantically correct to humans but adversarial to machines.

Methods: Generating Adversarial Examples

The core innovation of this research is using an Auxiliary Classifier Generative Adversarial Network (AC-GAN) as the engine for the attack.

  1. Modeling the Manifold: First, the researchers train an AC-GAN to learn the distribution of "legitimate" images for a given dataset. Because it's an AC-GAN, the generator can be conditioned to produce images of a specific class (e.g., "generate a 7").
  2. Searching the Latent Space: Instead of perturbing pixels directly, the authors perform an optimization search within the GAN’s latent space ($z$). They look for a specific noise vector that, when fed into the generator, produces an image that the target classifier misclassifies, while the GAN’s internal auxiliary classifier still identifies it as the original class (maintaining semantic consistency).
  3. Noise Augmentation: They also propose a "noise-augmented" version where a small, trainable noise layer is added to the GAN’s output, further increasing the attack's flexibility.
  4. Human-in-the-loop Validation: Since "unrestricted" means there is no mathematical distance to measure "correctness," the authors used Amazon Mechanical Turk to have humans label the generated images. An attack is only considered successful if humans agree it belongs to the intended source class but the machine fails.
Comparison of traditional noisy adversarial examples (top) with clean, GAN-generated unrestricted examples (bottom).

Key Insights and Ideas

  • The "Semantic Gap": The paper highlights that robustness isn't just about pixel distance; it's about the gap between human perception and machine logic. A "7" that looks like a "7" to a human should be a "7" to a machine, regardless of how it was synthesized.
  • Certified Defenses are Brittle: The most striking insight is that "certified" defenses—which provide mathematical proofs of robustness against small perturbations—fail miserably against these attacks. On the MNIST dataset, a defense "proven" to be robust against small shifts was fooled by unrestricted examples with an 88.8% success rate.
  • Generative Realism: By optimizing in the latent space of a GAN, the attack naturally stays on the "manifold" of natural-looking images. This makes the adversarial examples much harder for humans to spot as "fake" compared to traditional attacks that use high-magnitude noise.

Key Results

The researchers evaluated their method on three standard benchmarks: MNIST (handwritten digits), SVHN (Street View House Numbers), and CelebA (large-scale face attributes).

  • High Success Rates: The unrestricted attacks achieved over 84% success rates across all three datasets.
  • Bypassing Strong Defenses: The attacks successfully bypassed robust adversarial training methods (such as those from the Madry Lab) and certified defenses.
  • Transferability: The authors found that adversarial examples generated to fool one specific model often "transferred" to fool other, different architectures in a black-box setting, especially when using the noise-augmented attack.
  • Human Preference: In A/B testing, humans found the GAN-generated adversarial images significantly more realistic and "legitimate" than traditional perturbation-based images with similar success rates.
Grids of generated MNIST digits successfully bypassing targeted defenses. Red boxes indicate images that fooled the classifier.

Limitations and Future Work

The attack's quality is strictly limited by the quality of the underlying generative model. If the GAN produces blurry images or artifacts, the attack becomes easier for a human to detect. Furthermore, while successful on digits and faces, training high-fidelity conditional GANs for massive, diverse datasets like ImageNet remains a significant challenge.

Ultimately, the authors acknowledge that defending against unrestricted attacks is much harder than defending against norm-bounded ones. They suggest that future research must move toward models that can handle covariate shift—the ability to generalize to data that looks different from the training set but shares the same underlying semantic meaning.

Summary updated

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