Embrace Rejection: Kernel Matrix Approximation by Accelerated Randomly Pivoted Cholesky

Ethan N. Epperly, Joel A. Tropp, Robert J. Webber

Abstract

Kernel matrices are fundamental to modern machine learning, yet their quadratic scaling with dataset size often makes them computationally prohibitive. While Randomly Pivoted Cholesky (RPCholesky) provides a highly accurate low-rank approximation, its sequential nature creates a significant memory bottleneck on modern hardware. We present Accelerated RPCholesky, a new algorithm that achieves up to a 40x speedup by combining block-matrix operations with a novel rejection sampling step. This approach maintains the exact statistical guarantees of sequential RPCholesky while matching the throughput of faster but less reliable block methods.

The Bottleneck in Kernel Methods

In machine learning and scientific computing, kernel matrices describe the similarity between every pair of points in a dataset. Because these matrices grow quadratically, they quickly become too large to store or compute directly. Low-rank approximation—finding a smaller matrix that captures the essential information—is the standard solution.

RPCholesky is a popular tool for this task due to its accuracy. However, it is traditionally a sequential algorithm, processing columns one by one. On modern hardware, this is inefficient because the cost of moving data from memory to the CPU cache often exceeds the cost of the actual computation. While "block" versions of the algorithm exist to solve this speed problem, they frequently fail to maintain accuracy on complex datasets.

Methods: The Power of Rejection

Accelerated RPCholesky bridges the gap between sequential accuracy and block-method speed through three key innovations:

  1. Submatrix Access Model: Instead of requesting one entry at a time, the algorithm requests blocks of columns. This exploits the ability of modern hardware to move data efficiently using BLAS Level 3 operations.
  2. Rejection Sampling: This is the algorithm's "secret sauce." It proposes a block of potential "pivots" (important columns) based on a stale estimate of the matrix and then uses rejection sampling to "thin" this list. This ensures that only columns that would have been chosen by the accurate sequential version are accepted.
  3. Multi-round Updates: The algorithm proceeds in rounds, performing high-speed block updates to the matrix approximation after each rejection step.
Throughput increases with block size $b$, demonstrating the efficiency of the submatrix access model.

Crucially, the authors prove that this accelerated version produces the exact same statistical distribution of outputs as the original sequential algorithm, providing speed without mathematical compromise.

Experimental Evaluation

The researchers evaluated the method on a massive testbed of 125 kernel matrices, including challenging synthetic datasets like "Smile" and "Spiral," real-world data from LIBSVM and OpenML, and molecular chemistry benchmarks.

Key Results

  • Massive Speedups: Accelerated RPCholesky was at least 5x faster than the standard version across all test cases. For high-dimensional Gaussian kernels, it reached speedups of 40x to 50x.
  • Uncompromised Accuracy: In every test, the accelerated version matched the accuracy of sequential RPCholesky. In contrast, standard "Block RPCholesky" often produced significantly higher errors on structured data.
  • The "Smile" Test: The synthetic "Smile" dataset highlights the failure of naive blocking. Standard block methods can be up to 800x less accurate because they do not adapt quickly enough to the matrix's structure. Accelerated RPCholesky fixes this by adapting within the rejection step.
Performance comparison on the 'Smile' dataset: Accelerated RPCholesky matches the speed of Block RPCholesky while maintaining the high accuracy of the sequential version.

Conclusion and Future Work

By "embracing rejection," the authors demonstrate that a seemingly wasteful step can be the key to unlocking massive hardware acceleration. Accelerated RPCholesky offers a robust, high-performance alternative for large-scale kernel methods. Future research may focus on automated parameter tuning for block sizes and extending this "acceleration by rejection" framework to other randomized linear algebra tools like QR decompositions.

Summary updated

BibTeX
@article{epperly2025embrace,
  author = {Ethan N. Epperly and Joel A. Tropp and Robert J. Webber},
  title = {{Embrace Rejection: Kernel Matrix Approximation by Accelerated Randomly Pivoted Cholesky}},
  journal = {SIAM J. Matrix Anal. Appl.},
  year = {2025},
  doi = {10.1137/24m1699048},
}
Figure