The Easy Path to Robustness: Coreset Selection using Sample Hardness

Pranav Ramesh, Arjun Roy, Deepak Ravikumar, Kaushik Roy, Gopalakrishnan SrinivasanarXiv 2025 · OpenReview

Abstract

Designing adversarially robust models from a data-centric perspective requires understanding which input samples are most crucial for learning resilient features. While coreset selection provides a mechanism for efficient training on data subsets, current algorithms are designed for clean accuracy and fall short in preserving robustness. To address this, we propose a framework linking a sample's adversarial vulnerability to its hardness, which we quantify using the average input gradient norm (AIGN) over training. We demonstrate that easy samples (with low AIGN) are less vulnerable and occupy regions further from the decision boundary. Leveraging this insight, we present EasyCore, a coreset selection algorithm that retains only the samples with low AIGN for training. We empirically show that models trained on EasyCore-selected data achieve significantly higher adversarial accuracy than those trained with competing coreset methods under both standard and adversarial training. As AIGN is a model-agnostic dataset property, EasyCore is an efficient and widely applicable data-centric method for improving adversarial robustness. We show that EasyCore achieves up to 7% and 5% improvement in adversarial accuracy under standard training and TRADES adversarial training, respectively, compared to existing coreset methods.

Introduction

Deep Neural Networks (DNNs) are notoriously susceptible to adversarial attacks—small, carefully crafted perturbations that lead to incorrect classifications. While adversarial training (AT) is the most effective defense, its computational cost is prohibitive, often requiring an order of magnitude more time than standard training. Coreset selection, the process of identifying a small, representative subset of data for training, offers a potential solution to this efficiency bottleneck.

However, traditional coreset methods are optimized for "clean" accuracy. They typically prioritize "hard" samples—outliers or edge cases—to help the model learn complex decision boundaries. This paper argues that for adversarial robustness, this approach is counterproductive. Complex, highly curved decision boundaries are more vulnerable to exploitation. Instead, the authors propose prioritizing "easy" samples to foster smoother, more resilient boundaries.

Quantifying Hardness with AIGN

To implement this "easy-first" strategy, the researchers introduce the Average Input Gradient Norm (AIGN). This metric quantifies sample hardness by measuring the magnitude of the loss gradient with respect to the input, averaged over several training epochs.

AIGN distribution and its relationship to sample hardness.

As shown in Figure 3, AIGN provides a clear distinction between "easy" and "hard" samples. Easy samples (low AIGN) are typically prototypical of their class and are learned quickly, exhibiting stable gradient norms throughout training. In contrast, hard samples (high AIGN) often feature noisy backgrounds, atypical poses, or mislabeling, leading to erratic and high gradient norms.

The EasyCore Algorithm

The proposed EasyCore algorithm leverages AIGN for static coreset selection. Unlike dynamic methods that re-evaluate the training subset periodically, EasyCore computes AIGN rankings once. The algorithm then selects the samples with the lowest AIGN values to form the coreset. This static nature makes EasyCore significantly more efficient than competing dynamic selection methods.

The core hypothesis is that training on these "easy" samples encourages the model to develop a smoother decision boundary. A flatter boundary requires an attacker to apply a larger perturbation to move an input across the classification threshold, thereby increasing natural adversarial resistance.

Theoretical and Empirical Insights

Smoothness and Feature Space

Using UMAP visualizations, the authors demonstrate that easy samples tend to cluster near the center of their class in feature space. Hard samples, conversely, reside on the fringes where classes intermix. By focusing on the "core" easy samples, the model avoids learning the "wiggly" boundaries necessitated by outliers, resulting in a more robust global structure.

Model Agnosticism

A significant advantage of EasyCore is that AIGN rankings are remarkably consistent across different neural architectures. This suggests that "hardness" is a property of the data itself rather than a specific model's interpretation.

Consistency of AIGN across different architectures.

As illustrated in Figure 6, the AIGN distributions for VGG-16 and ResNet-18 are nearly identical. This allows for a "proxy" approach: one can compute AIGN using a computationally cheap model and use the resulting coreset to train a much larger, more complex architecture.

Experimental Evaluation

The authors evaluated EasyCore on CIFAR-10, CIFAR-100, and ImageNet datasets, comparing it against established methods like Craig, kCenterGreedy, and ModerateDS.

  • Standard Training: On CIFAR-100 with a 60% coreset, EasyCore improved adversarial accuracy by 7% over competing methods while maintaining comparable clean accuracy.
  • Adversarial Training: When integrated with the TRADES defense, EasyCore provided a 5% boost in adversarial accuracy on CIFAR-100 compared to uniform sampling.
  • Efficiency: EasyCore was found to be roughly 2x faster than Adversarial Coreset Selection (ACS) at lower coreset fractions, primarily due to its static selection process.

Conclusion and Limitations

EasyCore demonstrates that a data-centric approach prioritizing "easy" samples can significantly enhance adversarial robustness without the extreme overhead of traditional adversarial training. While highly effective, the authors note a potential trade-off: extreme pruning of hard samples might lead to a slight decrease in clean accuracy on complex datasets where edge cases are necessary for fine-grained discrimination. Future work includes extending this framework to non-vision domains and exploring AIGN as a tool for detecting poisoned data.

Summary updated

BibTeX
@misc{ramesh2025easy,
  author = {Pranav Ramesh and Arjun Roy and Deepak Ravikumar and Kaushik Roy and Gopalakrishnan Srinivasan},
  title = {{The Easy Path to Robustness: Coreset Selection using Sample Hardness}},
  year = {2025},
  eprint = {2510.11018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.11018},
}
Figure