Exponential Convergence Rates of Classification Errors on Learning with SGD and Random Features

Shingo Yashima, Atsushi Nitanda, Taiji Suzuki

Introduction

Kernel methods, such as Support Vector Machines, are highly flexible but scale poorly with large datasets, typically requiring $O(n^2)$ time and $O(n)$ memory. To mitigate this, practitioners often use Random Features (RF) to approximate the kernel space and Stochastic Gradient Descent (SGD) for efficient optimization. However, existing theoretical literature suggests a trade-off: the approximation introduced by random features might degrade learning accuracy unless the number of features $M$ scales with the dataset size. This paper challenges this view by analyzing the convergence of the actual classification error (0-1 loss) rather than surrogate loss functions.

Theoretical Framework

The authors investigate binary classification using a generalized linear model in a Random Fourier Features (RFF) space, optimized via Averaged SGD. Their primary contribution is a novel proof technique establishing an $L^\infty$-norm bound between the true population risk minimizer in the infinite-dimensional kernel space and the approximated minimizer in the finite-dimensional RF space.

By combining this bound with a "strong low-noise condition"—the assumption that class probabilities are strictly bounded away from 0.5—they prove that the classification error converges exponentially fast. Crucially, they show that once $M$ is sufficiently large, the convergence rate becomes independent of $M$, meaning one does not need to infinitely scale the number of features to achieve high accuracy.

Empirical Validation

The theoretical claims were validated using a synthetic 2D dataset designed to satisfy the strong low-noise condition, where conditional probabilities are set to 0.8 and 0.2 in distinct geometric regions.

Comparison of classification error (a) and loss function (b) convergence for M=1000.

As shown in Figure 1, there is a distinct disconnect between the surrogate loss and the classification error. While the logistic loss continues to decay slowly (sub-linearly), the classification error reaches its minimum almost immediately. This supports the idea that optimizing for loss beyond a certain point yields diminishing returns for actual classification performance.

Classification error convergence across different numbers of random features (M) compared to the full kernel method.

Figure 4 demonstrates the impact of the number of features $M$. While smaller $M$ values result in higher asymptotic error, increasing $M$ allows the model to closely track the performance of the full kernel method. Importantly, the convergence behavior stabilizes, confirming that a finite $M$ is sufficient for reaching target error rates.

Key Insights and Conclusion

This research provides the first theoretical proof of the efficiency of random features in classification settings, showing that they can be strictly superior to full kernel methods in terms of computation and memory.

  • Loss vs. Error Disconnect: Classification error can drop exponentially fast even when surrogate losses converge slowly.
  • Feature Independence: Beyond a threshold, the convergence rate of the classification error does not depend on the number of features $M$.
  • Computational Advantage: Random Features + SGD can achieve target classification accuracy significantly faster than full kernel methods.

While these results rely on the strong low-noise condition, they offer a robust explanation for why RF + SGD works so well in practice on well-separated datasets. Future work may extend these findings to more general noise conditions, such as the Tsybakov margin condition.

Summary updated

BibTeX
@inproceedings{yashima2021exponential,
  author = {Shingo Yashima and Atsushi Nitanda and Taiji Suzuki},
  title = {{Exponential Convergence Rates of Classification Errors on Learning with SGD and Random Features}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=P4StCgz0K6r},
}
Figure