A Novel Sequential Coreset Method for Gradient Descent Algorithms

Jiawei Huang, Ruomin Huang, Wenjie Liu, Nikolaos M. Freris, Hu Ding

Introduction

Training machine learning models on massive datasets often presents a severe computational bottleneck. Coresets—small, weighted subsets of data that act as a proxy for the full dataset—are a popular solution to accelerate training. However, existing coreset techniques face three major hurdles: they are often tailored to specific tasks (like k-means), rely on computationally expensive metrics (like pseudo-dimension), and fall into the "global trap." Traditional methods attempt to find a single coreset that approximates the objective function over the entire possible hypothesis space. This is an unnecessarily difficult task because optimization algorithms only ever visit a tiny fraction of that space during training.

This paper introduces a "sequential coreset" framework that dramatically speeds up gradient descent by training on small, intelligently compressed versions of a dataset. By building a sequence of "local" coresets along the optimizer's path, this approach offers a general-purpose, fast, and theoretically grounded way to handle massive Empirical Risk Minimization (ERM) problems.

The Sequential Coreset Framework

The authors propose a framework based on a simple observation: gradient descent moves in small, "local" steps. Because the learning rate is bounded, the model's parameters ($\beta$) change slowly, meaning the optimizer stays within a "local ball" for many iterations.

Instead of building one giant coreset for the entire space, the researchers decompose the optimization trajectory into segments and build a sequence of local coresets:

  1. Local Coreset Construction: To build a coreset for a local region, the algorithm partitions the data into "layers" based on their loss values at a central "anchor" point. It then performs layered sampling, taking random samples from each layer and weighting them. This ensures that both high-loss "outliers" and the "bulk" of the data are adequately represented.
  2. Sequential Execution: The process starts at an initial point $\beta_0$. A local coreset is built, and the "host" gradient descent algorithm runs on this tiny subset. Once the parameters drift to the edge of the local region, the algorithm stops, picks the current point as a new anchor, builds a new local coreset, and continues.
The sequential coreset approach decomposes the optimization trajectory into segments, each covered by a local coreset.

Key Insights and Theoretical Advantages

  • Local Approximation: The most significant insight is realizing the coreset only needs to be accurate where the optimizer is currently located. This local focus simplifies the mathematics and drastically reduces the required coreset size.
  • Linear Construction Time: Unlike methods requiring complex Singular Value Decompositions (SVD), this method's construction time is linear relative to the number of data points, making it highly practical for large-scale data.
  • Sparse Optimization Bonus: For sparse problems where many parameters are zero, the authors proved that the coreset size can be reduced to depend only poly-logarithmically on the total dimensions—a massive advantage for high-dimensional data.
  • Beyond Convexity: While many coreset papers are restricted to convex problems, this framework successfully applies to non-convex objectives, such as Gaussian Mixture Models (GMMs), provided the "locality property" holds.

Empirical Results

The researchers evaluated their sequential coreset method (SEQCORE) on several benchmarks, including the APPLIANCES ENERGY dataset (approx. 20k points), the FACEBOOK COMMENT dataset (approx. 600k points), and a massive synthetic dataset ($10^6$ points) to test scalability.

Compared against full data training, uniform sampling, and importance sampling, SEQCORE demonstrated clear advantages:

  • Speed: It achieved significant speedups, often running in a small fraction of the time required to train on the full dataset.
  • Accuracy: In tests for Ridge and Lasso regression, SEQCORE maintained a much lower parameter error (distance from the true optimal parameters) than uniform or importance sampling for the same coreset size.
  • Gradient Preservation: The method accurately approximates not just the loss, but also the gradient, ensuring the optimization trajectory remains stable.

Limitations and Future Work

While highly effective, the framework does require tuning the radius $R$ of the local ball. If $R$ is too small, coresets must be rebuilt too frequently; if too large, the coreset size grows inefficiently. Finding an automated way to tune this hyperparameter remains an open challenge.

Future work will explore adapting this framework to Stochastic Gradient Descent (SGD)—the primary workhorse of deep learning—as well as extending it to second-order optimizers like Newton's method that leverage curvature information.

Summary updated

BibTeX
@inproceedings{huang2021novel,
  author = {Jiawei Huang and Ruomin Huang and Wenjie Liu and Nikolaos M. Freris and Hu Ding},
  title = {{A Novel Sequential Coreset Method for Gradient Descent Algorithms}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=upnxj0gv-7},
}
Figure