Abstract
We propose a randomized algorithm for training Support vector machines (SVMs) on large datasets. By using ideas from Random projections, we show that the combinatorial dimension of SVMs is $O(\log n)$ with high probability. This estimate of combinatorial dimension is used to derive an iterative algorithm, called RandSVM, which at each step calls an existing solver to train SVMs on a randomly chosen subset of size $O(\log n)$. The algorithm has probabilistic guarantees and is capable of training SVMs with Kernels for both classification and regression problems. Experiments done on synthetic and real-life datasets demonstrate that the algorithm scales up existing SVM learners without loss of accuracy.
Introduction
Support Vector Machines (SVMs) are a cornerstone of modern machine learning, yet their computational complexity remains a bottleneck for large-scale applications. As the number of training examples ($n$) increases, the time required for standard solvers to converge grows super-linearly, often making them impractical for datasets with millions of points.
Traditional randomized sampling approaches have attempted to mitigate this by training on smaller subsets. However, these methods typically rely on a "combinatorial dimension" ($\Delta$) that scales with the feature dimension ($d$). In high-dimensional spaces, such as text classification, $d$ can be in the tens of thousands, rendering these subsets too large for efficient processing. This paper introduces RandSVM, an algorithm that breaks this dependency by proving that the effective combinatorial dimension is actually logarithmic relative to the dataset size.
The RandSVM Algorithm
The core contribution of this work is the RandSVM algorithm. Rather than attempting to solve the optimization problem on the full dataset, RandSVM employs an iterative refinement strategy. It treats existing high-performance solvers (like LibSVM or SVMLight) as black-box components, scaling them by feeding them strategically selected sub-problems.
The algorithm operates by maintaining weights for each data point. In each iteration, it samples a small subset based on these weights, solves the SVM, and identifies "violators"—points that are misclassified or fall within the margin. The weights of these violators are then increased (doubled), forcing the next iteration to focus more heavily on the most difficult examples. This process continues until the solution stabilizes and no significant violators remain.
Theoretical Foundation: The Logarithmic Bound
The efficiency of RandSVM is rooted in a novel theoretical insight: for "almost separable" data, the combinatorial dimension of an SVM is $O(\log n)$. By leveraging the Johnson-Lindenstrauss lemma and the geometry of random projections, the authors demonstrate that a solution found in a low-dimensional projected space can be extended back to the original high-dimensional space while preserving margin properties.
This result is transformative because it suggests that the "complexity" of a dataset is tied to its margin characteristics rather than its raw dimensionality. This provides a theoretical guarantee that extremely small samples—logarithmic in size—are sufficient to define a near-optimal hyperplane even for massive, high-dimensional datasets.
Experimental Evaluation
The authors validated RandSVM across a variety of synthetic and real-world benchmarks, focusing on both classification and regression tasks.
Performance and Scalability
- Speedup: On the twonorm2 synthetic dataset containing 1,000,000 points, standard LibSVM failed to complete within a 24-hour window. In contrast, RandSVM reached a solution in just 437 seconds.
- Accuracy: On the RCV1 (Reuters Corpus) dataset, which contains over 800,000 documents, RandSVM achieved 94.37% accuracy. This is virtually identical to the 94.38% achieved by the state-of-the-art SVMPerf, but with superior scaling as the dataset size grew.
- Regression: The algorithm was successfully adapted for $\epsilon$-tube regression (SVR), showing significant performance gains on the Forest Cover dataset (581,012 records).
Scaling Characteristics
One of the most promising findings was that the execution time for RandSVM on $10^5$ points was remarkably close to the time for $10^6$ points. This confirms that the algorithm's complexity scales much more gracefully than traditional solvers, which typically exhibit super-linear growth.
Conclusion and Future Outlook
RandSVM provides a robust framework for scaling SVMs to the "big data" regime. By proving a logarithmic bound on combinatorial dimension, the authors have bridged the gap between theoretical sampling limits and practical solver performance.
While RandSVM offers massive speedups for large datasets, it does carry overhead for smaller problems where the iterative violator-checking may be slower than a single pass of a standard solver. Future work may involve optimizing parameter tuning for the target dimension ($k$) and further exploring the application of these logarithmic bounds to highly non-linear kernel manifolds.
Summary updated