Adversarial Examples Are Not Bugs, They Are Features

Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, Aleksander Madry

Deep neural networks are notoriously vulnerable to adversarial examples: small, imperceptible perturbations to an input that cause a model to make a confident, incorrect prediction. Traditionally, researchers have viewed these vulnerabilities as aberrations—errors resulting from high-dimensional geometry or "bugs" in the training process.

In this paper, the authors challenge this prevailing view. They ask a provocative question: What if adversarial examples are actually the result of models performing exactly as intended?

The authors demonstrate that adversarial examples are not accidental statistical flukes. Instead, they are "non-robust features"—highly predictive patterns in the data that are useful for classification but remain invisible and brittle to humans. By disentangling these features, the paper shows that a model's vulnerability is a direct consequence of the data it is fed and the standard supervised learning paradigm, which prioritizes raw accuracy over human-centric notions of robustness.

Rethinking Features: Robust vs. Non-Robust

To understand why models fail, the authors propose a framework that categorizes dataset features into two distinct types:

  1. Robust Features: Patterns that are predictive of the true label even under adversarial perturbations. These generally align with human perception (e.g., the shape of a dog's ear).
  2. Non-robust Features: Patterns that are highly predictive in a standard setting but can be "flipped" by a small, imperceptible perturbation to point toward a different class.

Machine learning models are "feature-agnostic." A model does not care if a feature is a human-interpretable "tail" or a specific, high-frequency pixel pattern. If the pixel pattern is more predictive of the label, the model will use it. Robustness, therefore, is a human-imposed "prior" that we must explicitly bake into the training process.

The Feature Disentanglement Experiment

To prove that non-robust features exist and drive model behavior, the authors perform a clever "feature disentanglement" experiment. They manipulate standard datasets (like CIFAR-10 and Restricted-ImageNet) to isolate these two types of features.

Conceptual overview of the feature disentanglement framework.
  • Creating a Robustified Dataset ($\mathcal{D}_R$): They use a pre-trained robust model to map original images to a new set of images that only contain the features the robust model relies on.
  • Creating a Non-robust Dataset ($\mathcal{D}_{NR}$): They take an image of class A (e.g., a dog), add a small adversarial perturbation so a standard model thinks it is class B (e.g., a cat), and then relabel that image as class B. To a human, this looks like a mislabeled image of a dog. To a model, it contains highly predictive non-robust features of a cat.

Key Insights and Results

The results of training standard models on these manipulated datasets yield striking insights into the nature of adversarial vulnerability.

Examples of the constructed datasets and their resulting test accuracies.

1. Robustness Can Arise from Data Alone

When a standard, unmodified model is trained on the "robustified" dataset ($\mathcal{D}_R$), it achieves good robust accuracy on the original, unmodified test set. This occurs even though the model was never explicitly trained using adversarial defense methods. This proves that robustness can be a property of the dataset itself, not just the training algorithm.

2. Adversarial Examples Generalize

The most surprising finding comes from the non-robust dataset ($\mathcal{D}_{NR}$). Models trained on this dataset—which looks entirely mislabeled to human observers—achieved significant accuracy on the original, clean test set (e.g., 63.3% on CIFAR-10).

This demonstrates that adversarial perturbations are not just "noise." They are signals that generalize. When you train a model on "mislabeled" adversarial examples, it actually learns to classify the original unmodified test set correctly because it has learned the non-robust features inherent to the classes.

3. Explaining Transferability

This framework also neatly explains why an adversarial attack generated for one model often works on another entirely different model. Because both models are trained on the same data, they likely pick up on the exact same set of inherent non-robust features. The vulnerability is shared because the data is shared.

Limitations and Future Directions

While this paper fundamentally shifts how we understand adversarial examples, there are still open challenges:

  • Accuracy Gap: There remains a performance gap between models trained purely on robustified data and those trained with state-of-the-art adversarial training. The authors suggest this might be due to "distributional shift" during the dataset creation process.
  • The Interpretability Trade-off: The paper suggests that as long as models rely on non-robust features, we cannot expect their internal "explanations" to make sense to humans. True interpretability might require forcing the model to ignore these non-robust (but predictive) features.

Ultimately, this work points toward a need for "human priors" in training. Instead of just trying to "fix" models algorithmically, researchers should look at how to construct datasets or loss functions that explicitly discourage the use of non-robust features, aligning the model's geometry with human perception.

Summary updated

BibTeX
@inproceedings{ilyas2019adversarial,
  author = {Andrew Ilyas and Shibani Santurkar and Dimitris Tsipras and Logan Engstrom and Brandon Tran and Aleksander Madry},
  title = {{Adversarial Examples Are Not Bugs, They Are Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=r0GWLeoSrg9},
}
Figure