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

Adversarial Coreset Selection for Efficient Robust Training

Hadi M. Dolatabadi, Sarah M. Erfani, Christopher Leckie

Abstract

Adversarial training (AT) is the primary defense against adversarial attacks but is computationally prohibitive due to the need for generating attacks for every data point in every epoch. This paper introduces Adversarial Coreset Selection, a method that identifies a small, weighted subset of "important" training samples to reduce training time by 2–3x with only a marginal impact on model robustness. By leveraging Danskin’s Theorem to approximate adversarial gradients, the method bridges the gap between coreset selection and robust training.

Introduction

Deep learning models are famously brittle; small, imperceptible "adversarial perturbations" to an input can flip a model's prediction. To fix this, researchers use Adversarial Training, where the model is trained on these perturbed examples.

The catch? AT is computationally expensive. While vanilla training just involves a forward and backward pass, AT requires an "inner loop" to solve a maximization problem (finding the worst-case perturbation) for every single image in the dataset, every single time the model weights are updated. This makes AT roughly 10 to 100 times slower than standard training. Existing "fast" AT methods often suffer from "catastrophic overfitting" or are limited to specific types of attacks. This research explores whether robustness can be achieved by training on only a fraction of the data.

Methodology

The authors bridge the gap between Coreset Selection (traditionally used for vanilla training) and Adversarial Training through a three-pronged approach.

Theoretical Foundation

They prove that the convergence of adversarial training on a subset depends on how well that subset’s weighted gradient approximates the gradient of the full dataset. This establishes gradient matching as a viable proxy for coreset selection in robust settings.

The "Adversarial" Twist

Standard coreset methods fail in AT because they do not account for the fact that the training data is constantly being perturbed. The authors utilize Danskin’s Theorem to show that the gradient of the adversarial loss can be approximated by first finding the adversarial example for a point and then taking the standard gradient at that perturbed location.

The adversarial selection step involves generating adversarial attacks before computing gradients for greedy selection.

The Algorithm

The training process follows a structured pipeline designed to balance speed and stability:

  1. Warm-start: Train on the full dataset for a few epochs to stabilize the model.
  2. Periodic Selection: Every $T$ epochs (e.g., every 20 epochs), generate adversarial examples for the entire dataset and compute their gradients.
  3. Greedy Selection: Use efficient greedy solvers (like CRAIG or GradMatch) to pick a subset (the coreset) that best represents the full gradient.
  4. Subset Training: Train only on this coreset for the next $T$ epochs.
The overall Adversarial Coreset Selection pipeline, alternating between full-dataset selection and subset training.

Experimental Evaluation

The researchers evaluated their approach across several standard computer vision benchmarks, including CIFAR-10, SVHN, and subsets of ImageNet (ImageNet-100 and ImageNet-12) to test scalability to higher-resolution images.

Key Results

The proposed method consistently delivers a 2–3x speedup in total training time across various architectures (ResNet-18, WideResNet-28-10, ResNet-50).

  • Robustness Preservation: On CIFAR-10 using the TRADES objective, the method reduced training time from ~344 minutes to ~179 minutes while only losing about 2.7% in robust accuracy.
  • Scalability: On ImageNet-100, they achieved a nearly 1000-minute reduction in training time with less than a 2% drop in robust accuracy.
  • Versatility: The method successfully sped up Perceptual Adversarial Training (PAT), a complex objective that is usually very slow to train, by a factor of two while maintaining high resistance to "unseen" attacks.

Discussion and Insights

  • Gradient Approximation is Key: The most important samples for robust training are those that, when weighted, best mimic the "pull" of the entire dataset on the model's parameters.
  • Orthogonality: Unlike previous speed-up methods that change how the adversarial examples are generated (like FGSM), this method changes which examples are used. This means it can be combined with any existing AT objective, including TRADES, $\ell_p$-PGD, and Perceptual Adversarial Training (PAT).
  • Efficiency via "Last-Layer" Gradients: To avoid the massive cost of computing gradients for millions of parameters during selection, the authors use the gradients of the penultimate layer as a proxy, which works surprisingly well in practice.

Conclusion and Future Work

While Adversarial Coreset Selection significantly reduces training time, a primary limitation is the selection bottleneck. The selection step still requires generating adversarial examples for the entire dataset. Although this only happens periodically, it remains a significant computational spike. Future work may explore even more efficient ways to approximate the full gradient or develop "streaming" coreset selection to eliminate the periodic full-dataset bottleneck entirely.

Summary updated

BibTeX
@article{dolatabadi2023adversarial,
  author = {Hadi M. Dolatabadi and Sarah M. Erfani and Christopher Leckie},
  title = {{Adversarial Coreset Selection for Efficient Robust Training}},
  journal = {Int. J. Comput. Vis.},
  year = {2023},
  doi = {10.1007/s11263-023-01860-4},
}
Figure