TL;DR
This paper demonstrates that simple stratified uniform sampling is a surprisingly powerful way to create "coresets"—small, representative summaries of large datasets—for complex classification metrics like the F1 score and Matthews Correlation Coefficient (MCC). The authors provide the first theoretical guarantees for these non-decomposable measures and show that this simple approach often outperforms much more computationally expensive sampling techniques.
What Problem Does This Paper Address?
In machine learning, we often want to train models on massive datasets. Coresets help by providing a tiny, weighted subset of the data that acts as a proxy for the whole thing, allowing for much faster training.
However, most coreset research focuses on "decomposable" loss functions, where the total error is just the sum of errors on individual points (like Mean Squared Error). Real-world performance is often measured by "non-decomposable" metrics like the F1 score or MCC. These are calculated using the entire contingency table (True Positives, False Negatives, etc.), meaning you can't just sum them up point by point.
Until now, there were no coreset mechanisms with theoretical guarantees for these vital metrics. This paper fills that gap, addressing the challenge of scaling direct optimization of F1 and MCC to large-scale data.
Methods
The authors take a "simple is better" approach. Instead of complex importance sampling based on "sensitivity" (which is hard to calculate for non-decomposable measures), they use stratified uniform sampling. This involves sampling a fixed number of points uniformly from each class (positive and negative) to ensure the coreset maintains the original data's class balance.
Key technical contributions include:
- Lower Bounds: They prove that for F1 and MCC, a "strong" coreset (one that works for every possible classifier) must be nearly as large as the original dataset.
- Weak Coresets: Because strong coresets are impossible, they focus on "weak" coresets. These provide guarantees for a specific, large subset of "important" classifiers, including the optimal one.
- VC-Dimension Analysis: They use the concept of Vapnik–Chervonenkis (VC) dimension to bound the number of samples needed to ensure the coreset's F1/MCC score stays close to the full dataset's score with high probability.
Datasets
The researchers evaluated their approach on four well-known binary classification benchmarks:
- CovType: Cartographic observations of forest types (581,012 samples).
- Adult: Census data used to predict if income exceeds $50k (32,000 samples).
- KDD Cup ’99: Network intrusion detection data (494,021 samples).
- Bank Marketing: Data related to direct marketing campaigns of a Portuguese banking institution.
Key Insights and Ideas
- The Complexity Paradox: Sophisticated sampling methods like leverage scores or Lewis weights, which are mathematically optimal for linear regression, don't necessarily translate to better performance for non-decomposable classification metrics.
- Stratification is Key: Simply sampling uniformly across the whole dataset can fail if there is a class imbalance. Sampling uniformly within each class (stratification) is the secret sauce that makes the theoretical bounds work.
- Theoretical Grounding: The paper provides a rigorous mathematical proof that stratified sampling yields a coreset where the error decreases as the coreset size increases, specifically for metrics derived from contingency tables.
Key Results
The empirical results are striking. Stratified uniform sampling was compared against leverage scores, Lewis scores, and k-means-based coresets across different classifiers (Logistic Regression, SVM, and Multi-Layer Perceptrons).
- Performance: Uniform sampling consistently provided F1 and MCC scores that were superior or comparable to the more complex methods. As seen in Figure 1, the MCC score on the CovType dataset for uniform sampling (orange line) quickly approaches the "Full Data" baseline (blue line) as the coreset size grows to just 10% of the original data.
- Efficiency: The biggest win is speed. As shown in Table 1, preparing a uniform coreset for the CovType dataset took only 0.014 seconds, compared to 2.49 seconds for Lewis scores—a speedup of over 175x.
- Robustness: The performance gains were consistent across different datasets and model architectures, proving the general utility of the approach.
Limitations and Future Work
While a major step forward, the authors note a few areas for improvement:
- Additive Error in MCC: The theoretical guarantee for MCC includes a small additive error term, whereas a purely relative error bound would be ideal.
- Query Space Assumptions: The "weak" coreset guarantees rely on the classifier space having a bounded VC-dimension.
- Broader Metrics: The current work focuses on F1 and MCC. Extending these proofs to other non-decomposable measures like AUC-ROC remains an open challenge.
- Algorithm-Specific Tuning: Future research could explore if specific sampling strategies could be even more efficient if tailored to a particular learning algorithm (e.g., specifically for Deep Neural Networks).
Summary updated