Efficient Adversarial Training With Data Pruning

Maximilian Kaufmann, Yiren Zhao, Ilia Shumailov, Robert Mullins, Nicolas PapernotarXiv 2022 · DOI

Introduction

Adversarial training (AT) remains the most effective defense against adversarial examples—carefully crafted perturbations that can cause neural networks to fail. However, AT is notoriously computationally expensive, often requiring up to 30 times more resources than standard training due to the need to generate adversarial examples for every data point in every epoch. This study explores data pruning as a mechanism to reduce this overhead, demonstrating that sub-sampling datasets can significantly accelerate training with minimal impact on model robustness.

Methodology

The researchers investigated three primary dimensions of data pruning within the RS+FGSM (Random Start Fast Gradient Sign Method) framework:

  1. Pruning Epoch ($e$): Identifying the optimal point in the training process to discard data. The study found that models distinguish between "hard" and "easy" examples early, making epoch 3 a common sweet spot for pruning.
  2. Pruning Proportion ($p$): Determining the fraction of the dataset to retain.
  3. Selection Strategy: Comparing Random pruning against Loss-based pruning, where data is discarded based on its contribution to the training loss.

Impact of Pruning Timing and Volume

The timing of data pruning is critical. As shown in the experimental results, the robustness of the model (measured by AutoAttack accuracy) varies depending on when the pruning occurs. For simpler datasets like MNIST, pruning early can sometimes lead to higher variance but potentially better peak performance, whereas CIFAR10 shows more stability across different pruning epochs.

Figure 3: AutoAttack accuracy vs. data pruning epoch (e) for MNIST and CIFAR10.

Key Results and Insights

The Efficiency-Robustness Trade-off

On CIFAR10, the researchers achieved a 3x reduction in training time by utilizing only 20% of the original data. While there is a natural trade-off between the amount of data pruned and final accuracy, the degradation is often non-linear. For instance, dropping 40% of CIFAR10 data resulted in only a 7-8% decrease in adversarial accuracy.

The "Less is More" Phenomenon in MNIST

One of the most surprising findings occurred with the MNIST dataset. Using a loss-based strategy to prune 60% of the data actually increased adversarial robustness by approximately 0.06% compared to the full-dataset baseline. This suggests that for certain data distributions, pruning acts as a form of distillation, removing "toxic" outliers that would otherwise force the model's decision boundary to accommodate fragile, non-robust features.

Figure 6: AutoAttack accuracy vs. data portion (p) for MNIST and CIFAR10.

The Importance of Low-Loss Data

A consistent finding across experiments was that low-loss points are essential. These points represent the core of the data distribution. Removing them leads to a catastrophic collapse in both standard and adversarial accuracy, whereas removing high-loss outliers can sometimes be beneficial.

Conclusion

Data pruning offers a predictable, linear path to scaling down the immense computational costs of adversarial training. While complex datasets like CIFAR10 exhibit a traditional utility-efficiency trade-off, simpler datasets like MNIST demonstrate that smart pruning can actually improve model quality. Future work will look toward applying these strategies to even larger benchmarks like ImageNet and testing them against more sophisticated adversarial attackers.

Summary updated

BibTeX
@misc{kaufmann2022efficient,
  author = {Maximilian Kaufmann and Yiren Zhao and Ilia Shumailov and Robert Mullins and Nicolas Papernot},
  title = {{Efficient Adversarial Training With Data Pruning}},
  year = {2022},
  eprint = {2207.00694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.00694},
}
Figure