TL;DR
Kernel methods are famous for their predictive power but infamous for their poor scaling—standard Kernel Ridge Regression (KRR) requires $O(n^3)$ time to train. This paper introduces Supervised Kernel Thinning, a method that compresses a massive dataset into a tiny, high-fidelity "coreset" of size $\sqrt{n}$. By using specialized "meta-kernels" that account for both inputs and labels, the authors achieve a quadratic speedup in training and inference while outperforming standard random subsampling.
The Computational Bottleneck of Kernel Methods
Non-parametric kernel methods, like Nadaraya-Watson (NW) regression and Kernel Ridge Regression (KRR), are "memory-based" learners. To make a prediction, they essentially compare a new data point to everything they saw during training. This leads to a massive computational bottleneck:
- Training: KRR requires inverting an $n \times n$ matrix, which costs $O(n^3)$.
- Inference: Predicting a single point takes $O(n)$ time because you must evaluate the kernel against every training sample.
When $n$ is in the millions, these methods become unusable. The standard "fix" is uniform subsampling—just picking a random subset of the data. However, random sampling is statistically "noisy" (i.e., i.i.d. sampling is inefficient). You often throw away too much information, leading to poor accuracy. The authors aim to bridge the gap between the speed of subsampling and the accuracy of full-data kernel methods.
Supervised Kernel Thinning
The authors build upon Kernel Thinning (KT), an algorithm originally designed for unsupervised tasks (like compressing MCMC chains). KT takes $n$ points and produces a representative "coreset" of size $\sqrt{n}$ that represents the underlying distribution much better than a random sample would.
The core innovation here is Supervised KT. To make KT work for regression, you cannot just compress the distribution of the inputs ($x$); you must account for the labels ($y$). The authors introduce two novel "meta-kernels":
- The NW Meta-Kernel ($k_{NW}$): Designed to ensure the coreset accurately approximates both the numerator and denominator of the Nadaraya-Watson estimator.
- The KRR Meta-Kernel ($k_{RR}$): Designed to preserve the squared loss structure of ridge regression.
By running the KT-COMPRESS++ algorithm with these specific kernels, they generate a coreset that is optimized for the specific supervised task at hand. The key insight is that labels are features: for supervised learning, the labels $y$ should be treated as part of the kernel geometry during the compression phase. A coreset that ignores labels will likely over-sample regions of the input space that do not actually contribute much to the regression accuracy.
Experimental Validation
The researchers validated their approach across several datasets to test both accuracy and computational efficiency.
- Synthetic Data: A 1D sine-wave function with exponential growth and Gaussian noise was used to test how well the kernels handle varying signal-to-noise ratios.
- California Housing Dataset: A standard regression benchmark ($n \approx 20,000$, $d=8$) used to compare Mean Squared Error (MSE) and runtimes.
- SUSY Dataset: A large-scale particle physics dataset ($n = 5 \times 10^6$, $d=18$). This was used to demonstrate the algorithm's ability to handle millions of samples on a single CPU.
Key Results: Speed and Accuracy
The introduction of Supervised KT yields significant theoretical and empirical benefits:
- Quadratic Speedup: By reducing the data size from $n$ to $\sqrt{n}$, the $O(n^3)$ training cost of KRR drops to $O(n^{1.5})$. Similarly, inference time drops from $O(n)$ to $O(\sqrt{n})$. On the SUSY dataset with 4 million training points, the KT-COMPRESS++ implementation thinned the data in just 1.7 seconds on a single CPU core.
- Better-than-i.i.d. Accuracy: The paper proves theoretically that KT-based regression achieves a faster error-reduction rate than random subsampling. In the California Housing experiments, KT-KRR achieved lower MSE than standard subsampling and was nearly 20x faster to train than competitive low-rank approximation methods like RPCholesky.
- Theoretical Guarantee: The authors provided a new multiplicative error guarantee for KT, showing that their thinned estimators match minimax optimal rates while using only a fraction of the data.
Limitations and Future Work
- RKHS Assumption: The current theoretical proofs assume that the true underlying function $f^*$ belongs to the Reproducing Kernel Hilbert Space (RKHS) of the chosen kernel. If the model is misspecified, the guarantees might not hold as strongly.
- Kernel Selection: Like all kernel methods, the performance still depends on choosing a good base kernel (e.g., Gaussian vs. Matérn). The authors suggest that combining their method with "learned" kernels (like those from Recursive Feature Machines) is a promising future direction.
- Infinite Dimensions: While the paper addresses infinite-dimensional kernels, obtaining even sharper error rates for this setting remains an open challenge for future research.
Summary updated