Skip to main content
QUICK REVIEW

[Paper Review] Shifted CholeskyQR for computing the QR factorization of ill-conditioned matrices

Takeshi Fukaya, Ramaseshan Kannan|arXiv (Cornell University)|Sep 28, 2018
Matrix Theory and AlgorithmsComputer Science15 references5 citations
TL;DR

This paper proposes shiftedCholeskyQR3, a backward-stable QR factorization algorithm for ill-conditioned matrices with condition number up to 𝒪(u⁻¹), where u is the unit roundoff. By introducing a shift sI to the Gram matrix AᵀA before Cholesky factorization, it ensures numerical stability and enables safe application of CholeskyQR2, achieving orthogonality and residual errors of 𝒪(u) through three Cholesky QR passes.

ABSTRACT

The Cholesky QR algorithm is an efficient communication-minimizing algorithm for computing the QR factorization of a tall-skinny matrix. Unfortunately it has the inherent numerical instability and breakdown when the matrix is ill-conditioned. A recent work establishes that the instability can be cured by repeating the algorithm twice (called CholeskyQR2). However, the applicability of CholeskyQR2 is still limited by the requirement that the Cholesky factorization of the Gram matrix runs to completion, which means it does not always work for matrices $X$ with $κ_2(X)\gtrsim {\bf u}^{-\frac{1}{2}}$ where ${\bf u}$ is the unit roundoff. In this work we extend the applicability to $κ_2(X)=\mathcal{O}({\bf u}^{-1})$ by introducing a shift to the computed Gram matrix so as to guarantee the Cholesky factorization $R^TR= A^TA+sI$ succeeds numerically. We show that the computed $AR^{-1}$ has reduced condition number $\leq {\bf u}^{-\frac{1}{2}}$, for which CholeskyQR2 safely computes the QR factorization, yielding a computed $Q$ of orthogonality $\|Q^TQ-I\|_2$ and residual $\|A-QR\|_F/\|A\|_F$ both $\mathcal{O}({\bf u})$. Thus we obtain the required QR factorization by essentially running Cholesky QR thrice. We extensively analyze the resulting algorithm shiftedCholeskyQR to reveal its excellent numerical stability. shiftedCholeskyQR is also highly parallelizable, and applicable and effective also when working in an oblique inner product space. We illustrate our findings through experiments, in which we achieve significant (up to x40) speedup over alternative methods.

Motivation & Objective

  • To address the numerical instability of Cholesky QR in ill-conditioned matrices with condition number exceeding 𝒪(u⁻¹/²).
  • To extend the applicability of Cholesky QR-based algorithms beyond the limitations of CholeskyQR2, which fails when the Gram matrix Cholesky factorization breaks down.
  • To develop a communication-minimizing, backward-stable QR algorithm that remains effective even for matrices with high condition numbers.
  • To provide a practical, parallelizable method that achieves high performance and numerical stability without relying on Householder-type methods.

Proposed method

  • Introduce a shift sI to the Gram matrix AᵀA to form AᵀA + sI, ensuring the Cholesky factorization RᵀR = AᵀA + sI is numerically stable.
  • Compute R = chol(AᵀA + sI), then form Q₁ = XR⁻¹, which has reduced condition number ≤ 𝒪(u⁻¹/²).
  • Apply CholeskyQR2 to Q₁ to compute a stable QR factorization, yielding Q and R₁ with orthogonality and residual errors in 𝒪(u).
  • Combine the results to obtain the final QR factorization A = Q(R₁R⁻¹), effectively running Cholesky QR three times.
  • Use a shift s chosen such that the condition number of AR⁻¹ is bounded by 𝒪(u⁻¹/²), enabling safe use of CholeskyQR2.
  • Provide rigorous backward error analysis to bound the residual and orthogonality of the computed Q, showing both are 𝒪(u).

Experimental results

Research questions

  • RQ1Can Cholesky QR be made stable for matrices with condition number up to 𝒪(u⁻¹), beyond the 𝒪(u⁻¹/²) limit of CholeskyQR2?
  • RQ2What shift strategy ensures the Cholesky factorization of AᵀA + sI remains numerically stable while improving the conditioning of AR⁻¹?
  • RQ3Does the three-step process (shifted Cholesky QR + CholeskyQR2) yield a backward-stable QR factorization with errors in 𝒪(u)?
  • RQ4How does the proposed method compare in stability and performance to existing communication-avoiding and Householder-based QR algorithms?
  • RQ5Can the algorithm be extended to oblique inner product spaces while preserving stability and parallelizability?

Key findings

  • The shiftedCholeskyQR3 algorithm achieves backward stability for matrices with condition number up to 𝒪(u⁻¹), extending the applicability of Cholesky QR-based methods.
  • The computed Q satisfies ‖QᵀQ − I‖₂ = 𝒪(u) and the residual satisfies ‖A − QR‖F / ‖A‖F = 𝒪(u), confirming backward stability.
  • The algorithm runs Cholesky QR three times in practice, with the shift ensuring the second Cholesky QR step (CholeskyQR2) is numerically safe.
  • The residual bound is improved to 5n²u‖X‖₂, a factor of √n tighter than the prior bound of 5n²√n u‖X‖₂.
  • The method is highly parallelizable and achieves up to 40× speedup over alternative methods in experiments.
  • The approach remains effective in oblique inner product spaces, broadening its applicability beyond standard Euclidean settings.

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.