But How Does It Work in Theory? Linear SVM with Random Features

Yitong Sun, Anna C. Gilbert, Ambuj Tewari

Introduction

Kernel methods, such as the Support Vector Machine (SVM), are foundational tools in machine learning. They derive their power from implicitly mapping data into high-dimensional spaces where complex, non-linear patterns become linearly separable. However, this power comes at a steep computational cost: calculating the kernel matrix for $m$ samples requires $O(m^2)$ space and $O(m^3)$ time, rendering traditional kernel methods impractical for massive datasets.

To circumvent this bottleneck, researchers frequently employ Random Features (RF). By explicitly mapping data to a finite $N$-dimensional vector of random features, the problem is transformed into a standard linear SVM, which is significantly faster to train. Despite its widespread practical success, the theoretical guarantees for Random Feature Support Vector Machines (RFSVMs) have historically been pessimistic. Previous theory suggested that achieving high accuracy required a massive number of features ($N$), and even then, the error would decrease at a sluggish rate of $O(1/\sqrt{m})$.

This paper bridges the gap between theory and practice, asking whether RFSVMs perform better than these pessimistic bounds imply. The authors successfully prove that RFSVMs can achieve "fast" learning rates—approaching $O(1/m)$—using far fewer features than previously thought, provided the data exhibits low noise and the feature maps are properly optimized.

Theoretical Framework and Methodology

The authors analyze RFSVM formulated as a regularized optimization problem using the hinge loss. Their theoretical framework is built upon three main mathematical pillars:

  1. Massart’s Low Noise Condition: This assumption posits that data labels are not purely random near the decision boundary—a characteristic commonly found in real-world classification tasks.
  2. Optimized Feature Maps: Instead of relying on the standard approach of picking random features uniformly, the authors explore maps optimized via leverage scores. These scores identify which random features are the most "informative" for representing the underlying kernel.
  3. Local Rademacher Complexity: A sophisticated mathematical tool used to bound the "excess risk," which is the gap between the learned model's performance and the best possible theoretical model.

To translate these theoretical concepts into practice, the authors implement a reweighted feature selection algorithm. This algorithm begins with a large pool of random features and resamples a smaller subset based on their calculated importance, effectively approximating an "optimized" feature map.

Key Insights

A major takeaway from the paper is the "Optimized" Advantage. Uniform sampling of random features is often highly inefficient. By utilizing optimized features with high leverage scores, the kernel space can be represented much more accurately using only a tiny fraction of the features.

Furthermore, the authors demonstrate that RFSVM is not merely a "slow" approximation of a Kernel SVM. Under the right conditions, it can hit the "fast" learning rate of $O(1/m)$, the gold standard in statistical learning theory. The paper provides rigorous proofs for both "realizable" scenarios (where the true decision boundary exists within the kernel's space) and "unrealizable" scenarios. In both cases, optimized features yield a massive performance boost.

Ultimately, the authors argue for a paradigm shift: RFSVM should be viewed as an independent learning model rather than just a "cheap version" of a Kernel SVM. Consequently, its optimal hyperparameters, such as the regularization constant $\lambda$, often differ from its kernel counterpart.

Experimental Validation

The theoretical claims are validated using a mix of synthetic and real-world datasets:

  • Synthetic Data: The authors use a 2D "circle vs. annulus" dataset (with 10% noise) and a 10-dimensional variant to test how the method scales with dimensionality.
  • Real-World Data: The classic MNIST benchmark of hand-written digits is used to demonstrate efficacy on actual image data.

Results: The authors theoretically prove that for kernels with a fast-decaying spectrum (like the Gaussian kernel), RFSVM can achieve a learning rate of nearly $O(1/m)$ using only $poly(\log m)$ features. Empirically, the "optimized" (reweighted) RFSVM consistently outperformed the standard "uniform" RFSVM across datasets. This advantage was particularly striking when the number of features ($N$) was very small, allowing the optimized version to reach high accuracy much faster. On MNIST, the reweighted feature selection method showed a clear classification accuracy advantage over standard random features across various sample sizes.

Limitations and Future Work

While the theoretical and empirical results are compelling, the paper acknowledges several limitations:

  • The Practicality of Optimization: Finding a perfectly optimized feature map in practice is challenging because it technically requires prior knowledge of the data distribution. While the proposed reweighted algorithm serves as a strong proxy, its own theoretical guarantees are not yet fully established.
  • The Curse of Dimensionality: In cases of "sub-exponential" decay—common in high-dimensional settings—the number of samples required to observe these fast learning rates can still be quite large. The analysis may be conservative for very high-dimensional data.
  • Beyond Gaussian Kernels: The theory presented is general, but some of the tightest bounds and strongest results are specific to Gaussian kernels. Extending these rigorous guarantees to a wider variety of kernels remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{sun2018but,
  author = {Yitong Sun and Anna C. Gilbert and Ambuj Tewari},
  title = {{But How Does It Work in Theory? Linear SVM with Random Features}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure