Manuscript Offprint
arXiv:2610.13382BLOKS: Scaling Kernel Solvers with Sketched Block Preconditioning
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 linear system, where n is the number of training points, and computing its exact solution costs time and 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 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 , 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 preconditioner, whose memory cost becomes prohibitive when is large (Abedsoltan, Belkin, and Pandit 2023). This cost can be managed in two ways. The first is to keep 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 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.
where is a regularization parameter and the term is added to prevent overfitting. In principle problem (1) requires minimizing a functional over the possibly infinite dimensional RKHS . The representer theorem (Kimeldorf and Wahba 1970; Schölkopf, Herbrich, and Smola 2001) however states that the minimum is attained by functions of the form
parametrized by a vector of coefficients . By substituting the expression of into , KRR reduces to the finite dimensional minimization problem
(3) where , is the kernel matrix defined by for and denotes the standard Euclidean norm. Solving problem (3) is equivalent to solving the linear system
In large scale scenarios, directly solving problem (4) is unfeasible. Performing the Cholesky decomposition of costs in time and in memory (Golub and Van Loan 2013). Modern algorithms typically address this computational cost through three approaches: sketching, iterative methods and preconditioning.
Sketching. As the matrix is too large to effectively operate with, the first idea is to compress, or sketch it into a smaller matrix. Popular techniques for kernel matrix compression include Random Fourier Features (RFF) (Rahimi and Recht 2007) and Nyström-based approximations (Williams and Seeger 2000). We focus here on the Nyström approach. Let and sampled uniformly at random. We call the Nyström centers and consider predictors of the form
where is a compressed vector of coefficients. By restricting problem (1) to functions of this form, Nyström KRR consists of solving
where and are kernel matrices defined respectively by and for and . Solving (6) is equivalent to solving the linear system
Remark 2.1 (Invertibility of ) For simplicity, we assume the matrix to be invertible. In practice this assumption is ensured by means of jittering. Nonetheless, system (7) is always consistent since is always in the range of , meaning a solution always exists.
Solving (7) directly is still unfeasible in large scale scenarios, due to the prohibitive cost of and numerical instability of the Gram product . Additionally, explicitly storing the matrix requires memory, which becomes prohibitive in settings where large values of are needed (Abedsoltan, Ma, et al. 2025). To tackle such limitations, an alternative approach is to rely on iterative methods (Saad 2003).
Iterative methods. These are procedures that produce a sequence of approximations converging to the exact solution of (7) without inverting the matrix explicitly. To illustrate this idea, consider the Gradient Descent (GD) iteration
for a fixed initial guess and step size . Notice that (8) only requires the action of , which can be computed in arbitrarily small blocks, in principle completely nullifying the memory footprint of the algorithm. Performing iterations of GD requires time, compared to for
In general is a symmetric and positive semidefinite matrix. We fix a small jittering parameter and perturb to ensure positive definiteness, and therefore invertibility. The magnitude of is chosen relative to the working numerical precision.
Note however that while reducing block size mitigates spatial complexity, it introduces a significant temporal overhead, due to the more frequent data swapping between secondary storage and system (RAM) or device (GPU) memory.
explicitly forming and inverting H. On the one hand, this motivates the use of a small number of iterations to reduce the overall cost; on the other hand, too few iterations may result in a poor approximation of the solution of (7). For iterative methods, the number of iterations required to achieve a certain accuracy in approximating the exact solution depends on the convergence rate. Notably, for gradient-based methods (as GD), this rate depends on the condition number (Golub and Van Loan 2013) of H, motivating the introduction of a preconditioner.
Preconditioning. We begin by recalling the definition of the condition number of H
where and denote the largest and smallest eigenvalues of , respectively. Kernel matrices can be highly ill-conditioned, and preconditioning addresses this issue by transforming the original system (7) into an equivalent one with improved condition number. Specifically, given an invertible preconditioner , we consider the system
Designing involves two main considerations: (i) it should be efficient to apply in terms of both time and memory, and (ii) it should improve the conditioning of the system, that is, . A common approach is to construct with an approximation of . This is precisely where a memory bottleneck may arise, as storing and inverting as a full, unstructured matrix requires memory.
We have seen that through sketching, iterative methods and preconditioning, time and space costs of KRR can be alleviated. We are left with a memory bottleneck in the preconditioner, scaling quadratically in space with the number of parameters of the model. Overcoming this final bottleneck motivates the introduction of BLOKS in the next section.
3 Introducing BLOKS
In this section, we introduce BLOKS, a memory-efficient algorithm which overcomes the preconditioner memory bottleneck and scales Nyström KRR to high parameter counts. The core idea is to build a sketched block diagonal preconditioner over disjoint subsets of Nyström centers. This allows us to retain the benefits of preconditioning while allowing efficient action computation (both in memory and time). The BLOKS algorithm uses such a preconditioner within Conjugate Gradient (CG), which has a more favorable dependence on the condition number in the rate than GD and keeps the same computational cost (Saad 2003). To introduce the BLOKS algorithm, we proceed in three steps: (i) we define our sketched block diagonal preconditioner; (ii) we show how its action on vectors can be computed efficiently both in memory and time; (iii) we discuss why the left variant of the Preconditioned Conjugate Gradient (PCG) algorithm is more time efficient in large-scale settings.
Sketched block Jacobi preconditioning. Let such that divides and let . We partition the Nyström centers in disjoint blocks of size
For each block , we define
(12) where is the kernel matrix whose entries are obtained by evaluating the kernel on the points of block . Formally, for . We define the BLOKS preconditioner as
One core advantage of this preconditioner is that its block diagonal structure allows its action on vectors to be computed in blocks, namely by solving decoupled linear systems. Given a vector , we partition it in blocks of size as , coherently with (11). Then, the action of on is computed as
This procedure could be naturally parallelized, especially on high performance systems with multiple GPUs or whenever multiple blocks can be stored in memory simultaneously. In large-scale settings when the block size is too large to allow simultaneous storage, we can process the blocks sequentially, yielding a memory cost of , independent of . Note that the BLOKS preconditioner can be interpreted as a sketched version of the BLOCK JACOBI preconditioner (Saad 2003) for problem (7), which consists of directly approximating by its block diagonal and then inverting it. However, computing the action of each block of plain BLOCK JACOBI would require computing a Gram product of the form (see Figure 1 for an illustration) which is numerically unstable and has a time cost of which is computationally too inefficient in large-scale scenarios (see Appendix B for a detailed comparison).

Figure 1: First block of H (above), and sketched approximation (below). Constants omitted for visual clarity.
Efficient solution with M. Unlike standard BLOCK JACOBI, the action of our sketched preconditioner can be computed efficiently. In fact, each sketched block can be expressed as
(15) where denotes the upper triangular Cholesky factor of a symmetric and positive definite matrix. In this way, we can solve with each block without forming the product explicitly.
Furthermore, computing the factors and is highly memory-efficient, requiring the storage of only a single matrix. Once the matrix is computed, an in-place Cholesky decomposition stores the factor in the upper triangular portion. The lower triangular portion is then reused to store the symmetric matrix , which is finally overwritten by by a second in-place Cholesky decomposition. Additional care is required to handle the diagonals of these matrices - see Appendix E.
Left PCG. The block structure of M makes its application particularly suitable for a left-preconditioned formulation. In contrast to the bilateral formulation in equation (10), which applies the factors of M to the left and to the right of H, we can precondition from the left by formulating the problem as
This choice is important in memory-constrained settings: when is large and only one block can be stored, applying M from the left requires computing each block only once per iteration, while the bilateral formulation requires a second recomputation - further details and comparison are provided in Appendix C. Combining thus our preconditioner with left PCG, we get the BLOKS algorithm, summarized in Algorithm 1 and detailed in Algorithm 6.
Algorithm 1 Pseudocode for the BLOKS algorithm
Input: data matrix , label vector , penalty , model size , block size , kernel , number of iterations
Output: Nyström predictor (approximated coefficient vector)
1:
2:
3:
4:
5:
6:
7: return
▷ Algo. 3
8: function
▷ Computes Mr (Algo. 5)
9:
10: for to do
11:
12:
13:
14: delete
15: end for
16: return
17: end function
4 Related works
The design of efficient kernel algorithms has been studied extensively in the literature. One line of work improves scalability by splitting the problem into smaller ones, partitioning the data (Y. Zhang, Duchi, and Wainwright 2013), the input space (Mücke 2019), or the feature space (Carratino et al. 2021). These strategies are complementary to ours, and here we focus on methods that directly solve the KRR problem, which fall into two main categories based on the problem they address: the full problem (full KRR methods) or a sketched approximation (sketching-based methods). We briefly review the existing methodologies closer to our proposed approach within these categories. Further details and comparisons are provided in Appendix A.
Full KRR methods. They solve the n-dimensional system (4), either using PCG or stochastic gradient descent (SGD). Methods using PCG differ mostly on the design of the randomized preconditioner: in Frangella, Joel A. Tropp, and Udell (2023) the preconditioner is built from a Nyström approximation of ; in Avron, Clarkson, and Woodruff (2017) from a RFF sketch of and in Díaz et al. (2026) from a randomly pivoted Cholesky approximation (Chen et al. 2025). In all cases, every PCG iteration costs time, limiting the scaling to modest size datasets. To alleviate the iteration cost, EIGENPRO 1 and EIGENPRO 2 (Ma and Belkin 2017; Ma and Belkin 2019) use SGD preconditioned using the top eigenvectors of computed via randomized SVD. The sketch-and-project approach (R. M. Gower and Richtárik 2015) can be regarded as SGD with a random low-rank preconditioner built from a sketch of the system. In block-coordinate descent the “preconditioner” selects a block of coordinates and rescales it by the inverse of the corresponding diagonal block. RIDGESKETCH (Gazagnadou, Ibrahim, and Robert M. Gower 2022) uses count-sketch, and proposes a variant with momentum. Block coordinate descent is used in Tu, Roelofs, et al. (2016); in the exact version of JOKER (J. Zhang and Lai 2025) (it is used in the dual of problem (3)) and in SKOTCH and ASKOTCH (Rathore et al. 2026). Momentum acceleration is also incorporated in Tu, Venkataraman, et al. (2017) and ASKOTCH.
Sketching-based methods. These methods design solvers and preconditioners for sketched approximations such as (7). Typically the sketching is done through RFF (J. Zhang and Lai 2025) or Nyström approximation. EIGENPRO 3 and EIGENPRO 4 (Abedsoltan, Belkin, and Pandit 2023; Abedsoltan, Ma, et al. 2025) use projected preconditioned SGD on problem (7) using a randomized SVD-based preconditioner. EIGENPRO 4 reduces the cost of EIGENPRO 3 by performing the projection step only periodically. SKETCHYSAGA (Frangella, Rathore, et al. 2024; Rathore et al. 2026) combines SAGA variance reduction technique (Defazio, Bach, and Lacoste-Julien 2014; Gazagnadou, R. Gower, and Salmon 2019) with subsampling and randomized Nyström preconditioner. This mitigates the slow rate of SGD methods while avoiding the cost of full-gradient computation and reduces ill-conditioning through the preconditioner. Although they reduce the memory requirement, they rely either on SGD or on variance reduction techniques which have a slower convergence rate than CG. FALKON (Rudi, Carratino, and Rosasco 2017; Meanti et al. 2020) solves problem (7) with PCG, using a sketched preconditioner built from the matrix . KRILL (Díaz et al. 2026) follows the same idea but uses a more refined sketching technique to design the preconditioner. However, both algorithms require memory to store the preconditioner, which becomes prohibitive for a large model size , as observed by Abedsoltan, Belkin, and Pandit (2023). In contrast, the BLOKS preconditioner has a fixed memory cost of , independent of and , while keeping CG as the backbone solver, which converges faster than GD and stochastic variants, and requires no step size tuning. Notably, we observe that BLOKS recovers FALKON as a special case when , that is, when there is only block. Scalability with sketching has also been studied for GPs (Quinonero-Candela and Rasmussen 2005), where a large model size has proven crucial as well (Wilson and Nickisch 2015; Burt, Rasmussen, and Van Der Wilk 2019; Hensman, Matthews, and Ghahramani 2015; Matthews et al. 2016).
5 Experiments
We compared BLOKS with EIGENPRO 4 (Abedsoltan, Ma, et al. 2025), JOKER (J. Zhang and Lai 2025), ASKOTCH (Rathore et al. 2026) and FALKON (Meanti et al. 2020) on both large-scale and medium-scale datasets, to analyze their predictive performance, their scalability and their efficiency. In this section we present the overall results and key takeaways; all relevant experimental details are available in Appendix D,
Table 1: Large-scale dataset comparisons. For each method/dataset combination we report the training time and a relevant measure of error or accuracy on that dataset. Standard deviations (over 5 data splits) are reported in Appendix D for space reasons. Bold green cells indicate the best training time and the best accuracy on a dataset; light-green cells indicate accuracy within 1 standard deviation of the best.
| Algorithm | Taxi () | Higgs () | Airlines () | CIFAR10-5M () | COMET MC () | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| time | RMSE | time | AUC | time | MSE | time | accuracy | time | AUC | |
| FALKON | 2 h | 307.9 | 7 min | 0.8194 | 2 min | 0.720 | 14 min | 87.7% | 46 s | 0.9911 |
| JOKER | 7 h | 307.8 | 47 min | 0.8200 | 1 h | 0.718 | 1 h | 87.7% | 56 min | 0.9923 |
| ASKOTCH | - | - | 4 h | 0.8237 | 30 min | 0.717 | - | - | 34 min | 0.9941 |
| EIGENPRO 4 | - | - | 4 h | 0.8104 | 2 h | 0.791 | 1 h | 86.9% | 2 h | 0.9759 |
| BLOKS | 5 h | 307.0 | 2 h | 0.8254 | 47 min | 0.706 | 2 h | 88.0% | 31 min | 0.9943 |
while additional experiments comparing different block preconditioning strategies are in Appendix B.
Parameter scaling. We begin by evaluating the algorithms' scalability with the number of model parameters. This relates to one of the core aspects of BLOKS which decouples model size and memory requirements. As we show in Figure 2 on the Higgs dataset (, ), FALKON cannot scale beyond 100k parameters without running out of memory (OOM) due to the quadratic storage requirements in . With BLOKS we can keep the memory requirements fixed at the same level (essentially one matrix, where for this experiment), and scale the number of parameters up to 3.2M, with a significant improvement in terms of test accuracy (see Table 2). Note that BLOKS does not face any inherent limitations to scaling : memory remains fixed and the training time only scales up linearly. Furthermore, it is possible to keep the same and improve training times by reducing the block-size (see the ablation in Figure 4). In Figure 2 we also show how JOKER can scale with the number of Random Fourier Features, noting that the improvements are not consistent across model sizes, and how EIGENPRO 4 scales with the number of inducing points up to 500k centers, after which it goes OOM. Finally, ASKOTCH solves the full KRR problem (and hence uses all possible 8.8M parameters), but nevertheless does not outperform BLOKS either in time (ASKOTCH requires 4 h while BLOKS 2 h) or in accuracy (see Table 1), likely due to the less accurate stochastic optimization algorithm used.
Inference times. Of course, using a larger amount of parameters affects the inference time. In Figure 3 we compare the average (over 5 cross-validation folds) inference times on datasets of different sizes. Despite the linear increase in inference times with the number of parameters , BLOKS is consistently the second fastest after FALKON (which always has a lower ). Both methods need a simple kernel-vector multiplication whose cost depends linearly on the number of parameters. EIGENPRO 4 and JOKER require batching to fit in memory which slows them down considerably. Meanwhile, ASKOTCH's inference time depends directly on the training-set size, hence it grows on larger datasets such as Higgs, and becomes the main bottleneck e.g. on Taxi, where we were unable to complete a single inference step on the full validation-set with about 200 million points in 24 h. Overall, BLOKS outperforms the other algorithms considering the trade-off between accuracy (depicted in the last column of Figure 3 as the relative rank averaged over all datasets) and inference time.
For a broader comparison, we considered both large scale datasets (Table 1, training set sizes between 1 and 917 million points) and moderately sized datasets (Table 3, training set sizes between 50 and 500 thousand points). We ran all experiments on the same hardware to ensure reproducible results. When is large, we observe that FALKON always achieves the fastest training time. However, we observed that it is consistently outperformed by JOKER and ASKOTCH in terms of predictive accuracy: FALKON is constrained by its low maximum parameter count (Abedsoltan, Belkin, and Pandit 2023) which cannot be increased due to its memory bottleneck inherent in the preconditioner. BLOKS bypasses this bottleneck and indeed confirms

Figure 2: AUC as a function of the number of parameters. We tested different algorithms with increasing model sizes on the Higgs dataset, plotting the test performance and the training time (proportional to marker area). We mark the algorithms which run out of memory (OOM).
| m | hours | AUC |
|---|---|---|
| 200k | 0.87 | 0.8232 |
| 400k | 1.74 | 0.8254 |
| 800k | 3.49 | 0.8266 |
| 1.6M | 7.21 | 0.8272 |
| 3.2M | 14.69 | 0.8277 |
Table 2: BLOKS scaling of the model size m on the HIGGS dataset. Training time scales linearly, and the test AUC improves consistently. Standard deviations (over 5 data splits) are reported in Appendix D.
that increasing the number of parameters can noticeably improve accuracy. This is especially true for large-scale datasets, where models with a low parameter count may fail to fully capture the complexity of the data. The proposed model reaches state of the art accuracy among kernel-based methods on all the large scale datasets considered in Table 1 while maintaining competitive training times compared to all other methods apart from FALKON. Note that while each model has several hyperparameters that influence the final performance (most notably the kernel bandwidth), they were tuned independently to maximize accuracy while not exceeding reasonable training times. This latter constraint could not be fulfilled for ASKOTCH on CIFAR10-5M and for EIGENPRO 4 on Taxi due to the cost of training, and for ASKOTCH on Taxi due to the cost of inference. Interestingly, while the datasets and tasks remain the same, not all methods perform best with the same hyperparameters. For instance ASKOTCH seems to prefer lower values for compared to BLOKS, while EIGENPRO 4 often worked best with different kernel bandwidths than the other methods. Moving on to the medium-scale datasets shown in Table 3, we notice similar patterns: FALKON is often the fastest while BLOKS is often the most accurate. Note that on the Benzene dataset ASKOTCH, FALKON and BLOKS use a Matérn kernel which was not implemented in the libraries of JOKER and EIGENPRO 4. Furthermore, FALKON was very unstable and this is reflected in the final accuracy. Since ASKOTCH does not support multi-class classification, on the two image datasets FashionMNIST and SVHN we ran 10 one-vs-all models instead (leading to very high training times). While on most of the other datasets FALKON had a lower total parameter count than the other algorithms, on FashionMNIST and SVHN we used the same for all models (except ASKOTCH), and a smaller block size for BLOKS. This allowed us to observe that for smaller datasets, the fast BLOKS preconditioner allows to obtain the same accuracy with a faster training time.
Block size ablation. To expand on this last point we used two datasets (Airlines and COMET MC) to run an ablation on the time-accuracy tradeoff with different block sizes . The results are shown in Figure 4. As expected, a larger block size lowers the test error and increases the training time. We note diminishing returns especially for Airlines, and also note that the training time scales super-linearly with . The cost of the preconditioner explains this behavior. Factorizing a single block costs , and with

Figure 3: Inference times and average test performance. We compare the inference time (normalized per test-sample) across algorithms and datasets. The rightmost column shows the average test ranking of the algorithms across the four datasets considered.

Figure 4: Test errors and training times with increasing block sizes. For both Airlines and COMET MC datasets increasing decreases the test error while increasing the training time (proportional to the marker area). Hatched markers indicate runs in which all blocks could be stored in memory.
Table 3: Medium/small-scale dataset comparisons. Cell colors as in Table 1; standard deviations in Appendix D.
| Algorithm | MillionSongs (n ≈ 105) | Benzene (n ≈ 105) | MiniBooNE (n ≈ 105) | FashionMNIST (n ≈ 104) | SVHN (n ≈ 104) | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| time | rel. error ×103 | time | MSE ×102 | time | AUC | time | accuracy | time | accuracy | |
| FALKON | 40 s | 4.492 | 27 s | 1.60 | 18 s | 0.9733 | 30 s | 91.2% | 1 min | 80.4% |
| JOKER | 9 min | 4.510 | 4 min | 1.72 | 1 min | 0.9717 | 32 s | 90.4% | 52 s | 76.7% |
| ASKOTCH | 13 min | 4.475 | 11 min | 0.16 | 5 min | 0.9741 | 1 h | 91.0% | 1 h | 79.9% |
| EIGENPRO 4 | 19 min | 4.502 | 7 min | 1.99 | 5 min | 0.9689 | 1 min | 90.8% | 2 min | 77.8% |
| BLOKS | 4 min | 4.471 | 4 min | 0.15 | 40 s | 0.9718 | 14 s | 91.2% | 1 min | 80.2% |
blocks the total preconditioning cost is , which is quadratic in . This quadratic growth, however, is not directly visible in Figure 4. When all blocks fit in memory simultaneously (hatched markers), the matrix-vector products with H dominate the running time, and increasing has little effect on training time. Once the blocks become too large to be stored together (solid markers), they must be recomputed during training, and the preconditioning cost is no longer negligible compared to the matrix-vector products. This is visible as a sharp increase in marker area at the transition between the two regimes. Together with the results of Figure 2, these experiments show that both the number of parameters m and the block size , can be used to improve predictive performance. Increasing m raises the overall capacity of the model, while increasing improves the accuracy of the preconditioner, and consequently of the optimization procedure.
6 Conclusions
In this work, we introduced BLOKS, a PCG-based solver for Nyström-sketched KRR built around a novel sketched block Jacobi preconditioner whose memory cost, , is independent of both the number of data n and model size m. This decouples model size from memory while retaining the fast, step-size-free convergence of PCG. We provided a GPU-accelerated implementation and scaled BLOKS up to 3.2M parameters with linear training time and consistently improving accuracy. Our results show that, under the same memory budget, BLOKS achieves higher accuracy than state-of-the-art methods with competitive training time. Our work opens several research directions, including extending BLOKS to other loss functions, investigating different block partitioning strategies and incorporating coarse corrections that capture inter-block interactions (Xu and Zikatanov 2017). In particular, a logistic variant of BLOKS would enable kernel-based new physics searches and goodness-of-fit tests (Letizia et al. 2022; Grosso et al. 2023) with substantially larger models than currently possible.
Acknowledgments
This work was partially supported by the European Commission (Horizon Europe grant ELIAS 101120237); and by the Ministry of Education, University and Research (FARE grant ML4IP R205T7J2KP); and by a France 2030 support managed by the Agence Nationale de la Recherche, under the reference ANR-23-PEIA-0004 (PDE-AI project). G. Vitale and B. Ayuso de Dios are members of the Gruppo Nazionale Calcolo Scientifico - Istituto Nazionale di Alta Matematica (GNCS-INdAM). We acknowledge the CINECA award under the ISCRA initiative, for the availability of high performance computing resources and support. This work represents only the view of the authors. The European Commission and the other organizations are not responsible for any use that may be made of the information it contains.
AI use statement
In this work, we used generative AI tools for grammar and language polishing, text editing, and the development of utility scripts, including scripts for plotting and Bash scripts for launching experiments. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
Abedsoltan, Amirhesam, Mikhail Belkin, and Parthe Pandit (2023). “Toward Large Kernel Models”. In: Proceedings of the 40th International Conference on Machine Learning. Vol. 202. Proceedings of Machine Learning Research. PMLR.
Abedsoltan, Amirhesam, Siyuan Ma, et al. (2025). “Fast Training of Large Kernel Models with Delayed Projections”. In: Advances in Neural Information Processing Systems. Ed. by D. Belgrave et al. Vol. 38.
Avron, Haim, Kenneth L. Clarkson, and David P. Woodruff (2017). “Faster Kernel Ridge Regression Using Sketching and Preconditioning”. In: SIAM Journal on Matrix Analysis and Applications 38.4.
Belkin, Mikhail, Daniel Hsu, et al. (2019). “Reconciling modern machine-learning practice and the classical bias-variance trade-off”. In: Proceedings of the National Academy of Sciences 116.32.
Belkin, Mikhail, Siyuan Ma, and Soumik Mandal (2018). “To Understand Deep Learning We Need to Understand Kernel Learning”. In: Proceedings of the 35th International Conference on Machine Learning. Ed. by Jennifer Dy and Andreas Krause. Vol. 80. Proceedings of Machine Learning Research. PMLR.
Bertin-Mahieux, Thierry et al. (2011). “The Million Song Dataset”. In: Proceedings of the 12th International Conference on Music Information Retrieval (ISMIR 2011).
Burt, David, Carl Edward Rasmussen, and Mark Van Der Wilk (2019). “Rates of Convergence for Sparse Variational Gaussian Process Regression”. In: Proceedings of the 36th International Conference on Machine Learning. Vol. 97. Proceedings of Machine Learning Research. PMLR.
Carratino, Luigi et al. (2021). “Park: Sound and efficient kernel ridge regression by feature space partitions”. In: Advances in Neural Information Processing Systems.
Charlier, Benjamin et al. (2021). “Kernel Operations on the GPU, with Autodiff, without Memory Overflows”. In: Journal of Machine Learning Research 22.74.
Chen, Yifan et al. (2025). “Randomly pivoted Cholesky: Practical approximation of a kernel matrix with few entry evaluations”. In: Communications on Pure and Applied Mathematics 78.5.
Chmiela, Stefan et al. (2017). “Machine learning of accurate energy-conserving molecular force fields”. In: Science advances 3.5.
COMET Collaboration (2016). COMET Experiment at J-PARC. https://comet.kek.jp. 2026-09-24.
Defazio, Aaron, Francis Bach, and Simon Lacoste-Julien (2014). “SAGA: A Fast Incremental Gradient Method With Support for Non-Strongly Convex Composite Objectives”. In: Advances in Neural Information Processing Systems. Vol. 27. Curran Associates, Inc.
Díaz, Mateo et al. (2026). “Robust, randomized preconditioning for kernel ridge regression”. In: Advances in Computational Mathematics 52.5.
Frangella, Zachary, Pratik Rathore, et al. (2024). “PROMISE: Preconditioned Stochastic Optimization Methods by Incorporating Scalable Curvature Estimates”. In: Journal of Machine Learning Research 25.346.
Frangella, Zachary, Joel A. Tropp, and Madeleine Udell (2023). “Randomized Nyström Preconditioning”. In: SIAM Journal on Matrix Analysis and Applications 44.2.
Gazagnadou, Nidham, Robert Gower, and Joseph Salmon (2019). “Optimal Mini-Batch and Step Sizes for SAGA”. In: Proceedings of the 36th International Conference on Machine Learning. Vol. 97. Proceedings of Machine Learning Research. PMLR.
Gazagnadou, Nidham, Mark Ibrahim, and Robert M. Gower (2022). “RidgeSketch: A Fast Sketching Based Solver for Large Scale Ridge Regression”. In: SIAM Journal on Matrix Analysis and Applications 43.3.
Golub, Gene H. and Charles F. Van Loan (2013). Matrix Computations - 4th Edition. Johns Hopkins University Press.
Gower, R. M. and P. Richtárik (2015). “Randomized Iterative Methods for Linear Systems”. In: SIAM Journal on Matrix Analysis and Applications 36.4.
Gretton, Arthur et al. (2012). “A Kernel Two-Sample Test”. In: Journal of Machine Learning Research 13.25.
Grosso, Gaia et al. (2023). “Fast kernel methods for data quality monitoring as a goodness-of-fit test”. In: Machine Learning: Science and Technology 4.3.
Halko, N., P. G. Martinsson, and J. A. Tropp (2011). “Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions”. In: SIAM Review 53.2.
Harris, Charles R. et al. (2020). “Array programming with NumPy”. In: Nature 585.7825.
Hensman, James, Alexander Matthews, and Zoubin Ghahramani (2015). “Scalable variational Gaussian process classification”. In: Artificial intelligence and statistics. PMLR.
Hestenes, Magnus R. and Eduard Stiefel (1952). “Methods of Conjugate Gradients for Solving Linear Systems”. In: Journal of Research of the National Bureau of Standards 49.6.
Hunter, J. D. (2007). “Matplotlib: A 2D graphics environment”. In: Computing in Science & Engineering 9.3.
Jacot, Arthur, Franck Gabriel, and Clement Hongler (2018). “Neural Tangent Kernel: Convergence and Generalization in Neural Networks”. In: Advances in Neural Information Processing Systems. Ed. by S. Bengio et al. Vol. 31. Curran Associates, Inc.
Kimeldorf, George and Grace Wahba (1970). “A Correspondence Between Bayesian Estimation on Stochastic Processes and Smoothing by Splines”. In: Annals of Mathematical Statistics 41.
Kuczyński, J. and H. Woźniakowski (1992). “Estimating the Largest Eigenvalue by the Power and Lanczos Algorithms with a Random Start”. In: SIAM Journal on Matrix Analysis and Applications 13.4.
Letizia, Marco et al. (2022). “Learning new physics efficiently with nonparametric methods”. In: The European Physical Journal C 82.10.
Ma, Siyuan and Mikhail Belkin (2017). “Diving into the shallows: a computational perspective on large-scale shallow learning”. In: Advances in Neural Information Processing Systems. Ed. by I. Guyon et al. Vol. 30. Curran Associates, Inc.
– (2019). “Kernel Machines That Adapt To Gpus For Effective Large Batch Training”. In: Proceedings of Machine Learning and Systems. Ed. by A. Talwalkar, V. Smith, and M. Zaharia. Vol. 1.
Martinsson, Per-Gunnar and Joel A. Tropp (2020). “Randomized numerical linear algebra: Foundations and algorithms”. In: Acta Numerica 29.
Matthews, Alexander et al. (2016). “On sparse variational methods and the Kullback-Leibler divergence between stochastic processes”. In: Artificial Intelligence and Statistics. PMLR.
Meanti, Giacomo et al. (2020). “Kernel methods through the roof: handling billions of points efficiently”. In: Proceedings of the 34th International Conference on Neural Information Processing Systems.
Mücke, Nicole (2019). “Reducing training time by efficient localized kernel regression”. In: Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics. Ed. by Kamalika Chaudhuri and Masashi Sugiyama. Vol. 89. Proceedings of Machine Learning Research. PMLR.
Nakkiran, Preetum, Behnam Neyshabur, and Hanie Sedghi (2021). “The deep bootstrap framework: Good online learners are good offline generalizers”. In: International Conference on Learning Representations.
Nesterov, Y. (2018). Lectures on Convex Optimization. Springer Optimization and Its Applications. Springer US. ISBN: 9783319915777.
Netzer, Yuval et al. (2011). “Reading digits in natural images with unsupervised feature learning”. In: NIPS workshop on deep learning and unsupervised feature learning. Vol. 2011. 2. Granada.
Nutini, Julie, Issam Laradji, and Mark Schmidt (2022). “Let’s Make Block Coordinate Descent Converge Faster: Faster Greedy Rules, Message-Passing, Active-Set Complexity, and Superlinear Convergence”. In: Journal of Machine Learning Research 23.131.
Paszke, Adam et al. (2019). “PyTorch: An Imperative Style, High-Performance Deep Learning Library”. In: Advances in Neural Information Processing Systems. Ed. by H. Wallach et al. Vol. 32. Curran Associates, Inc.
Peng, Hao et al. (2017). “Asynchronous distributed variational Gaussian process for regression”. In: International Conference on Machine Learning. PMLR.
Qu, Zheng et al. (2016). “SDNA: Stochastic Dual Newton Ascent for Empirical Risk Minimization”. In: Proceedings of The 33rd International Conference on Machine Learning. Ed. by Maria Florina Balcan and Kilian Q. Weinberger. Vol. 48. Proceedings of Machine Learning Research. PMLR.
Quinonero-Candela, Joaquin and Carl Edward Rasmussen (2005). “A unifying view of sparse approximate Gaussian process regression”. In: Journal of machine learning research 6.
Rahimi, Ali and Benjamin Recht (2007). “Random features for large-scale kernel machines”. In: Proceedings of the 21st International Conference on Neural Information Processing Systems. NIPS'07. Curran Associates Inc.
Rathore, Pratik et al. (2026). Have ASkotch: A Neat Solution for Large-scale Kernel Ridge Regression. arXiv:2407.10070 [cs.LG].
Rudi, Alessandro, Daniele Calandriello, et al. (2018). “On Fast Leverage Score Sampling and Optimal Learning”. In: Advances in Neural Information Processing Systems. Ed. by S. Bengio et al. Vol. 31. Curran Associates, Inc.
Rudi, Alessandro, Raffaello Camoriano, and Lorenzo Rosasco (2015). “Less is More: Nyström Computational Regularization”. In: Advances in Neural Information Processing Systems. Ed. by C. Cortes et al. Vol. 28. Curran Associates, Inc.
Rudi, Alessandro, Luigi Carratino, and Lorenzo Rosasco (2017). “FALKON: An Optimal Large Scale Kernel Method”. In: Advances in Neural Information Processing Systems. Ed. by I. Guyon et al. Vol. 30. Curran Associates, Inc.
Saad, Yousef (2003). Iterative Methods for Sparse Linear Systems. Second. Society for Industrial and Applied Mathematics.
Sandler, Mark et al. (2018). “MobileNetV2: Inverted residuals and linear bottlenecks”. In: 2018 IEEE/CVF conference on computer vision and pattern recognition. IEEE.
Schölkopf, Bernhard, Ralf Herbrich, and Alexander J. Smola (2001). “A Generalized Representer Theorem”. In: Proceedings of the 14th Annual Conference on Computational Learning Theory and 5th European Conference on Computational Learning Theory. COLT '01/EuroCOLT '01. Springer-Verlag.
Schölkopf, Bernhard and Alexander J. Smola (2001). Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond. The MIT Press. ISBN: 9780262256933.
Sorensen, D. C. (1982). “Newton’s Method with a Model Trust Region Modification”. In: SIAM Journal on Numerical Analysis 19.2.
Steihaug, Trond (1983). “The Conjugate Gradient Method and Trust Regions in Large Scale Optimization”. In: SIAM Journal on Numerical Analysis 20.3.
Steinwart, Ingo and Andreas Christmann (2008). Support Vector Machines. Information Science and Statistics. Springer.
Tu, Stephen, Rebecca Roelofs, et al. (2016). Large Scale Kernel Learning using Block Coordinate Descent. arXiv: 1602.05310 [cs.LG].
Tu, Stephen, Shivaram Venkataraman, et al. (2017). “Breaking Locality Accelerates Block Gauss-Seidel”. In: Proceedings of the 34th International Conference on Machine Learning. Ed. by Doina Precup and Yee Whye Teh. Vol. 70. Proceedings of Machine Learning Research. PMLR.
Williams, Christopher and Matthias Seeger (2000). “Using the Nyström Method to Speed Up Kernel Machines”. In: Advances in Neural Information Processing Systems. Ed. by T. Leen, T. Dietterich, and V. Tresp. Vol. 13. MIT Press.
Wilson, Andrew and Hannes Nickisch (2015). “Kernel Interpolation for Scalable Structured Gaussian Processes (KISS-GP)”. In: Proceedings of the 32nd International Conference on Machine Learning. Vol. 37. Proceedings of Machine Learning Research. PMLR.
Xiao, Han, Kashif Rasul, and Roland Vollgraf (2017). Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms. arXiv: cs.LG/1708.07747 [cs.LG].
Xu, Jinchao and Ludmil Zikatanov (2017). “Algebraic multigrid methods”. In: Acta Numerica 26.
Zhang, Chiyuan et al. (2021). “Understanding deep learning (still) requires rethinking generalization”. In: Commun. ACM 64.3.
Zhang, Junhong and Zhihui Lai (2025). “Joker: joint optimization framework for lightweight kernel machines”. In: Proceedings of the 42nd International Conference on Machine Learning. ICML'25.
Zhang, Yuchen, John Duchi, and Martin Wainwright (2013). “Divide and Conquer Kernel Ridge Regression: A Distributed Algorithm with Minimax Optimal Rates”. In: COLT'12, JMLR: Workshop and Conference Proceedings 16.
A Further comparison with the literature
As discussed in this paper, the scalability of kernel methods is fundamentally constrained by memory requirements. We overcame this bottleneck by developing BLOKS, an algorithm capable of scaling to large models and datasets. Other modern kernel methods address the issue of memory constraints in different ways. In this section, to the best of our knowledge, we provide a comprehensive overview of current state of the art methods and notable developments in large scale kernel learning. In the following, when a block of indices is sampled from , we denote by the submatrix of the identity matrix formed by selecting all the rows and the columns indexed by . In particular, applying to a vector of samples the components corresponding to , while applying to a vector of extends it to a vector of length by filling with zeros the components corresponding to the complement .
FALKON (Rudi, Carratino, and Rosasco 2017; Meanti et al. 2020). The FALKON algorithm consists of running PCG on problem (7) with preconditioner
We note that can be retrieved as a special case of the BLOKS preconditioner when . In Meanti et al. (2020), the authors develop an extremely efficient library capable of fully exploiting the capabilities of GPU hardware and multiple GPUs. Furthermore, they also generalize FALKON to general self concordant losses, such as the logistic loss, designing a LOGFALKON algorithm as well. Despite its efficiency, FALKON's clear bottleneck lies in its preconditioner, which imposes a memory complexity of . This bottleneck disallows FALKON to run with a large amount of Nyström centers, typically running out of memory for values of around .
RPCholesky, KRILL (Díaz et al. 2026). In this paper the authors propose to solve both the full (4) and Nyström (7) problem via CG, designing a different preconditioner for the two. For the full system (4), when the amount of data is modest and the eigenvalues of decay sufficiently rapidly, they propose the RPCHOLESKY preconditioner, generating a low-rank approximation of via a randomly pivoted Cholesky decomposition (Chen et al. 2025). For the Nyström system (7), they propose the KRILL preconditioner, defined as
where a sparse random sign embedding (P.-G. Martinsson and Joel A. Tropp 2020) in a suitable lower dimension . We note that the FALKON preconditioner can be retrieved as a special case of (18) when and samples the rows corresponding to the sampled Nyström centers. By construction KRILL incurs in the same memory bottleneck as FALKON.
EigenPro 4 (Abedsoltan, Ma, et al. 2025). The latest entry in the EIGENPRO family. The original EIGENPRO (Ma and Belkin 2017) solves problem (4) on the full data in the interpolation regime, that is, with . The authors consider a preconditioned gradient iteration
where is a preconditioner built to flatten the spectrum of . In particular, for a fixed number of eigenvalues, is defined as
where is a damping parameter and is the -th largest eigenvalue of with unit-norm eigenvector . This approach presents two problems, namely the cost of computing the full gradient at each iteration and the cost of computing the exact leading eigenpairs of . The former problem is solved by implementing a stochastic gradient iteration in practice. For the latter issue the authors propose to compute the eigenpairs approximately using the randomized SVD decomposition proposed by Halko, P. G. Martinsson, and J. A. Tropp (2011). EIGENPRO 2 (Ma and Belkin 2019) refactored the first EIGENPRO to fully exploit modern GPU architectures. In particular the top eigenpairs are now approximated via a Nyström based SVD method adapted from Williams and Seeger (2000). This approach requires computing and storing a Nyström approximation of of rank at least equal to (and typically much larger than) , incurring a memory footprint of . As the size of datasets kept on growing, EIGENPRO 3 (Abedsoltan, Belkin, and Pandit 2023) was introduced. EIGENPRO 3 disentangles the size of the data from the size of the model , solving problem (7) via the projected preconditioned gradient iteration
Again, stochastic gradient is employed in practice. This iteration introduces a memory bottleneck of due to the inversion of . However, solving a system with can be seen as a new learning problem on the data , which can be solved using EIGENPRO 2. EIGENPRO 3 therefore approximates the projection step using EIGENPRO 2. Projecting at each iteration turned out to be too expensive in terms of time, therefore EIGENPRO 4 (Abedsoltan, Ma, et al. 2025) finally introduced delayed projections, resulting in a variation of EIGENPRO 3 where the projection is performed only periodically.
Joker (J. Zhang and Lai 2025). The authors argue that the main limitations of kernel methods are the memory requirements and the fact that research mainly focuses on KRR, while other methods lack studying. They introduce JOKER (Joint Optimization Framework for Lightweight Kernel Machines), a general algorithm for different loss functions with low memory overhead. In the case of KRR, JOKER aims to solve the dual problem
The chosen optimization method to solve (22) is block coordinate descent (Nutini, Laradji, and Schmidt 2022). The full index set is partitioned into static, predetermined candidate blocks, and at each iteration a block of cardinality is sampled uniformly at random. The block of coordinates corresponding to is then updated by solving
where is attained by sampling rows and columns corresponding to from and is attained by sampling rows corresponding to and columns corresponding to from . In turn, problem (23) is solved using a trust region method (Sorensen 1982). This leads to a constrained minimization of a quadratic form. For more general losses, there are also box constrained to be considered, and to deal with this problem the authors propose a heuristic truncated CG-Steihaug method (Steihaug 1983). Lastly, to alleviate computations, the authors also propose INEXACT JOKER, a variation of JOKER incorporating an approximation of using Random Fourier Features (Rahimi and Recht 2007).
Skotch, ASkotch, SketchySAGA (Rathore et al. 2026). This paper originally proposed two methods to solve the full problem (4) (SKOTCH and ASKOTCH) and specialized the existing SKETCHYSAGA (Frangella, Rathore, et al. 2024) to the Nyström problem (7). The most recent version eliminated the SKETCHYSAGA approach to focus entirely on full KRR with SKOTCH (Scalable kernel optimization and training with coordinate sketch-and project and approximate Hessians) and ASKOTCH (Accelerated SKOTCH). These are sketch-and-project (SAP) based methods (R. M. Gower and Richtárik 2015). In particular, they implement an approximate version of the randomized Newton method (Qu et al. 2016), whose iteration is given by
(24) where at each iteration a block of cardinality is sampled from , , and . The authors implement both uniform sampling and approximate leverage score sampling, the latter attained via the BLESS algorithm (Rudi, Calandriello, et al. 2018). The default suggested sampling parameter is , making the solution with at each step unfeasible in large scale scenarios. The authors therefore replace the matrix with a rank randomized Nyström approximation, leading to the iteration
where with a Gaussian random matrix, is a damping parameter and is a suitable step size. The authors propose a default damping parameter dependent on . Finally, the step size is automatically selected at each iteration to be the reciprocal of a preconditioned smoothness constant, namely
computed via randomized powering (Kuczyński and Woźniakowski 1992). Iteration (25) with step size (26) defines the SKOTCH algorithm. Finally, by incorporating Nesterov acceleration (Nesterov 2018), the authors introduce ASKOTCH, an accelerated variant that constitutes their core algorithmic contribution.
Table 4: Parameters and memory requirements of state of the art algorithms.
| Algorithm | Memory | |||
|---|---|---|---|---|
| FALKON | data size | model size (Nyström) | ||
| KRILL | data size | model size (Nyström) | embedding dimension | |
| EIGENPRO 4 | data size | model size (Nyström) | preconditioner rank | |
| JOKER | data size | model size (RFF) | block size | |
| ASKOTCH | data and model size | (Full KRR) | rank of Nys. approx. | |
| BLOKS | data size | model size (Nyström) | block size |
B Block preconditioning strategies and comparisons
In Section 3 we mentioned that the BLOKS preconditioner can be thought as a sketched version of the BLOCK JACOBI preconditioner. Formally, consider a block diagonal partition of in blocks of size , and the corresponding partition of the Nyström data (11). For , the -th diagonal block of is
where for and . The standard BLOCK JACOBI preconditioner is
In principle, preconditioner (28) already alleviates the memory bottleneck, since the size of the blocks does not depend on . However, each block has the same structure as the original matrix , where dimensionally replaces . This implies that computing and inverting the blocks presents the same problems that computing and inverting presented before, namely the numerical instability and cost of computing the Gram products . To solve this issue, we may sketch each block by sampling from the rows corresponding to the -th block. After normalization, the result of this sketching procedure is precisely the block , as illustrated in Figure 1, and inverting and stacking these sketched blocks diagonally yields exactly the BLOKS preconditioner (13).
In Appendix A we noted that the FALKON preconditioner is a special case of the BLOKS preconditioner when . Following this point of view, we could also think of as an approximation of to be employed when is too large. In particular, let , so that FALKON's preconditioner reads as . We could perform a block diagonal approximation of rather than , creating a hybrid BLOCK JACOBI - FALKON preconditioner. For , let be the -th diagonal block of , that is
where is defined by for and . We define the BLOCK JACOBI - FALKON preconditioner as
Again, preconditioner (30) does not present any memory issues, but remains untractable in regimes where m is very large, due to the instability and cost of forming the Gram product . We may again approximate the blocks by sketching the rows of , as illustrated in Figure 5. This procedure produces again the approximation , yielding once more the BLOKS preconditioner (13).


Figure 5: First block of (above), and sketched approximation (below). Constants omitted for visual clarity.
Overall, we have introduced three block preconditioners, namely BLOCK JACOBI (28), BLOCK JACOBI - FALKON (30) and BLOKS (13). Despite them sharing the same exact memory complexity, their key differences lie in the information carried by each block and the cost to solve with them, as detailed in Table 5. Intuitively, standard BLOCK JACOBI should yield superior performance compared to BLOCK JACOBI - FALKON, which in turn should perform better than BLOKS. We show empirically that this expected gap in performance is marginal, and that performances at test time are fundamentally the same, making BLOKS, which is the only computationally viable preconditioner for large scale applications, a highly effective choice in practice.
Table 5: Difference in information and time cost between block preconditioners. FLOPS refers to the number of operations required to compute and invert a single block. The total cost of the preconditioner is given by multiplying this cost by the number of blocks .
| Preconditioner | -th block | FLOPS | Interactions captured by the -th block |
|---|---|---|---|
| and | |||
| and | |||
| and |
We conduct experiments on smaller datasets where the system in (7) can be solved exactly, enabling us to monitor the exact error at each iteration and directly compare the three preconditioning strategies. In particular, we consider three different metrics to evaluate the quality of the produced solutions over the number of iterations. Let be the solution computed after iterations of left preconditioned CG with any preconditioner on problem (7).
True relative error (matrix norm). Let be the exact solution to (7), define
By construction of the CG algorithm (Hestenes and Stiefel 1952), decreases monotonically with the number of iterations .
Relative residual (preconditioner norm). Define
The relative residual can be measured in practice even if the exact solution is not available. The quantity is not guaranteed to monotonically decrease, however if is a good preconditioner the behavior should be similar to that of the true relative error. In the extreme case when it is immediate to check that . We can think of the relative error and the relative residual as a measure of the training error.
Test error. The error of the model computed at iteration on the test set. From the machine learning point of view this is the quantity of most interest. The exact metric depends on the dataset considered and on the task performed (classification, regression).
Given that we are bounded to run these experiments on smaller scales, we implemented a basic working version of BLOCK JACOBI and BLOCK JACOBI - FALKON, explicitly forming and storing all kernel matrices. To have a fair comparison, we re-implemented BLOKS in the same way. We note that in this scenario we could store all blocks explicitly and solve with them in parallel; however, to simulate the constraints of large scale scenarios, we still recompute them from scratch at each iteration. For this same reason, even though we form the matrix explicitly to compute the exact solution , we still implement the matrix-vector product with using kernel matrices as in line 9 of Algorithm 6. We ran experiments across different datasets and
With an abuse of language, we call BLOCK JACOBI and BLOCK JACOBI - FALKON both the preconditioners and the corresponding left PCG algorithms.
consistently observed the same results: at train time, BLOCK JACOBI performs better than BLOCK JACOBI - FALKON, which in turn tends to perform better than BLOKS, though at the cost of much longer training times. However, at test time, the performances of the three methods are almost indistinguishable. We believe this phenomenon might be partly caused by additional regularization introduced by the approximation of the blocks, and we leave a rigorous theoretical analysis for future work. In particular, this implies that the information lost from the standard BLOCK JACOBI preconditioner might be compensated for by appropriately choosing the regularization parameter . For the sake of compactness, we report results for only two datasets, obtained by subsampling 100 000 points from the HIGGS and AIRLINES datasets and performing a 5-fold cross validation, effectively resulting in training points. We run these experiments in double precision to minimize the impact of numerical errors, since we have to compute the exact solution and invert huge Gram matrices for the BLOCK JACOBI preconditioner, as mentioned in Table 5.
Table 6: Comparison of different block preconditioning strategies on subsamples of the HIGGS and AIR-LINES datasets. Means over 5-fold cross validation, standard deviations omitted for space.
| HIGGS | AIRLINES | |||||
|---|---|---|---|---|---|---|
| 1 – AUC | time (s) | time w.r.t. BLOKS | MSE | time (s) | time w.r.t. BLOKS | |
| BLOCK JACOBI | 0.2358 | 103.17 | ×12.98 | 0.9627 | 87.36 | ×15.29 |
| BLOCK JACOBI - FALKON | 0.2349 | 17.56 | ×2.21 | 0.9629 | 6.35 | ×1.11 |
| BLOKS | 0.2335 | 7.95 | ×1.00 | 0.9629 | 5.72 | ×1.00 |
Subsampled HIGGS (Table 6, Figure 6). For all three methods we sample Nyström centers and use blocks of size . All other parameters are those of the experiments in Section 5, reported in Table 7, except that we run iterations in order to obtain longer convergence curves. Test performances are comparable across the three methods, and as expected BLOKS is the fastest, with BLOCK JACOBI - FALKON taking more than twice as long and plain BLOCK JACOBI almost thirteen times as long. Panel (b) of Figure 6 is particularly informative. The test 1 – AUC of BLOCK JACOBI drops sharply within the first few iterations and then increases again as the iterations proceed, a clear sign of overfitting. The same behaviour occurs for BLOCK JACOBI - FALKON, though less markedly, whereas the BLOKS curve is almost monotone. This suggests that approximating the blocks acts as an additional source of regularization. Consequently, after 40 iterations, BLOKS has not overfitted and attains the best test performance.
Subsampled AIRLINES (Table 6, Figure 7). For all three methods we sample Nyström centers and use blocks of size . All other parameters are those of the experiments in Section 5, reported in Table 7, except that again we run iterations and we lower the bandwidth of the kernel to , as a larger value would cause the BLOCK JACOBI blocks to be numerically singular. Test performances are now indistinguishable, in agreement with panel (b) of Figure 7, and, in contrast with the HIGGS experiment, no method exhibits overfitting within 40 iterations. Furthermore, we note that is the same as in the previous experiment on HIGGS, whereas is larger and smaller. According to Table 5, increasing should worsen the times of all three methods, since the cost per block grows at least quadratically in while the number of blocks only decreases linearly. The most penalized in absolute terms is BLOCK JACOBI, due to the term per block depending on the number of points , the largest quantity involved, while the most penalized in relative terms is BLOKS, the only one whose preconditioning cost per block is driven purely by . Decreasing , on the other hand, benefits BLOCK JACOBI - FALKON the most, as it is the only one whose preconditioning cost per block depends on , although all three methods speed up, since each iteration requires a matrix-vector product with costing . This is also the reason why the times for AIRLINES are lower than the times for HIGGS. The combination of the two effects is what we observe in Table 6, where BLOCK JACOBI - FALKON becomes almost as fast as BLOKS, whereas BLOCK JACOBI remains more than an order of magnitude slower. Note that in this
(a) relative residual and relative error
(b) test 1 – AUC

Figure 6: Subsample of the HIGGS dataset, 5-fold cross-validation. (a) relative error relerr (solid) and relative residual relres (dashed); (b) test 1 – AUC. Curves are averages over the folds, shaded bands are the standard deviations.
experiment . In the extreme case where , BLOKS coincides with BLOCK JACOBI - FALKON (and they both coincide with FALKON), and BLOCK JACOBI becomes the exact solver .
C Bilateral vs. left preconditioning
Problem (7) could be preconditioned using two distinct approaches, hereafter referred to as bilateral and left preconditioning (right preconditioning is also possible, but we do not consider it). Although mathematically equivalent, the former, also known as split preconditioning, is typically adopted for theoretical analysis, given that it requires an explicit symmetric decomposition of the preconditioner, whereas the latter is preferred in practical implementations, requiring only the action of the whole preconditioner on vectors, potentially as a black box. While our construction provides an explicit symmetric decomposition of the BLOKS preconditioner, making the bilateral formulation the natural candidate, the left variant proves significantly more efficient in practice. Indeed, thanks to the block diagonal structure, the BLOKS preconditioner can be decomposed as
where the blocks are defined in (15). We could precondition problem (7) by applying the factors of to the left and right of , to preserve symmetry and be able to run CG. This approach leads to the preconditioned problem (10), and running CG on (10) is a form of Preconditioned CG, which we may call bilateral PCG. Alternatively, if is accessed only through its action on vectors, even if formulation (16) is not symmetric in general, PCG can be expressed via a change of variables, or equivalently a change of inner product (Saad 2003), using solely the action of as a whole, leading to what we may call left PCG. Algorithm 2 and Algorithm 3 report, respectively, the bilateral and left variant of the PCG algorithm, assuming a total number of iterations and starting point .
In principle, the number of operations performed by both algorithms is the same. For each iteration , in the bilateral variant, the action of the preconditioned matrix is used only once to compute the quantity . In the left variant the action of the matrix is decoupled from that of the preconditioner, but both are used only once: the action of the matrix to compute the product , and the preconditioner to compute (note that is available from the previous iteration, and is computed outside the loop at the beginning). Even outside the loop, the bilateral variant uses the factor at the beginning to
(a) relative residual and relative error
(b) test MSE

Figure 7: Subsample of the AIRLINES dataset, 5-fold cross-validation. (a) relative error relerr (solid) and relative residual relres (dashed); (b) test MSE. All curves are averages over the folds. The shaded bands in (a) are the standard deviations across the folds; in (b) we do not report them, as they are of order , much larger than the gaps between the curves, and would overlap into a single transparent block, collapsing the curves in a single flat line.
transform the right hand side, and the factor B to transform the solution back, whereas in the left variant the whole M is used once at the beginning to compute the first preconditioned residual. Therefore, if the preconditioner is explicitly stored in memory, both algorithms have the same exact computational cost. However, due to memory constraints, the BLOKS preconditioner computes each block on the fly at each iteration. This makes the left variant far more convenient, as computing the action of requires forming the blocks twice, before and after the multiplication by H, as detailed in Algorithm 4, whereas the left variant, solving with M as a whole, requires materializing each block only once per iteration, as detailed in Algorithm 5. Indeed, since the blocks do not overlap, they act on independent parts of the vector they are applied to.
C.1 Comparison with FALKON and KRILL
As noted in Appendix A, the FALKON preconditioner (17) is retrieved as a special case of the BLOKS preconditioner when q = 1. In particular, can be decomposed as
and the single block can be explicitly stored in memory. This implies that for FALKON there is no real advantage in using left preconditioning. Notably, for FALKON it is actually more convenient to run the bilateral variant of PCG. Indeed, the bilateral preconditioned matrix can be written as
Thanks to (35), computing the action of avoids a multiplication by , which is unavoidable if we compute the action of H and solve with separately, as in the left variant. This computational exploit does not work for BLOKS due to the absence of off diagonal blocks in the preconditioner. Finally, we note that the KRILL preconditioner (18) is built upon the same logic as , using a sparse random sign embedding (P.-G. Martinsson and Joel A. Tropp 2020) rather than a simple row sampling.
Algorithm 2 Bilateral PCG for (7) (CG for (10))
Input: Output:
1: 2: 3: for to do 4: 5: 6: 7: 8: 9: end for 10: return
Algorithm 3 Left PCG for (7)
Input: Output:
1: 2: 3: for to do 4: 5: 6: 7: 8: 9: end for 10: return
However, due to the more refined sampling technique, the KRILL preconditioner does not have the same algorithmic benefits as FALKON, such as the double in-place Cholesky technique (34) or the cheaper action of the preconditioned matrix (35).
D Datasets, algorithms and experiments details
D.1 Datasets
For each dataset, we report the dimensions, that is, the total number of data and the number of features , the preprocessing details and the error metric employed to test the model. Except for MillionSongs, we always report mean and standard deviation using 5-fold cross-validation, therefore the actual number of training data is , and the amount of test data is .
Taxi A regression dataset with dimensions , . Data can be downloaded by following the instructions at https://github.com/toddwschneider/nyc-taxi-data, and is then preprocessed following Peng et al. (2017) and Meanti et al. (2020). We report mean and standard deviation of the RMSE.
Cifar10-5M A balanced classification dataset with 10 classes and dimensions , obtained by extracting the features from the Cifar10-5M dataset (Nakkiran, Neyshabur, and Sedghi 2021) which can be downloaded from https://github.com/preetum/cifar5m, using a pretrained MobileNetv2 network (Sandler et al. 2018) (the same procedure used in Abedsoltan, Ma, et al. (2025), but note that this is different from the dataset used in J. Zhang and Lai (2025) where raw pixels are used as features). The data is then standardized to zero mean and unit standard deviation and classes are one-hot encoded. We report mean and standard deviation of the classification error.
Higgs A binary classification dataset with dimensions , . The data can be downloaded from https://archive.ics.uci.edu/ml/datasets/HIGGS; preprocessing follows Meanti et al. (2020). We report mean and standard deviation of one minus the area under the ROC curve (AUC).
CometMC A heavily unbalanced binary classification dataset with dimensions , coming from the high-energy physics community (COMET Collaboration 2016). We used the same dataset as Rathore et al. (2026), downloaded from OpenML (dataset ID: 23397). The data was standardized to
Algorithm 4 BLOKS preconditioner - bilateral
Input: ; Output:
1: 2: for to do 3: 4: 5: 6: delete , Free memory for next block 7: end for 8: 9: for to do 10: 11: 12: 13: delete , Free memory for next block 14: end for 15: return
Algorithm 5 BLOKS preconditioner - left
Input: ; Output:
1: 2: for to do 3: 4: 5: 6: delete , Free memory for next block 7: end for 8: return
zero mean and unit standard deviation. To account for class imbalance, and following the original Kaggle competition where the dataset comes from we report the mean and standard deviation of the 1 – AUC.
Airlines A regression dataset with dimensions , . We used the same preprocessing steps as Meanti et al. (2020) and report the mean and standard deviation of the MSE.
MillionSongs A regression dataset (Bertin-Mahieux et al. 2011) with dimensions , . Data can be downloaded from https://archive.ics.uci.edu/ml/datasets/YearPredictionMSD. Both features and labels were normalized to have zero mean and unit standard deviation. The error reported is the relative error
over a predefined test set of points. We do not perform cross-validation to avoid misleading high test performances due to “the producer effect”.
Benzene A regression dataset from computational chemistry with dimensions , . The data was originally published in Chmiela et al. (2017) and is available for download at https://sgdml.org/. Preprocessing follows Rathore et al. (2026) as well as the use of the Matérn kernel. The error reported is on the MSE of the potential energy, calculated across 5 folds.
SVHN A balanced multiclass classification dataset with 10 classes and dimensions , . The original SVHN images (Netzer et al. 2011) are converted to black-and-white and pixels are rescaled to the 0–1 range. Classes are one-hot encoded. We report the mean and standard deviation of the classification error.
FashionMNIST A balanced multiclass classification dataset with 10 classes and dimensions , , originally published in Xiao, Rasul, and Vollgraf (2017). We use raw pixels as features simply rescaled to the 0–1 range. We report the mean and standard deviation of the classification error.
MiniBooNE A mildly unbalanced binary classification dataset with dimensions , coming from high-energy physics. It can be downloaded from https://archive.ics.uci.edu/dataset/199/miniboone+particle+identification#. We preprocessed the features to have zero mean and unit standard deviation and report the mean and standard deviation of the 1 – AUC.
D.2 Algorithms
Throughout the paper we highlight the performance of BLOKS by comparing it to several state of the art kernel-based learning algorithms. We report the parameters used for each algorithm on each dataset, relatively to the results shown in Table 1 and Table 3, in Table 7, with the meaning of the parameters m and detailed in Table 4. The experiments on the model scaling on HIGGS in Table 2 have all been run with the same parameters, changing only m. We set the parameters of the competitor algorithms to the default values suggested by the authors. For JOKER, we trained both the KRR and SVM models on all datasets. The table indicates which model achieved the best test error; this is the model whose results are reported in the main paper. For EIGENPRO 4, we report both the rank of the Nyström approximation and the number of approximated eigenvalues (see Appendix A) in the format rank / . For BLOKS, we also report whether we store one block in memory at a time (recompute blocks) or all blocks simultaneously (store blocks). In our experiments we use the Gaussian, Laplacian, and Matérn-5/2 kernels
where denotes the kernel bandwidth. We note that EIGENPRO 4 implements a non-standard version of the Laplacian kernel, replacing the -norm in the exponent with the standard Euclidean norm . The general Matérn-5/2 kernel also includes a signal-variance parameter, which we fix to 1, following Rathore et al. (2026). For all competing methods, we used the default algorithmic parameters recommended in the respective papers. The kernel, the bandwidth and the regularization parameter were selected by grid search. We considered Gaussian, Laplacian, and Matérn-5/2 kernels; since the Matérn kernel is not implemented in the JOKER and EIGENPRO 4 libraries, the search for these two methods was restricted to the Gaussian and Laplacian kernels. When a dataset had already been used in one of the original papers, we searched over a small grid centered on the hyperparameters reported there. Otherwise, we centered the grid for on the median heuristic (Gretton et al. 2012), that is, the median of the pairwise distances between data points, estimated on a random subsample of points, and searched over the grid . For JOKER, we searched over with , following the grid suggested by their paper. Finally, EIGENPRO 4 solves the problem in the interpolation regime, so by default for this method.
D.3 Experiments
The experiments of Section 5 were run in single precision (FP32) on one node of the Leonardo cluster hosted by CINECA, requesting 320 GiB of RAM, 8 Intel Ice Lake 2.60 GHz CPU cores and a single custom NVIDIA Ampere A100 GPU with 64 GiB of VRAM. We implemented all scripts in Python 3.11.7, and used the following libraries: NumPy 2.4.4 (Harris et al. 2020); PyTorch 2.7.0 (Paszke et al. 2019) with CUDA 12.6; KeOps 2.3 (Charlier et al. 2021); Matplotlib 3.11.1 (Hunter 2007). We implemented the code for BLOKS inside the FALKON library, and ran the competitors' algorithms using their official released codes. Except
See docs.hpc.cineca.it/hpc/leonardo.html for the detailed hardware specifications.
FALKON: https://github.com/FalkonML/falkon; EIGENPRO 4: https://github.com/EigenPro/EigenPro/tree/main; JOKER: https://github.com/Apple-Zhang/Joker-paper; ASKOTCH: https://github.com/pratikrathore8/fast_krr.
for MillionSongs, we ran 5-fold cross-validation for all datasets. Table 8 reports the training and testing time, and the test error with standard deviations, complementing the results presented in Table 1 and Table 3. Similarly Table 9 complements the results of Table 2. The smaller experiments of Appendix B were run in double precision (FP64) on an ASUS ROG Strix Scar 16 laptop, with 32 GiB of RAM, an Intel Core Ultra 9 275HX CPU and an NVIDIA GeForce RTX 5090 Laptop GPU.
Table 7: Parameters used for each dataset and algorithm. Here denotes the kernel bandwidth and the regularization parameters. For each algorithm, the meaning of the parameters and is explained in Table 4.
| dataset | algorithm | kernel | epochs | other | ||||
|---|---|---|---|---|---|---|---|---|
| Higgs | FALKON | Gaussian | 3.5 | 100 000 | N/A | 20 | SVM | |
| JOKER | Laplacian | median (10.7) | 200 000 | 512 | 2 | |||
| ASKOTCH | Gaussian | 3.5 | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 15 | 0 | 500 000 | 10 000 / 1000 | 10 | recompute blocks | |
| BLOKS | Gaussian | 3.5 | 400 000 | 100 000 | 20 | |||
| COMET MC | FALKON | Gaussian | 0.25 | 50 000 | N/A | 20 | SVM | |
| JOKER | Gaussian | 0.25 | 200 000 | 512 | 10 | |||
| ASKOTCH | Gaussian | 0.25 | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 0.1 | 0 | 400 000 | 1000 / 100 | 10 | recompute blocks | |
| BLOKS | Gaussian | 0.25 | 400 000 | 50 000 | 20 | |||
| CIFAR10-5M | FALKON | Gaussian | 27 | 100 000 | N/A | 10 | SVM | |
| JOKER | Gaussian | 27 | 400 000 | 512 | 5 | |||
| ASKOTCH | Gaussian | 27 | Exceeds time limits | |||||
| EIGENPRO 4 | Gaussian | 27 | 0 | 400 000 | 10 000 / 1000 | 5 | recompute blocks | |
| BLOKS | Gaussian | 27 | 400 000 | 100 000 | 10 | |||
| Taxi | FALKON | Gaussian | 1 | 100 000 | N/A | 10 | ||
| JOKER | Gaussian | 1 | 100 000 | 512 | 1 | KRR | ||
| ASKOTCH | Gaussian | 1 | Exceeds time limits | |||||
| EIGENPRO 4 | Gaussian | 1 | 200 000 | 100 000 | 15 | recompute blocks | ||
| MillionSongs | FALKON | Gaussian | 7 | 50 000 | N/A | 20 | KRR | |
| JOKER | Gaussian | median (10.8) | Full | 2048 | 20 | |||
| ASKOTCH | Gaussian | 7 | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 6 | 0 | 400 000 | 1000 / 100 | 20 | ||
| BLOKS | Gaussian | 7 | 200 000 | 50 000 | 20 | store blocks | ||
| Airlines | FALKON | Laplacian | median (3.48) | 100 000 | N/A | 20 | KRR | |
| JOKER | Laplacian | median (3.48) | 200 000 | 2048 | 10 | |||
| ASKOTCH | Laplacian | median (3.48) | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 5 | 0 | 200 000 | 10 000 / 1000 | 10 | ||
| BLOKS | Laplacian | median (3.48) | 200 000 | 100 000 | 20 | recompute blocks | ||
| Benzene | FALKON | Matérn 5/2 | 8.124 | 50 000 | N/A | 20 | KRR | |
| JOKER | Gaussian | 5 | 100 000 | 2048 | 10 | |||
| ASKOTCH | Matérn 5/2 | 8.124 | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 16 | 0 | 100 000 | 10 000 / 1000 | 10 | ||
| BLOKS | Matérn 5/2 | 8.124 | 260 000 | 26 000 | 30 | store blocks | ||
| MiniBooNE | FALKON | Gaussian | 1 | 50 000 | N/A | 10 | SVM | |
| JOKER | Gaussian | 1 | Full | 2048 | 10 | |||
| ASKOTCH | Gaussian | median (2.35) | Full | 100 | 20 | |||
| EIGENPRO 4 | Laplacian | 4 | 0 | 100 000 | 10 000 / 1000 | 20 | ||
| BLOKS | Gaussian | 1 | 100 000 | 50 000 | 15 | store blocks | ||
| SVHN | FALKON | Gaussian | 3 | 50 000 | N/A | 20 | SVM | |
| JOKER | Gaussian | 3 | 50 000 | 2048 | 10 | |||
| ASKOTCH | Gaussian | 3 | Full | 100 | 10 | |||
| EIGENPRO 4 | Gaussian | 4 | 0 | 50 000 | 10 000 / 1000 | 10 | store blocks | |
| BLOKS | Gaussian | 3 | 50 000 | 25 000 | 20 | |||
| FashionMNIST | FALKON | Gaussian | 5 | 50 000 | N/A | 20 | SVM | |
| JOKER | Gaussian | 5 | 50 000 | 2048 | 10 | |||
| ASKOTCH | Gaussian | 5 | Full | 100 | 10 | |||
| EIGENPRO 4 | Gaussian | 4 | 0 | 50 000 | 10 000 / 1000 | 10 | store blocks | |
| BLOKS | Gaussian | 5 | 50 000 | 10 000 | 20 | |||
Table 8: Training time, test time and test error for each dataset and algorithm. For the test error we report the mean and standard deviation over 5 data splits, except for MillionSongs. The test error metric depends on the dataset: RMSE (Taxi), MSE (Airlines, Benzene), 1 – AUC (Higgs, COMET MC, MiniBooNE), classification error (CIFAR10-5M, FashionMNIST, SVHN) and relative error (MillionSongs).
| dataset | algorithm | train time (s) | test time (s) | test error | dataset | algorithm | train time (s) | test time (s) | test error |
|---|---|---|---|---|---|---|---|---|---|
| Taxi | FALKON | 8970.89 | 61.20 | MillionSongs | FALKON | 39.69 | 0.12 | ||
| JOKER | 25131.92 | 541.45 | JOKER | 537.77 | 2.04 | ||||
| ASKOTCH | Exceeds time limits | ASKOTCH | 809.03 | 1.14 | |||||
| EIGENPRO 4 | Exceeds time limits | EIGENPRO 4 | 1151.67 | 1.78 | |||||
| BLOKS | 18330.89 | 121.54 | BLOKS | 254.47 | 0.46 | ||||
| Higgs | FALKON | 413.11 | 1.74 | Benzene | FALKON | 27.12 | 0.14 | ||
| JOKER | 2839.96 | 10.88 | JOKER | 219.78 | 0.35 | ||||
| ASKOTCH | 15648.91 | 143.83 | ASKOTCH | 676.30 | 1.30 | ||||
| EIGENPRO 4 | 15419.25 | 117.73 | EIGENPRO 4 | 428.91 | 1.14 | ||||
| BLOKS | 6268.30 | 6.89 | BLOKS | 263.51 | 0.68 | ||||
| Airlines | FALKON | 103.06 | 0.25 | MiniBooNE | FALKON | 17.69 | 0.04 | ||
| JOKER | 4019.92 | 5.51 | JOKER | 63.43 | 0.18 | ||||
| ASKOTCH | 1788.65 | 12.01 | ASKOTCH | 292.08 | 0.12 | ||||
| EIGENPRO 4 | 6343.74 | 26.08 | EIGENPRO 4 | 329.55 | 0.23 | ||||
| BLOKS | 2846.39 | 0.57 | BLOKS | 40.43 | 0.08 | ||||
| CIFAR10-5M | FALKON | 868.86 | 19.27 | FashionMNIST | FALKON | 30.41 | 0.09 | ||
| JOKER | 5391.51 | 67.50 | JOKER | 32.39 | 0.08 | ||||
| ASKOTCH | Exceeds time limits | ASKOTCH | 4344.72 | 4.65 | |||||
| EIGENPRO 4 | 5375.92 | 92.42 | EIGENPRO 4 | 76.41 | 0.14 | ||||
| BLOKS | 6738.94 | 76.16 | BLOKS | 14.17 | 0.10 | ||||
| COMET MC | FALKON | 45.67 | 0.13 | SVHN | FALKON | 66.08 | 0.16 | ||
| JOKER | 3330.70 | 7.29 | JOKER | 51.59 | 0.13 | ||||
| ASKOTCH | 2026.83 | 11.74 | ASKOTCH | 4396.48 | 10.12 | ||||
| EIGENPRO 4 | 5722.56 | 64.31 | EIGENPRO 4 | 98.28 | 0.24 | ||||
| BLOKS | 1839.78 | 0.99 | BLOKS | 70.29 | 0.15 | ||||
Table 9: Training time, test time and AUC for each model size of BLOKS on the HIGGS dataset. For the AUC we report the mean and standard deviation over 5 data splits.
| 200k | 400k | 800k | 1.6M | 3.2M | |
|---|---|---|---|---|---|
| train time (s) | 3140.71 | 6268.30 | 12574.60 | 25940.69 | 52901.50 |
| test time (s) | 3.46 | 6.89 | 13.76 | 27.48 | 54.92 |
| AUC |
E Complete BLOKS pseudocode
We provide in Algorithm 6 the detailed pseudocode for BLOKS, using standard Python indexing. We assume starting point . This is the standard choice if no prior information on the solution is available, and avoids a matrix vector multiplication to compute the first residual , which is just the right-hand side of (7) in this case. For notational clarity and compactness, the algorithm is written as if all kernel matrices were computed and stored explicitly. In practice, whenever a matrix-vector multiplication is performed (on line 5 and line 9), a function computing the product on the fly is invoked. On line 12 there is an explicit instruction to check if the last iteration has been reached, and a manual break if that is the case. This is a minor optimization that avoids extra computations required only for the subsequent iteration, in particular the computation of the new preconditioned residual on line 16. Finally, the function prec_block implements the double in-place Cholesky decomposition described in Section 3. Note that the total memory requirement is that of the single block , plus the negligible space required to store the diagonals and . With an abuse of notation, when a matrix is completely determined by its upper/lower triangular part (that is, when it is an upper/lower triangular or symmetric matrix), and we assign it to the upper (triu) or lower (tril)
Algorithm 6 BLOKS
Input: data matrix , label vector , penalty , model size , block size , kernel , number of iterations
Output: Nyström predictor (approximated coefficient vector)
1: 2: 3: 4: 5: 6: 7: 8: for to do 9: 10: 11: 12: if then 13: break 14: end if 15: 16: 17: 18: 19: end for 20: return
21: function 22: 23: for to do 24: 25: 26: 27: 28: 29: Solve with 30: 31: Solve with 32: Solve with 33: 34: Solve with 35: delete , , Free memory 36: end for 37: return 38: end function
39: function 40: stored in the upper triangular part of 41: Diagonal of 42: 43: stored in the lower triangular part of 44: Diagonal of 45: return , , 46: end function
portion of a matrix in memory, it means that we are overwriting the upper/lower triangular part of one with the upper/lower triangular part of the other. Furthermore, when we perform the Cholesky decomposition of a triangular matrix as in line 43, it means that we are performing the Cholesky decomposition of the corresponding symmetric (and positive definite) matrix.
This implementation corresponds to the regime in which blocks are too large to fit in memory and must be recomputed from scratch at each iteration. If all blocks can be stored in memory simultaneously, the algorithm is the same, except that line 35 is absent and the blocks are precomputed before the optimization loop. In both regimes, the blocks are processed sequentially, as all our experiments are run on a single GPU. Since the block solves are independent, they could be distributed across multiple GPUs, so the training times reported in the main text should be seen as conservative. Even in this setting, as shown in Section 5, BLOKS achieves training times competitive with the state of the art.