Fast Training of Support Vector Classifiers

Fernando Pérez-Cruz, Pedro Luis Alarcón-Diana, Ángel Navia-Vázquez, Antonio Artés-Rodríguez

Introduction

Support Vector Machines (SVMs) are gold-standard tools for pattern recognition, but they suffer from a significant "big data" problem. The standard training process involves solving a Quadratic Programming (QP) problem. As the number of training samples grows, the computational complexity and memory requirements of QP explode, making it impractical for very large datasets.

To handle this, researchers typically use "chunking" or "decomposition" methods, which break the massive problem into smaller sub-problems (working sets). However, even these sub-problems rely on computationally expensive QP solvers, and the strategy used to pick which samples go into each "chunk" can lead to slow convergence or mathematical oscillations.

This paper introduces a faster way to train Support Vector Classifiers (SVCs) on massive datasets by replacing traditional QP solvers with an Iterative Re-Weighted Least Squares (IRWLS) procedure. By combining this efficient solver with a novel, partially randomized "working set" selection strategy, the authors achieve significant speedups—sometimes by orders of magnitude—over industry standards like SVM-light.

Proposed Methods

The authors propose two major innovations to overcome the limitations of traditional SVM training:

1. IRWLS as the Core Engine

Instead of treating SVC training as a constrained optimization problem for QP, the authors rearrange the mathematics into a weighted least squares problem. Because the weights depend on the errors (and vice versa), the algorithm iterates: it fixes the weights, solves a linear system, recalculates the errors, and repeats.

IRWLS Algorithm Steps

This approach is computationally "cheaper" because solving linear equations (via LU decomposition) is significantly faster than standard QP. The most difficult part of the new algorithm is simply solving a system of linear equations—a well-solved problem in computer science that makes the implementation simpler and more robust than complex interior-point QP solvers. Furthermore, when working with chunks, some support vectors from previous iterations are "anchored" (fixed). The authors mathematically incorporate these into the IRWLS linear system so they do not have to be re-calculated from scratch.

2. Randomized Working Set Selection

Most solvers (like SVM-light) use a "greedy" strategy, picking samples that violate the stopping criteria the most (i.e., have the largest errors). The authors argue that taking the "biggest possible step" toward the solution isn't always best and can cause the solution to oscillate wildly.

Instead, their proposed tool, SVCradit, selects some violators per class and then fills the rest of the working set randomly from the pool of samples that haven't converged yet. By picking samples randomly rather than just the ones with the highest error, the algorithm avoids the "oscillations" that happen when a large chunk of data forces the model to over-correct.

Experimental Results

The algorithm was evaluated on several well-known benchmarks, including Adult (income prediction), Web (text classification), Gauss-M (a synthetic 2D dataset with highly overlapping classes), Banana, Diabetes, and Splice.

The authors compared their SVCradit implementation against SVM-light (version 3.02), yielding impressive outcomes:

Comparison of CPU times between SVCradit and SVM-light
  • Massive Speedups: On the "Gauss-M" dataset with a high penalty factor ($C=100$), SVCradit finished in 61.68 seconds, while SVM-light took 3,053.20 seconds—a nearly 50x speedup.
  • Consistency: Across almost all datasets (Adult, Banana, Splice, Diabetes), the IRWLS approach was consistently faster.
  • The "Web" Exception: SVM-light was slightly faster on the Web dataset. The authors attribute this to the low $C$ value used; when the penalty for errors is low, the greedy strategy of SVM-light is actually more efficient.

Limitations and Future Work

While highly effective, the proposed method has some limitations:

  • Parameter Sensitivity: The random selection strategy is most beneficial when the working set is large and the penalty parameter $C$ is high. For simpler problems or very low $C$ values, traditional greedy methods might still hold an edge.
  • Memory Constraints: While the algorithm is faster, it still requires managing the Hessian matrix (or a cache of it). If the dataset is so large that even the "chunked" Hessian doesn't fit in memory, further optimizations would be needed.

The authors suggest that their random selection strategy is particularly well-suited for very large training sets where the number of iterations (chunks) is the primary bottleneck, paving the way for future optimizations in massive-scale SVM training.

Summary updated

BibTeX
@inproceedings{perezcruz2000fast,
  author = {Fernando Pérez-Cruz and Pedro Luis Alarcón-Diana and Ángel Navia-Vázquez and Antonio Artés-Rodríguez},
  title = {{Fast Training of Support Vector Classifiers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2000},
}
Figure