AutoCoreset: An Automatic Practical Coreset Construction Framework

Alaa Maalouf, Murad Tukan, Vladimir Braverman, Daniela Rus

Introduction

In the era of Big Data, the computational cost of training machine learning models on massive datasets has become a significant bottleneck. Coresets—small, weighted subsets of data that act as proxies for the full dataset—offer a promising solution. By training on a coreset instead of the full dataset, researchers can achieve significant speedups with minimal loss in accuracy.

However, traditional coreset construction has historically been a "bespoke" process. Each specific machine learning problem (e.g., K-means, Logistic Regression) required a unique algorithm and mathematically intensive proofs to calculate "sensitivity"—the maximum influence of a single data point on the total loss. This requirement for deep expertise has limited the adoption of coresets in general production pipelines. AutoCoreset addresses these challenges by introducing the first "plug-and-play" framework for automatic coreset construction.

The AutoCoreset Framework

The framework simplifies the complex task of loss-function approximation by reducing it to a vector summation problem. This approach is "parasitic," meaning it leverages existing, well-understood vector approximation algorithms to solve much harder, problem-specific tasks.

Methodology

The core of AutoCoreset is an iterative process that follows these steps:

  1. Reduction to Vector Summation: The problem of approximating a loss function is transformed into approximating the sum of vectors in a matrix. Each row represents a data point, and each column represents the loss of that point under a specific "query" or candidate model.
  2. Iterative Refinement:
    • Initialization: An initial loss matrix is built using a few initial "guess" models.
  3. Coreset Selection: An off-the-shelf vector summation algorithm (such as Frank-Wolfe or Carathéodory) identifies a small subset of rows that approximates the total sum of the current matrix.
  4. Optimization: The machine learning model is trained exclusively on this tiny coreset to find a new, improved model.
  5. Expansion: The loss values of the full dataset under this new model are added as a new column to the matrix.
  6. Convergence: This loop continues until a "patience" stopping criterion is met, effectively teaching the coreset to represent the most critical regions of the model space.

Experimental Evaluation

The authors evaluated AutoCoreset across a wide range of benchmarks to demonstrate its universality and effectiveness compared to traditional methods.

Datasets and Models

The framework was tested on diverse data types and models:

  • Tabular Data: Benchmarks included credit card defaults, bioinformatics (Cod-RNA), pulsar candidates (HTRU), 3D road networks, accelerometer vibrations, and energy efficiency.
  • Image Data: Large-scale datasets like CIFAR-10 and TinyImageNet were used, utilizing the Johnson-Lindenstrauss (JL) lemma for dimensionality reduction.
  • Machine Learning Models: The evaluation covered Support Vector Machines (SVMs), Logistic Regression, Linear Regression, and K-means clustering.

Key Insights and Results

AutoCoreset provides several theoretical and practical advantages over traditional, hand-crafted coreset methods.

The Convex Hull Generalization

A significant insight of this work is that a coreset does not need to account for every possible model. If a coreset accurately represents a set of queries, it will also represent any new query whose loss vector falls within the "convex hull" of the existing ones. The iterative process in AutoCoreset is designed to find the "corners" of this hull, ensuring broad representation.

Automatic Sensitivity Discovery

By using a feedback loop, the framework implicitly identifies "important" points (high sensitivity) without requiring manual calculus. This allows the framework to be applied to complex models where manual sensitivity calculation is mathematically grueling or impossible.

Performance Metrics

  • Superior Accuracy: For SVMs and Logistic Regression, AutoCoreset achieved approximation errors that were often orders of magnitude lower than uniform sampling or traditional sensitivity-based coresets.
  • Better Generalization: Models trained on AutoCoresets showed up to a 5% improvement in test accuracy compared to other coreset methods of the same size.
  • Structural Integrity: The framework maintained the underlying data structure; confusion matrices for models trained on AutoCoresets closely mirrored those of models trained on the full dataset, even for unbalanced data where uniform sampling often fails.

Limitations and Future Directions

While AutoCoreset represents a major advancement in data compression for machine learning, several areas for future research remain:

  • Deep Learning: The framework has yet to be fully optimized for the non-convex, high-dimensional landscapes characteristic of deep neural networks.
  • Computational Efficiency: The iterative nature of the framework introduces overhead. For the method to be practical, the combined time of coreset construction and training must remain lower than training on the full dataset.
  • Stopping Criteria: The current "patience" parameter is a heuristic; developing a more theoretically grounded stopping criterion is an open challenge.

Conclusion

AutoCoreset provides a universal, automated approach to coreset construction, moving the field away from specialized, hand-crafted algorithms. By making coresets more accessible and "plug-and-play," it paves the way for more efficient large-scale machine learning experimentation and production pipelines.

Summary updated

BibTeX
@inproceedings{maalouf2023autocoreset,
  author = {Alaa Maalouf and Murad Tukan and Vladimir Braverman and Daniela Rus},
  title = {{AutoCoreset: An Automatic Practical Coreset Construction Framework}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=AdgOp13ddb},
}
Figure