Have ASkotch: A Neat Solution for Large-scale Kernel Ridge Regression

Pratik Rathore, Zachary Frangella, Jiaming Yang, Michał Dereziński, Madeleine Udell

TL;DR

ASkotch is a new, highly scalable iterative solver for full Kernel Ridge Regression (KRR) that breaks the traditional trade-off between speed and accuracy. By combining sketch-and-project methods with Nyström approximations and Nesterov acceleration, it achieves provable linear convergence and outperforms existing state-of-the-art solvers on datasets with up to 100 million samples using a single GPU.

What Problem Does This Paper Address?

Kernel Ridge Regression (KRR) is a cornerstone of machine learning, essential for everything from Gaussian process regression to computational chemistry. However, it has a massive scaling problem. Direct solvers (like Cholesky decomposition) require $O(n^3)$ time and $O(n^2)$ storage, making them unusable for datasets larger than $10^4$ points. Iterative methods like Preconditioned Conjugate Gradient (PCG) improve this but still struggle with $O(n^2)$ per-iteration costs and heavy memory requirements for preconditioners.

To cope, researchers usually resort to "inducing points"—solving an approximate version of the problem on a small subset of data. The catch? These approximations often lead to significantly worse predictive performance than the "full" KRR solution. The authors of this paper set out to prove that we don't have to settle for approximations; we can solve the full KRR problem at a massive scale.

Methods

The authors introduce ASkotch (Accelerated Scalable Kernel Optimization and Training with Coordinate Sketch-and-Project and Approximate Hessians). The algorithm is built on three main pillars:

  1. Sketch-and-Project (SAP): A randomized iterative framework that solves linear systems by projecting the current estimate onto a "sketched" (subsampled) version of the problem at each step.
  2. Nyström Matrix Approximation: Traditionally, SAP requires solving a $b \times b$ linear system (where $b$ is the block size) at every iteration, which costs $O(b^3)$. ASkotch uses a regularized rank-$r$ Nyström approximation to reduce this cost to $O(br)$, allowing for much larger block sizes.
  3. Nesterov Acceleration: The authors integrate classical acceleration techniques to speed up the convergence of the iterative process.

Crucially, the algorithm includes an automatic stepsize mechanism based on a "preconditioned smoothness constant," which removes the need for expensive hyperparameter grid searches.

Datasets

The authors evaluated ASkotch on a massive testbed of 23 large-scale regression and classification tasks ($n \ge 10^5$):

  • Computer Vision: CIFAR-10, MNIST, Fashion-MNIST, SVHN.
  • Particle Physics: MiniBooNE, Comet_MC, SUSY, Higgs.
  • Computational Chemistry: QM9 and eight different molecule datasets (e.g., Aspirin, Benzene).
  • Other: Ecological modeling (Covtype), Online advertising (Click_prediction), and Socioeconomics (ACSIncome).
  • The "Showcase" Dataset: A subsample of the New York City Taxi dataset containing 100 million samples ($n=10^8$).

Key Insights and Ideas

  • Full KRR > Inducing Points: The paper demonstrates that solving the full KRR problem, even iteratively, consistently yields better predictive accuracy than the standard inducing-point approximations used by solvers like Falkon.
  • ARLS-to-DPP Reduction: A major theoretical breakthrough. The authors developed a new way to analyze convergence by relating "Approximate Ridge Leverage Score" (ARLS) sampling to "Determinantal Point Processes" (DPP). This allows them to prove that ASkotch achieves linear convergence without needing the expensive preprocessing required by previous methods.
  • Condition-Number-Free Convergence: Under specific conditions, ASkotch's convergence rate is independent of the kernel matrix's condition number. This makes the solver incredibly robust and stable compared to stochastic gradient methods that often diverge on difficult datasets.
  • Hardware Synergy: By allowing for large block sizes ($b$), ASkotch effectively exploits the massive parallelism of modern GPUs.

Key Results

ASkotch was compared against state-of-the-art solvers including EigenPro 2.0/3.0, Falkon, and PCG.

  • Superior Performance: As shown in Figure 3, ASkotch solved a much higher fraction of classification and regression problems within the time budget than any competitor. Performance comparison on 23 tasks
  • Massive Scale: On the 100-million-sample Taxi dataset, ASkotch achieved a lower Root Mean Square Error (RMSE) faster than Falkon, while competitors like PCG couldn't even finish a single iteration within 24 hours (see Figure 1). Taxi dataset results
  • Reliability: Unlike EigenPro, which diverged on several datasets using default settings, ASkotch's default hyperparameters proved reliable across the entire testbed.
Performance comparison on 23 tasks
Taxi dataset results

Limitations and Future Work

While ASkotch represents a significant leap forward, the authors note a few areas for improvement:

  • Parameter Tuning: Although the defaults are strong, the acceleration parameters ($\hat{\mu}$ and $\hat{\nu}$) currently require some manual oversight. Future work aims to make these fully automatic.
  • Distributed Computing: The current implementation is optimized for a single GPU. The authors plan to develop a distributed version to scale to datasets with billions of points ($n > 10^9$).
  • Mixed Precision: Exploring mixed-precision arithmetic could further reduce the memory footprint and increase computational speed without sacrificing the solver's high-precision capabilities.

Summary updated

Abstract

Kernel ridge regression (KRR) is a fundamental computational tool, appearing in problems that range from computational chemistry to health analytics, with a particular interest due to its starring role in Gaussian process regression. However, full KRR solvers are challenging to scale to large datasets: both direct (i.e., Cholesky decomposition) and iterative methods (i.e., PCG) incur prohibitive computational and storage costs. The standard approach to scale KRR to large datasets chooses a set of inducing points and solves an approximate version of the problem, inducing points KRR. However, the resulting solution tends to have worse predictive performance than the full KRR solution. In this work, we introduce a new solver, ASkotch, for full KRR that provides better solutions faster than state-of-the-art solvers for full and inducing points KRR. ASkotch is a scalable, accelerated, iterative method for full KRR that provably obtains linear convergence. Under appropriate conditions, we show that ASkotch obtains condition-number-free linear convergence. This convergence analysis rests on the theory of ridge leverage scores and determinantal point processes. ASkotch outperforms state-of-the-art KRR solvers on a testbed of 23 large-scale KRR regression and classification tasks derived from a wide range of application domains, demonstrating the superiority of full KRR over inducing points KRR. Our work opens up the possibility of as-yet-unimagined applications of full KRR across a number of disciplines.
BibTeX
@inproceedings{rathore2024have,
  author = {Pratik Rathore and Zachary Frangella and Jiaming Yang and Michał Dereziński and Madeleine Udell},
  title = {{Have ASkotch: A Neat Solution for Large-scale Kernel Ridge Regression}},
  booktitle = {Open},
  year = {2024},
}
Figure