A Generalized Randomized Rank-Revealing Factorization

Grey Ballard, James Demmel, Ioana Dumitriu, Alexander RuscianoarXiv 2019

Abstract

We introduce a Generalized Randomized QR-decomposition that may be applied to arbitrary products of matrices and their inverses, without needing to explicitly compute the products or inverses. This factorization is a critical part of a communication-optimal spectral divide-and-conquer algorithm for the nonsymmetric eigenvalue problem. In this paper, we establish that this randomized QR-factorization satisfies the strong rank-revealing properties. We also formally prove its stability, making it suitable in applications. Finally, we present numerical experiments which demonstrate that our theoretical bounds capture the empirical behavior of the factorization.

Introduction

In numerical linear algebra, identifying the numerical rank of a matrix—the number of linearly independent columns that contribute significantly to its information content—is a foundational operation. Traditional methods, such as QR decomposition with column pivoting (QRCP), have long been the standard for this task. However, as computational architectures move toward massive parallelism and distributed memory, the communication overhead of traditional pivoting becomes a significant bottleneck.

This paper introduces a generalized, randomized approach to rank-revealing factorization (GRURV). This method is designed to be communication-optimal and capable of handling complex chains of matrix products and inverses without the need for explicit computation, which often introduces numerical instability.

The Communication Bottleneck

The primary issue with deterministic rank-revealing algorithms like QRCP is their "communication-heavy" nature. These algorithms require frequent global synchronization to decide which column to pivot next. In a distributed environment, this constant data shuffling between processors slows down execution significantly.

Furthermore, many advanced applications, such as spectral divide-and-conquer algorithms for the nonsymmetric eigenvalue problem, require finding the rank of a product of matrices (e.g., $A \cdot B \cdot C^{-1}$). Explicitly forming these products or calculating inverses is computationally expensive and numerically risky. There is a clear need for a method that can "propagate" rank information through a sequence of matrices efficiently while avoiding unnecessary communication.

Methodology: From RURV to GRURV

The authors build upon the Randomized URV (RURV) technique, which utilizes "scrambling" to reveal rank:

  1. Scrambling: The matrix $A$ is multiplied by a random, uniformly distributed orthogonal matrix $V$ (a Haar matrix). This process effectively redistributes the information across columns, ensuring that a standard QR decomposition can reveal the rank without the need for data-dependent pivoting.
  2. Factorization: A standard, non-pivoted QR decomposition is performed on the scrambled matrix.
  3. Generalization (GRURV): The core contribution of this work is the extension of RURV to products and inverses. To handle a chain like $A \cdot B$, the algorithm factorizes the final matrix and uses a sequence of QR and RQ updates to propagate the orthogonal factors back through the chain. This allows for the extraction of a rank-revealing $R$ matrix for the entire product implicitly, without ever performing full matrix-matrix multiplications.

Theoretical Rigor and Stability

The paper establishes two critical properties for GRURV:

  • Strong Rank-Revealing Property: The authors prove that GRURV is a "strong" rank-revealing factorization. This means it provides tight approximations of the largest and smallest singular values, rivaling the accuracy of deterministic algorithms like the Gu-Eisenstat algorithm but with much lower communication costs.
  • Backward Stability: The authors provide a formal proof that both RURV and GRURV are backward stable. This ensures that the errors introduced during the randomized process are within the bounds of standard floating-point precision, making the algorithm reliable for high-stakes scientific computing.

Numerical Validation

To validate the theoretical bounds, the authors conducted experiments using synthetic test matrices designed to challenge rank detection:

  • Stair-step distributions: Matrices where singular values are clearly partitioned into "large" and "small" groups (1 or 0).
  • Logarithmically spaced distributions: Matrices with exponentially decaying singular values.

The results demonstrated that the empirical errors (specifically the 97th percentile) consistently fell within the predicted theoretical bounds. This confirms that the probabilistic analysis provided in the paper accurately reflects the algorithm's real-world performance and that the bounds are not merely mathematical curiosities.

Conclusion

GRURV represents a significant step forward in communication-avoiding linear algebra. By leveraging randomization, the algorithm avoids the synchronization bottlenecks of traditional pivoting while maintaining the "strong" rank-revealing properties required for complex spectral problems. As a critical component of larger eigenvalue solvers, GRURV enables more efficient and stable computations on modern high-performance computing clusters.

Summary updated

BibTeX
@misc{ballard2019generalized,
  author = {Grey Ballard and James Demmel and Ioana Dumitriu and Alexander Rusciano},
  title = {{A Generalized Randomized Rank-Revealing Factorization}},
  year = {2019},
  eprint = {1909.06524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06524},
}
Figure