A Randomized Algorithm for Large Scale Support Vector Learning

Krishnan Kumar, Chiru Bhattacharyya, Ramesh HariharanNeurIPS 2007

Executive Summary

This paper introduces a randomized algorithm that drastically scales up Support Vector Machine (SVM) learning. By proving that for "almost separable" datasets, a near-optimal solution can be found using only $O(\log n)$ support vectors, the authors combine random projection theory with an iterative sampling algorithm. This approach enables standard SVM solvers to handle millions of data points with significant speedups and minimal loss in accuracy.

The Bottleneck in Standard SVMs

Support Vector Machines (SVMs) are powerful classifiers, but they notoriously struggle with "Big Data." As the number of training examples ($n$) and the dimensionality of features ($d$) grow, the computational cost and memory requirements become prohibitive.

The core bottleneck lies in identifying the Support Vectors—the critical data points that define the decision boundary. Traditionally, the number of these points was thought to scale with the dimensionality $d$. In high-dimensional spaces or when using complex kernels, finding these points makes the problem computationally heavy. The authors seek a way to solve the SVM problem by looking at only a tiny, representative fraction of the data without sacrificing the quality of the resulting classifier.

Methodology

The authors bridge two mathematical worlds to solve this bottleneck: Random Projections and Abstract Optimization Problems (AOPs).

  1. The $O(\log n)$ Bound: Using the Johnson-Lindenstrauss lemma (which states that high-dimensional data can be projected into a much lower-dimensional space while preserving distances), the authors prove a striking theoretical result. For "almost separable" data, the number of support vectors needed for a near-optimal margin is proportional to $\log n$, rather than the feature dimension $d$.
  2. RandSVM-1 Algorithm: They propose an iterative sampling strategy that acts as a wrapper around existing SVM solvers.
Algorithm 1: RandSVM-1

As shown in the pseudocode above, the algorithm follows these steps:

  • Start by solving the SVM on a small random subset of the data.
  • Identify "violators"—points in the remaining dataset that fall on the wrong side of the current margin.
  • Add a subset of these violators to the training set and resolve.
  • Repeat until no violators remain or a size limit is reached.
  • Orthogonal Extensions: To ensure the theory holds in the original high-dimensional space, they use "orthogonal extensions" to show that a separator found in a low-dimensional projected space corresponds to a valid, high-margin separator in the original space.

Theoretical Insights

  • "Almost Separable" is Enough: Most real-world data isn't perfectly linearly separable due to noise. The authors define "almost separable" as data that becomes separable if you remove a tiny fraction ($O(\log n / n)$) of points. Their theory shows that randomized methods are particularly robust for this class of problems.
  • Dimension Independence: The most significant breakthrough is that the complexity of the randomized SVM depends more on the number of samples ($n$) via a logarithmic relationship than on the actual number of features ($d$). This is a huge win for high-dimensional text or genomic data.
  • Wrapper Capability: The RandSVM-1 algorithm isn't a new solver itself; it’s a meta-algorithm. It acts as a wrapper that can take any existing solver (like LibSVM or SVMLight) and "supercharge" it to handle much larger datasets than it could natively.

Experimental Setup and Key Results

The algorithm was evaluated on both synthetic and massive real-world datasets, scaling up to 1,000,000 points. Synthetic tests included Twonorm, Ringnorm, and Checkerboard for non-linear classification. Real-world tests utilized the RCV1 (Reuters Corpus Volume I) dataset, focusing on the CCAT and C11 categories (involving ~700,000 documents and over 47,000 features).

Performance comparison of RandSVM against standard solvers
  • Massive Speedups: As seen in the results table, on the twonorm dataset with $10^5$ points, the randomized approach took 300 seconds, while the standard LibSVM took 8,542 seconds—a nearly 30x speedup.
  • Handling the "Unsolvable": For datasets with $10^6$ points, standard solvers often failed to finish within a day or crashed due to memory limits. RandSVM-1 completed these tasks in a matter of minutes or a few hours.
  • Accuracy Preservation: The classification accuracy remained remarkably stable. For example, on the CCAT dataset, RandSVM achieved 94.37% accuracy compared to SVMPerf’s 94.38%, but with the ability to scale to much larger instances.

Limitations and Future Work

  • Parameter Sensitivity: The algorithm requires an estimate for $k$ (the number of support vectors). While the paper provides a theoretical formula, in practice, this might require some tuning or heuristic estimation.
  • Almost Separable Assumption: While the authors argue many datasets fit this description, the performance might degrade on highly overlapped, non-separable data where the fraction of "violators" is very high.
  • Future Directions: The authors suggest applying this randomized AOP framework to other kernel-based learning problems beyond standard classification, such as Support Vector Regression (SVR).

Summary updated

BibTeX
@inproceedings{kumar2007randomized,
  author = {Krishnan Kumar and Chiru Bhattacharyya and Ramesh Hariharan},
  title = {{A Randomized Algorithm for Large Scale Support Vector Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
  url = {https://openreview.net/forum?id=HyVdEvZ_br},
}
Figure