Abstract
In the era of massive datasets, coresets—small, representative summaries—are essential for efficient model training. However, traditional coreset techniques primarily target decomposable loss functions. This paper addresses the challenge of creating coresets for non-decomposable classification metrics like the F1-score and Matthews Correlation Coefficient (MCC). We demonstrate that while "strong" coresets are theoretically impossible for these metrics, "weak" coresets can be effectively constructed using simple stratified uniform sampling. Our empirical results show that this approach provides competitive performance with significantly reduced computational overhead compared to sophisticated sampling methods like Lewis scores or leverage scores.
Introduction
Training machine learning models on massive datasets is often prohibitively slow. Coresets offer a solution by providing a small subset of data that maintains theoretical performance guarantees for the full dataset. While well-established for decomposable losses (e.g., Mean Squared Error), where the total loss is the sum of individual point losses, coresets for non-decomposable metrics like F1-score and MCC remain a significant challenge. These metrics are calculated from the entire contingency table (True Positives, False Negatives, etc.), meaning they cannot be decomposed into independent point-wise contributions.
Theoretical Foundations: Strong vs. Weak Coresets
The authors establish a critical theoretical boundary for non-decomposable measures:
- Lower Bounds for Strong Coresets: The paper proves that it is impossible to construct a "strong" coreset (one that approximates the metric for every possible classifier) for F1 or MCC that is smaller than the original dataset.
- The Promise of Weak Coresets: By shifting the focus to "weak" coresets—which only need to approximate the metric for a subset of "important" or non-trivial classifiers—efficient summarization becomes achievable.
Using VC-dimension theory and concentration inequalities, the authors show that a small uniform sample can accurately estimate the components of the contingency table, thereby providing reliable estimates for F1 and MCC scores.
Methodology: Stratified Uniform Sampling
The proposed method is stratified uniform sampling. This involves selecting a random subset of the data while preserving the original class distribution (the ratio of positive to negative samples). Unlike complex "sensitivity-based" methods like leverage scores or Lewis scores, stratified sampling is computationally trivial and requires no complex pre-processing.
Empirical Evaluation
The researchers evaluated the approach on standard benchmarks: COVERTYPE, KDDCUP ’99, and Adult, using Logistic Regression, SVM, and Multi-Layer Perceptron (MLP) models.
Performance and Efficiency
- Computational Speedup: On the CoverType dataset, generating a uniform coreset took approximately 0.01 seconds, compared to nearly 2.5 seconds for Lewis scores—a 250x reduction in overhead before training begins.
- Metric Accuracy: Even at sample sizes as small as 1% to 10%, the coreset performance remained remarkably close to the full dataset results across all models.
As shown in the figures, stratified uniform sampling (orange line) consistently matches or exceeds the performance of more computationally expensive methods like leverage scores (green line).
Conclusion
This work demonstrates that for non-decomposable classification measures, sophisticated sampling methods do not necessarily offer an advantage over simple uniform sampling. Stratified uniform sampling provides strong theoretical guarantees for weak coresets and delivers excellent empirical performance with minimal computational cost. Future research may extend these findings to other complex metrics like AUC-ROC, which remains a challenging open problem due to its dependence on relative rankings.
Summary updated