NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Approximate Stochastic Subgradient Estimation Training for Support Vector Machines

Sangkyun Lee, Stephen J. Wright · DOI

Abstract

Subgradient algorithms for training support vector machines have been quite successful for solving large-scale and online learning problems. However, they have been restricted to linear kernels and strongly convex formulations. This paper describes efficient subgradient approaches without such limitations. Our approaches make use of randomized low-dimensional approximations to nonlinear kernels, and minimization of a reduced primal formulation using an algorithm based on robust stochastic approximation, which do not require strong convexity. Experiments illustrate that our approaches produce solutions of comparable prediction accuracy with the solutions acquired from existing SVM solvers, but often in much shorter time. We also suggest efficient prediction schemes that depend only on the dimension of kernel approximation, not on the number of support vectors.

Introduction: The Scaling "Fork in the Road"

Support Vector Machines (SVMs) are a cornerstone of machine learning, yet they traditionally face a significant scalability challenge. Practitioners often find themselves at a crossroads:

  1. Dual methods (e.g., LIBSVM) utilize the "kernel trick" to handle nonlinear kernels effectively but scale poorly with the number of training examples, making them difficult to use on massive datasets.
  2. Primal subgradient methods (e.g., Pegasos) offer extreme speed and are ideal for online learning but are generally restricted to linear kernels and require strongly convex objectives.

When a dataset is both large and requires a nonlinear kernel (like a Gaussian RBF), these traditional methods struggle. Furthermore, methods like Pegasos rely on a specific $O(1/t)$ step-size that can become unstable or slow when the regularization parameter ($\lambda$) is small—a frequent occurrence in high-performance models.

The ASSET Framework

To bridge this gap, we propose ASSET (Approximate Stochastic Subgradient Estimation Training). ASSET brings the efficiency of linear SVM training to nonlinear problems through a two-step process:

1. Kernel Approximation

Instead of computing the full kernel matrix, ASSET uses randomized low-dimensional approximations (rank $d$). We explore two primary techniques:

  • Nyström Sampling: Approximating the Gram matrix by sampling a subset of the training data.
  • Random Fourier Features: Explicitly mapping data into a low-dimensional space using random projections, particularly effective for shift-invariant kernels like Gaussian.

2. Robust Stochastic Optimization

Once the kernel is approximated, the problem is transformed into a linear SVM in $d$-dimensional space. ASSET employs a "robust stochastic approximation" approach. Unlike the $O(1/t)$ steps used in Pegasos, ASSET utilizes $O(1/\sqrt{t})$ step lengths combined with iterated averaging. This allows the algorithm to converge reliably even when the objective is not strongly convex, making it more robust for real-world scenarios where $\lambda$ is small.

Experimental Setup

We evaluated ASSET across several benchmark datasets ranging from moderate to large scale. Notably, we included MNIST-E, an extended version of MNIST with one million samples, to test the limits of the algorithm's scalability.

Summary of benchmark datasets and experimental parameters.

Key Results and Insights

Accuracy and Dimension Trade-off

A critical finding is that the complexity of the SVM becomes a function of the approximation dimension $d$, rather than the number of training points $m$. As shown in the results below, once the approximation dimension reaches a sufficient size (e.g., $2^{10}$), the test error of ASSET matches that of "exact" kernel methods like SVM-Light.

Test error rate vs. approximation dimension log2(s) across five benchmark datasets.

Massive Speedups and Scalability

ASSET demonstrates significant computational advantages:

  • COVTYPE: ASSET achieved comparable accuracy to SVM-Light but reduced training time from hours to seconds.
  • MNIST-E (1M samples): ASSET completed training in approximately 7 hours. In contrast, LASVM, a popular online solver, required 4.3 days for a single pass through the same data.

Nyström vs. Random Features

Our experiments indicate that Nyström-based approximations (ASSET-M) generally yield better accuracy than Random Fourier Features (ASSET-F) for the same approximation dimension $d$, though Nyström requires a small upfront cost for eigen-decomposition.

Conclusion

ASSET successfully decouples model complexity from data size, allowing nonlinear SVMs to scale to millions of samples. By using $O(1/\sqrt{t})$ steps, it avoids the stability issues of previous subgradient methods. Future work may extend this stochastic framework to other kernel-based tasks such as regression and ranking.

Summary updated

BibTeX
@misc{lee2011approximate,
  author = {Sangkyun Lee and Stephen J. Wright},
  title = {{Approximate Stochastic Subgradient Estimation Training for Support Vector Machines}},
  year = {2011},
  eprint = {1111.0432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1111.0432},
}
Figure