Abstract
Kernel methods provide a principled approach to nonparametric learning. While their basic implementations scale poorly to large problems, recent advances showed that approximate solvers can efficiently handle massive datasets. A shortcoming of these solutions is that hyperparameter tuning is not taken care of, and left for the user to perform. Hyperparameters are crucial in practice and the lack of automated tuning greatly hinders efficiency and usability. In this paper, we work to fill in this gap focusing on kernel ridge regression based on the Nyström approximation. After reviewing and contrasting a number of hyperparameter tuning strategies, we propose a complexity regularization criterion based on a data dependent penalty, and discuss its efficient optimization. Then, we proceed to a careful and extensive empirical evaluation highlighting strengths and weaknesses of the different tuning strategies. Our analysis shows the benefit of the proposed approach, that we hence incorporate in a library for large scale kernel methods to derive adaptively tuned solutions.
Introduction
Kernel methods are a cornerstone of nonparametric machine learning, offering a robust framework for learning complex patterns. However, they are historically limited by a "scaling wall": standard implementations require $O(n^3)$ time and $O(n^2)$ space complexity, where $n$ is the number of data points. While the Nyström method—which approximates the kernel matrix using $m$ inducing points—has enabled kernel methods to scale to millions of samples, it introduces a significant challenge: hyperparameter (HP) tuning.
Tuning the regularization parameter $(\lambda)$, kernel lengthscales, and the locations of inducing points is critical for performance. Traditional methods like grid search or cross-validation become computationally prohibitive as the number of hyperparameters grows. This paper introduces an efficient, gradient-based framework to automate this process, enabling the optimization of thousands of parameters on massive datasets.
Methodology
The Complexity Regularization Objective
The authors propose a novel tuning objective, $L^{Prop}$, based on the principle of complexity regularization. Unlike standard "unbiased" estimators such as Generalized Cross-Validation (GCV), $L^{Prop}$ acts as a biased upper bound on the test error. It is composed of three primary components:
- Data-fit term: Measures the model's accuracy on the training set.
- Effective Dimension: A penalty term representing model variance and complexity.
- Nyström Approximation Error: A specific penalty accounting for information loss due to the Nyström approximation.
Scalable Optimization
Because $L^{Prop}$ is differentiable, the authors employ the Adam optimizer to tune all hyperparameters simultaneously. To maintain scalability, they utilize Stochastic Trace Estimation (STE). Computing the "Effective Dimension" involves the trace of a massive $n \times n$ matrix; the Hutchinson estimator approximates these traces using random vectors, ensuring the computation remains linear relative to the number of data points. This framework is implemented within the Falkon library for high-performance GPU-based kernel learning.
Key Insights and Ideas
Stability through Bias
A core finding of this research is that "unbiased" tuning criteria (like GCV or Hold-out) are prone to catastrophic overfitting when the number of hyperparameters is large. By utilizing a biased, "over-penalizing" objective, the proposed method achieves significantly greater stability and lower test error in practice.
Optimizing Inducing Points
Rather than selecting Nyström centers randomly, this framework treats them as continuous variables to be optimized. This allows the model to achieve high accuracy with a compact set of centers, which can speed up inference times by up to 20x compared to models using a larger number of random points.
Empirical Evaluation and Results
The researchers conducted an extensive evaluation across 20 small-to-medium scale datasets (e.g., Protein, MNIST, Abalone) and several large-scale datasets, including the 10-million-sample HIGGS dataset.
Key Performance Metrics
- Overfitting Resistance: Across the benchmark suite, $L^{Prop}$ consistently avoided the overfitting observed in GCV and Hold-out methods.
- Competitive Scalability: On the
HIGGSdataset, the automated tuning reached an error of 0.191 in just 1,244 seconds, outperforming popular Gaussian Process libraries like GPyTorch and GPFlow in both speed and accuracy. - Inference Efficiency: Optimized inducing points allowed a model with 5,000 centers to match the performance of a model using 100,000 random centers.
Conclusion
This work bridges the gap between the theoretical power of kernel methods and the practical need for automated, scalable hyperparameter tuning. By leveraging complexity regularization and stochastic trace estimation, the proposed framework provides a stable and efficient solution for large-scale Kernel Ridge Regression. Future work may extend these principles to more complex, structured kernels for image and text data.
Summary updated