Towards Understanding Adversarial Examples Systematically: Exploring Data Size, Task and Model Factors

Ke Sun, Zhanxing Zhu, Zhouchen LinarXiv 2019

Introduction

Deep neural networks are notoriously vulnerable to adversarial examples—tiny, imperceptible perturbations that cause a model to misclassify an input with high confidence. While various hypotheses like "linearity" or "boundary tilting" have been proposed, a unified understanding remains elusive. This research provides a systematic empirical study of adversarial examples by examining three primary levers: data size, task complexity, and model architecture. A central contribution is the identification of a "robustness trap," where increasing training data initially degrades robustness before eventually improving it in the large-data regime.

Methodology

The study moves beyond theoretical proofs to conduct a massive empirical sweep across four benchmark datasets: MNIST, Fashion-MNIST, SVHN, and CIFAR-10. Key methodological components include:

  • Data Augmentation via GANs: To simulate a "large data" regime beyond standard dataset limits, the authors utilized an Auxiliary Classifier GAN (ACGAN) to generate synthetic training samples.
  • Success Defense Rate (SDR): Robustness is measured using SDR, defined as the classification accuracy on adversarial examples specifically for images that the model originally classified correctly.
  • Variable Control: The researchers systematically varied image resolution (input dimension) and the number of categories to isolate the effects of task complexity.
  • Standard Training Focus: Unlike studies focusing on adversarial training, this work examines the behavior of standard training under varying conditions.

The Robustness Trap and the Turning Point

The most striking insight is the "Robustness Trap." In limited data regimes, adding more training data improves standard accuracy but actually decreases robustness. The model utilizes the additional data to construct a more complex and delicate decision boundary that is more susceptible to adversarial exploitation.

Conceptual relationship between standard and robust generalization as data size increases.

However, once the dataset size reaches a "turning point," the trend reverses. With sufficient data, the decision boundary begins to align more closely with the true population distribution. In this regime, robustness and accuracy finally begin to improve together. This suggests that the perceived trade-off between accuracy and robustness may be an artifact of insufficient data.

Empirical Results

The empirical findings confirm the existence of a U-shaped robustness curve across multiple datasets.

Success Defense Rate (SDR) across different datasets showing the U-shaped robustness curve.

Key Findings:

  • U-Shaped Robustness Curve: On MNIST, Fashion-MNIST, and CIFAR-10, the SDR initially drops as training data increases (until approximately 100-1000 samples) before starting a steady climb.
  • Gradient Stability: As data size increases, loss gradients with respect to the input tend to vanish. This is not due to "obfuscated gradients" but rather the model becoming sufficiently stable and confident that finding adversarial directions becomes harder.
  • Task Complexity: Robustness generally decreases as the number of classes or input dimensions increases. More classes introduce more boundaries to defend, while higher dimensions provide more "space" for adversarial perturbations.
  • Model Capacity: Increasing model capacity (e.g., more filters in a CNN) improves resistance against gradient-based attacks like FGSM and PGD. However, it offers little protection against optimization-based attacks like the Carlini-Wagner (CW) attack, indicating that increased capacity alone does not guarantee true robustness.

Discussion and Limitations

The study highlights that Convolutional Neural Networks (CNNs) are inherently more robust than traditional machine learning methods like Linear SVMs, likely due to superior generalization capabilities. However, the quality of generative models remains a bottleneck; the authors noted a slight decline in robustness in very late stages of augmentation, attributed to "imperfect" synthetic samples from the ACGAN.

Future research should focus on developing more precise generative models to help models escape the robustness trap more effectively. Additionally, the unique effectiveness of CW attacks against high-capacity models remains an open question for further investigation.

Summary updated

BibTeX
@misc{sun2019towards,
  author = {Ke Sun and Zhanxing Zhu and Zhouchen Lin},
  title = {{Towards Understanding Adversarial Examples Systematically: Exploring Data Size, Task and Model Factors}},
  year = {2019},
  eprint = {1902.11019},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.11019},
}
Figure