In the era of big data, training machine learning models on entire datasets is often computationally prohibitive. Coresets—small, weighted subsets of data that act as a proxy for the full set—are a popular solution to this bottleneck. However, real-world data environments pose two major challenges for traditional coreset construction: adversarial outliers and dynamic data streams.
This paper introduces a robust and fully-dynamic coreset framework designed for a broad class of machine learning tasks known as "Continuous-and-Bounded" (CnB) learning problems, which include popular objectives like logistic regression and $k$-means clustering. By intelligently splitting data into "suspected" inliers and outliers, the proposed method creates a small data summary that remains accurate even under adversarial attack and can be updated in real-time as the underlying dataset evolves.
The Challenge with Traditional Coresets
Traditional coreset construction suffers from two primary flaws:
- Sensitivity to Outliers: Most methods rely on "importance sampling" based on sensitivity. Because outliers are mathematically "important" (they are far from the mean or expected distribution), these algorithms tend to over-sample them. This over-representation of noisy or adversarial data can ruin the resulting model.
- Static Nature: Real-world data is rarely static. Privacy regulations (like GDPR) may require the deletion of specific user data, or new data might stream in constantly. Re-calculating a coreset from scratch every time the data changes is highly inefficient.
A Hybrid, Dynamic Framework
To tackle these issues, the authors propose a novel hybrid framework that treats inliers and outliers differently, ensuring both robustness and dynamic updatability.
The Inlier/Outlier Split
Using a rough initial estimate of the solution, the algorithm partitions the data into "suspected inliers" and "suspected outliers." It then applies a standard coreset algorithm (treated as a "black box") to the inliers and uses simple uniform sampling for the outliers. The authors prove that combining these two summaries creates a "robust coreset" that bounds the total error. A key insight here is that a perfect outlier detector isn't necessary; a "coarse" classification based on a sub-optimal initial guess is sufficient to provide strong theoretical guarantees.
Fully-Dynamic Maintenance
To handle continuous insertions and deletions without rebuilding the coreset, the authors adapt a "merge-and-reduce" tree structure.
As shown in the figure above, the framework introduces an auxiliary table and a "hot bucket" to efficiently shift data points between the inlier and outlier sets as the global dataset evolves. In dynamic settings, a single data update could theoretically change which points are considered outliers. The "hot bucket" acts as a buffer, allowing the system to update the coreset without re-processing the entire tree.
Theoretical Innovation: Doubling Dimension
Unlike previous methods that rely on the VC dimension—which can be massive or hard to calculate for complex models—this paper’s coreset size depends on the doubling dimension of the parameter space. This shift makes the approach much more practical and applicable to a wider range of machine learning problems.
Experimental Validation
The researchers evaluated their framework on two large-scale real-world datasets:
- Covetype: 581,012 instances used for logistic regression.
- 3Dspatial: 434,874 instances used for $k$-means clustering.
To test robustness, they manually injected 10,000 outliers into each dataset using Gaussian noise and label shuffling.
Key Results
- Significant Speedups: On the Covetype dataset, the robust coreset achieved a 26.9x speedup for logistic regression while maintaining a loss ratio of 1.046 (meaning the error was only ~4.6% higher than using the full dataset).
- Robustness to Attacks: In the presence of adversarial outliers, the proposed "hybrid" methods significantly outperformed their non-robust counterparts in both accuracy and loss.
- Dynamic Efficiency: The time complexity for updates (insertions/deletions) was shown to be logarithmic relative to the data size, making it highly suitable for high-frequency streaming applications.
Limitations and Future Directions
While highly effective, the framework does have limitations. It requires an initial rough solution ($\tilde{\theta}$) to perform the first inlier/outlier split. Although a tiny random sample can generate this, the quality of the final coreset is somewhat dependent on this initial step. Additionally, the parameter controlling the split ratio might require manual tuning if the fraction of outliers in a stream changes dramatically over time.
Future work could extend this framework to other specialized optimization problems, such as those involving privacy-preserving constraints or fairness-aware learning. There is also significant potential for applying these robust, dynamic coresets in distributed and federated learning environments.
Summary updated