betaFeedback

WorksMathematics

Three mixed-precision preconditioners for CholeskyQR

Abstract

CholeskyQR is an orthogonalization algorithm particularly well suited to modern computing architectures, but it may fail to produce numerically orthonormal columns when applied to ill-conditioned matrices. A customary solution is to first reduce the condition number of the input matrix by means of a preconditioner, and then apply CholeskyQR to the preconditioned matrix. We propose three mixed-precision techniques for constructing such preconditioners: mpSCQR, based on a shifted Cholesky factorization; mpEVDQR, based on the eigendecomposition; and mpLUCQR, based on a pivoted LU factorization. We prove bounds on the condition number of the matrix after mpSCQR, mpLUCQR, or a shifted variant of mpEVDQR has been applied. Our experiments compare the proposed preconditioners with existing deterministic and randomized alternatives. The results suggest that mpEVDQR and mpLUCQR can be substantially faster than traditional shiftedCholeskyQR, with mpLUCQR attaining performance comparable to that of the most efficient randomized preconditioners.

CholeskyQR and preconditioning

Let X∈Rm×nX \in\mathbb{R}^{m \times n} be a matrix of full column rank, with m≥nm \ge n. A (column) orthogonalization of XX is a factorization that satisfies

X=QR,QTQ=In,Q∈Rm×n,R∈Rn×n.(1)X = QR,\qquad Q^{\mathsf{T}}Q = I_n,\qquad Q \in\mathbb{R}^{m \times n},\qquad R \in\mathbb{R}^{n \times n}. \tag*{(1)}

When RR is upper triangular, (1) is a QR factorization.

Many numerical algorithms require orthogonalizing matrices for which m≫nm \gg n. This is the case, for example, when constructing orthonormal bases in Krylov subspace methods such as GMRES [23] and the Lanczos method [19], when maintaining the search spaces in eigensolvers such as PIN-VIT [21] and LOBPCG [5], and when computing approximate ranges in randomized low-rank approximation [13].

Many algorithms are available for computing (1), and Householder QR (HQR) is arguably the most widely used [16 sect. 9]. HQR is unconditionally stable, in that the relative backward error and the loss of orthogonality of its computed QR factors are, up to constants that depend on mm Algorithm 1: CholeskyQR

Input: X∈Rm×nX \in\mathbb{R}^{m \times n} with m≥nm \ge n.

Output: QQ and RR as in (1).

1.1: function [Q,R]=CHOLESKYQR⁡(X)[Q, R] = \operatorname{CHOLESKYQR}(X) 1.2: Compute G←XTXG \leftarrow X^{\mathsf{T}}X. 1.3: Compute the Cholesky factorization RTR=GR^{\mathsf{T}}R = G. 1.4: Compute Q←XR−1Q \leftarrow XR^{-1}.

and nn, of order the unit roundoff uu. The orthogonalization is obtained by applying to XX a sequence of Householder transformations, and requires 2mn2−2n3/32mn^2 - 2n^3/3 floating-point operations (flops), if QQ is only needed as a product of transformations [10 p. 249], and 4mn2−4n3/34mn^2 - 4n^3/3 flops, if QQ is needed explicitly [10 p. 255]. The dependencies require frequent synchronizations and communication that can limit parallel performance.

On modern architectures, better performance can typically be achieved by using algorithms with lower communication cost, such as CholeskyQR [7] in algorithm 1. The algorithm yields a QR factorization because RR is upper triangular and

QTQ=R−TXTXR−1=In.Q^{\mathsf{T}}Q = R^{-\mathsf{T}}X^{\mathsf{T}}XR^{-1} = I_n.

where InI_n is the identity matrix of order nn.

Forming the symmetric Gram matrix on line 1.2 requires mn2mn^2 flops, computing its Cholesky factorization on line 1.3 requires n3/3n^3/3 flops, and solving the linear system on line 1.4 requires mn2mn^2 flops. Therefore, CholeskyQR requires 2mn2+n3/32mn^2+n^3/3 flops, which is comparable with the flop counts of the fastest orthogonalization methods available, such as classical and modified Gram–Schmidt [10 pp. 254–255]. All three steps in CholeskyQR are rich in level-3 BLAS operations, and they can be naturally parallelized with only one global reduction when forming the Gram matrix. These properties make CholeskyQR particularly attractive on multicore processors, distributed-memory systems, and GPUs [29].

Since κ2(G)=κ2(XTX)=κ2(X)2\kappa_2(G) = \kappa_2(X^{\mathsf{T}}X) = \kappa_2(X)^2, the loss of orthogonality of CholeskyQR depends quadratically on κ2(X)\kappa_2(X). A natural solution is to apply CholeskyQR twice. Yamamoto et al. [28] show that this variant, known as CholeskyQR2, computes a matrix Q^\widehat{Q} such that

∥Q^TQ^−In∥2≤6(mn+n(n+1))u,\lVert\widehat{Q}^{\mathsf{T}}\widehat{Q} - I_n \rVert_2 \le6(mn+n(n+1))u,

provided that XX satisfies

8κ2(X)mnu+n(n+1)u≤1.(2)8\kappa_2(X)\sqrt{mnu+n(n+1)u} \le1. \tag*{(2)}

Condition (2) is certainly violated if κ2(X)>u−1/2\kappa_2(X) > u^{-1/2}, and CholeskyQR2 is no longer guaranteed to produce a numerically orthogonal matrix in finite precision. Moreover, the computed Gram matrix may be indefinite, leading to a breakdown in the Cholesky factorization. In such cases, one can reduce the condition number by using shiftedCholeskyQR (SCQR), which uses algorithm 1 with line 1.3 replaced by

RpTRp=G+sIn,R_p^{\mathsf{T}}R_p = G + sI_n,

for a small shift s>0s > 0. Fukaya et al. [6] show that if the shift is chosen as

s=11(mn+n(n+1))u∥X∥22(3)s = 11(mn+n(n+1))u\lVert X\rVert_2^2 \tag*{(3)}

and the matrix XX satisfies

κ2(X)≤u−196(mn+n(n+1)).(4)\kappa_2(X) \le\frac{u^{-1}}{96(mn+n(n+1))}. \tag*{(4)}

then the Cholesky factorization of G+sInG + sI_n does not break down and the computed preconditioned matrix Q^p=XR^p−1\widehat{Q}_p = X\widehat{R}_p^{-1} satisfies

κ2(Q^p)≤18(mn+n(n+1))u.(5)\kappa_2(\widehat{Q}_p) \le\frac{1}{8\sqrt{(mn+n(n+1))u}}. \tag*{(5)}

Condition (4) shows that SCQR can be applied to input matrices with condition numbers as large as u−1u^{-1}, while (5) guarantees that the preconditioned matrix Q^p\widehat{Q}_p satisfies (2) and that CholeskyQR2 can be applied to it.

SCQR can be naturally understood as a form of preconditioning. A nonsingular matrix Rp∈Rn×nR_p \in\mathbb{R}^{n\times n} is a preconditioner for CholeskyQR if the condition number of the preconditioned matrix Qp=XRp−1Q_p = XR_p^{-1} is substantially lower than that of XX. Ideally, κ2(Qp)\kappa_2(Q_p) should be sufficiently small that CholeskyQR or CholeskyQR2 can be applied reliably to QpQ_p, yielding Qp=QRcQ_p = QR_c and an orthogonalization X=Q(RcRp)X = Q(R_cR_p).

Other preconditioning strategies have been proposed in the literature. Terao, Ozaki, and Ogita [25] propose LU–CholeskyQR (LUCQR), which first computes a pivoted LU factorization PX=LUPX = LU, then forms the Gram matrix G=LTLG = L^{\mathsf{T}}L and uses its Cholesky factorization STS=GS^{\mathsf{T}}S = G to compute the preconditioner Rp=SUR_p = SU. In exact arithmetic, we have

XTX=UTLTPPTLU=UTSTSU=RpTRp,X^{\mathsf{T}}X = U^{\mathsf{T}}L^{\mathsf{T}}PP^{\mathsf{T}}LU = U^{\mathsf{T}}S^{\mathsf{T}}SU = R_p^{\mathsf{T}}R_p,

which shows that XRp−1XR_p^{-1} has orthonormal columns.

It can be shown [25] that if the computed LU decomposition is such that

8κ2(L^)mnu+n(n+1)u≤1,(6)8\kappa_2(\widehat{L})\sqrt{mnu+n(n+1)u} \le1, \tag*{(6)}
64n2uκ2(L^)κ2(U^)≤1,(7)64n^2u\kappa_2(\widehat{L})\kappa_2(\widehat{U}) \le1, \tag*{(7)}

then one CholeskyQR step will produce an orthogonality error and a relative residual of order uu. Conditions (6) and (7) only feature the condition numbers of the LU factors of XX, not the condition number of XX itself. Therefore, unlike SCQR, LUCQR is not guaranteed to work for all matrices XX with condition numbers of order u−1u^{-1}. From the perspective of rounding-error analysis, if κ2(X)≈κ2(L)\kappa_2(X) \approx\kappa_2(L), the sufficient condition (6) is equivalent to (2). Thus whenever CholeskyQR2 is at risk of breakdown, so is LU–CholeskyQR. However, the practical advantage of LUCQR is that LL is often much better conditioned than XX [11], making the Cholesky factorization of LTLL^{\mathsf{T}}L safer than that of XTXX^{\mathsf{T}}X.

Our goal is to develop efficient preconditioners for CholeskyQR using mixed precision. Mixed-precision preconditioning, first proposed by Carson and Higham [3], is now a well established technique for linear systems, but relatively little attention has been devoted to mixed-precision preconditioning for CholeskyQR. In the context of eigenvalue problems, Kressner, Ma, and Shao [18] suggested preconditioning CholeskyQR with the triangular factor of a low-precision Householder QR factorization. Their algorithm is summarized in algorithm 6. Pranesh and Tisseur considered using as preconditioner a low-precision LU factorization. Their work was presented at conferences [26, 27], but, to the best of our knowledge, a full account is not yet publicly available. Approaches based on randomized sketching have also been considered in the literature [1, 9], and, more recently, randomized preconditioners based on low-precision sketching have been proposed [8, 12].

We propose three new mixed-precision preconditioners for CholeskyQR: one is based on a shifted Cholesky factorization, one on an eigendecomposition, and one on a pivoted LU factorization. Our error analysis quantifies how much a single application of these three preconditioners can reduce the condition number of XX. This is the subject of § 2; the proofs are in sections B and C in the appendix.

The analysis leads us to view CholeskyQR preconditioning as an iterative refinement process, where preconditioning can be applied repeatedly as needed until CholeskyQR or CholeskyQR2

Algorithm 2: Iterative framework for CholeskyQR preconditioning

Input: X∈Rm×nX \in\mathbb{R}^{m \times n}; CholeskyQR preconditioner PREC; condition number tolerance τ\tau; maximum number of iterations jmax⁡j_{\max}.

Output: CholeskyQR preconditioner RpR_{\mathrm{p}}; preconditioned matrix Qp=XRp−1Q_{\mathrm{p}} = XR_{\mathrm{p}}^{-1}.

2.1: Initialize Qp←XQ_{\mathrm{p}} \leftarrow X and Rp←InR_{\mathrm{p}} \leftarrow I_n.

2.2: for j=1,…,jmax⁡j = 1, \ldots, j_{\max} do

2.3: Perform preconditioning [Qp,R~p]=PREC⁡(Qp)[Q_{\mathrm{p}}, \widetilde{R}_{\mathrm{p}}] = \operatorname{PREC}(Q_{\mathrm{p}}).

2.4: Compute Rp←R~pRpR_{\mathrm{p}} \leftarrow\widetilde{R}_{\mathrm{p}}R_{\mathrm{p}}.

2.5: if κ2(Qp)<τ\kappa_2(Q_{\mathrm{p}}) < \tau then

2.6: break

can be applied reliably. In section 3, we compare the performance of the three mixed-precision preconditioners with that of our implementations of several existing approaches. The numerical results suggest that, in practice, the proposed methods are comparable with the state of the art.

Three mixed-precision preconditioners for CholeskyQR

The preconditioning strategies mentioned in section 1 are as expensive as one CholeskyQR step. As the whole orthogonalization usually consists of one preconditioning step followed by one or two applications of CholeskyQR, computing and applying the preconditioner can account for a large fraction of the total computational cost. In this section, we investigate how low precision can be used to make this step more efficient.

We note that for an ill-conditioned XX, the computed preconditioner R^p\widehat{R}_{\mathrm{p}} and the preconditioned matrix Q^p\widehat{Q}_{\mathrm{p}}, stored in working precision, should satisfy

κ2(Q^p)<κ2(X),(8)\kappa_2(\widehat{Q}_{\mathrm{p}}) < \kappa_2(X), \tag*{(8)}
∥X−Q^pR^p∥2∥Q^pR^p∥2=O(u),(9)\frac{\lVert X - \widehat{Q}_{\mathrm{p}}\widehat{R}_{\mathrm{p}}\rVert_2}{\lVert\widehat{Q}_{\mathrm{p}}\widehat{R}_{\mathrm{p}}\rVert_2} = O(u), \tag*{(9)}

where (8) expresses the purpose of preconditioning, and (9) captures the requirement of a working-precision backward error in the representation of XX. This is necessary because, in most applications, orthogonalization is performed to obtain a basis for the subspace spanned by XX, and if the orthogonalization does not preserve the subspace accurately, the overall algorithm may fail to converge [24].

An iterative framework for CholeskyQR preconditioning

The preconditioners we propose in this section can satisfy (8), but the use of low precision may limit the effect of a single preconditioning step, leaving the preconditioned matrix Q^p\widehat{Q}_{\mathrm{p}} too ill-conditioned for CholeskyQR or CholeskyQR2. This issue can be alleviated by applying a preconditioner PREC repeatedly, progressively reducing the condition number until it meets the requirements of CholeskyQR or CholeskyQR2.

This strategy is shown in algorithm 2. In this section, we present three mixed-precision preconditioners for CholeskyQR that can serve as PREC. For each strategy, we analyze how much a single application can reduce the condition number.

Algorithm 3: Mixed-precision shiftedCholeskyQR (mpSCQR)

Input: X∈Rm×nX \in\mathbb{R}^{m \times n}; shift s>0s > 0; unit roundoffs u≤uℓu \le u_{\ell}.

Output: CholeskyQR preconditioner RpR_p; preconditioned matrix Qp=XRp−1Q_p = XR_p^{-1}.

3.1: function [Qp,Rp]=MPSCQR⁡(X)[Q_p, R_p] = \operatorname{MPSCQR}(X)

3.2: Compute G←XTXG \leftarrow X^{\mathsf{T}}X in precision uℓu_{\ell}.

3.3: Compute the Cholesky factorization RpTRp=G+sInR_p^{\mathsf{T}}R_p = G + sI_n in precision uu.

3.4: Compute Qp←XRp−1Q_p \leftarrow XR_p^{-1} in precision uu.

Mixed-precision shiftedCholeskyQR (mpSCQR)

For m≫nm \gg n, the cost of SCQR is dominated by the formation of G=XTXG = X^{\mathsf{T}}X and by the solution of the linear system Qp=XRp−1Q_p = XR_p^{-1}. QpQ_p must be computed in working precision to satisfy (9), but we can form GG in low precision, obtaining mpSCQR in algorithm 3.

The following theorem bounds the condition number after one mpSCQR step.

Theorem 1 (Condition number reduction of mpSCQR). Let X∈Rm×nX \in\mathbb{R}^{m \times n} satisfy

6n2uκ2(X)<1,(10)6n^2u\kappa_2(X) < 1, \tag*{(10)}
11((m+3)nuℓ+n(n+3)u)∥X∥22≤s≤1100∥X∥22.(11)11\left((m+3)nu_{\ell} + n(n+3)u\right)\lVert X\rVert_2^2 \le s \le\frac{1}{100}\lVert X\rVert_2^2. \tag*{(11)}

Then mpSCQR does not break down, and the preconditioned Q^p\widehat{Q}_p satisfies

κ2(Q^p)≤1.41+1.1sκ2(X)2/∥X∥221+0.9s/∥X∥22.(12)\kappa_2(\widehat{Q}_p) \le1.4\sqrt{\frac{1+1.1s\kappa_2(X)^2/\lVert X\rVert_2^2}{1+0.9s/\lVert X\rVert_2^2}}. \tag*{(12)}

In particular, if (m+3)nuℓ+n(n+3)u κ2(X)≫1\sqrt{(m+3)nu_{\ell}+n(n+3)u}\,\kappa_2(X) \gg1 and ss is chosen to be the lower bound in (11), then (12) implies that one mpSCQR step reduces the condition number of XX by a factor of

O((m+3)nuℓ+n(n+3)u).(13)O\left(\sqrt{(m+3)nu_{\ell}+n(n+3)u}\right). \tag*{(13)}

Proof. See section B.

Assumption (11) restricts the low-precision unit roundoff uℓu_{\ell}, as it implies that

(m+3)nuℓ+n(n+3)u≤11100.(14)(m+3)nu_{\ell}+n(n+3)u \le\frac{1}{1100}. \tag*{(14)}

When m≫nm \gg n and uℓ≫uu_{\ell} \gg u, the factor in (13) can be simplified to O(mnuℓ)O(\sqrt{mnu_{\ell}}), which becomes O(uℓ)O(\sqrt{u_{\ell}}) if the dependence on the matrix dimensions is disregarded.

Choosing an appropriate shift can be difficult. The bound (12) shows that convergence is faster the smaller ss is, and the lower bound in (11) is too large to guarantee reasonably fast convergence. Therefore, in practice, we often choose a smaller ss, accepting the risk that Cholesky factorization may break down. In section 3.2, we show that for mpSCQR this is even more likely to occur than for SCQR.

Mixed-precision eigendecomposition QR (mpEVDQR)

mpSCQR can be interpreted as correcting the spectrum of the low-precision Gram matrix G^\widehat{G} by adding a uniform shift. A more general approach, suggested by this observation, is to compute the spectral decomposition of G^\widehat{G} explicitly and correct its eigenvalues. This approach is summarized in algorithm 4.

Algorithm 4: Mixed-precision eigendecomposition QR (mpEVDQR)

Input: X∈Rm×nX \in\mathbb{R}^{m \times n}, f(⋅):R→Rf(\cdot): \mathbb{R} \to\mathbb{R}; unit roundoffs u≤uℓu \le u_{\ell}.

Output: CholeskyQR preconditioner RpR_p; preconditioned matrix Qp=XRp−1Q_p = XR_p^{-1}.

4.1: function [Qp,Rp]=MPEVDQR⁡(X)[Q_p, R_p] = \operatorname{MPEVDQR}(X)

4.2: Compute G←XTXG \leftarrow X^{\mathsf{T}}X in precision uℓu_{\ell}.

4.3: Compute an eigendecomposition G=VΛVTG = V\Lambda V^{\mathsf{T}} in precision uu.

4.4: Correct the spectrum and compute SΛ←f(Λ)1/2S_{\Lambda} \leftarrow f(\Lambda)^{1/2} in precision uu.

4.5: Compute Rp←SΛVTR_p \leftarrow S_{\Lambda}V^{\mathsf{T}} in precision uu.

4.6: Compute Qp←XVSΛ−1Q_p \leftarrow XVS_{\Lambda}^{-1} in precision uu.

Once the eigenvalues are available, they can be corrected using any function f(⋅):R→Rf(\cdot): \mathbb{R} \to\mathbb{R} satisfying f(λ^)>0f(\widehat{\lambda}) > 0 for every computed eigenvalue λ^\widehat{\lambda} of G^\widehat{G}. The uniform shift used in SCQR and mpSCQR can be understood as a special case with f(x)=x+sf(x) = x+s. The main drawback of this approach is that the preconditioner Rp=SΛVTR_p = S_{\Lambda}V^{\mathsf{T}} returned by mpEVDQR is generally dense rather than triangular, and this has two negative consequences: first, updating XX on line 4.6 requires a matrix–matrix product, which is more expensive than the triangular solve required in mpSCQR; second, mpEVDQR followed by CholeskyQR does not produce a standard QR factorization. The latter issue can be addressed by performing, on line 4.5, an additional QR factorization of SΛVTS_{\Lambda}V^{\mathsf{T}}, whose cost will be negligible if m≫nm \gg n.

The convergence behavior of algorithm 4 depends on the choice of the correction function f(⋅)f(\cdot). If the eigendecomposition satisfies

∥V^Λ^V^T−G^∥2≤c1n2u∥G^∥2,∥V^V^T−In∥2≤c2n2u,\left\lVert\widehat{V}\widehat{\Lambda}\widehat{V}^{\mathsf{T}}-\widehat{G}\right\rVert_2 \le c_1 n^2u\left\lVert\widehat{G}\right\rVert_2,\qquad\left\lVert\widehat{V}\widehat{V}^{\mathsf{T}}-I_n\right\rVert_2 \le c_2n^2u,

for some moderate constants c1c_1 and c2c_2, then setting f(x)=x+sf(x) = x+s with the smallest ss allowed by (11) will achieve a reduction rate similar to that of mpSCQR, which is O(uℓ)O(\sqrt{u_{\ell}}) if the dependence on the matrix dimensions is disregarded. In practice, we use the absolute value correction

f(x)=∣x∣.(15)f(x) = \lvert x\rvert. \tag*{(15)}

This correction produces positive values unless one of the computed eigenvalues is exactly zero. In § 3.2, we show experimentally that the reduction rate of mpEVDQR with the absolute value correction (15) is O(uℓ)O(\sqrt{u_{\ell}}).

Mixed-precision LU–CholeskyQR (mpLUCQR)

The lower triangular factor LL of the partially pivoted LU factorization PX=LUPX = LU is often observed to be much better conditioned than XX. Therefore, we may hope that Cholesky factorization of G=LTLG = L^{\mathsf{T}}L will succeed, even if the LU decomposition and the Gram matrix are computed in low precision. In fact, if κ2(L)≪κ2(X)\kappa_2(L) \ll\kappa_2(X), then G^\widehat{G} is substantially more likely to remain positive definite and admit a successful Cholesky factorization, since

κ2(LTL)=κ2(L)2≪κ2(X)2=κ2(XTX).\kappa_2(L^{\mathsf{T}}L) = \kappa_2(L)^2 \ll\kappa_2(X)^2 = \kappa_2(X^{\mathsf{T}}X).

The resulting Cholesky factor is then combined with UU to construct the preconditioner. This is the mpLUCQR algorithm, summarized in algorithm 5.

The following theorem bounds the condition number after one mpLUCQR step.

Algorithm 5: Mixed-precision LU–CholeskyQR (mpLUCQR)

Input: X∈Rm×nX \in\mathbb{R}^{m \times n}; unit roundoffs u≤uℓu \le u_{\ell}.

Output: CholeskyQR preconditioner RpR_p; preconditioned matrix Qp=XRp−1Q_p = X R_p^{-1}.

5.1: function [Qp,Rp]=MPLUCQR⁡(X)[Q_p, R_p] = \operatorname{MPLUCQR}(X)

5.2: Compute the pivoted LU factorization LU=PXLU = PX in precision uℓu_{\ell}.

5.3: Compute G←LTLG \leftarrow L^{\mathsf{T}}L in precision uℓu_{\ell}.

5.4: Compute the Cholesky factorization STS=GS^{\mathsf{T}}S = G in precision uu.

5.5: Compute Rp←SUR_p \leftarrow SU in precision uu.

5.6: Compute Qp←XRp−1Q_p \leftarrow X R_p^{-1} in precision uu.

Theorem 2 (Condition number reduction of mpLUCQR). Let the computed LU factors satisfy

n(n+1)uκ22(L^)≤164,(16)n(n+1)u\kappa_2^2(\widehat{L}) \le\frac{1}{64}, \tag*{(16)}
n2uκ2(L^)κ2(U^)≤164,(17)n^2u\kappa_2(\widehat{L})\kappa_2(\widehat{U}) \le\frac{1}{64}, \tag*{(17)}
mnuℓκ22(L^)≤164,(18)mnu_{\ell}\kappa_2^2(\widehat{L}) \le\frac{1}{64}, \tag*{(18)}

and assume that

χmax⁡χmin⁡≤min⁡{1+(nρ+n)uℓκ2(X),164n2uκ2(L^)κ2(U^)},(19)\frac{\chi_{\max}}{\chi_{\min}} \le\min\left\{1+(n\rho+\sqrt{n})u_{\ell}\kappa_2(X),\frac{1}{64n^2u\kappa_2(\widehat{L})\kappa_2(\widehat{U})}\right\}, \tag*{(19)}

where ρ=∥L^∥2∥U^∥2/∥X∥2\rho= \lVert\widehat{L}\rVert_2\lVert\widehat{U}\rVert_2/\lVert X\rVert_2 is the growth factor of XX and

χmin⁡=min⁡x≠0∥Xx∥2∥L^U^x∥2,χmax⁡=max⁡x≠0∥Xx∥2∥L^U^x∥2.(20)\chi_{\min}=\min_{x\ne0}\frac{\lVert Xx\rVert_2}{\lVert\widehat{L}\widehat{U}x\rVert_2},\qquad\chi_{\max}=\max_{x\ne0}\frac{\lVert Xx\rVert_2}{\lVert\widehat{L}\widehat{U}x\rVert_2}. \tag*{(20)}

Then the Cholesky factorization in mpLUCQR does not break down, the computed triangular factor R^p\widehat{R}_p is nonsingular, and the preconditioned Q^p\widehat{Q}_p satisfies

κ2(Q^p)≤1.12⋅χmax⁡χmin⁡≤1.12(1+(nρ+n)uℓκ2(X)).(21)\kappa_2(\widehat{Q}_p) \le1.12\cdot\frac{\chi_{\max}}{\chi_{\min}} \le1.12(1+(n\rho+\sqrt{n})u_{\ell}\kappa_2(X)). \tag*{(21)}

Consequently, when (nρ+n)uℓκ2(X)≫1(n\rho+\sqrt{n})u_{\ell}\kappa_2(X)\gg1, one mpLUCQR step reduces the condition number of XX by a factor of O((nρ+n)uℓ)O((n\rho+\sqrt{n})u_{\ell}).

Proof. See section C.

However, the lower triangular factor LL is not guaranteed to be well conditioned, and, in particular, it need not be better conditioned than XX. For example, the matrix XX with

Xij={1,i=j,−1,i>j,0,i<j,(X−1)ij={1,i=j,2i−j−1,i>j,0,i<j,X_{ij}= \begin{cases} 1, & i=j,\\ -1, & i>j,\\ 0, & i<j, \end{cases} \qquad (X^{-1})_{ij}= \begin{cases} 1, & i=j,\\ 2^{i-j-1}, & i>j,\\ 0, & i<j, \end{cases}

has an LU decomposition PX=LUPX=LU with L=XL=X and P=U=InP=U=I_n. Since ∥L∥∞=n\lVert L\rVert_{\infty}=n and ∥L−1∥∞=2n−1\lVert L^{-1}\rVert_{\infty}=2^{n-1}, we have that

κ2(X)=κ2(L)≥κ∞(L)n=2n−1.\kappa_2(X)=\kappa_2(L)\ge\frac{\kappa_{\infty}(L)}{n}=2^{n-1}.

The assumptions in theorem 2 show that mpLUCQR can be ineffective and even break down if LL is ill conditioned. When m≫nm \gg n and uℓ≫uu_{\ell} \gg u, condition (18) can become even more restrictive than (17) if κ2(L^)≈κ2(X)\kappa_2(\widehat{L}) \approx\kappa_2(X). Thus, the theorem suggests that the effectiveness of mpLUCQR relies on the commonly observed behavior

κ2(L^)≪κ2(X).\kappa_2(\widehat{L}) \ll\kappa_2(X).

Remark 1. Taking into account the rounding error incurred when converting XX to precision uℓu_{\ell}, the LU factorization with partial pivoting computed in precision uℓu_{\ell} satisfies the componentwise backward-error bound

PX−L^U^=E1,∣E1∣≤nuℓ∣L^∣∣U^∣+uℓP∣X∣.(22)PX-\widehat{L}\widehat{U}=E_1,\qquad|E_1|\leq nu_{\ell}|\widehat{L}||\widehat{U}|+u_{\ell}P|X|. \tag*{(22)}

If (nρ+n)uℓκ2(X)<1(n\rho+\sqrt{n})u_{\ell}\kappa_2(X)<1, then (22) implies

χmax⁡χmin⁡≤1+(nρ+n)uℓκ2(X)1−(nρ+n)uℓκ2(X)≈1+O((nρ+n)uℓκ2(X)).\frac{\chi_{\max}}{\chi_{\min}}\leq\frac{1+(n\rho+\sqrt{n})u_{\ell}\kappa_2(X)}{1-(n\rho+\sqrt{n})u_{\ell}\kappa_2(X)}\approx1+O((n\rho+\sqrt{n})u_{\ell}\kappa_2(X)).

This is consistent with the first term in (19). In mixed precision, (nρ+n)uℓκ2(X)(n\rho+\sqrt{n})u_{\ell}\kappa_2(X) can be much larger than one, so (19) cannot in general be obtained from (22). We therefore impose it as a separate assumption to quantify the quality of the low-precision pivoted LU factorization as a preconditioner for XX. Although a general proof for nonsingular square matrices is still unavailable, such behavior has been widely observed and also forms a theoretical basis for many mixed-precision linear solvers [2].

Remark 2. The second term in (19) is a rather restrictive assumption, which requires the unrealistic χmax⁡/χmin⁡=1\chi_{\max}/\chi_{\min}=1 if the bound in (17) is attained. This restriction is partly caused by worst-case dimension-dependent error estimates, which are only of theoretical interest. In practice, mpLUCQR typically remains effective even when this condition is not satisfied.

Numerical experiments

In this section, we demonstrate the performance of algorithms 3 to 5 via numerical experiments conducted on an NVIDIA RTX PRO 6000 Blackwell Server Edition GPU with 96 GiB of memory. Our implementation uses the NVIDIA CUDA Toolkit 13.0 and the cuBLAS 13.5.1 and cuSOLVER 12.2.2 libraries. The source code is available online.1

In all experiments, we use as working and low precision binary64 and binary32 arithmetic, so that u=2−53u=2^{-53} and uℓ=2−24u_{\ell}=2^{-24}. Unless otherwise stated, we set s=10−6s=10^{-6} in algorithm 3 and use the absolute value correction (15) in algorithm 4.

The test matrices are generated, for a prescribed condition number κ\kappa, as

X=Udiag⁡(σ1,…,σn)VT∈Rm×n,m=106,σi=κi−1n−1,1≤i≤n,(23)X=U\operatorname{diag}(\sigma_1,\ldots,\sigma_n)V^{\mathsf{T}}\in\mathbb{R}^{m\times n},\qquad m=10^6,\qquad\sigma_i=\kappa^{\frac{i-1}{n-1}},\qquad1\leq i\leq n, \tag*{(23)}

where U∈Rm×nU\in\mathbb{R}^{m\times n} and V∈Rn×nV\in\mathbb{R}^{n\times n} are obtained by orthogonalizing Gaussian matrices. This matrix is equivalent to mode 3 of the randsvd matrix in the MATLAB gallery.

We compare the new preconditioners against seven existing alternatives: mono-precision shifted CholeskyQR (SCQR), mono-precision LU–CholeskyQR (LUCQR), mixed-precision Householder QR (mpHQR), and mono- and mixed-precision randomized CholeskyQR (RCQR and mpRCQR, respectively). SCQR is obtained from algorithm 3 by setting u=uℓu=u_{\ell} and s=10−14s=10^{-14}, while mpHQR, RCQR, and mpRCQR are described in section A. For RCQR and mpRCQR, we test Gaussian sketching and sparse sign sketching matrices of size 2n×m2n\times m. We distinguish these two variants using the suffixes “-g” and “-ss”, respectively. The sparse sign sketch has eight nonzero entries per column [20 p. 456].

In the experiments, we consider two values of τ\tau for algorithm 2. The first is τ=10\tau= 10, which reduces the condition number of the preconditioned matrix to about one. The second is τ=108\tau= 10^{8}, which represents the cost of reducing the condition number to a range in which CholeskyQR2 can be applied successfully. Condition (2) depends on mm and nn. Thus, the choice τ=108\tau= 10^{8} does not guarantee that CholeskyQR2 will be applicable. In our experience, however, matrices satisfying this threshold can typically be orthogonalized successfully by CholeskyQR2.

Effect of matrix condition number

We first compare the ten preconditioners on the test matrices in (23) for n=100n = 100 and κ\kappa between 10010^{0} and 101510^{15}.

Figure 1 reports the value of κ2(Qp)\kappa_{2}(Q_{\mathrm{p}}) after one to five iterations of algorithm 2 for each of the preconditioners. All ten methods produce a QpQ_{\mathrm{p}} with condition number of order one within five iterations. For each algorithm, the curves corresponding to successive iterations are approximately parallel, and the vertical gaps between adjacent curves remain constant as κ2(X)\kappa_{2}(X) increases.

Condition number behavior for the ten preconditioning algorithms

Figure 1. Condition number behavior for the ten preconditioning algorithms. The xx-axis represents the condition number of XX, and the yy-axis represents the condition number of the preconditioned matrix QpQ_{\mathrm{p}} after 0 to 5 iterations of algorithm 2. To ensure that algorithm 2 performs at least five iterations, we set τ=0\tau= 0. The curve corresponding to zero iterations represents Qp=XQ_{\mathrm{p}} = X.

When κ2(X)=1015\kappa_{2}(X) = 10^{15}, LUCQR, RCQR-g, and RCQR-ss are the most effective preconditioners, bringing κ2(Qp)\kappa_{2}(Q_{\mathrm{p}}) below 10 after a single step. The proposed mpSCQR, mpEVDQR, and mpLUCQR require approximately five, four, and two iterations, respectively, to bring the condition number down to the same level. On average, one iteration of mpSCQR and mpEVDQR reduces the condition number by a factor 10−310^{-3}, whereas one iteration of mpLUCQR reduces it by a factor 10−710^{-7}. This agrees with the theoretical factors discussed in § 2.

The ten preconditioners can be classified according to whether they form XTXX^{\mathsf{T}}X explicitly and whether they use more than one precision. Table 1 lists the algorithms in each class and reports the expected reduction in condition number of a single step. Taken together, Table 1 and Figure 1 suggest that:

Form XTXX^{\mathsf{T}}XAvoid forming XTXX^{\mathsf{T}}X
Mono-precisionSCQRO(u)O(\sqrt{u})RCQR<br>LUCQRO(u)O(u)
Mixed-precisionmpSCQR<br>mpEVDQRO(uℓ)O(\sqrt{u_\ell})mpLUCQR<br>mpHQR<br>mpRCQRO(uℓ)O(u_\ell)

Table 1. Classification of the ten preconditioners according to whether they (1) use mixed precision and (2) explicitly form XTXX^{\mathsf{T}}X. The expected reduction in condition number of a single step is also reported. Gaussian and sparse sign sketching variants are grouped for RCQR and mpRCQR.

  1. explicitly forming XTXX^{\mathsf{T}}X introduces a square-root loss in the condition number reduction factor, and

  1. using lower precision replaces the working-precision unit roundoff uu by the lower-precision unit roundoff uℓu_\ell.

As we use binary32 as low precision in our experiments, we have that uℓ≈uu_\ell\approx\sqrt{u} and the use of low precision also corresponds approximately to a square-root loss.

Effect of matrix size

The factors O(uℓ)O(\sqrt{u_\ell}) and O(uℓ)O(u_\ell) derived in § 2 were obtained by disregarding factors that depend on mm and nn. In this section, we show that the influence of these terms is, to a certain extent, indeed limited.

In Figure 2, we test the ten preconditioning algorithms on the matrices in (23) with κ=1015\kappa= 10^{15} and n=100n = 100, 500, and 1000, and we plot the condition number of the preconditioned matrix QpQ_{\mathrm{p}} at each iteration. For mpSCQR, we use two different shifts, 10−610^{-6} and 10−510^{-5}, resulting in two separate curves, as indicated in the legend.

Condition number histories of the ten preconditioning algorithms for matrices with $\kappa_2(X)=10^{15}$ and $n=100$, $500$, and $1000$.

Figure 2. Condition number histories of the ten preconditioning algorithms for matrices with κ2(X)=1015\kappa_2(X) = 10^{15} and n=100n = 100, 500, and 1000. For mpSCQR, the results with shifts s=10−6s = 10^{-6} and s=10−5s = 10^{-5} are both shown. When s=10−6s = 10^{-6} and n=1000n = 1000, the curve for mpSCQR terminates after the first iteration because the Cholesky factorization breaks down in the second preconditioning step. The dashed horizontal lines indicate the two convergence criteria κ2(Qp)=10\kappa_2(Q_p) = 10 and κ2(Qp)=108\kappa_2(Q_p) = 10^8.

As nn increases from 100 to 1000, there are no significant changes in the convergence rates of most algorithms. An exception is mpSCQR with s=10−6s = 10^{-6}, for which the Cholesky factorization breaks down when n=1000n = 1000. We therefore must use the larger shift s=10−5s = 10^{-5}, which slows down convergence. This is a consequence of the fact that forming the Gram matrix in low precision is sensitive to the dimension of XX. mpEVDQR also forms the Gram matrix in low precision, and its convergence similarly slows down as nn increases. However, the number of iterations until κ2(Qp)<10\kappa_2(Q_{\mathrm{p}}) < 10 only increases by 25%, while nn increases by a factor 10. Therefore, the dependence on nn is much weaker than the bounds in § 2 might suggest, and the approximate reduction factors O(uℓ)O(\sqrt{u_\ell}), O(uℓ)O(\sqrt{u_\ell}), and O(uℓ)O(u_\ell) are reasonable descriptions of the observed convergence behavior of mpSCQR, mpEVDQR, and mpLUCQR, respectively.

Performance and profiling

Next, we compare the runtime of the ten preconditioning algorithms on the test matrices in (23) for n=100n = 100 and κ=1015\kappa= 10^{15}. Figure 3 and Figure 4 report the time spent by algorithm 2, broken down by operation, for τ=10\tau= 10 and τ=108\tau= 10^{8}, respectively.

Total runtime required by algorithm 2 to achieve $\kappa_2(Q_p)<10$ for a matrix $X$ with $\kappa_2(X)=10^{15}$.

Figure 3. Total runtime required by algorithm 2 to achieve κ2(Qp)<10\kappa_2(Q_p) < 10 for a matrix XX with κ2(X)=1015\kappa_2(X) = 10^{15}. The different sections of each bar represent the individual runtimes of different components. The total number of iterations is shown above the bar. The cost of estimating κ2(Qp)\kappa_2(Q_p) is excluded.

Total runtime required by algorithm 2 to achieve $\kappa_2(Q_p) < 10^8$

Figure 4. Total runtime required by algorithm 2 to achieve κ2(Qp)<108\kappa_2(Q_p) < 10^8 for a matrix XX with κ2(X)=1015\kappa_2(X) = 10^{15}. The different sections of each bar represent the individual runtimes of different components. The total number of iterations is shown above the bar. The cost of estimating κ2(Qp)\kappa_2(Q_p) is excluded.

For τ=10\tau= 10, RCQR with a sparse sign sketch is the fastest preconditioner, followed by mpLUCQR, which is the fastest among the three proposed alternatives. For τ=108\tau= 10^{8}, mpLUCQR becomes the fastest preconditioner, while mpEVDQR becomes comparable to RCQR with a sparse sign sketch.

We now consider the timing breakdown. On the computing platform used in our experiments, the peak performance of matrix–matrix multiplication in binary32 arithmetic is approximately 64×64\times that of binary64 arithmetic. This speedup is most significant in the computations of the Gram matrices XTXX^\mathsf{T}X and LTLL^\mathsf{T}L and of the sketched matrix. Comparing SCQR with mpSCQR and mpEVDQR shows that it is approximately 22×22\times faster to form XTXX^\mathsf{T}X in low precision compared with working precision. A similar comparison between LUCQR and mpLUCQR shows an approximately 45×45\times acceleration in forming LTLL^\mathsf{T}L in binary32 arithmetic. Similarly, comparing RCQR and mpRCQR with Gaussian sketching shows that forming ΘX\Theta X in low precision is approximately 25×25\times faster than in working precision.

Comparing LUCQR with mpLUCQR shows that a binary32 LU factorization is approximately 4.6×4.6\times faster than a binary64 one and 5.6×5.6\times faster than binary64 matrix–matrix multiplication. Similarly, the binary32 Householder QR factorization in mpHQR is 2.8×2.8\times faster than a binary64 matrix multiplication. The only exception is RCQR with sparse sign sketching, since the sketching matrix is sparse and the main bottleneck in forming the sketched matrix is likely to be data movement.

We conclude by noting that a speedup in constructing the preconditioner does not guarantee a reduction in the overall runtime, because each iteration also requires a binary64 update of the preconditioned matrix for (9) to hold. Therefore, a cheaper preconditioner may yield worse performance overall if more iterations are required. In Figure 4, for example, mpSCQR is slower than SCQR because it requires three iterations rather than one. Among the three proposed methods, mpSCQR and mpEVDQR have relatively low cost per iteration, but they only reduce the condition number by a modest factor of O(uℓ)O(\sqrt{u_\ell}). Conversely, a preconditioner that yields large reduction in condition number does not necessarily lead to a shorter overall runtime. For example, a single application of LUCQR reduces the condition number from 101510^{15} to below 1010, but factorizing XX and forming LTLL^{\mathsf{T}}L in binary64 arithmetic are costly operations that make it slower than mpLUCQR for both values of τ\tau considered.

Conclusions and future work

We proposed three mixed-precision preconditioners for CholeskyQR. These are based on shifted Cholesky factorization, eigendecomposition, and partially pivoted LU factorization. We bounded the rate at which these preconditioners reduce the condition number and we compared them against several existing alternatives using GPU implementations.

Our analysis gives a new interpretation of CholeskyQR preconditioning as an iterative refinement scheme. Existing analyses [6, 25] typically show that, under certain assumptions, one preconditioning step reduces the condition number sufficiently for CholeskyQR or CholeskyQR2 to succeed.

Algorithm 6: Mixed-precision Householder QR (mpHQR)

Input: X∈Rm×nX \in\mathbb{R}^{m \times n}; unit roundoffs u≤uℓu \le u_{\ell}.

Output: CholeskyQR preconditioner RpR_p; preconditioned matrix Qp=XRp−1Q_p = X R_p^{-1}.

6.1: function [Qp,Rp]=MPHQR⁡(X)[Q_p, R_p] = \operatorname{MPHQR}(X)

6.2: Compute a Householder QR factorization QpRp=XQ_p R_p = X in precision uℓu_{\ell}.

6.3: Convert RpR_p to precision uu.

6.4: Compute Qp←XRp−1Q_p \leftarrow X R_p^{-1} in precision uu.

Our results also quantify the reduction achieved by our preconditioners, which is approximately O(uℓ)O(\sqrt{u_{\ell}}) for mpSCQR and mpEVDQR and O(uℓ)O(u_{\ell}) for mpLUCQR. However, we argue that when one preconditioning step is not sufficient, repeated applications will progressively reduce the condition number until a desired condition number is reached.

The numerical behavior of the proposed preconditioners agrees with our theoretical results, and our experiments show that they can be considerably more efficient than the mono-precision shifted-CholeskyQR and mono-precision LU–CholeskyQR preconditioners, achieving performance on par with that of randomized preconditioners.

Several questions still remain. First, the convergence result for mpLUCQR relies on the relatively strong assumption (19), and it would be valuable to either weaken this assumption or modify the algorithm so that a stronger result can be obtained. Second, estimating κ2(Qp)\kappa_2(Q_p) at each iteration of algorithm 2 to decide when to terminate the algorithms can be very expensive. It may be possible to replace this computation with a cheaper alternative, such as κ2(Rp)\kappa_2(R_p), for example, but further analysis is required to determine when this cheaper alternative is sufficiently reliable.

Acknowledgments

This work used the HPC Hardware Lab which is part of the COSMA facility which includes the DiRAC@Durham facility managed by the Institute for Computational Cosmology on behalf of the STFC DiRAC HPC Facility (www.dirac.ac.uk). The equipment was funded by BEIS capital funding via STFC capital grants ST/K00042X/1, ST/P002293/1, ST/R002371/1 and ST/S002502/1, Durham University, and STFC operations grant ST/R000832/1. DiRAC is part of the National e-Infrastructure. The HPC Hardware Lab is funded from various sources including the UK ExCAL-IBUR programme. GPT-6 was used to assist in deriving the bounds in theorems 1 and 2 and to refine the code used for the experiments.

Algorithms for comparison

In this section, we introduce the two preconditioners for CholeskyQR that we consider in § 3.

Mixed-precision Householder QR

Mixed-precision Householder QR (mpHQR) in algorithm 6 was first proposed by Kressner, Ma, and Shao [18] for orthogonalizing a basis of the search space of LOBPCG. It first computes a Householder QR factorization in low precision and retains only its upper triangular factor. It then forms the preconditioned matrix through a working-precision triangular solve.

On line 6.4, QpQ_p is computed as XRp−1X R_p^{-1} instead of the product of Householder reflectors. This is necessary because, in general, the product of low-precision Householder reflectors cannot satisfy (9) even if stored in high precision.

Algorithm 7: Mixed-precision randomized CholeskyQR (mpRCQR)

Figure 7.

Randomized CholeskyQR

Randomized CholeskyQR (RCQR) [1, 14] is a preconditioner for CholeskyQR based on sketching. Let Θ∈Rd×m\Theta\in\mathbb{R}^{d \times m}, with d≥nd \ge n, be an ε\varepsilon-subspace embedding for range⁡(X)\operatorname{range}(X), that is, such that

(1−ε)∥Xz∥22≤∥ΘXz∥22≤(1+ε)∥Xz∥22,z∈Rn.(24)(1-\varepsilon)\lVert Xz\rVert_2^2 \le\lVert\Theta Xz\rVert_2^2 \le(1+\varepsilon)\lVert Xz\rVert_2^2,\qquad z \in\mathbb{R}^n. \tag*{(24)}

RCQR forms the sketched matrix XΘ=ΘXX_{\Theta}=\Theta X, computes a Householder QR factorization XΘ=QΘRpX_{\Theta}=Q_{\Theta}R_p, and sets Qp=XRp−1Q_p=XR_p^{-1}. Since ΘQp=QΘ\Theta Q_p=Q_{\Theta}, condition (24) gives

κ2(Qp)≤1+ε1−ε.\kappa_2(Q_p) \le\sqrt{\frac{1+\varepsilon}{1-\varepsilon}}.

Thus, with a suitable sketching matrix Θ\Theta, QpQ_p is well conditioned with high probability, and a subsequent CholeskyQR step can then recover orthogonality in working precision.2 Here, we consider two choices for Θ\Theta: a Gaussian matrix [20] and a sparse sign matrix [4].

A variant of this preconditioner that performs the sketching in low precision, mpRCQR in algorithm algorithm 7, has recently been proposed [8]. Setting uℓ=uu_{\ell}=u in algorithm algorithm 7 recovers RCQR.

Proof of Theorem 1

To simplify the notation, throughout this section we write Q=QpQ=Q_p and R=RpR=R_p. Push c Using the error bounds of [17, 22], the componentwise error bounds for algorithm 3 are

G^−XTX=E1,∣E1∣≤(m+3)uℓ∣XT∣∣X∣,G^s−(G^+sIn)=E2,∣E2∣≤u∣G^+sIn∣,R^TR^−G^s=E3,∣E3∣≤(n+1)u∣R^T∣∣R^∣,Q^R^−X=E4,∣E4∣≤nu∣Q^∣∣R^∣.(25)\begin{aligned} \widehat{G}-X^{\mathsf{T}}X&=E_1, &\qquad|E_1|&\le(m+3)u_{\ell}|X^{\mathsf{T}}||X|,\\ \widehat{G}_s-(\widehat{G}+sI_n)&=E_2, & |E_2|&\le u|\widehat{G}+sI_n|,\\ \widehat{R}^{\mathsf{T}}\widehat{R}-\widehat{G}_s&=E_3, & |E_3|&\le(n+1)u|\widehat{R}^{\mathsf{T}}||\widehat{R}|,\\ \widehat{Q}\widehat{R}-X&=E_4, & |E_4|&\le nu|\widehat{Q}||\widehat{R}|. \tag*{(25)} \end{aligned}

where G^s\widehat{G}_s is defined as the computed G^+sIn\widehat{G}+sI_n. The bound (25), which includes the error in converting XX to the low-precision matrix XℓX_{\ell}, can be obtained from

∣E1∣≤muℓ∣XℓT∣∣Xℓ∣+∣XℓTXℓ−XTX∣≤(muℓ(1+uℓ)2+2uℓ+uℓ2)∣XT∣∣X∣≤((m+3)uℓ)∣XT∣∣X∣.\begin{aligned} |E_1|&\le mu_{\ell}|X_{\ell}^{\mathsf{T}}||X_{\ell}|+|X_{\ell}^{\mathsf{T}}X_{\ell}-X^{\mathsf{T}}X|\\ &\le(mu_{\ell}(1+u_{\ell})^2+2u_{\ell}+u_{\ell}^2)|X^{\mathsf{T}}||X|\\ &\le((m+3)u_{\ell})|X^{\mathsf{T}}||X|. \end{aligned}

by using [17 Thm. 4.2] and (14) in the second and third inequality, respectively. The bounds (26) and (28) follow from [15 eq. (2.4)] and [17 Thm. 4.2], respectively, while (27) can be found in [22 Thm. 4.4].

From (25)–(28), we can readily derive the normwise error bounds

∥E1∥2≤(m+3)nuℓ∥X∥22,(26)\lVert E_1\rVert_2 \le(m+3)nu_{\ell}\lVert X\rVert_2^2, \tag*{(26)}
∥E2∥2≤u(∥G^∥2+s),(27)\lVert E_2\rVert_2 \le u(\lVert\widehat{G}\rVert_2+s), \tag*{(27)}
∥E3∥2≤n(n+1)u∥R^∥22,(28)\lVert E_3\rVert_2 \le n(n+1)u\lVert\widehat{R}\rVert_2^2, \tag*{(28)}
∥E4∥2≤n2u∥Q^∥2∥R^∥2,(29)\lVert E_4\rVert_2 \le n^2u\lVert\widehat{Q}\rVert_2\lVert\widehat{R}\rVert_2, \tag*{(29)}

where in (27) we have used the fact that E2E_2 is diagonal. We further assume that E1E_1, E2E_2, and E3E_3 are symmetric, as they are produced by symmetric operations.

We begin by estimating the error in the Cholesky factorization.

Lemma 3 (Error in the Cholesky factorization). If (11) is satisfied, then the Cholesky factorization will not break down and

∥E1+E2+E3∥2≤0.1s.(30)\lVert E_1+E_2+E_3\rVert_2 \le0.1s. \tag*{(30)}

Consequently,

XTX+0.9sIn⪯R^TR^⪯XTX+1.1sIn,(31)X^{\mathsf{T}}X+0.9sI_n \preceq\widehat{R}^{\mathsf{T}}\widehat{R} \preceq X^{\mathsf{T}}X+1.1sI_n, \tag*{(31)}

where ⪯\preceq denotes the Loewner partial order.

Proof. We first verify that the shift prevents the Cholesky factorization from breaking down. By (26), (27), (14), and s/∥X∥22≤1/100s/\lVert X\rVert_2^2 \le1/100, we have

∥E2∥2≤u(∥G^∥2+s)≤u((1+(m+3)nuℓ)∥X∥22+s)≤1.1u∥X∥22.(32)\lVert E_2\rVert_2 \le u(\lVert\widehat{G}\rVert_2+s) \le u((1+(m+3)nu_{\ell})\lVert X\rVert_2^2+s) \le1.1u\lVert X\rVert_2^2. \tag*{(32)}

Let G0=G^+E2+((m+3)nuℓ+1.1u)∥X∥22InG_0=\widehat{G}+E_2+((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2I_n. By (26) and the bound on E2E_2, we have

G0=E1+E2+XTX+((m+3)nuℓ+1.1u)∥X∥22In⪰XTX,G_0=E_1+E_2+X^{\mathsf{T}}X+((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2I_n \succeq X^{\mathsf{T}}X,

so G0G_0 is positive semidefinite. Moreover, (25) gives

tr⁡(E1)≤tr⁡(∣E1∣)≤(m+3)uℓtr⁡(∣XT∣∣X∣)=(m+3)uℓ∥X∥F2≤(m+3)nuℓ∥X∥22,\operatorname{tr}(E_1)\le\operatorname{tr}(\lvert E_1\rvert)\le(m+3)u_{\ell}\operatorname{tr}(\lvert X^{\mathsf{T}}\rvert\lvert X\rvert)=(m+3)u_{\ell}\lVert X\rVert_F^2\le(m+3)nu_{\ell}\lVert X\rVert_2^2,

and therefore

tr⁡(G0)=tr⁡(E1)+tr⁡(E2)+tr⁡(XTX)+((m+3)nuℓ+1.1u)∥X∥22⋅tr⁡(In)≤(n+(m+3)n(n+1)uℓ+2.2nu)∥X∥22≤1.1n∥X∥22,(33)\begin{aligned} \operatorname{tr}(G_0) &=\operatorname{tr}(E_1)+\operatorname{tr}(E_2)+\operatorname{tr}(X^{\mathsf{T}}X)+((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2\cdot\operatorname{tr}(I_n)\\ &\le(n+(m+3)n(n+1)u_{\ell}+2.2nu)\lVert X\rVert_2^2\\ &\le1.1n\lVert X\rVert_2^2, \tag*{(33)} \end{aligned}

where the last inequality follows from (14). The matrix to which Cholesky factorization is applied is

G^s=G0+(s−((m+3)nuℓ+1.1u)∥X∥22)In.\widehat{G}_s=G_0+(s-((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2)I_n.

Thus, by [6 sect. 4.1], the Cholesky factorization will not break down if

s≥((m+3)nuℓ+1.1u)∥X∥22+2.2(n+1)u⋅tr⁡(G0).s\ge((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2+2.2(n+1)u\cdot\operatorname{tr}(G_0).

Using (33), we obtain

((m+3)nuℓ+1.1u)∥X∥22+2.2(n+1)u⋅tr⁡(G0)≤((m+3)nuℓ+1.1u+2.42n(n+1)u)∥X∥22≤11((m+3)nuℓ+n(n+3)u)∥X∥22≤s,\begin{aligned} ((m+3)nu_{\ell}+1.1u)\lVert X\rVert_2^2+2.2(n+1)u\cdot\operatorname{tr}(G_0) &\le((m+3)nu_{\ell}+1.1u+2.42n(n+1)u)\lVert X\rVert_2^2\\ &\le11((m+3)nu_{\ell}+n(n+3)u)\lVert X\rVert_2^2\le s, \end{aligned}

which shows that ss in (11) guarantees completion of the Cholesky factorization. Next, we estimate ∥E1+E2+E3∥2\lVert E_1+E_2+E_3\rVert_2. Using R^TR^=G^+sIn+E2+E3\widehat{R}^{\mathsf{T}}\widehat{R}=\widehat{G}+sI_n+E_2+E_3, we obtain

∥R^∥22≤∥X∥22+s+∥E1∥2+∥E2∥2+∥E3∥2.(34)\lVert\widehat{R}\rVert_2^2\leq\lVert X\rVert_2^2+s+\lVert E_1\rVert_2+\lVert E_2\rVert_2+\lVert E_3\rVert_2. \tag*{(34)}

Substituting (34) into (28) and using (26) and (32) gives

∥E3∥2≤n(n+1)u1−n(n+1)u(1+s∥X∥22+(m+3)nuℓ+1.1u)∥X∥22≤1.1n(n+1)u∥X∥22,(35)\begin{aligned} \lVert E_3\rVert_2 &\leq\frac{n(n+1)u}{1-n(n+1)u}\left(1+\frac{s}{\lVert X\rVert_2^2}+(m+3)nu_\ell+1.1u\right)\lVert X\rVert_2^2\\ &\leq1.1n(n+1)u\lVert X\rVert_2^2, \tag*{(35)} \end{aligned}

where the last inequality follows from (14) and s/∥X∥22≤1/100s/\lVert X\rVert_2^2\leq1/100. Combining (26), (32), and (35), we obtain

∥E1+E2+E3∥2≤((m+3)nuℓ+1.1u+1.1n(n+1)u)∥X∥22≤1.1((m+3)nuℓ+n(n+3)u)∥X∥22≤0.1s.\begin{aligned} \lVert E_1+E_2+E_3\rVert_2 &\leq\left((m+3)nu_\ell+1.1u+1.1n(n+1)u\right)\lVert X\rVert_2^2\\ &\leq1.1\left((m+3)nu_\ell+n(n+3)u\right)\lVert X\rVert_2^2\leq0.1s. \end{aligned}

Since E1+E2+E3E_1+E_2+E_3 is symmetric, (31) follows.

If we assume that the solution of the triangular system doe not introduce any additional error, we can use lemma 3 to estimate κ2(Q)\kappa_2(Q).

Lemma 4 (The ideally preconditioned matrix). Let Y=XR^−1Y=X\widehat{R}^{-1}. If (11) is satisfied, then

κ2(Y)≤1+1.1sκ2(X)2/∥X∥221+0.9s/∥X∥22,(36)\kappa_2(Y)\leq\sqrt{\frac{1+1.1s\kappa_2(X)^2/\lVert X\rVert_2^2}{1+0.9s/\lVert X\rVert_2^2}}, \tag*{(36)}
κ2(R^)≤1+1.1s/∥X∥220.9s/∥X∥22.(37)\kappa_2(\widehat{R})\leq\sqrt{\frac{1+1.1s/\lVert X\rVert_2^2}{0.9s/\lVert X\rVert_2^2}}. \tag*{(37)}

Proof. For every nonzero z∈Rnz\in\mathbb{R}^n, (31) gives

∥Xz∥22+0.9s∥z∥22≤∥R^z∥22≤∥Xz∥22+1.1s∥z∥22,\lVert Xz\rVert_2^2+0.9s\lVert z\rVert_2^2\leq\lVert\widehat{R}z\rVert_2^2\leq\lVert Xz\rVert_2^2+1.1s\lVert z\rVert_2^2,

or equivalently

∥Xz∥22∥Xz∥22+1.1s∥z∥22≤∥Xz∥22∥R^z∥22≤∥Xz∥22∥Xz∥22+0.9s∥z∥22.(38)\frac{\lVert Xz\rVert_2^2}{\lVert Xz\rVert_2^2+1.1s\lVert z\rVert_2^2} \leq\frac{\lVert Xz\rVert_2^2}{\lVert\widehat{R}z\rVert_2^2} \leq\frac{\lVert Xz\rVert_2^2}{\lVert Xz\rVert_2^2+0.9s\lVert z\rVert_2^2}. \tag*{(38)}

Since R^\widehat{R} is nonsingular, we have

max⁡z≠0∥Xz∥22∥R^z∥22=max⁡y≠0∥Yy∥22∥y∥22=σmax⁡(Y)2,min⁡z≠0∥Xz∥22∥R^z∥22=min⁡y≠0∥Yy∥22∥y∥22=σmin⁡(Y)2.(39)\max_{z\ne0}\frac{\lVert Xz\rVert_2^2}{\lVert\widehat{R}z\rVert_2^2} =\max_{y\ne0}\frac{\lVert Yy\rVert_2^2}{\lVert y\rVert_2^2} =\sigma_{\max}(Y)^2,\qquad \min_{z\ne0}\frac{\lVert Xz\rVert_2^2}{\lVert\widehat{R}z\rVert_2^2} =\min_{y\ne0}\frac{\lVert Yy\rVert_2^2}{\lVert y\rVert_2^2} =\sigma_{\min}(Y)^2. \tag*{(39)}

Dividing the numerator and denominator of the lower and upper bounds in (38) by ∥z∥22\lVert z\rVert_2^2 and using (39) yields

σmin⁡(X)2σmin⁡(X)2+1.1s≤σmin⁡(Y)2≤σmax⁡(Y)2≤σmax⁡(X)2σmax⁡(X)2+0.9s,\frac{\sigma_{\min}(X)^2}{\sigma_{\min}(X)^2+1.1s} \leq\sigma_{\min}(Y)^2\leq\sigma_{\max}(Y)^2 \leq\frac{\sigma_{\max}(X)^2}{\sigma_{\max}(X)^2+0.9s},

which proves (36).

Finally, it also follows from (31) that

σmax⁡(R^)2≤∥X∥22+1.1s,σmin⁡(R^)2≥0.9s,\sigma_{\max}(\widehat{R})^2\leq\lVert X\rVert_2^2+1.1s,\qquad \sigma_{\min}(\widehat{R})^2\geq0.9s,

which proves (37).

With the help of lemmas 3 and 4, we can finally prove theorem 1.

Proof of theorem 1. Let

α=s∥X∥22.\alpha= \frac{s}{\lVert X\rVert_2^2}.

By (11) and (37), we have

n2uκ2(R^)≤α(1+1.1α)110.9<0.01,n^2u\kappa_2(\widehat{R}) \le\frac{\sqrt{\alpha(1+1.1\alpha)}}{11\sqrt{0.9}} < 0.01,

where we used

11n2u≤α≤1100,(40)11n^2u \le\alpha\le\frac{1}{100}, \tag*{(40)}

which is implied by (11). Hence 1−n2uκ2(R^)>01-n^2u\kappa_2(\widehat{R})>0.

Multiplying Q^R^−X=E4\widehat{Q}\widehat{R}-X=E_4 by R^−1\widehat{R}^{-1} on the right gives

Q^−Y=E4R^−1.\widehat{Q}-Y=E_4\widehat{R}^{-1}.

By (29), we have

∥Q^∥2≤∥Y∥2+∥E4R^−1∥2≤∥Y∥2+n2uκ2(R^)∥Q^∥2.\lVert\widehat{Q}\rVert_2\le\lVert Y\rVert_2+\lVert E_4\widehat{R}^{-1}\rVert_2\le\lVert Y\rVert_2+n^2u\kappa_2(\widehat{R})\lVert\widehat{Q}\rVert_2.

Since 1−n2uκ2(R^)>01-n^2u\kappa_2(\widehat{R})>0, this leads to

∥Q^∥2≤∥Y∥21−n2uκ2(R^).(41)\lVert\widehat{Q}\rVert_2\le\frac{\lVert Y\rVert_2}{1-n^2u\kappa_2(\widehat{R})}. \tag*{(41)}

Weyl’s theorem then yields

σmin⁡(Q^)≥σmin⁡(Y)−∥E4R^−1∥2≥σmin⁡(Y)−n2uκ2(R^)∥Q^∥2≥σmin⁡(Y)−n2uκ2(R^)1−n2uκ2(R^)∥Y∥2.(42)\begin{aligned} \sigma_{\min}(\widehat{Q})&\ge\sigma_{\min}(Y)-\lVert E_4\widehat{R}^{-1}\rVert_2\\ &\ge\sigma_{\min}(Y)-n^2u\kappa_2(\widehat{R})\lVert\widehat{Q}\rVert_2\\ &\ge\sigma_{\min}(Y)-\frac{n^2u\kappa_2(\widehat{R})}{1-n^2u\kappa_2(\widehat{R})}\lVert Y\rVert_2. \tag*{(42)} \end{aligned}

Combining (41) and (42), we obtain

κ2(Q^)≤κ2(Y)1−n2uκ2(R^)(1+κ2(Y)).(43)\kappa_2(\widehat{Q})\le\frac{\kappa_2(Y)}{1-n^2u\kappa_2(\widehat{R})(1+\kappa_2(Y))}. \tag*{(43)}

It remains to bound the denominator of (43). Using lemma 4, (40), and 1+t2≤1+t\sqrt{1+t^2}\le1+t for t≥0t\ge0, we obtain

n2uκ2(R^)(1+κ2(Y))≤n2u1+1.1α0.9α(1+1+1.1ακ2(X)2)<2.12n2uα+1.12n2uκ2(X)<2.12110+1.126<0.21,\begin{aligned} n^2u\kappa_2(\widehat{R})(1+\kappa_2(Y)) &\le n^2u\sqrt{\frac{1+1.1\alpha}{0.9\alpha}}\left(1+\sqrt{1+1.1\alpha\kappa_2(X)^2}\right)\\ &<2.12\frac{n^2u}{\sqrt{\alpha}}+1.12n^2u\kappa_2(X)\\ &<\frac{2.12}{110}+\frac{1.12}{6}\\ &<0.21, \end{aligned}

where in the last inequality we used (10). Hence the denominator in (43) is positive, and substituting (36) into (43) proves (12).

Proof of Theorem 2

To simplify the notation, throughout this section, we write Q=QpQ = Q_p and R=RpR = R_p.

The componentwise error bounds of algorithm 5 are

G^−L^TL^=E2,∣E2∣≤muℓ∣L^T∣∣L^∣,S^TS^−G^=E3,∣E3∣≤(n+1)u∣S^T∣∣S^∣,R^−S^U^=E4,∣E4∣≤nu∣S^∣∣U^∣,Q^R^−X=E5,∣E5∣≤nu∣Q^∣∣R^∣.\begin{aligned} \widehat{G} - \widehat{L}^{\mathsf{T}}\widehat{L} &= E_2, &\qquad|E_2| &\leq mu_\ell|\widehat{L}^{\mathsf{T}}||\widehat{L}|,\\ \widehat{S}^{\mathsf{T}}\widehat{S} - \widehat{G} &= E_3, & |E_3| &\leq(n+1)u|\widehat{S}^{\mathsf{T}}||\widehat{S}|,\\ \widehat{R} - \widehat{S}\widehat{U} &= E_4, & |E_4| &\leq nu|\widehat{S}||\widehat{U}|,\\ \widehat{Q}\widehat{R} - X &= E_5, & |E_5| &\leq nu|\widehat{Q}||\widehat{R}|. \end{aligned}

and the corresponding normwise bounds are

∥E2∥2≤mnuℓ∥L^∥22.(44)\lVert E_2\rVert_2 \leq mnu_\ell\lVert\widehat{L}\rVert_2^2. \tag*{(44)}
∥E3∥2≤n(n+1)u∥S^∥22.(45)\lVert E_3\rVert_2 \leq n(n+1)u\lVert\widehat{S}\rVert_2^2. \tag*{(45)}
∥E4∥2≤n2u∥S^∥2∥U^∥2.(46)\lVert E_4\rVert_2 \leq n^2u\lVert\widehat{S}\rVert_2\lVert\widehat{U}\rVert_2. \tag*{(46)}
∥E5∥2≤n2u∥Q^∥2∥R^∥2.(47)\lVert E_5\rVert_2 \leq n^2u\lVert\widehat{Q}\rVert_2\lVert\widehat{R}\rVert_2. \tag*{(47)}

There is no E1E_1 since the error of the first step, including the rounding error of converting XX to low precision and LU factorization, is represented by χmin⁡\chi_{\min} and χmax⁡\chi_{\max} in theorem 2; see also remark 1.

Using assumptions (16) and (18), one can prove that the Cholesky factorization of G^\widehat{G} will not break down. We do not repeat the proof, which is analogous to that of lemma 3.

Lemma 5 (Extreme singular values of S^\widehat{S} and R^\widehat{R}). Under assumptions (16), (17), and (18), we have

∥S^∥2≤1.02∥L^∥2,(48)\lVert\widehat{S}\rVert_2 \leq1.02\lVert\widehat{L}\rVert_2, \tag*{(48)}
∥S^−1∥2≤1.02σmin⁡(L^)−1,(49)\lVert\widehat{S}^{-1}\rVert_2 \leq1.02\sigma_{\min}(\widehat{L})^{-1}, \tag*{(49)}
∥R^−1∥2≤1.04σmin⁡(L^)−1σmin⁡(U^)−1,(50)\lVert\widehat{R}^{-1}\rVert_2 \leq1.04\sigma_{\min}(\widehat{L})^{-1}\sigma_{\min}(\widehat{U})^{-1}, \tag*{(50)}
κ2(R^)≤1.066κ2(L^)κ2(U^).(51)\kappa_2(\widehat{R}) \leq1.066\kappa_2(\widehat{L})\kappa_2(\widehat{U}). \tag*{(51)}

Proof. We first prove the bounds for S^\widehat{S}. Assumptions (16) and (18) imply that mnuℓ≤1/64mnu_\ell\leq1/64 and n(n+1)u≤1/64n(n+1)u \leq1/64. Therefore, substituting (44) and (45) into S^TS^=L^TL^+E2+E3\widehat{S}^{\mathsf{T}}\widehat{S} = \widehat{L}^{\mathsf{T}}\widehat{L} + E_2 + E_3 gives

∥S^∥22≤1+mnuℓ1−n(n+1)u∥L^∥22≤6563∥L^∥22.\lVert\widehat{S}\rVert_2^2 \leq\frac{1+mnu_\ell}{1-n(n+1)u}\lVert\widehat{L}\rVert_2^2 \leq\frac{65}{63}\lVert\widehat{L}\rVert_2^2.

On the other hand, by Weyl’s theorem, the smallest singular value of S^\widehat{S} satisfies

σmin⁡(S^)2≥σmin⁡(L^)2−∥E2+E3∥2≥6163σmin⁡(L^)2,\sigma_{\min}(\widehat{S})^2 \geq\sigma_{\min}(\widehat{L})^2-\lVert E_2+E_3\rVert_2 \geq\frac{61}{63}\sigma_{\min}(\widehat{L})^2,

where, by (16) and (18), the last inequality comes from

∥E2+E3∥2≤∥E2∥2+∥E3∥2≤(mnuℓ+6563n(n+1)u)∥L^∥22≤(mnuℓκ22(L^)+6563n(n+1)uκ22(L^))σmin⁡(L^)2≤263σmin⁡(L^)2.(52)\begin{aligned} \lVert E_2+E_3\rVert_2 &\leq\lVert E_2\rVert_2+\lVert E_3\rVert_2\\ &\leq\left(mnu_\ell+\frac{65}{63}n(n+1)u\right)\lVert\widehat{L}\rVert_2^2\\ &\leq\left(mnu_\ell\kappa_2^2(\widehat{L})+\frac{65}{63}n(n+1)u\kappa_2^2(\widehat{L})\right)\sigma_{\min}(\widehat{L})^2\\ &\leq\frac{2}{63}\sigma_{\min}(\widehat{L})^2. \tag*{(52)} \end{aligned}

For R^\widehat{R}, if we apply Weyl’s theorem together with (46), (48), and (49), we obtain

σmin⁡(R^)≥σmin⁡(S^)σmin⁡(U^)−n2u∥S^∥2∥U^∥2≥(6163−6563n2uκ2(L^)κ2(U^))σmin⁡(L^)σmin⁡(U^)≥(6163−1646563)σmin⁡(L^)σmin⁡(U^),\begin{aligned} \sigma_{\min}(\widehat{R}) &\ge\sigma_{\min}(\widehat{S})\sigma_{\min}(\widehat{U})-n^{2}u\lVert\widehat{S}\rVert_{2}\lVert\widehat{U}\rVert_{2}\\ &\ge\left(\sqrt{\frac{61}{63}}-\sqrt{\frac{65}{63}}n^{2}u\kappa_{2}(\widehat{L})\kappa_{2}(\widehat{U})\right)\sigma_{\min}(\widehat{L})\sigma_{\min}(\widehat{U})\\ &\ge\left(\sqrt{\frac{61}{63}}-\frac{1}{64}\sqrt{\frac{65}{63}}\right)\sigma_{\min}(\widehat{L})\sigma_{\min}(\widehat{U}), \end{aligned}

where, in the last inequality, we used (17) to bound n2uκ2(L^)κ2(U^)n^{2}u\kappa_{2}(\widehat{L})\kappa_{2}(\widehat{U}). Finally, dividing

∥R^∥2≤(1+n2u)∥S^∥2∥U^∥2≤6564⋅6563∥L^∥2∥U^∥2\lVert\widehat{R}\rVert_{2}\leq(1+n^{2}u)\lVert\widehat{S}\rVert_{2}\lVert\widehat{U}\rVert_{2}\leq\frac{65}{64}\cdot\sqrt{\frac{65}{63}}\lVert\widehat{L}\rVert_{2}\lVert\widehat{U}\rVert_{2}

by σmin⁡(R^)\sigma_{\min}(\widehat{R}) yields (51).

Lemma 6 (Near-isometry of the LU-based preconditioner). Under assumptions (16), (17), and (18), we have

0.965≤σmin⁡(L^U^R^−1)≤σmax⁡(L^U^R^−1)≤1.034.(53)0.965\leq\sigma_{\min}(\widehat{L}\widehat{U}\widehat{R}^{-1})\leq\sigma_{\max}(\widehat{L}\widehat{U}\widehat{R}^{-1})\leq1.034. \tag*{(53)}

Proof. We first estimate the perturbation introduced when S^U^\widehat{S}\widehat{U} is formed in working precision. By (46), (48), and (50), we have

∥E4R^−1∥2≤n2u∥S^∥2∥U^∥2∥R^−1∥2≤1.02⋅1.04n2uκ2(L^)κ2(U^).\lVert E_{4}\widehat{R}^{-1}\rVert_{2}\leq n^{2}u\lVert\widehat{S}\rVert_{2}\lVert\widehat{U}\rVert_{2}\lVert\widehat{R}^{-1}\rVert_{2}\leq1.02\cdot1.04n^{2}u\kappa_{2}(\widehat{L})\kappa_{2}(\widehat{U}).

Assumption (17) therefore gives

∥E4R^−1∥2≤1.02⋅1.0464=0.016575<0.0166.(54)\lVert E_{4}\widehat{R}^{-1}\rVert_{2}\leq\frac{1.02\cdot1.04}{64}=0.016575<0.0166. \tag*{(54)}

Next, multiplying R^=S^U^+E4\widehat{R}=\widehat{S}\widehat{U}+E_{4} on the right by R^−1\widehat{R}^{-1} gives

S^U^R^−1=In−E4R^−1.\widehat{S}\widehat{U}\widehat{R}^{-1}=I_{n}-E_{4}\widehat{R}^{-1}.

Since S^\widehat{S} is nonsingular by lemma 5, it follows that

U^R^−1=S^−1(In−E4R^−1).\widehat{U}\widehat{R}^{-1}=\widehat{S}^{-1}\left(I_{n}-E_{4}\widehat{R}^{-1}\right).

Using (49) and (54), we obtain

∥U^R^−1∥2≤1.02(1+0.0166)σmin⁡(L^)−1.\lVert\widehat{U}\widehat{R}^{-1}\rVert_{2}\leq1.02(1+0.0166)\sigma_{\min}(\widehat{L})^{-1}.

Then, using (52), we obtain

∥U^R^−1∥22(∥E2∥2+∥E3∥2)≤1.022(1+0.0166)2σmin⁡(L^)−2⋅263σmin⁡(L^)2=2⋅1.02263(1+0.0166)2<0.0342.(55)\begin{aligned} \lVert\widehat{U}\widehat{R}^{-1}\rVert_{2}^{2}(\lVert E_{2}\rVert_{2}+\lVert E_{3}\rVert_{2}) &\leq1.02^{2}(1+0.0166)^{2}\sigma_{\min}(\widehat{L})^{-2}\cdot\frac{2}{63}\sigma_{\min}(\widehat{L})^{2}\\ &=\frac{2\cdot1.02^{2}}{63}(1+0.0166)^{2}\\ &<0.0342. \tag*{(55)} \end{aligned}

We now estimate the deviation from orthogonality of L^U^R^−1\widehat{L}\widehat{U}\widehat{R}^{-1}. Note that

(L^U^R^−1)T(L^U^R^−1)−In=−R^−TE4T−E4R^−1+R^−TE4TE4R^−1−R^−TU^T(E2+E3)U^R^−1.(\widehat{L}\widehat{U}\widehat{R}^{-1})^{\mathsf{T}}(\widehat{L}\widehat{U}\widehat{R}^{-1})-I_{n} =-\widehat{R}^{-\mathsf{T}}E_{4}^{\mathsf{T}}-E_{4}\widehat{R}^{-1} +\widehat{R}^{-\mathsf{T}}E_{4}^{\mathsf{T}}E_{4}\widehat{R}^{-1} -\widehat{R}^{-\mathsf{T}}\widehat{U}^{\mathsf{T}}(E_{2}+E_{3})\widehat{U}\widehat{R}^{-1}.

Using (54) and (55), we obtain

∥(L^U^R^−1)T(L^U^R^−1)−In∥2≤2∥E4R^−1∥2+∥E4R^−1∥22+∥U^R^−1∥22(∥E2∥2+∥E3∥2)<0.0677.\left\|(\widehat{L}\widehat{U}\widehat{R}^{-1})^{\mathsf{T}}(\widehat{L}\widehat{U}\widehat{R}^{-1})-I_n\right\|_2 \le2\left\|E_4\widehat{R}^{-1}\right\|_2+\left\|E_4\widehat{R}^{-1}\right\|_2^2+\left\|\widehat{U}\widehat{R}^{-1}\right\|_2^2(\left\|E_2\right\|_2+\left\|E_3\right\|_2)<0.0677.

Therefore,

σmin⁡(L^U^R^−1)≥0.9323>0.965,\sigma_{\min}(\widehat{L}\widehat{U}\widehat{R}^{-1})\ge\sqrt{0.9323}>0.965,

and

σmax⁡(L^U^R^−1)≤1.0677<1.034,\sigma_{\max}(\widehat{L}\widehat{U}\widehat{R}^{-1})\le\sqrt{1.0677}<1.034,

which proves (53).

Lemma 7 (Ideally preconditioned matrix). Let Y=XR^−1Y=X\widehat{R}^{-1}. Under assumptions (16), (17), and (18),

0.965⋅χmin⁡≤σmin⁡(Y)≤σmax⁡(Y)≤1.034⋅χmax⁡,(56)0.965\cdot\chi_{\min}\le\sigma_{\min}(Y)\le\sigma_{\max}(Y)\le1.034\cdot\chi_{\max}, \tag*{(56)}

and consequently

κ2(Y)≤1.072⋅χmax⁡χmin⁡.\kappa_2(Y)\le1.072\cdot\frac{\chi_{\max}}{\chi_{\min}}.

Proof. By the definition of χmin⁡\chi_{\min} and χmax⁡\chi_{\max} in (20), for every z∈Rnz\in\mathbb{R}^n, we have

χmin⁡∥L^U^z∥2≤∥Xz∥2≤χmax⁡∥L^U^z∥2.(57)\chi_{\min}\left\|\widehat{L}\widehat{U}z\right\|_2\le\left\|Xz\right\|_2\le\chi_{\max}\left\|\widehat{L}\widehat{U}z\right\|_2. \tag*{(57)}

Let y∈Rny\in\mathbb{R}^n be arbitrary and let z=R^−1yz=\widehat{R}^{-1}y. Then (57) becomes

χmin⁡∥L^U^R^−1y∥2≤∥XR^−1y∥2≤χmax⁡∥L^U^R^−1y∥2.\chi_{\min}\left\|\widehat{L}\widehat{U}\widehat{R}^{-1}y\right\|_2\le\left\|X\widehat{R}^{-1}y\right\|_2\le\chi_{\max}\left\|\widehat{L}\widehat{U}\widehat{R}^{-1}y\right\|_2.

Applying lemma 6 to the two outer terms gives

0.965⋅χmin⁡∥y∥2≤∥Yy∥2≤1.034⋅χmax⁡∥y∥2.0.965\cdot\chi_{\min}\left\|y\right\|_2\le\left\|Yy\right\|_2\le1.034\cdot\chi_{\max}\left\|y\right\|_2.

Taking the minimum and maximum over all unit vectors yy proves (56).

Proof of theorem 2. As mentioned, it can be shown that the Cholesky factorization will not break down if (16) and (18) is satisfied, and the bound (50) shows that R^\widehat{R} is nonsingular.

It remains to estimate the condition number of the computed preconditioned matrix Q^\widehat{Q}. Multiplying Q^R^−X=E5\widehat{Q}\widehat{R}-X=E_5 on the right by R^−1\widehat{R}^{-1} gives

Q^−Y=E5R^−1.\widehat{Q}-Y=E_5\widehat{R}^{-1}.

Using (47), we obtain

∥Q^−Y∥2≤∥E5∥2∥R^−1∥2≤n2u∥Q^∥2∥R^∥2∥R^−1∥2=n2uκ2(R^)∥Q^∥2.(58)\begin{aligned} \left\|\widehat{Q}-Y\right\|_2&\le\left\|E_5\right\|_2\left\|\widehat{R}^{-1}\right\|_2\\ &\le n^2u\left\|\widehat{Q}\right\|_2\left\|\widehat{R}\right\|_2\left\|\widehat{R}^{-1}\right\|_2\\ &=n^2u\kappa_2(\widehat{R})\left\|\widehat{Q}\right\|_2. \tag*{(58)} \end{aligned}

By (51) and assumption (17),

n2uκ2(R^)≤1.066n2uκ2(L^)κ2(U^)≤1.06664<0.0167.(59)n^2u\kappa_2(\widehat{R})\le1.066n^2u\kappa_2(\widehat{L})\kappa_2(\widehat{U})\le\frac{1.066}{64}<0.0167. \tag*{(59)}

We first estimate the largest singular value of Q^\widehat{Q}. By (58), (59), and (56),

∥Q^∥2≤∥Y∥2+∥Q^−Y∥2≤1.034⋅χmax⁡+0.0167∥Q^∥2.\left\|\widehat{Q}\right\|_2\le\left\|Y\right\|_2+\left\|\widehat{Q}-Y\right\|_2\le1.034\cdot\chi_{\max}+0.0167\left\|\widehat{Q}\right\|_2.

Rearranging the inequality gives

∥Q^∥2≤1.0341−0.0167⋅χmax⁡<1.052⋅χmax⁡.(60)\lVert\widehat{Q}\rVert_2 \le\frac{1.034}{1-0.0167}\cdot\chi_{\max}<1.052\cdot\chi_{\max}. \tag*{(60)}

For the smallest singular value, by Weyl’s theorem, together with (56) and (58), we have

σmin⁡(Q^)≥σmin⁡(Y)−∥Q^−Y∥2≥0.965⋅χmin⁡−n2u κ2(R^)∥Q^∥2.\begin{aligned} \sigma_{\min}(\widehat{Q})&\ge\sigma_{\min}(Y)-\lVert\widehat{Q}-Y\rVert_2\\ &\ge0.965\cdot\chi_{\min}-n^2u\,\kappa_2(\widehat{R})\lVert\widehat{Q}\rVert_2. \end{aligned}

Using (51) and (60) yields

σmin⁡(Q^)>0.965χmin⁡−1.066⋅1.052 n2u κ2(L^)κ2(U^)χmax⁡=(0.965−1.066⋅1.052 n2u κ2(L^)κ2(U^)χmax⁡χmin⁡)χmin⁡.\begin{aligned} \sigma_{\min}(\widehat{Q})&>0.965\chi_{\min}-1.066\cdot1.052\,n^2u\,\kappa_2(\widehat{L})\kappa_2(\widehat{U})\chi_{\max}\\ &=\left(0.965-1.066\cdot1.052\,n^2u\,\kappa_2(\widehat{L})\kappa_2(\widehat{U})\frac{\chi_{\max}}{\chi_{\min}}\right)\chi_{\min}. \end{aligned}

The second bound in assumption (19) therefore gives

σmin⁡(Q^)≥(0.965−1.066⋅1.05264)χmin⁡>0.947χmin⁡.(61)\sigma_{\min}(\widehat{Q})\ge\left(0.965-\frac{1.066\cdot1.052}{64}\right)\chi_{\min}>0.947\chi_{\min}. \tag*{(61)}

Finally, combining (60) and (61), we obtain

κ2(Q^)=∥Q^∥2σmin⁡(Q^)<1.0520.947⋅χmax⁡χmin⁡≤1.12(1+(nρ+n)uℓκ2(X)),\kappa_2(\widehat{Q})=\frac{\lVert\widehat{Q}\rVert_2}{\sigma_{\min}(\widehat{Q})}<\frac{1.052}{0.947}\cdot\frac{\chi_{\max}}{\chi_{\min}}\le1.12\left(1+(n\rho+\sqrt{n})u_\ell\kappa_2(X)\right),

where the last inequality uses assumption (19). This proves (21).

References

  1. [1]Oleg Balabanov. Randomized Cholesky QR factorizations. arXiv:2210.09953 [math.NA], February 2022.arxiv.org/abs/2210.09953
  2. [2]Erin Carson and Nicholas J. Higham. A new analysis of iterative refinement and its application to accurate solution of ill-conditioned sparse linear systems. SIAM J. Sci. Comput., 39(6):A2834–A2856, 2017.DOI
  3. [3]Erin Carson and Nicholas J. Higham. Accelerating the solution of linear systems by iterative refinement in three precisions. SIAM J. Sci. Comput., 40(2):A817–A847, 2018.DOI
  4. [4]Kenneth L. Clarkson and David P. Woodruff. Low-rank approximation and regression in input sparsity time. J. ACM, 63(6):54:1–54:45, 2017.
  5. [5]Jed A. Duersch, Meiyue Shao, Chao Yang, and Ming Gu. A robust and efficient implementation of LOBPCG. SIAM J. Sci. Comput., 40(5):C655–C676, 2018.DOI
  6. [6]Takeshi Fukaya, Ramaseshan Kannan, Yuji Nakatsukasa, Yusaku Yamamoto, and Yuka Yanagisawa. Shifted Cholesky QR for computing the QR factorization of ill-conditioned matrices. SIAM J. Sci. Comput., 42(1):A477–A503, January 2020.arxiv.org/abs/1809.11085
  7. [7]Takeshi Fukaya, Yuji Nakatsukasa, Yuka Yanagisawa, and Yusaku Yamamoto. CholeskyQR2: A simple and communication-avoiding algorithm for computing a tall-skinny QR factorization on a large-scale parallel system. In Proceedings of the 5th Workshop on Latest Advances in Scalable Algorithms for Large-Scale Systems, pages 31–38. IEEE, 2014.DOI
  8. [8]James E. Garrison, Chao Chen, and Ilse C. F. Ipsen. Numerically stable Cholesky–QR on GPU via mixed-precision randomized preconditioning. arXiv:2606.18411 [math.NA], June 2026.arxiv.org/abs/2606.18411
  9. [9]James E. Garrison and Ilse C. F. Ipsen. A randomized preconditioned Cholesky–QR algorithm. arXiv:2406.11751 [math.na], June 2024.arxiv.org/abs/2406.11751
  10. [10]Gene H. Golub and Charles F. Van Loan. Matrix Computations. Johns Hopkins University Press, Baltimore, MD, USA, 4th edition, 2013.
  11. [11]Craig Gotsman and Sivan Toledo. On the computation of null spaces of sparse rectangular matrices. SIAM J. Matrix Anal. Appl., 30(2):445–463, 2008.DOI
  12. [12]Haoran Guan, Zhenyu Zou, Yufeng Wei, Yipei Chen, Peiting You, and Yuwei Fan. RCLUPPr: A new randomized CholeskyQR with LU preconditioning. arXiv:2607.15561 [math.NA], July 2026.
  13. [13]N. Halko, P. G. Martinsson, and J. A. Tropp. Finding structure with randomness: Probabilistic algorithms for constructing approximate matrix decompositions. SIAM Rev., 53(2):217–288, January 2011.arxiv.org/abs/0909.4061
  14. [14]Andrew J. Higgins, Daniel B. Szyld, Erik G. Boman, and Ichitaro Yamazaki. Analysis of randomized Householder–Cholesky QR factorization with multisketching. Numer. Math., 157:1695–1737, 2025.DOI
  15. [15]Nicholas J. Higham. Accuracy and Stability of Numerical Algorithms. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2nd edition, 2002.
  16. [16]Nicholas J. Higham and Theo Mary. Mixed precision algorithms in numerical linear algebra. Acta Numerica, 31:347–414, May 2022.DOI
  17. [17]Claude-Pierre Jeannerod and Siegfried M. Rump. Improved error bounds for inner products in floating-point arithmetic. SIAM J. Matrix Anal. Appl., 34(2):338–344, January 2013.DOI
  18. [18]Daniel Kressner, Yuxin Ma, and Meiyue Shao. A mixed precision LOBPCG algorithm. Numer. Algorithms, 94:1653–1671, 2023.DOI
  19. [19]Cornelius Lanczos. An iteration method for the solution of the eigenvalue problem of linear differential and integral operators. J. Res. Natl. Bur. Stand., 45(4):255–282, 1950.DOI
  20. [20]Per-Gunnar Martinsson and Joel A. Tropp. Randomized numerical linear algebra: Foundations and algorithms. Acta Numerica, 29:403–572, May 2020.DOI
  21. [21]Klaus Neymeyr. A geometric theory for preconditioned inverse iteration applied to a subspace. Math. Comp., 71(237):197–216, 2002.
  22. [22]Siegfried M. Rump and Claude-Pierre Jeannerod. Improved backward error bounds for LU and Cholesky factorizations. SIAM J. Matrix Anal. Appl., 35(2):684–698, 2014.DOI
  23. [23]Youcef Saad and Martin H. Schultz. GMRES: A generalized minimal residual algorithm for solving nonsymmetric linear systems. SIAM J. Sci. Statist. Comput., 7(3):856–869, July 1986.DOI
  24. [24]Gerard L. G. Sleijpen and Henk A. Van der Vorst. A Jacobi–Davidson iteration method for linear eigenvalue problems. SIAM J. Matrix Anal. Appl., 17(2):401–425, 1996.
  25. [25]Takeshi Terao, Katsuhisa Ozaki, and Takeshi Ogita. LU-Cholesky QR algorithms for thin QR decomposition. Parallel Comput., 92:102571, April 2020.DOI
  26. [26]Françoise Tisseur. Mixed precision tall and thin QR factorization with applications. Conference abstract, New Directions in Numerical Linear Algebra and High Performance Computing: Celebrating the 70th Birthday of Jack Dongarra, 2021. July 7–8, 2021, p. 3. Joint work with Srikara Pranesh.
  27. [27]Françoise Tisseur and Srikara Pranesh. Mixed precision Cholesky-QR algorithm with applications. Conference abstract, SIAM Conference on Computational Science and Engineering (CSE21), 2021. March 3, 2021.
  28. [28]Yusaku Yamamoto, Yuji Nakatsukasa, Yuka Yanagisawa, and Takeshi Fukaya. Roundoff error analysis of the CholeskyQR2 algorithm. Electron. Trans. Numer. Anal., 44:306–326, 2015.
  29. [29]Ichitaro Yamazaki, Stanimire Tomov, and Jack Dongarra. Mixed-precision Cholesky QR factorization and its case studies on multicore CPU with multiple GPUs. SIAM J. Sci. Comput., 37(3):C307–C330, January 2015.DOI

Paper details

vlnc:W_syr6eqrp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

GPT-6

View statement
Looking for related papers…
Contents