Abstract
We study a natural extension of classical empirical risk minimization, where the hypothesis space is a random subspace of a given space. In particular, we consider possibly data dependent subspaces spanned by a random subset of the data, recovering as a special case Nyström approaches for kernel methods. Considering random subspaces naturally leads to computational savings, but the question is whether the corresponding learning accuracy is degraded. These statistical-computational tradeoffs have been recently explored for the least squares loss and self-concordant loss functions, such as the logistic loss. Here, we work to extend these results to convex Lipschitz loss functions, that might not be smooth, such as the hinge loss used in support vector machines. This extension requires developing new proofs, that use different technical tools. Our main results show the existence of different settings, depending on how hard the learning problem is, for which computational efficiency can be improved with no loss in performance. Theoretical results are illustrated with simple numerical experiments.
Introduction
Empirical Risk Minimization (ERM) is a fundamental paradigm in supervised learning. However, when applied to infinite-dimensional hypothesis spaces, such as those associated with kernel methods, the computational cost becomes prohibitive. Standard Kernel Support Vector Machines (SVM) or Kernel Ridge Regression typically scale at least quadratically ($O(n^2)$) or even cubically ($O(n^3)$) with the number of data points $n$.
The Nyström method provides a scalable alternative by projecting the problem onto a smaller, random subspace $\mathcal{B}_m$ defined by $m$ "landmark" points, where $m \ll n$. While the theoretical properties of this approach are well-established for square loss (Kernel Ridge Regression), its performance with non-smooth losses—such as the Hinge loss—has remained less understood. This work addresses whether the computational benefits of Nyström methods can be achieved without sacrificing the statistical fast rates of convergence.
Theoretical Framework and Methodology
The core of our investigation is the study of Regularized ERM on random subspaces. We define the expected risk $L(w)$ and its empirical counterpart $\widehat{L}(w)$, along with their regularized versions. The objective is to find a minimizer within a random subspace $\mathcal{B}_m = \text{span}\{\tilde{x}_1, \dots, \tilde{x}_m\}$.
Subspace Selection
We utilize Approximate Leverage Score (ALS) sampling to select the landmark points. Unlike uniform sampling, ALS prioritizes points that are "influential" or "unique" in the feature space. This is critical for maintaining high accuracy with a significantly reduced number of points.
Algorithm: Nyström-Pegasos
To validate the theoretical findings, we implement the Nyström-Pegasos algorithm. This involves:
- Embedding the data using the Nyström approximation based on the selected subspace.
- Solving the resulting primal problem using a stochastic subgradient descent solver (Pegasos).
Key Insights
Computational Efficiency and Accuracy
A primary insight is the existence of a "threshold" for the number of Nyström points $m$. Beyond this threshold, increasing $m$ does not yield significant improvements in accuracy but increases computational overhead. This threshold is heavily influenced by the eigenvalue decay of the data's covariance operator. For fast decay (polynomial or exponential), $m$ can be as small as $\sqrt{n}$ or $\log^2 n$.
Loss Function Comparison
In classification tasks, the Hinge loss (SVM) can be computationally more efficient than the square loss. For "hard" problems characterized by high noise or slow approximation, the Hinge loss requires fewer Nyström points to reach its optimal error rate compared to the square loss.
Empirical Results
The approach was evaluated on several large-scale datasets, including SUSY (5M samples), MNIST, Webspam, and CIFAR-10.
- Optimal Bounds: We provide the first optimal excess risk bounds for Nyström with generic convex losses, matching the $O(1/\sqrt{n})$ rates of full ERM.
- Scalability: On the SUSY dataset, Nyström-Pegasos achieved a 20% classification error using only $m=2500$ landmark points. This represents a massive reduction in dimensionality, making kernel methods feasible for millions of samples.
- Performance: Across all benchmarks, the Nyström-based approach matched the accuracy of full Kernel-SVMs while being orders of magnitude faster in training and prediction.
Conclusion and Future Work
This work demonstrates that Nyström methods can be effectively extended to non-smooth losses with strong statistical guarantees. While the current analysis assumes sub-gaussian data distributions, future work will explore heavier-tailed distributions and other sketching techniques like Gaussian random projections. Additionally, the practical challenge of tuning the number of points $m$ and sampling parameters remains an area for further refinement.
Summary updated