Abstract
Although support vector machines (SVMs) are theoretically well understood, their underlying optimization problem becomes very expensive if, for example, hundreds of thousands of samples and a non-linear kernel are used. This paper proposes a "spatial decomposition" approach—splitting the data into spatial regions and training a local SVM on each—that theoretically matches the accuracy of global SVMs while drastically reducing training and testing times, scaling effortlessly to datasets with over 30 million samples.
Introduction
Kernel Support Vector Machines (SVMs) are powerful tools for classification but suffer from high computational complexity, typically scaling quadratically ($O(n^2)$) with the number of samples. For modern big data, storing the kernel matrix for even 100,000 points can require 64GB of RAM, making global SVMs impractical.
A common alternative is "random chunking," where data is split randomly into smaller subsets for local training. However, this approach significantly slows down inference because every test point must be evaluated against the support vectors of all chunks. This paper introduces a spatial decomposition method that preserves the theoretical guarantees of global SVMs while optimizing both training and testing efficiency.
Methods: Local SVMs via Spatial Partitioning
The authors propose partitioning the input space into spatially defined cells (e.g., using Voronoi partitions or grids). A separate SVM with a Gaussian kernel is trained exclusively on the data falling within each cell.
During inference, a test point is routed only to the specific spatial cell it belongs to. It is evaluated solely against that local SVM, bypassing the rest of the model. Theoretically, the authors prove an oracle inequality for the hinge loss, demonstrating that local SVMs achieve optimal learning rates comparable to global SVMs, provided the cell radii shrink appropriately as the dataset grows.
Experimental Results
The approach was tested on several large-scale datasets, including HIGGS (9.8M samples), HEPMASS (7M), and the ECBDL 2014 dataset (32M samples).
Accuracy and Scalability
Experiments show that spatial decomposition does not sacrifice accuracy for speed. As seen in Figure 1, the test error for spatial decomposition remains competitive with—and often superior to—random chunking across various training set sizes. On a single machine, training on 10 million samples took only 2 to 6 hours using the liquidSVM package.
Inference Speedup
The most significant advantage of spatial decomposition is the reduction in test-time complexity. Because test points only query their local neighborhood, inference is dramatically faster than random chunking. As shown in Figure 2, spatial decomposition achieved speedups of up to 74x on the HIGGS dataset when using smaller cell sizes.
Discussion and Conclusion
Spatial decomposition allows SVMs to scale to tens of millions of samples by leveraging "embarrassingly parallel" workloads suitable for distributed frameworks like Apache Spark. While the method faces challenges in extremely high dimensions (the curse of dimensionality), it remains highly effective when data lies on lower-dimensional manifolds. Future work will focus on adaptive, data-dependent partitioning to automatically optimize cell sizes without prior knowledge of data noise parameters.
Summary updated