Randomized Block Gram-Schmidt Process for the Solution of Linear Systems and Eigenvalue Problems

Oleg Balabanov, Laura Grigori

TL;DR

This paper introduces a Randomized Block Gram-Schmidt (RBGS) process, a novel algorithm for computing QR factorizations of matrices. RBGS offers significant advantages in terms of efficiency, stability, and parallelizability compared to existing methods, making it particularly well-suited for large-scale linear algebra problems on modern hardware.

What Problem Does This Paper Address?

Solving large systems of linear equations and finding eigenvalues are fundamental tasks in scientific computing. Many algorithms for these problems rely on QR factorization, a process that decomposes a matrix into an orthogonal matrix and an upper triangular matrix. Traditional methods like Gram-Schmidt can be computationally expensive and suffer from numerical instability, especially for "tall and skinny" matrices (many rows, fewer columns) that are common in modern applications. Existing block versions of Gram-Schmidt improve performance by leveraging optimized matrix operations, but can still face challenges with communication overhead in parallel settings and numerical stability. This paper aims to develop a more robust and efficient block QR factorization method that addresses these limitations.

Methods

The core contribution is the Randomized Block Gram-Schmidt (RBGS) process. RBGS builds upon the single-vector Randomized Gram-Schmidt (RGS) method by incorporating random sketching. This technique involves multiplying the matrix with a carefully chosen random matrix (a "sketch") to create a smaller, lower-dimensional representation. The QR factorization is then performed on this sketch, which is significantly faster and more stable.

Key aspects of the RBGS method include:

  • Block Operations: RBGS operates on blocks of columns, allowing it to leverage highly optimized BLAS3 matrix-matrix operations, which are crucial for performance on modern architectures.
  • Random Sketching: The use of random sketching, particularly with efficient methods like Subsampled Randomized Hadamard Transform (SRHT), reduces the computational cost and improves numerical stability.
  • Low Synchronization Variant: A notable innovation is a variant of RBGS that requires only one global synchronization between processors per block, making it highly efficient for parallel computing.
  • Application to Krylov Methods: The paper extends RBGS to randomized block versions of popular Krylov subspace methods like GMRES (for linear systems) and the RR method (for eigenvalue problems), demonstrating its broad applicability.

Datasets

Not discussed in the paper. The paper focuses on algorithmic development and uses synthetically generated matrices for numerical experiments.

Key Insights and Ideas

  • Randomization for Stability and Efficiency: The paper demonstrates that introducing randomization through sketching can not only speed up computations but also significantly improve numerical stability, even for ill-conditioned matrices. This is counter-intuitive, as randomization is often associated with approximation, but here it acts as a stabilizing mechanism.
  • Block Operations + Randomization = Synergy: Combining block processing with random sketching creates a powerful synergy. Block operations exploit hardware efficiently, while sketching reduces the problem size and improves numerical properties, leading to a method that is both fast and robust.
  • Low Synchronization is Key for Parallelism: The development of a low-synchronization variant of RBGS is a crucial step for practical parallel implementations. Minimizing communication between processors is often a bottleneck in distributed computing, and RBGS offers a solution.
  • A Posteriori Certification: RBGS allows for efficient a posteriori certification of the factorization's quality without needing to estimate the condition number of the original matrix, which is a significant advantage for users.

Key Results

  • Efficiency: RBGS requires approximately half the floating-point operations (flops) and data passes compared to the classical block Gram-Schmidt (BCGS) algorithm.
  • Stability: Numerical experiments show that RBGS, especially its multi-precision variant, remains stable even for numerically rank-deficient matrices where standard methods fail. It produces Q factors with condition numbers close to 1.
  • Parallelism: The low-synchronization variant of RBGS requires only one global synchronization per block, making it highly suitable for parallel architectures.
  • Application Performance: Randomized block GMRES and RR methods based on RBGS demonstrate stable and efficient convergence in numerical examples, outperforming standard methods in challenging scenarios.

Limitations and Future Work

  • Theoretical Guarantees for Sketching: While the paper provides strong empirical evidence and theoretical analysis for RBGS, the authors note that proving the $\epsilon$-embedding property of the sketching matrix for the computed Krylov space in the presence of rounding errors remains an open theoretical challenge.
  • Model Order Reduction and Compression: The authors suggest combining RBGS with model order reduction and compression techniques for further cost reduction.
  • Short Recurrence Methods: Applying RBGS to improve methods that use short recurrences, like CG, BCG, and Lanczos, is another promising direction.
  • Symmetric/Hermitian Operators: While the paper discusses extensions to eigenvalue problems, further investigation into the application of sketched Galerkin projections for symmetric or Hermitian operators, particularly concerning the Min-Max principle, is suggested.

Summary updated

BibTeX
@article{balabanov2025randomized,
  author = {Oleg Balabanov and Laura Grigori},
  title = {{Randomized Block Gram-Schmidt Process for the Solution of Linear Systems and Eigenvalue Problems}},
  journal = {SIAM J. Sci. Comput},
  year = {2025},
  doi = {10.1137/22m1518396},
}
Figure