Make the most of what you have: Resource-efficient randomized algorithms for matrix computations

Ethan N. EpperlyarXiv 2025 · DOI

Abstract

In the era of big data, matrix computations often encounter a "curse of dimensionality" where matrices are too large to store or even fully read. This work introduces a suite of resource-efficient randomized algorithms—including Randomly Pivoted Cholesky (RPCholesky), the XTrace framework, and Sketch-and-Precondition with Iterative Refinement (SPIR)—designed to solve massive linear algebra problems with minimal data budgets. These methods achieve near-optimal accuracy and numerical stability while providing significant speedups over traditional deterministic solvers.

Introduction

Modern data science frequently encounters matrices representing relationships between millions of data points. For instance, kernel matrices in machine learning require $O(n^2)$ storage and $O(n^3)$ processing time, making large-scale analysis computationally prohibitive. Furthermore, many matrices are implicit, accessible only through matrix-vector products (matvecs). Estimating attributes like the trace or diagonal of these implicit matrices is critical for quantum physics and network science, but doing so efficiently remains a challenge. This work addresses these bottlenecks by developing randomized methods that prioritize resource efficiency without sacrificing reliability.

Methodological Contributions

Randomly Pivoted Cholesky (RPCholesky)

For positive-semidefinite (PSD) matrices, RPCholesky offers a balanced approach to low-rank approximation. Traditional methods are either "greedy" (picking the largest diagonal entry) or "uniform" (random sampling). RPCholesky samples pivots proportional to the residual diagonal, striking a balance between exploitation and exploration. This achieves near-optimal accuracy with very few entry evaluations. To handle rapidly decaying eigenvalues, "accelerated" block variants were developed to utilize modern hardware efficiently.

The Leave-One-Out Framework (XTrace and XNysTrace)

Traditional matrix attribute estimation methods, such as Hutch++, split their computational budget between low-rank approximation and Monte Carlo estimation. The "leave-one-out" approach introduced here allows every matvec to contribute to both tasks simultaneously. This framework yields algorithms like XTrace and XNysTrace, which extract more information from the same data budget, leading to significantly faster convergence rates.

Sketch-and-Precondition with Iterative Refinement (SPIR)

To address concerns regarding the numerical stability of randomized methods, SPIR was developed for overdetermined least-squares problems. By using "sketching" to create a preconditioner followed by a single step of iterative refinement, SPIR ensures backward stability—the gold standard of reliability in numerical analysis—matching the performance of classical Householder QR methods at a fraction of the cost.

Experimental Evaluation

The proposed algorithms were benchmarked across a diverse range of datasets and domains:

  • Kernel Approximation: Evaluated on 20 datasets, including MNIST (digits), HIGGS (particle physics), and YearPredictionMSD (music).
  • Network Science: Tested on the yeast protein-protein interaction network to estimate the Estrada index and subgraph centralities.
  • Quantum Chemistry: Applied to the QM9 dataset for predicting molecular orbital energies via preconditioned kernel ridge regression.

Key Insights and Results

  • Performance Gains: Accelerated RPCholesky achieved speedups of 5x to 40x over standard versions by utilizing block-matrix arithmetic.
  • Convergence: XNysTrace demonstrated a 3x faster exponential convergence rate compared to the previous state-of-the-art, Hutch++.
  • Stability and Robustness: The research provides the first rigorous proof of backward stability for randomized least-squares solvers. In active learning tasks, RPCholesky provided superior data coverage compared to uniform sampling, effectively identifying critical features in complex datasets.
  • Theoretical Links: A key theoretical contribution is the "Gram Correspondence," which formally links projection approximations for general matrices to Nyström approximations for PSD matrices. Additionally, the "Sketching Asymmetry Principle" highlights that lower distortion is more critical for stability than upper distortion in randomized least squares.

Conclusion and Future Work

While these algorithms significantly advance the state of randomized numerical linear algebra, several challenges remain. Observations on Apple Silicon (ARM) revealed unexpected accuracy discrepancies compared to Intel (x86) systems, suggesting a need for deeper investigation into platform-specific floating-point handling. Future research will also focus on strengthening spectral-norm error bounds for RPCholesky and extending "leave-one-out" efficiencies to Hermitian indefinite matrices.

Summary updated

BibTeX
@misc{epperly2025make,
  author = {Ethan N. Epperly},
  title = {{Make the most of what you have: Resource-efficient randomized algorithms for matrix computations}},
  year = {2025},
  eprint = {2512.15929},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.15929},
}
Figure