Recent and Upcoming Developments in Randomized Numerical Linear Algebra for Machine Learning

Michal Derezinski, Michael W. Mahoney

Abstract

Randomized Numerical Linear Algebra (RandNLA) has emerged as a critical tool for large-scale machine learning, offering a way to process massive datasets by "sketching" them into lower-dimensional representations. This paper explores the transition from classical, worst-case theoretical foundations to modern approaches informed by Random Matrix Theory (RMT). We review the primary algorithmic paradigms—Sketch-and-Solve, Sketch-and-Precondition, and Iterative Sketching—and discuss how these techniques provide not only computational speedups but also statistical benefits like implicit regularization. Finally, we highlight the challenges of hardware communication and the future of standardized randomized linear algebra libraries.

Introduction

As datasets grow to terabyte scales, traditional "exact" matrix algorithms, such as Singular Value Decomposition (SVD) or QR decomposition, have become computationally prohibitive. The field of Randomized Numerical Linear Algebra (RandNLA) was established to address these bottlenecks by treating randomness as a computational resource. By "sketching" large matrices into smaller versions that preserve essential geometric properties, RandNLA allows for efficient processing of data that would otherwise be intractable.

Historically, RandNLA was rooted in theoretical computer science, focusing on worst-case guarantees. However, a significant gap has persisted between these pessimistic bounds and the high performance observed in practice. Modern RandNLA seeks to bridge this gap by leveraging Random Matrix Theory (RMT) to provide a finer-grained analysis of how sketching affects generalization, regularization, and optimization in machine learning models.

Algorithmic Paradigms

The evolution of RandNLA has crystallized into three primary algorithmic strategies, each suited for different precision and computational requirements:

  1. Sketch-and-Solve: This is a one-shot approach where a large problem is compressed into a smaller version and solved directly. While computationally efficient, it is generally best suited for applications with low-precision requirements.
  2. Sketch-and-Precondition: In this paradigm, a sketch is used to construct a "preconditioner." This preconditioner is then used to accelerate traditional iterative solvers, ensuring they converge much faster. This remains the gold standard for high-precision numerical work.
  3. Iterative Sketching: This approach involves repeatedly sub-sampling or sketching the problem to refine an estimate over time. Techniques such as the Newton Sketch or Randomized Kaczmarz are particularly effective for modern machine learning optimization tasks.

Bridging Theory and Practice via Random Matrix Theory

A key development in modern RandNLA is the move toward the "proportional regime," where the sketch size $s$ is a small multiple of the data's intrinsic dimension $d$. While classical theory often required $s \gg d$ for its bounds to hold, RMT allows researchers to analyze the $s \approx d$ regime with high accuracy.

Algorithmic Gaussianization and Bias Correction

Recent research has introduced "Algorithmic Gaussianization," which demonstrates that even fast, non-Gaussian sketches (like sparse transforms) behave like Gaussian ones in high dimensions. This allows for tighter, more predictive analysis. Furthermore, researchers have identified and addressed "Inversion Bias." Because sketching and then inverting a matrix introduces a systematic bias ($E[X^{-1}] \neq (E[X])^{-1}$), the development of nearly-unbiased estimators has become a priority for maintaining mathematical rigor in sketched models.

Diversity in Sampling

Beyond simple i.i.d. sampling, the use of Determinantal Point Processes (DPPs) has gained traction. DPPs ensure "diversity" in the selected data points, often outperforming standard sampling methods by reducing redundancy in the sketched matrix.

Statistical Insights and Key Results

RandNLA is increasingly viewed through a statistical lens rather than a purely computational one. This perspective has led to several key insights:

  • Implicit Regularization: Sketching acts as a form of regularization. In sketched ridge regression, for instance, the act of sketching effectively "shrinks" the regularization parameter. This effect can be precisely calculated and corrected to optimize model performance.
  • The Multiple-Descent Phenomenon: Fine-grained RMT analysis has revealed that error in low-rank approximations does not always decrease monotonically with sketch size. Instead, it can exhibit "peaks" (multiple descent), a phenomenon that worst-case analysis fails to capture.
  • Computational Speed: RandNLA-based solvers, such as Blendenpik, have demonstrated the ability to outperform industry-standard libraries like LAPACK by significant margins on dense, over-determined systems.
  • Optimization Convergence: Preconditioned versions of Stochastic Gradient Descent (SGD) can achieve convergence rates that are independent of the matrix's condition number, providing a massive advantage for "stiff" optimization problems.

Future Directions and Limitations

Despite its success, RandNLA faces several hurdles. The primary bottleneck in modern hardware is often the "Memory Wall"—the cost of moving data between memory and processors—rather than computation itself. Future research must prioritize "communication-avoiding" randomized algorithms to remain relevant on modern architectures.

Additionally, the field is moving toward hardware heterogeneity, necessitating the development of standardized software libraries like RandBLAS and RandLAPACK that can operate across GPUs, TPUs, and other accelerators. Other frontiers include extending these foundations to tensors (higher-order data) and exploring data-driven sketching, where the sketching method is learned from the specific distribution of the data rather than being oblivious to it.

Conclusion

RandNLA has evolved from a collection of theoretical tricks into a robust foundation for large-scale machine learning. By integrating Random Matrix Theory and focusing on the statistical implications of sketching, the field is providing the tools necessary to handle the next generation of massive, high-dimensional data challenges.

Summary updated

BibTeX
@inproceedings{derezinski2024recent,
  author = {Michal Derezinski and Michael W. Mahoney},
  title = {{Recent and Upcoming Developments in Randomized Numerical Linear Algebra for Machine Learning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure