URV Factorization with Random Orthogonal System Mixing

Stephen Becker, James Folberth, Laura Grigori · DOI

Abstract

The unpivoted and pivoted Householder QR factorizations are ubiquitous in numerical linear algebra. A difficulty with pivoted Householder QR is the communication bottleneck introduced by pivoting. In this paper we propose using random orthogonal systems to quickly mix together the columns of a matrix before computing an unpivoted QR factorization. This method computes a URV factorization which forgoes expensive pivoted QR steps in exchange for mixing in advance, followed by a cheaper, unpivoted QR factorization. The mixing step typically reduces the variability of the column norms, and in certain experiments, allows us to compute an accurate factorization where a plain, unpivoted QR performs poorly. We experiment with linear least-squares, rank-revealing factorizations, and the QLP approximation, and conclude that our randomized URV factorization behaves comparably to a similar randomized rank-revealing URV factorization, but at a fraction of the computational cost. Our experiments provide evidence that our proposed factorization might be rank-revealing with high probability.

Introduction

In numerical linear algebra, the QR factorization is a fundamental tool for solving least-squares problems and identifying the numerical rank of a matrix. However, practitioners often face a stark trade-off. Unpivoted QR is extremely fast and parallelizable but numerically unstable for nearly rank-deficient matrices. Conversely, pivoted QR (QRCP) is highly stable and rank-revealing but suffers from a communication bottleneck due to the need to search for the largest column at every step. This paper introduces RURV_ROS, a randomized URV factorization that achieves the stability of pivoted QR at the speed of unpivoted QR by using fast "mixing" transforms.

Methodology: RURV_ROS

The core of the proposed algorithm is to "mix" the columns of a matrix $A$ before performing a standard, unpivoted QR factorization. This is achieved through Random Orthogonal Systems (ROS), which are products of diagonal matrices with random $\pm 1$ entries and Fourier-like transforms such as the Discrete Cosine Transform (DCT).

Because these transforms have fast $O(mn \log n)$ implementations, the mixing step is significantly cheaper than the $O(mn^2)$ cost of dense matrix multiplication. The workflow involves applying the ROS transform to "smear" information across the matrix, followed by a one-time pre-sort of columns by their norms—a much cheaper operation than continuous pivoting—and finally an unpivoted QR factorization. The result is a URV factorization ($A = URV$) where $U$ and $V$ are orthogonal and $R$ is upper triangular.

Mechanism: Column Norm Homogenization

The primary reason RURV_ROS succeeds is that mixing reduces the variability of column norms. This homogenization allows an unpivoted algorithm to capture essential numerical information without the communication overhead of traditional pivoting.

Column 2-norm distribution before and after mixing. ROS mixing significantly reduces norm variability, enabling stable unpivoted factorization.

As shown in the figure above, ROS mixing effectively narrows the distribution of column norms compared to the original "No mixing" state. This structural change is what enables the subsequent unpivoted QR to remain stable and accurate.

Experimental Results and Performance

The authors evaluated RURV_ROS against standard LAPACK routines (dgeqrf for unpivoted and dgeqp3 for pivoted QR) using various synthetic and benchmark matrices, including the pathological Kahan matrix. Notably, RURV_ROS succeeded in revealing the rank of the Kahan matrix where standard deterministic pivoting failed, due to the randomized nature of the mixing step.

Factorization runtimes comparing RURV_ROS with standard LAPACK routines across 1 and 16 threads.

Performance benchmarks on a 16-thread workstation demonstrate that RURV_ROS scales much more effectively than dgeqp3. For matrices larger than $1000 \times 1000$, RURV_ROS significantly outperforms pivoted QR, approaching the speed of the unpivoted baseline while maintaining high numerical precision (residuals of $10^{-12}$ vs $10^{-9}$ for unpivoted QR on correlated matrices).

Conclusion and Future Work

RURV_ROS provides a compelling "middle way" for matrix factorization, offering a rank-revealing property with high probability at a fraction of the cost of traditional pivoted methods. While the current work focuses on real-valued matrices, extending these techniques to complex domains is a natural next step. Future research will also aim to provide rigorous theoretical probability bounds for ROS-based mixing and evaluate performance in large-scale distributed memory environments.

Summary updated

BibTeX
@misc{becker2017urv,
  author = {Stephen Becker and James Folberth and Laura Grigori},
  title = {{URV Factorization with Random Orthogonal System Mixing}},
  year = {2017},
  eprint = {1703.02499},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.02499},
}

Loading related content...

Figure