Identifying Adversarially Attackable and Robust Samples

Vyas Raina, Mark GalesarXiv 2023

TL;DR

This paper shifts the focus of adversarial research from the attack to the data, introducing the concept of "sample attackability"—the minimum perturbation required to flip a model's prediction. The authors develop a deep-learning-based detector that successfully identifies vulnerable and robust samples across unseen architectures and attack methods, enabling more efficient "Active Adversarial Training."

What Problem Does This Paper Address?

Deep learning models are notoriously fragile when faced with adversarial attacks—tiny, human-imperceptible changes to an image that cause the model to misclassify it. While we have plenty of ways to generate these attacks and some ways to defend against them, we don't fully understand why some images are "sitting ducks" while others are naturally resilient.

Most existing research treats all data points as equally likely targets. However, in practice, some samples might be very close to a decision boundary (highly attackable), while others are buried deep within a class's territory (robust). The authors argue that if we can identify these samples beforehand, we can better understand adversarial theory and make defense techniques, like adversarial training, significantly more efficient by focusing on the samples that actually matter.

Methods

The researchers define sample attackability ($\delta_n^{(k)}$) as the smallest possible perturbation needed to change a model's prediction for a specific sample. They categorize samples into two groups:

  • Attackable: Samples requiring a perturbation smaller than a strict threshold ($\epsilon_a$).
  • Robust: Samples requiring a perturbation larger than a generous threshold ($\epsilon_r$).

To identify these without actually running expensive attacks, they propose a Deep Attackability Detector.

  1. Training: They take several "seen" models (VGG-19, ResNeXt, DenseNet) and extract their internal feature encodings for a dataset.
  2. Detection: They train a simple, single-layer fully connected network (FCN) to map these encodings to a probability of the sample being attackable or robust.
  3. Generalization: To predict for an "unseen" target model (like Wide-ResNet), they average the predictions from the detectors of the "seen" models.

Crucially, they test this detector in an unmatched setting: the detector is trained on simple FGSM attacks but evaluated on more complex PGD attacks, testing its ability to capture fundamental data properties rather than just specific attack artifacts.

Datasets

The study uses two standard image classification benchmarks:

  • CIFAR-10: 60,000 images across 10 classes.
  • CIFAR-100: 60,000 images across 100 classes (a more challenging task). The models used for evaluation include VGG-19, ResNeXt-29, DenseNet-121, and Wide-ResNet-28.

Key Insights and Ideas

  • Uncertainty is not a proxy for vulnerability: A common assumption is that if a model is "uncertain" (e.g., high entropy in its output), the sample must be near a decision boundary and thus easy to attack. The authors find that their deep detector significantly outperforms uncertainty-based measures. This suggests that "adversarial distance" to a boundary is not the same thing as "model uncertainty."
  • Attackability is Universal: The paper demonstrates that if a sample is easy to attack on a VGG model, it’s likely easy to attack on a ResNet model too. This "universality" suggests that attackability is often an intrinsic property of the data point relative to the task, rather than a quirk of a specific model's weights.
  • Efficiency Gains: By identifying the most "attackable" samples, researchers can perform Active Adversarial Training. Instead of generating adversarial examples for every single image in a dataset (which is computationally expensive), they only attack the most vulnerable ones.

Key Results

  • Superior Detection: The deep detector consistently achieved higher F1 scores than confidence-based baselines across various evaluation settings (see Tables 2 and 3 in the paper).
  • Robustness to Attack Type: Even when the detector was trained on simple FGSM perturbations, it maintained high performance when identifying samples vulnerable to the more powerful PGD attack. The Spearman rank correlation between different attack methods was found to be very high (>0.84), confirming that attackability rankings are stable across different attack algorithms.
  • Precision-Recall Dominance: As shown in Figure 2, the deep detector (blue line) dominates uncertainty-based methods (red/green lines) across a wide range of operating points, particularly when identifying robust samples.
P-R curves for detecting universal robust/attackable samples.
  • Active Training Success: In Figure 3, the authors show that by using their detector to select samples for adversarial training, they could achieve competitive robustness levels using only 40% of the data, significantly reducing training time.
Active Adversarial Training results showing fooling rate vs. percentage of data used.

Limitations and Future Work

  • Proxy Measures: The study relies on $l_p$ norms (like $l_\infty$) as a proxy for human imperceptibility. As the authors note, these mathematical constraints don't always perfectly align with how humans actually perceive changes in an image.
  • Encoding Access: The current detector requires access to the internal encodings of "seen" models. While these are common architectures, a truly "black-box" detector that requires no model information remains a challenge.
  • Future Directions: The authors suggest exploring how these insights can be used to design inherently more robust systems from the ground up, rather than just identifying vulnerabilities in existing ones.

Summary updated

BibTeX
@misc{raina2023identifying,
  author = {Vyas Raina and Mark Gales},
  title = {{Identifying Adversarially Attackable and Robust Samples}},
  year = {2023},
  eprint = {2301.12896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.12896},
}
Figure