NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust, randomized preconditioning for kernel ridge regression

Mateo Díaz, Ethan N. Epperly, Zachary Frangella, Joel A. Tropp, Robert J. Webber · DOI

TL;DR

This paper introduces two novel randomized preconditioning techniques, RPCholesky and KRILL, designed to make Kernel Ridge Regression (KRR) computationally feasible for large datasets. These methods offer significant speedups and robustness compared to existing approaches, enabling accurate predictions for problems previously intractable due to computational cost.

What Problem Does This Paper Address?

Kernel Ridge Regression (KRR) is a powerful machine learning technique for function approximation, but its practical application is severely limited by computational complexity. Solving KRR problems typically involves inverting an $N \times N$ kernel matrix, which scales as $O(N^3)$. This makes KRR infeasible for datasets with more than $10^4$ data points, a common scenario in modern machine learning. While preconditioned conjugate gradient (CG) methods offer a way to speed up KRR, existing preconditioners often fail on challenging datasets or require delicate parameter tuning. This paper aims to develop robust and efficient preconditioning techniques that overcome these limitations.

Methods

The paper introduces two main preconditioning strategies:

  • RPCholesky Preconditioning: This method is designed for full-data KRR problems. It constructs a low-rank approximation of the kernel matrix using a randomized Cholesky decomposition with adaptive pivot selection. This approach aims to accurately approximate the kernel matrix, enabling CG to converge quickly. Under favorable conditions (rapid eigenvalue decay of the kernel matrix), RPCholesky can solve the full-data KRR problem in $O(N^2)$ operations.
  • KRILL Preconditioning: This method addresses restricted KRR problems, where only a subset of $k \ll N$ data points (centers) are used. KRILL leverages sparse random sign embeddings to approximate the Gram matrix. This randomized approach provides strong theoretical guarantees and allows for efficient solutions in $O((N + k^2) k \log k)$ operations, regardless of eigenvalue decay.

Both methods are designed to be robust and require minimal parameter tuning, making them suitable for practical applications.

Datasets

The paper evaluates its methods on a variety of datasets, including:

  • Testbed datasets: ACSIncome, Airlines_DepDelay_1M, cod_rna, COMET_MC_SAMPLE, connect_4, covtype_binary, creditcard, diamonds, HIGGS, hls4ml_lhc_jets_hlf, ijcnn1, jannis, Medical_Appointment, MNIST, sensit_vehicle, sensorless, volkert, w8a, YearPredictionMSD, yolanda.
  • Additional datasets: QM9 (used for HOMO energy prediction) and SUSY (used for exotic particle detection).

The QM9 dataset consists of $1.3 \times 10^5$ organic molecules, and the SUSY dataset is derived from simulations of particle decays, with $5 \times 10^6$ training data points.

Key Insights and Ideas

  • Randomization as a Robustness Tool: The paper highlights how randomized matrix approximations, specifically through RPCholesky and KRILL, can lead to more robust preconditioners that are less sensitive to the specific properties of the kernel matrix (like eigenvalue decay).
  • Balancing Approximation Accuracy and Cost: Both RPCholesky and KRILL strike a balance between the cost of constructing the preconditioner and its effectiveness in reducing CG iterations. RPCholesky's adaptive sampling and KRILL's sparse embeddings are key to this balance.
  • Overcoming Failure Modes of Existing Methods: The paper demonstrates that traditional methods like uniform or greedy sampling for Nyström approximations can fail on certain kernel matrices. RPCholesky's adaptive sampling avoids these pitfalls.
  • Theoretical Guarantees for Practical Performance: The proposed methods come with strong theoretical guarantees, ensuring their effectiveness under specific conditions, which builds confidence in their practical applicability.

Key Results

  • RPCholesky: Solves full-data KRR problems in $O(N^2)$ operations under favorable eigenvalue decay conditions. Empirically, it outperforms other low-rank approximation methods on various regression and classification tasks. For the QM9 dataset ($N=1.3 \times 10^5$), it achieved high predictive accuracy with only 60 CG iterations.
  • KRILL: Solves restricted KRR problems in $O((N + k^2) k \log k)$ operations. It demonstrates robust performance across a range of regularization parameters and kernel matrices. For the SUSY dataset ($N=5 \times 10^6$), KRILL achieved a test error of 19.5% in just 4 CG iterations, significantly outperforming FALKON and unpreconditioned CG.
  • Computational Speedup: The paper shows substantial computational time savings, especially for large datasets, with KRILL becoming the dominant algorithm when the number of centers reaches $k=1250$.

Limitations and Future Work

  • RPCholesky's Eigenvalue Decay Dependency: RPCholesky's performance is still dependent on the eigenvalue decay of the kernel matrix, especially when regularization is small. The authors suggest that future work should explore preconditioners based on hierarchical decompositions or sparse inverse approximations for problems with slow eigenvalue decay.
  • KRILL's Parameter Selection: While KRILL's analysis doesn't require specific eigenvalue decay, the optimal sparsity and embedding dimension for its sparse sign embedding are not precisely specified. Further analysis is needed to close the theory-practice gap.
  • KRILL's Numerical Stability: The paper notes potential numerical stability concerns with KRILL and mentions adding a small shift to the regularizer as a practical remedy, though this hasn't been rigorously analyzed.
  • Efficient Center Selection for KRILL: The paper uses random sampling for center selection in KRILL, which is computationally trivial but may not be optimal. Developing faster procedures for identifying high-quality centers is suggested as future work.
  • KRILL's Cost vs. Ideal: While KRILL is efficient, its cost is still higher than an ideal $O(kN)$ for restricted KRR due to the inversion of the $k \times k$ preconditioner. Investigating more efficient algorithms for this scenario is a potential future direction.

Summary updated

BibTeX
@misc{diaz2023robust,
  author = {Mateo Díaz and Ethan N. Epperly and Zachary Frangella and Joel A. Tropp and Robert J. Webber},
  title = {{Robust, randomized preconditioning for kernel ridge regression}},
  year = {2023},
  eprint = {2304.12465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.12465},
}
Figure