Abstract
We present a streaming model for large-scale classification (in the context of l2-SVM) by leveraging connections between learning and computational geometry. The streaming model imposes the constraint that only a single pass over the data is allowed. The l2-SVM is known to have an equivalent formulation in terms of the minimum enclosing ball (MEB) problem, and an efficient algorithm based on the idea of core sets exists (CVM) [Tsang et al., 2005]. CVM learns a (1+Ɛ)-approximate MEB for a set of points and yields an approximate solution to corresponding SVM instance. However CVM works in batch mode requiring multiple passes over the data. This paper presents a single-pass SVM which is based on the minimum enclosing ball of streaming data. We show that the MEB updates for the streaming case can be easily adapted to learn the SVM weight vector in a way similar to using online stochastic gradient updates. Our algorithm performs polylogarithmic computation at each example, and requires very small and constant storage. Experimental results show that, even in such restrictive settings, we can learn efficiently in just one pass and get accuracies comparable to other state-of-the-art SVM solvers (batch and online). We also give an analysis of the algorithm, and discuss some open issues and possible extensions.
Introduction
The training of Support Vector Machines (SVMs) typically involves solving a quadratic programming problem, which can be computationally prohibitive for large-scale datasets. Standard solvers often require $O(N^3)$ time and $O(N^2)$ space for $N$ data points, posing significant challenges for real-time streaming applications where data cannot be stored indefinitely. While online learning algorithms exist, many require multiple passes over the data to achieve convergence. This paper introduces StreamSVM, a novel approach that addresses the "strict streaming" challenge by allowing only a single pass over the data with minimal, constant memory requirements.
Methodology: Learning via Geometry
The core innovation of StreamSVM lies in its utilization of the mathematical equivalence between training an $\ell_2$-SVM and solving the Minimum Enclosing Ball (MEB) problem in a high-dimensional feature space. By mapping labeled training data into an augmented space, the classification boundary is represented by the center of the smallest sphere enclosing the data points.
The StreamSVM Algorithm
The algorithm employs a simple yet effective geometric update rule. When a new data point $p_i$ arrives, the algorithm checks if it lies within the current ball centered at $c_{i-1}$. If it does, the point is ignored. If it falls outside, the center is shifted to $c_i$ and the radius is expanded to partially enclose the new point.
To enhance stability and mitigate the impact of outliers, the authors also propose a "lookahead" variant. This version maintains a small buffer of $L$ points and periodically solves a localized optimization problem to find a more robust center. This approach maintains a space complexity of $O(D)$, where $D$ is the number of features, as it only stores the current weight vector and a few scalars.
Experimental Evaluation
The authors evaluated StreamSVM across various benchmarks, including synthetic datasets, the Waveform dataset, MNIST handwritten digits, and large-scale datasets like IJCNN and w3a.
Performance and Efficiency
A key finding is that StreamSVM achieves accuracies comparable to state-of-the-art batch solvers like libSVM in just a single pass. For instance, on the MNIST (0 vs 1) task, StreamSVM reached 99.71% accuracy, slightly exceeding libSVM's 99.52%.
Furthermore, StreamSVM demonstrates a significant efficiency advantage over other geometric solvers like the Core Vector Machine (CVM). While CVM requires hundreds of passes to converge, StreamSVM reaches a high level of accuracy immediately.
In comparative tests against other online algorithms such as Pegasos, LASVM, and the Perceptron, the lookahead version of StreamSVM consistently delivered superior performance within a single pass across nearly all tested datasets.
Conclusion and Future Directions
StreamSVM demonstrates that treating learning as a geometric sphere-fitting problem provides a powerful shortcut for streaming classification. While the current algorithm provides a 3/2-approximation of the optimal ball, empirical results suggest this is sufficient for high-accuracy tasks.
Future research may explore the use of Minimum Volume Ellipsoids to better capture data distribution shapes, potentially tightening the classification boundary. Additionally, managing the memory requirements for kernelized versions in streaming settings remains an open challenge as the number of support vectors can grow over time.
Summary updated