Skip to main content
QUICK REVIEW

[Paper Review] A Practical Guide to Randomized Matrix Computations with MATLAB Implementations

Shusen Wang|arXiv (Cornell University)|May 28, 2015
Stochastic Gradient Optimization TechniquesComputer Science39 references31 citations
TL;DR

This paper presents a practical, implementation-focused guide to randomized matrix computations using MATLAB, emphasizing intuitive understanding and code-ready algorithms. It introduces efficient randomized techniques for matrix sketching, regression, SVD, and kernel approximation—enabling scalable solutions with provable accuracy trade-offs for large-scale data.

ABSTRACT

Matrix operations such as matrix inversion, eigenvalue decomposition, singular value decomposition are ubiquitous in real-world applications. Unfortunately, many of these matrix operations so time and memory expensive that they are prohibitive when the scale of data is large. In real-world applications, since the data themselves are noisy, machine-precision matrix operations are not necessary at all, and one can sacrifice a reasonable amount of accuracy for computational efficiency. In recent years, a bunch of randomized algorithms have been devised to make matrix computations more scalable. Mahoney (2011) and Woodruff (2014) have written excellent but very technical reviews of the randomized algorithms. Differently, the focus of this manuscript is on intuition, algorithm derivation, and implementation. This manuscript should be accessible to people with knowledge in elementary matrix algebra but unfamiliar with randomized matrix computations. The algorithms introduced in this manuscript are all summarized in a user-friendly way, and they can be implemented in lines of MATLAB code. The readers can easily follow the implementations even if they do not understand the maths and algorithms.

Motivation & Objective

  • Address the scalability limitations of traditional matrix computations in large-scale data science by introducing randomized alternatives.
  • Bridge the gap between theoretical randomized algorithms and practical implementation for researchers unfamiliar with randomized numerical linear algebra.
  • Provide accessible, user-friendly MATLAB code for core algorithms, enabling immediate use without deep mathematical derivation.
  • Demonstrate how to achieve significant computational savings in matrix operations like SVD, regression, and kernel approximation while maintaining acceptable accuracy.
  • Extend randomized methods to symmetric positive semi-definite matrices and kernel methods, including applications in Gaussian process regression and spectral clustering.

Proposed method

  • Uses random projection via Gaussian, SRHT, and Count Sketch to create low-dimensional sketches of large matrices.
  • Employs leverage score sampling and local landmark selection for column/row sampling in matrix approximation.
  • Applies preconditioning and sketching to solve least squares regression efficiently with reduced time and memory costs.
  • Introduces a prototype and faster randomized k-SVD algorithm using matrix sketching and low-rank approximation.
  • Adapts the Nyström method and introduces MEKA and SKI for memory-efficient kernel approximation in SPSD matrices.
  • Proposes CUR decomposition as a faster alternative to full kernel matrix computation, especially for large-scale regression and kernel methods.

Experimental results

Research questions

  • RQ1How can randomized matrix sketching be used to accelerate matrix inversion, SVD, and eigenvalue decomposition in large-scale data applications?
  • RQ2What are the practical trade-offs between computational efficiency and accuracy in randomized algorithms for least squares regression?
  • RQ3How can the Nyström method and its extensions (MEKA, SKI) improve the efficiency of kernel matrix approximation?
  • RQ4In what scenarios does CUR decomposition outperform standard SVD or kernel approximation in terms of speed and memory usage?
  • RQ5How can randomized algorithms be implemented in practice using high-level code (e.g., MATLAB) without deep theoretical understanding?

Key findings

  • Randomized algorithms reduce the time complexity of SVD from O(n³) to O(n²k) for rank-k approximation, enabling scalability to large matrices.
  • The proposed CUR decomposition allows kernel matrix-vector multiplication in O(nk) time instead of O(n²), significantly accelerating inference in Gaussian process regression.
  • The use of structured random projections (e.g., SRHT) and leverage score sampling achieves high-accuracy low-rank approximations with minimal computational overhead.
  • For kernel methods, the MEKA and SKI extensions reduce memory usage by up to 90% compared to standard Nyström, while maintaining competitive approximation error.
  • MATLAB implementations of all core algorithms are provided and can be executed in just a few lines of code, enabling rapid prototyping and deployment.
  • Theoretical analysis confirms that randomized methods achieve relative error bounds comparable to deterministic counterparts, with practical performance often exceeding expectations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.