arXiv:2610.13382cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13382

BLOKS: Scaling Kernel Solvers with Sketched Block Preconditioning

Giordano Vitale, Giacomo Meanti, Marco Rando, Blanca Ayuso de Dios, Lorenzo Rosasco

Abstract

Kernel Ridge Regression (KRR) is a theoretically sound algorithm for nonparametric learning, which is also often used to investigate properties of deep learning. However, the exact KRR formulation incurs time and memory costs preventing applicability to large datasets, motivating the development of approximate solvers. These algorithms rely on (i) iterative methods, to avoid the computational burden of direct solutions; (ii) sketching or batching, to reduce the problem size; and (iii) preconditioning, to accelerate convergence. While crucial for fast convergence, preconditioning incurs memory costs that can be managed by lowering the number of free parameters of the model, potentially at the expense of expressivity and hence accuracy. To address this challenge, we propose BLOKS, a Conjugate Gradient-based solver for Nyström-sketched KRR built around a novel preconditioner that combines a block Jacobi approximation with sketching. The BLOKS preconditioner has memory cost independent of both the dataset size and the number of parameters, allowing scaling to large models. We provide a memory-efficient, GPU-accelerated implementation and show that BLOKS achieves excellent accuracy while retaining favorable time/memory complexity. Indeed, on standard large-scale datasets used to benchmark kernel solvers, BLOKS achieves comparable or better performances than state-of-the-art methods.

1 Introduction

Kernel methods are a well-established class of machine learning models, and their strong theoretical foundations (Steinwart and Christmann 2008) make them a valuable tool for understanding the behavior of deep neural networks (Belkin, Ma, and Mandal 2018; Belkin, Hsu, et al. 2019; Jacot, Gabriel, and Hongler 2018; C. Zhang et al. 2021). Despite these advantages, scaling kernel methods to large datasets remains challenging. Training Kernel Ridge Regression (KRR) requires solving an n×nn \times n linear system, where n is the number of training points, and computing its exact solution costs O(n3)\mathcal{O}(n^3) time and O(n2)\mathcal{O}(n^2) memory (Schölkopf and Smola 2001), which quickly becomes prohibitive as n grows.

To overcome these limitations, several algorithms have been proposed. They typically compute an approximate solution by combining three main ingredients: iterative methods, sketching or batching, and preconditioning. Existing methods differ in how they combine these ingredients and can be broadly divided into two classes, depending on whether they solve the full problem or a sketched approximation of it.

The first class of methods solves the full KRR problem and reduces the time cost through the choice of the optimizer or the design of the preconditioner. Some combine the Conjugate Gradient (CG) method with a sketched preconditioner, retaining the favorable convergence of CG while further reducing the number of iterations (Frangella, Joel A. Tropp, and Udell 2023; Avron, Clarkson, and Woodruff 2017; Díaz et al. 2026). However, each iteration still costs O(n2)\mathcal{O}(n^{2}) time, limiting these methods to datasets of moderate size. Others reduce the per-iteration cost by relying on stochastic solvers (Ma and Belkin 2017; Ma and Belkin 2019) or block-coordinate methods (Rathore et al. 2026), at the price of slower convergence.

The second class of methods reduces the number of model parameters to m≪nm \ll n, using sketching techniques, like the Nyström method (Williams and Seeger 2000; Rudi, Camoriano, and Rosasco 2015) or random Fourier features (Rahimi and Recht 2007), making each CG iteration much cheaper. Then, carefully designed preconditioners for the sketched problem ensure fast convergence (Rudi, Carratino, and Rosasco 2017; Meanti et al. 2020; Díaz et al. 2026). However, these methods must store an m×mm \times m preconditioner, whose O(m2)\mathcal{O}(m^2) memory cost becomes prohibitive when mm is large (Abedsoltan, Belkin, and Pandit 2023). This cost can be managed in two ways. The first is to keep mm small, which is a significant limitation, since large models are often needed to reach optimal accuracy (Abedsoltan, Ma, et al. 2025; J. Zhang and Lai 2025; Rathore et al. 2026). The second is to use stochastic solvers with cheaper preconditioners (Abedsoltan, Belkin, and Pandit 2023; Abedsoltan, Ma, et al. 2025) or block-coordinate approaches (J. Zhang and Lai 2025), giving up the fast convergence of CG.

In this work, we show that this trade-off can be overcome. We propose BLOKS, a CG-based solver for Nyström-sketched KRR built around a novel preconditioner that combines a block Jacobi approximation with sketching. The BLOKS preconditioner is inexpensive in memory to compute, and its spatial complexity is independent of both the number of data n and the model size m. This allows BLOKS to scale to large models while retaining the fast and step-size-free convergence of preconditioned CG. We provide a memory-efficient, GPU-accelerated implementation, allowing us to scale Nyström KRR up to m=3.2Mm = 3.2M parameters. Our numerical experiments show that BLOKS achieves excellent accuracy while retaining favorable time/memory complexity. Indeed, on standard large-scale datasets used to benchmark kernel solvers, BLOKS achieves comparable or better performances than state-of-the-art methods.

The paper is organized as follows. Section 2 introduces the setting and the necessary background. Section 3 introduces the BLOKS algorithm and Section 4 discusses related work. Section 5 reports our experiments, and Section 6 contains some final remarks.

References (100)

Couldn't load all references. Reload the page to try again.