On coresets for support vector machines

Murad Tukan, Cenk Baykal, Dan Feldman, Daniela Rus · DOI

Abstract

Training Support Vector Machines (SVMs) on massive datasets presents significant computational challenges, as traditional training methods often scale cubically with the number of data points. This paper introduces a novel "preprocess-then-train" framework using coresets—small, weighted subsets of data that provably approximate the full dataset's objective function. By leveraging a mathematical bridge between SVM sensitivity and $k$-means clustering, the proposed algorithm enables efficient SVM training on streaming and distributed data. Experimental results across diverse datasets demonstrate substantial data reduction—up to 99.9%—with minimal loss in accuracy and significant speedups over traditional training methods.

Introduction

Support Vector Machines (SVMs) remain a cornerstone of supervised learning due to their robust theoretical foundations and effectiveness in high-dimensional spaces. However, their $O(n^3)$ training complexity makes them increasingly impractical for modern "Big Data" applications. While various approximations like Core Vector Machines (CVM) and stochastic gradient descent (SGD) methods have been developed, they often lack strong theoretical guarantees or struggle in dynamic, streaming environments where data is continuously updated or deleted.

This work addresses these limitations by proposing a coreset-based approach. A coreset is a small, weighted subset of the original data such that training a model on the coreset yields a solution nearly identical to training on the full dataset. The primary contribution is a theoretically grounded method for constructing these coresets for SVMs using importance sampling based on sensitivity scores.

Methodology

Sensitivity-Based Importance Sampling

The core of the proposed method lies in calculating the "sensitivity" of each data point. Sensitivity measures the maximum possible influence a specific point can have on the SVM's objective function across all possible hyperplanes. Points that are critical to defining the decision boundary (e.g., support vectors or outliers) receive high sensitivity scores, while redundant points in dense regions receive lower scores.

The $k$-means Bridge

Directly calculating exact sensitivities is computationally intractable. The authors provide a key theoretical innovation: proving that an approximate $k$-means clustering can provide a tight upper bound for these sensitivities. By partitioning the data into $k$ clusters, the sensitivity of a point can be bounded by its distance to its cluster center relative to the overall distribution. This allows for efficient sensitivity estimation in $O(nk)$ time.

Coreset Construction and Streaming

Once sensitivities are estimated, points are sampled into the coreset with probabilities proportional to their scores. To handle streaming data, the authors employ a "Merge-and-Reduce" tree structure. This framework allows the system to process data in chunks, reducing each chunk to a coreset and merging these coresets hierarchically. This ensures that memory requirements remain logarithmic relative to the total number of points processed, enabling infinite data streams to be handled with constant memory.

Experimental Evaluation

The algorithm was rigorously tested on six real-world and synthetic datasets, ranging from pulsar star detection (HTRU) to high-dimensional web page records (W1). The characteristics of these datasets and the resulting sensitivity metrics are summarized in the table below.

Table 1: Dataset statistics and sensitivity analysis results.

The "Sum of Sensitivities ($t$)" represents the theoretical size required for the coreset to maintain a specific error bound. As shown in the table, datasets like "Skin" and "Cod" exhibit extremely low $t/n$ ratios (0.1% and 0.6%, respectively), indicating that the vast majority of the data is redundant for the purpose of training an SVM.

Key Results and Discussion

Compression and Accuracy

The sensitivity-based approach consistently outperformed uniform sampling. In the "Skin" dataset, the algorithm achieved a 1000x reduction in data size while maintaining high accuracy. Crucially, the sensitivity-based sampling naturally preserves outliers, which are often discarded by uniform sampling but are vital for defining the SVM margin.

Computational Efficiency

For datasets exceeding 18,000 points, the overhead of constructing the coreset was more than offset by the reduction in training time. The "coreset + train" pipeline demonstrated significant speedups, particularly in streaming scenarios where traditional batch SVMs would fail due to memory constraints.

Theoretical Limits

The authors also established a lower bound regarding the "hardness" of compression. They proved that if the regularization parameter ($\lambda$) is high, the data becomes fundamentally less compressible. This provides a clear boundary for when coreset methods are most effective.

Conclusion

This paper provides a mathematically rigorous and practically efficient framework for scaling SVMs to massive datasets. By bridging clustering theory with SVM optimization, the authors enable robust training on streaming and distributed systems. Future work includes extending these sensitivity bounds to non-linear kernels (e.g., RBF) and exploring applications in non-stationary data environments.

Summary updated

BibTeX
@article{tukan2020coresets,
  author = {Murad Tukan and Cenk Baykal and Dan Feldman and Daniela Rus},
  title = {{On coresets for support vector machines}},
  journal = {Theoretical Computer Science},
  year = {2020},
  doi = {10.1007/978-3-030-59267-7\_25},
}
Figure