Streaming Complexity of SVMs

Alexandr Andoni, Collin Burns, Yi Li, Sepideh Mahabadi, David P. Woodruff

TL;DR

This paper provides the first deep dive into the space complexity of Support Vector Machines (SVMs) in a streaming environment. The authors demonstrate that for low-dimensional data, we can find approximate solutions using significantly less memory than the standard Stochastic Gradient Descent (SGD) approach, while also proving fundamental lower bounds that show where the "memory wall" exists for high-dimensional problems.

What Problem Does This Paper Address?

Support Vector Machines are a cornerstone of supervised learning, used to find the optimal hyperplane that separates two classes of data. In the modern "Big Data" era, we often encounter datasets so massive they cannot fit in RAM. This necessitates the streaming model, where data points arrive one by one, and an algorithm must maintain a small "sketch" or summary of the data to make a final prediction.

The standard tool for this is Stochastic Gradient Descent (SGD). For a "strongly convex" objective like the bias-regularized SVM, SGD requires $O(1/\lambda\epsilon)$ samples to get within $\epsilon$ of the optimal value. In a stream, this translates to $O(d/\lambda\epsilon)$ space. While this is efficient, researchers wondered: Is this the absolute limit? Can we do better than $1/\epsilon$ space, especially when the dimension $d$ is small? This paper tackles that question for both optimization (finding the best hyperplane) and point estimation (estimating the SVM objective value for any given hyperplane).

Methods

The authors employ a mix of spatial partitioning and probabilistic sampling to build their streaming sketches:

  • Geometric Scaling ($d=1$): For one-dimensional data, the algorithm maintains multiple sets of samples at different rates (powers of 2). This allows it to "zoom in" on points near the query boundary while still accounting for distant points that contribute more to the total loss.
  • Tree-based Partitioning ($d=1, 2$): To achieve additive $\epsilon$-approximations in low dimensions, the authors use Binary Trees (for $d=1$) and Quad-trees (for $d=2$). As points arrive, they are sorted into cells. If a cell gets too crowded, it splits. For cells that don't intersect the query hyperplane, the loss is calculated exactly using a summary; for those that do, the algorithm uses reservoir sampling to estimate the average loss.
  • Communication Complexity: To prove lower bounds (the "you can't do better than this" limits), the authors reduce the SVM problem to the classic INDEXING problem in communication complexity. They construct "hard" datasets where an algorithm would essentially have to remember almost the entire bit-string to provide an accurate $\epsilon$-approximation.

Datasets

As a theoretical paper focused on computational complexity, it does not evaluate against standard empirical benchmarks like ImageNet or MNIST. Instead, the authors construct synthetic "hard instances"—mathematically designed point sets—to prove their lower bounds and verify their algorithmic space guarantees.

Key Insights and Ideas

  • The Low-Dimensional Win: The most surprising finding is that for $d=1$ and $d=2$, you can actually beat the $1/\epsilon$ space complexity of SGD. For $d=1$, they achieve a tight bound of $\Theta(1/\sqrt{\epsilon})$, which is a polynomial improvement over the standard $1/\epsilon$.
  • The Point Estimation vs. Optimization Gap: In high dimensions, the paper reveals a "strict gap." Estimating the value of the SVM objective for any query is fundamentally harder (requires more space) than simply finding the best hyperplane.
  • Non-Smoothness is the Enemy: Most previous streaming breakthroughs focused on "smooth" functions (like those in Linear Regression). The SVM objective is "non-smooth" because of the "hinge loss" (the max(0, ...) term). This paper shows that non-smoothness creates a unique set of challenges that require different sketching strategies.
  • Strong Convexity as a Bridge: The authors use the strong convexity of the regularized SVM to show that if you can estimate the function value well (point estimation), you can use a "net" of queries to find the optimum (optimization) with only a minor increase in space.

Key Results

  • Point Estimation ($d=1$): Proved a tight space complexity of $\Theta(1/\sqrt{\epsilon})$.
  • Point Estimation ($d=2$): Achieved an upper bound of $O(\epsilon^{-4/5})$.
  • High-Dimensional Lower Bound: For $d = \Omega(\log(1/\epsilon))$, they proved a nearly tight lower bound of $\Omega(d/\epsilon^2)$ for point estimation.
  • Optimization Lower Bound: Proved that even for optimization, you need at least $\Omega(\epsilon^{-1/2})$ space in high dimensions, showing that the $1/\epsilon$ dependence isn't just a limitation of SGD, but a fundamental property of the problem.

Limitations and Future Work

  • The Dimension Gap: While the results for $d=1$ are tight, there is still a gap between the upper and lower bounds for $d=2$ and higher constant dimensions.
  • Kernel SVMs: The paper focuses on linear SVMs. While they briefly mention that random feature maps can extend this to kernels, doing so blows up the dimension, potentially negating the space savings found in low-dimensional linear cases.
  • Optimization for $d=1$: The authors have an upper bound for $d=1$ optimization but lack a matching lower bound, leaving the exact complexity of the simplest SVM optimization problem an open question.

Summary updated

BibTeX
@inproceedings{andoni2020streaming,
  author = {Alexandr Andoni and Collin Burns and Yi Li and Sepideh Mahabadi and David P. Woodruff},
  title = {{Streaming Complexity of SVMs}},
  booktitle = {APPROX/RANDOM},
  year = {2020},
  url = {https://openreview.net/forum?id=O_vco0ctnz2},
}
Figure