Optimized cutting plane algorithm for support vector machines

Vojtech Franc, Sören Sonnenburg

TL;DR

OCAS is a high-performance training algorithm for linear Support Vector Machines (SVMs) that achieves massive speedups (up to 1,000x) over traditional solvers. By introducing a line-search and a smarter way to select "cutting planes," it provides the precision of an exact solver with the speed that rivals stochastic approximation methods.

What Problem Does This Paper Address?

Training SVMs on massive datasets (millions of examples) is computationally expensive. Historically, solvers fell into two camps:

  1. Approximative Solvers (e.g., SGD, Pegasos): Very fast but often "crude," failing to reach high-precision solutions.
  2. Accurate Solvers (e.g., SVMlight, BMRM): Use "Cutting Plane Algorithms" (CPA) to approximate the risk function. While precise, standard CPAs are "jittery"—the objective value fluctuates wildly between iterations, leading to slow convergence on large-scale problems.

The authors identify that standard CPAs waste time because they pick new "cutting planes" (linear approximations of the loss) at points that might be far from the actual optimum, causing the algorithm to bounce around rather than converge smoothly.

Comparison of objective function convergence between standard CPA and OCAS.

Methods

The authors propose OCAS (Optimized Cutting Plane Algorithm), which refines the standard CPA approach with three key modifications:

  • Best-so-far Tracking: Unlike standard CPA, which might move to a worse solution in an intermediate step, OCAS explicitly tracks and maintains the best solution found across all iterations.
  • Line Search: Instead of jumping directly to the solution of the simplified "reduced" problem, OCAS performs a line search between the previous best solution and the new candidate. This ensures a monotonically decreasing objective value (it only ever gets better).
  • Proximal Cutting Plane Selection: OCAS calculates the next cutting plane at a point located between the current best solution and the sub-problem's solution. This "look-ahead" strategy ensures the new cutting plane is more likely to be relevant near the true optimum.

Technically, the line search is optimized to run in $O(m \log m)$ time, and the most intensive parts of the algorithm (dot products and sums) are designed to be easily parallelized across multiple CPU cores.

Datasets

The algorithm was evaluated on a diverse set of benchmarks:

  • MNIST: Handwritten digit recognition.
  • Astro: Astronomy data.
  • Cov1: Forest cover type.
  • CCAT: Text classification (Reuters).
  • Worm & Human: Large-scale bioinformatics splice-site detection.
  • Note: The Human dataset is particularly massive, containing 15 million examples and totaling roughly 32GB in size.

Key Insights and Ideas

  • Stability is Speed: The "aha moment" is realizing that the instability of standard CPA is a choice, not a necessity. By forcing the objective to decrease monotonically via line search, you eliminate the "wasted" iterations where the solver overshoots the optimum.
  • Linear Scaling: Despite being an "accurate" solver, OCAS's computational effort scales linearly with the number of samples ($m$). This bridges the gap between fast-but-loose stochastic methods and slow-but-precise batch methods.
  • Parallel Efficiency: The authors show that while the line search requires a sort (the $O(m \log m)$ part), the rest of the algorithm is "embarrassingly parallel," allowing it to take full advantage of multi-core hardware.

Key Results

  • Massive Speedups: OCAS outperformed SVMlight by factors of over 1,000 and SVMperf by over 20 on several datasets.
  • High Precision, Fast: In many cases, OCAS reached a high-precision solution faster than stochastic gradient descent (SGD) reached even a crude approximation.
Objective value vs. Time across multiple datasets for CPA, SGD, and OCAS.
  • Big Data Capability: OCAS trained on the 15-million-example Human dataset in just 671 seconds (about 11 minutes) using 16 CPUs. For comparison, a competing string-kernel SVM took over 27 hours on a smaller subset of that same data.
  • Convergence: It achieves the same theoretical $O(1/\epsilon)$ convergence rate as standard CPA but is significantly faster in practice due to the reduced constant factors.

Limitations and Future Work

  • Linear Focus: The current paper focuses strictly on linear SVMs. While linear SVMs are essential for high-dimensional data (like text or genomics), many users still require non-linear kernels.
  • Memory Constraints: While the algorithm is fast, it still requires the dataset to be accessible (though it uses compressed sparse column formats). For datasets that don't fit in RAM, further disk-based optimizations would be needed.
  • Future Directions: The authors suggest extending OCAS to multi-class problems and investigating how to incorporate the "kernel trick" more effectively into this specific cutting-plane framework.

Summary updated

BibTeX
@inproceedings{franc2008optimized,
  author = {Vojtech Franc and Sören Sonnenburg},
  title = {{Optimized cutting plane algorithm for support vector machines}},
  booktitle = {International Conference on Machine Learning},
  year = {2008},
  doi = {10.1145/1390156.1390197},
}
Figure