[Paper Review] Faster Kernel Ridge Regression Using Sketching and Preconditioning
This paper proposes a novel preconditioning technique for Kernel Ridge Regression (KRR) that uses random feature maps—such as random Fourier features—to accelerate iterative solvers. By constructing a preconditioner from a small number of random features, the method reduces the condition number of the kernel matrix, enabling fast and accurate solution of the KRR system with near-linear time complexity in practice, achieving state-of-the-art performance on datasets up to one million examples.
Kernel Ridge Regression (KRR) is a simple yet powerful technique for non-parametric regression whose computation amounts to solving a linear system. This system is usually dense and highly ill-conditioned. In addition, the dimensions of the matrix are the same as the number of data points, so direct methods are unrealistic for large-scale datasets. In this paper, we propose a preconditioning technique for accelerating the solution of the aforementioned linear system. The preconditioner is based on random feature maps, such as random Fourier features, which have recently emerged as a powerful technique for speeding up and scaling the training of kernel-based methods, such as kernel ridge regression, by resorting to approximations. However, random feature maps only provide crude approximations to the kernel function, so delivering state-of-the-art results by directly solving the approximated system requires the number of random features to be very large. We show that random feature maps can be much more effective in forming preconditioners, since under certain conditions a not-too-large number of random features is sufficient to yield an effective preconditioner. We empirically evaluate our method and show it is highly effective for datasets of up to one million training examples.
Motivation & Objective
- Address the computational bottleneck of Kernel Ridge Regression (KRR), which requires solving a dense, ill-conditioned linear system with O(n³) cost for n data points.
- Overcome the limitations of existing approximation methods that sacrifice model accuracy for speed, particularly when using large numbers of random features.
- Develop a preconditioning strategy that leverages random feature maps not for direct approximation, but to improve the convergence of iterative solvers on the exact KRR system.
- Enable high-accuracy KRR solutions with significantly reduced runtime by bounding the condition number of the kernel matrix using a small number of random features.
- Demonstrate the effectiveness of the method on large-scale datasets, including those with up to one million training examples, without compromising generalization performance.
Proposed method
- Construct a preconditioner using random feature maps (e.g., random Fourier features) applied to the kernel matrix, rather than using them to directly approximate the kernel function.
- Use the random feature map to generate a low-rank approximation of the kernel matrix, which is then used to precondition the linear system (K + λI)c = y.
- Apply an iterative Krylov subspace method (e.g., conjugate gradient) to solve the preconditioned system, which converges much faster due to improved conditioning.
- Theoretical analysis shows that for polynomial kernels, selecting the number of random features proportional to the statistical dimension (effective degrees of freedom) yields a bounded condition number.
- The preconditioner is computed efficiently in O(ns²) time, where s is the number of random features, and s is chosen to be much smaller than n.
- The method combines sketching (via random features) and preconditioning to achieve a runtime between O(n²) and O(n³), often behaving like O(n²) in practice.
Experimental results
Research questions
- RQ1Can random feature maps be used effectively not as direct approximations to the kernel, but as preconditioners to accelerate iterative solvers for exact KRR?
- RQ2What is the theoretical relationship between the number of random features and the condition number of the preconditioned kernel matrix?
- RQ3Does using a small number of random features as a preconditioner lead to faster convergence and better generalization than direct approximation methods with many features?
- RQ4How does the proposed method scale on large-scale datasets, particularly those with up to one million examples?
- RQ5Can the preconditioning approach improve robustness and convergence of iterative solvers compared to non-preconditioned methods on ill-conditioned kernel matrices?
Key findings
- The proposed preconditioning method achieves near-linear time complexity in practice, often scaling as O(n²), significantly outperforming standard O(n³) direct methods.
- For polynomial kernels, using a number of random features proportional to the statistical dimension ensures the condition number of the preconditioned system is bounded by a constant.
- On datasets with up to one million examples, the method achieves better test error rates than non-preconditioned conjugate gradient and state-of-the-art random feature-based solvers.
- The method is more robust than non-preconditioned conjugate gradient: while the latter failed to converge on MNIST-200K and MNIST-300K, the preconditioned method succeeded and achieved lower error rates.
- Even with a tolerance of 10⁻³, the generalization error was nearly identical to that of 10⁻², indicating that tighter tolerances provide minimal benefit, validating the use of 10⁻³ for high-accuracy results.
- The method maintains high model accuracy without requiring a large number of random features, avoiding the performance degradation often seen in direct random feature approximation methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.