Class-Proportional Coreset Selection for Difficulty-Separable Data
Introduction: The Challenge of Real-World Coreset Selection
Coreset selection aims to identify a small, informative subset of a training dataset that preserves model performance. Traditional methods typically use "difficulty scores"—such as training loss or area under the margin (AUM)—to rank and prune examples. However, most state-of-the-art techniques are class-agnostic, assuming that the distribution of easy and hard examples is uniform across all categories.
While this assumption holds for balanced benchmarks like CIFAR-10, it fails in real-world domains like cybersecurity and medical imaging. In these "difficulty-separable" datasets, certain classes are fundamentally harder to learn than others. A global pruning threshold might inadvertently discard 100% of a rare but critical minority class if its examples are consistently more difficult than the dataset average.
Quantifying Difficulty Separability
To address this, the authors introduce the Class Difficulty Separability Coefficient (CDSC). Using a normalized Jensen-Shannon divergence, CDSC measures the overlap between the difficulty distributions of individual classes and the global population.
As shown in Figure 1, classes in CIFAR-10 largely mirror the global distribution. In contrast, cybersecurity datasets like CICIDS2017 exhibit high separability; attack types like "Web Attack – XSS" are concentrated in the "hard" region, while "DDoS" traffic is relatively easy. Global pruning at a high rate would likely eliminate the XSS class entirely.
Class-Proportional (CP) Sampling
The proposed solution is Class-Proportional (CP) sampling. Instead of a global selection threshold, the authors "patch" existing selection algorithms—such as Hardest-example, Sliding Window (SW), or Coverage-centric Selection (CCS)—to operate within each class:
- Budget Allocation: A selection budget is assigned to each class proportional to its original size in the training set.
- Intra-class Selection: The chosen selection logic (e.g., diversity-based or difficulty-based) is applied independently to each class.
This ensures that every class, regardless of its inherent difficulty, maintains a representative presence in the final coreset.
Experimental Results
The authors evaluated their approach across cybersecurity (CTU-13, UNSW-NB15, CICIDS2017) and medical (BloodMNIST, DermaMNIST) datasets. The CCS-CP method (Class-Proportional Coverage-centric Selection) emerged as the most robust strategy, particularly at extreme pruning rates.
Key findings include:
- Stability at 99% Pruning: On CTU-13, CCS-CP maintained performance with only a 2.58% accuracy drop at 99% pruning, compared to a 7.59% drop for the standard class-agnostic version.
- Critical Recall Gains: In cybersecurity, identifying rare attacks is paramount. On CICIDS2017, CCS-CP achieved a 14.32% improvement in recall over standard methods at the highest pruning levels.
- Medical Accuracy: On BloodMNIST, the CP approach yielded a 7.57% accuracy improvement over baselines at extreme pruning rates.
Conclusion
Class-Proportional sampling provides a modular and effective way to adapt coreset selection for real-world, imbalanced, and difficulty-separable data. By ensuring that "hard" minority classes are not sacrificed for global metrics, CP methods enable massive dataset reductions (up to 99%) without compromising the model's ability to detect rare and complex patterns.
Summary updated