Abstract
Kernel Ridge Regression (KRR) is a powerful non-parametric method for modeling complex non-linear relationships, but its $O(N^3)$ computational complexity limits its application to large-scale datasets. This paper analyzes a simple "divide-and-conquer" approach (Fast-KRR) that partitions $N$ samples into $m$ subsets, computes local estimates, and averages them. We demonstrate that this distributed estimator achieves the same minimax optimal statistical rates as the centralized KRR, provided the number of partitions $m$ does not exceed a specific threshold. Crucially, we show that local estimates must be "under-regularized" relative to their subset size to maintain global accuracy.
1. Introduction
In the era of big data, non-parametric methods like Kernel Ridge Regression (KRR) face a significant scalability bottleneck. The standard implementation requires the inversion of an $N \times N$ kernel matrix, resulting in $O(N^3)$ time complexity and $O(N^2)$ memory requirements. While approximation methods such as Nyström sampling and random features have been developed, they often introduce trade-offs between computational speed and statistical precision.
This research explores a more direct path to scalability: distributed learning. By splitting the dataset into $m$ disjoint chunks and processing them independently, we can theoretically reduce the computational burden to $O((N/m)^3)$ per machine. The central question addressed here is whether this "Fast-KRR" approach can maintain the gold-standard statistical accuracy of full-dataset KRR.
2. The Fast-KRR Framework
The proposed Fast-KRR algorithm operates through three distinct phases:
- Partitioning: The total dataset of $N$ samples is randomly divided into $m$ disjoint subsets, each of size $n = N/m$.
- Local Estimation: Each processor independently computes a KRR estimate using its local subset.
- Averaging: The local solutions are communicated to a central node and averaged to produce the final global predictor.
The Under-regularization Strategy
A key finding of this work is the counter-intuitive requirement for the regularization parameter $\lambda$. In standard KRR, $\lambda$ is typically tuned based on the available sample size. However, for Fast-KRR to succeed, each local machine must use a $\lambda$ optimized for the total sample size $N$, rather than the local size $n$. This "under-regularization" ensures that the bias of each local estimate remains low. While this increases local variance, the subsequent averaging step effectively reduces that variance, allowing the final estimator to converge at the optimal rate.
3. Theoretical Analysis and Minimax Optimality
The core contribution of this paper is the proof that Fast-KRR is minimax optimal. We establish that as long as the number of processors $m$ remains below a critical threshold, the distributed estimator's mean-squared error is indistinguishable from the centralized version.
The Threshold for Parallelization
The allowable degree of parallelization ($m$) depends on the properties of the kernel and the underlying function space:
- Gaussian Kernels: For these highly smooth kernels, $m$ can grow nearly linearly with $N$, allowing for massive parallelization.
- Sobolev Spaces: For functions with finite smoothness, the threshold for $m$ is more restrictive and depends on the smoothness index. The smoother the function, the more partitions the algorithm can tolerate before statistical performance degrades.
4. Experimental Results
4.1 Simulated Sobolev Data
Using 1D regression on functions from a Sobolev space (e.g., $f^*(x) = \min(x, 1-x)$), the authors verified the predicted convergence rates. The experiments confirmed that error remains stable as $m$ increases until it reaches the theoretical threshold (approximately $m \approx N^{0.45}$ in the test case), after which the error increases sharply.
4.2 Million Song Dataset
The algorithm was tested on a real-world benchmark containing 463,715 training examples, where the goal is to predict the release year of a song from audio features. Fast-KRR achieved accuracy levels comparable to the full KRR while significantly outperforming other modern approximations, such as Nyström sampling and Random Feature approximations, within the same time budget. This demonstrates a "superlinear speedup" where the total time scales as $O(N^3/m^3)$ when run in parallel.
5. Discussion and Limitations
While Fast-KRR offers a robust path to scaling KRR, several challenges remain. First, selecting the optimal $\lambda$ adaptively in a distributed environment without excessive communication is an open problem. Second, the communication overhead of averaging function estimates can become a bottleneck as $m$ becomes very large. Finally, the efficiency of the algorithm is tied to the eigen-decay of the kernel; kernels with very slow decay rates limit the number of partitions possible while maintaining optimality.
6. Conclusion
Divide-and-conquer KRR provides a theoretically grounded and practically efficient method for large-scale non-parametric regression. By utilizing an under-regularization strategy and simple averaging, the Fast-KRR algorithm achieves minimax optimal rates while offering dramatic computational savings, making high-performance kernel methods accessible for datasets with millions of observations.
Summary updated