Authors: Luis Rademacher (Mathematics, UC Davis), Mikhail Belkin (HDSI, UCSD)
Abstract
Kernel methods are a popular class of nonlinear predictive models in machine learning. Scalable algorithms for learning kernel models need to be iterative in nature, but convergence can be slow due to poor conditioning. Spectral preconditioning is an important tool to speed-up the convergence of such iterative algorithms for training kernel models. However computing and storing a spectral preconditioner can be expensive which can lead to large computational and storage overheads, precluding the application of kernel methods to problems with large datasets. A Nystrom approximation of the spectral preconditioner is often cheaper to compute and store, and has demonstrated success in practical applications. In this paper we analyze the trade-offs of using such an approximated preconditioner. Specifically, we show that a sample of logarithmic size (as a function of the size of the dataset) enables the Nyström-based approximated preconditioner to accelerate gradient descent nearly as well as the exact preconditioner, while also reducing the computational and storage overheads.
Introduction
Kernel methods, such as Support Vector Machines and Gaussian Processes, are powerful tools for non-linear modeling. However, their application to large-scale datasets is often hindered by the computational complexity of training. Iterative solvers like Gradient Descent (GD) are typically employed for large datasets, but kernel matrices are frequently ill-conditioned, leading to slow convergence.
Preconditioning offers a solution by transforming the problem to improve the condition number. Spectral preconditioning, which targets the largest eigenvalues, is highly effective but computationally prohibitive, requiring $O(n^2)$ space and $O(qn^2)$ time. While the Nyström approximation—using a subset of data to estimate the preconditioner—is used in practice, its theoretical guarantees regarding the required sample size $s$ to maintain speed-up were previously unestablished.
Methodology: Nyström-preconditioned Gradient Descent (nPGD)
The authors investigate nPGD, which utilizes an approximate preconditioner. The approach involves:
- Spectral Preconditioning: Defining a preconditioner $P_q$ that levels the top $q$ eigenvalues.
- Nyström Approximation: Constructing an approximate preconditioner $P_{s,q}$ using a random subset of size $s$.
- Theoretical Analysis: Bridging additive error (matrix approximation) and multiplicative error (impact on condition number and convergence).
The core contribution is a proof using concentration inequalities for operators in Reproducing Kernel Hilbert Spaces (RKHS), showing that the approximate preconditioner preserves convergence benefits with minimal overhead.
Key Insights
- The Logarithmic Miracle: A critical finding is that the Nyström sample size $s$ only needs to grow proportionally to $\log^4(n)$. This implies that for massive datasets, the required subset size for effective preconditioning remains remarkably small.
- Multiplicative vs. Additive Approximation: Unlike prior work focused on additive error in kernel matrix approximation, this study emphasizes multiplicative approximation of the condition number. It proves that proximity in operator norm translates to proximity in preconditioned condition numbers.
- Theoretical Support for EigenPro: This work provides the mathematical foundation for high-performance solvers like EigenPro, which rely on these approximations for state-of-the-art GPU performance.
Results
The main result (Theorem 2) establishes that for an error tolerance $\epsilon$, the condition number of the nPGD system is at most $(1+\epsilon)^4$ times that of the exact PGD system, provided $s \geq \Omega(\frac{\log^4 n}{\epsilon^4})$.
As shown in the table above, nPGD significantly reduces storage and setup time compared to exact PGD while maintaining a comparable speed-up over standard Gradient Descent. Specifically, storage is reduced from $O(qn)$ to $O(q \cdot \text{polylog } n)$, and setup time from $O(qn^2)$ to $O(q \cdot \text{polylog } n)$.
Conclusion and Future Work
This paper rigorously justifies the use of Nyström-based preconditioning for large-scale kernel machines. While the results are transformative for regression (quadratic loss), future work is needed to extend these guarantees to other loss functions like logistic loss. Additionally, exploring scenarios where the preconditioning level $q$ scales with $n$ and refining the universal constants in the sample size bounds remain important open areas for research.
Summary updated