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 be a matrix of full column rank, with . A (column) orthogonalization of is a factorization that satisfies
When is upper triangular, (1) is a QR factorization.
Many numerical algorithms require orthogonalizing matrices for which . 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 Algorithm 1: CholeskyQR
Input: with .
Output: and as in (1).
1.1: function 1.2: Compute . 1.3: Compute the Cholesky factorization . 1.4: Compute .
and , of order the unit roundoff . The orthogonalization is obtained by applying to a sequence of Householder transformations, and requires floating-point operations (flops), if is only needed as a product of transformations [10 p. 249], and flops, if 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 is upper triangular and
where is the identity matrix of order .
Forming the symmetric Gram matrix on line 1.2 requires flops, computing its Cholesky factorization on line 1.3 requires flops, and solving the linear system on line 1.4 requires flops. Therefore, CholeskyQR requires 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 , the loss of orthogonality of CholeskyQR depends quadratically on . A natural solution is to apply CholeskyQR twice. Yamamoto et al. [28] show that this variant, known as CholeskyQR2, computes a matrix such that
provided that satisfies
Condition (2) is certainly violated if , 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
for a small shift . Fukaya et al. [6] show that if the shift is chosen as
and the matrix satisfies
then the Cholesky factorization of does not break down and the computed preconditioned matrix satisfies
Condition (4) shows that SCQR can be applied to input matrices with condition numbers as large as , while (5) guarantees that the preconditioned matrix satisfies (2) and that CholeskyQR2 can be applied to it.
SCQR can be naturally understood as a form of preconditioning. A nonsingular matrix is a preconditioner for CholeskyQR if the condition number of the preconditioned matrix is substantially lower than that of . Ideally, should be sufficiently small that CholeskyQR or CholeskyQR2 can be applied reliably to , yielding and an orthogonalization .
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 , then forms the Gram matrix and uses its Cholesky factorization to compute the preconditioner . In exact arithmetic, we have
which shows that has orthonormal columns.
It can be shown [25] that if the computed LU decomposition is such that
then one CholeskyQR step will produce an orthogonality error and a relative residual of order . Conditions (6) and (7) only feature the condition numbers of the LU factors of , not the condition number of itself. Therefore, unlike SCQR, LUCQR is not guaranteed to work for all matrices with condition numbers of order . From the perspective of rounding-error analysis, if , 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 is often much better conditioned than [11], making the Cholesky factorization of safer than that of .
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 . 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: ; CholeskyQR preconditioner PREC; condition number tolerance ; maximum number of iterations .
Output: CholeskyQR preconditioner ; preconditioned matrix .
2.1: Initialize and .
2.2: for do
2.3: Perform preconditioning .
2.4: Compute .
2.5: if 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 , the computed preconditioner and the preconditioned matrix , stored in working precision, should satisfy
where (8) expresses the purpose of preconditioning, and (9) captures the requirement of a working-precision backward error in the representation of . This is necessary because, in most applications, orthogonalization is performed to obtain a basis for the subspace spanned by , 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 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: ; shift ; unit roundoffs .
Output: CholeskyQR preconditioner ; preconditioned matrix .
3.1: function
3.2: Compute in precision .
3.3: Compute the Cholesky factorization in precision .
3.4: Compute in precision .
Mixed-precision shiftedCholeskyQR (mpSCQR)
For , the cost of SCQR is dominated by the formation of and by the solution of the linear system . must be computed in working precision to satisfy (9), but we can form 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 satisfy
Then mpSCQR does not break down, and the preconditioned satisfies
In particular, if and is chosen to be the lower bound in (11), then (12) implies that one mpSCQR step reduces the condition number of by a factor of
Proof. See section B.
Assumption (11) restricts the low-precision unit roundoff , as it implies that
When and , the factor in (13) can be simplified to , which becomes 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 is, and the lower bound in (11) is too large to guarantee reasonably fast convergence. Therefore, in practice, we often choose a smaller , 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 by adding a uniform shift. A more general approach, suggested by this observation, is to compute the spectral decomposition of explicitly and correct its eigenvalues. This approach is summarized in algorithm 4.
Algorithm 4: Mixed-precision eigendecomposition QR (mpEVDQR)
Input: , ; unit roundoffs .
Output: CholeskyQR preconditioner ; preconditioned matrix .
4.1: function
4.2: Compute in precision .
4.3: Compute an eigendecomposition in precision .
4.4: Correct the spectrum and compute in precision .
4.5: Compute in precision .
4.6: Compute in precision .
Once the eigenvalues are available, they can be corrected using any function satisfying for every computed eigenvalue of . The uniform shift used in SCQR and mpSCQR can be understood as a special case with . The main drawback of this approach is that the preconditioner returned by mpEVDQR is generally dense rather than triangular, and this has two negative consequences: first, updating 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 , whose cost will be negligible if .
The convergence behavior of algorithm 4 depends on the choice of the correction function . If the eigendecomposition satisfies
for some moderate constants and , then setting with the smallest allowed by (11) will achieve a reduction rate similar to that of mpSCQR, which is if the dependence on the matrix dimensions is disregarded. In practice, we use the absolute value correction
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 .
Mixed-precision LU–CholeskyQR (mpLUCQR)
The lower triangular factor of the partially pivoted LU factorization is often observed to be much better conditioned than . Therefore, we may hope that Cholesky factorization of will succeed, even if the LU decomposition and the Gram matrix are computed in low precision. In fact, if , then is substantially more likely to remain positive definite and admit a successful Cholesky factorization, since
The resulting Cholesky factor is then combined with 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: ; unit roundoffs .
Output: CholeskyQR preconditioner ; preconditioned matrix .
5.1: function
5.2: Compute the pivoted LU factorization in precision .
5.3: Compute in precision .
5.4: Compute the Cholesky factorization in precision .
5.5: Compute in precision .
5.6: Compute in precision .
Theorem 2 (Condition number reduction of mpLUCQR). Let the computed LU factors satisfy
and assume that
where is the growth factor of and
Then the Cholesky factorization in mpLUCQR does not break down, the computed triangular factor is nonsingular, and the preconditioned satisfies
Consequently, when , one mpLUCQR step reduces the condition number of by a factor of .
Proof. See section C.
However, the lower triangular factor is not guaranteed to be well conditioned, and, in particular, it need not be better conditioned than . For example, the matrix with
has an LU decomposition with and . Since and , we have that
The assumptions in theorem 2 show that mpLUCQR can be ineffective and even break down if is ill conditioned. When and , condition (18) can become even more restrictive than (17) if . Thus, the theorem suggests that the effectiveness of mpLUCQR relies on the commonly observed behavior
Remark 1. Taking into account the rounding error incurred when converting to precision , the LU factorization with partial pivoting computed in precision satisfies the componentwise backward-error bound
If , then (22) implies
This is consistent with the first term in (19). In mixed precision, 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 . 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 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 and . Unless otherwise stated, we set in algorithm 3 and use the absolute value correction (15) in algorithm 4.
The test matrices are generated, for a prescribed condition number , as
where and 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 and , 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 . 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 for algorithm 2. The first is , which reduces the condition number of the preconditioned matrix to about one. The second is , which represents the cost of reducing the condition number to a range in which CholeskyQR2 can be applied successfully. Condition (2) depends on and . Thus, the choice 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 and between and .
Figure 1 reports the value of after one to five iterations of algorithm 2 for each of the preconditioners. All ten methods produce a 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 increases.

Figure 1. Condition number behavior for the ten preconditioning algorithms. The -axis represents the condition number of , and the -axis represents the condition number of the preconditioned matrix after 0 to 5 iterations of algorithm 2. To ensure that algorithm 2 performs at least five iterations, we set . The curve corresponding to zero iterations represents .
When , LUCQR, RCQR-g, and RCQR-ss are the most effective preconditioners, bringing 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 , whereas one iteration of mpLUCQR reduces it by a factor . This agrees with the theoretical factors discussed in § 2.
The ten preconditioners can be classified according to whether they form 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 | Avoid forming | |||
| Mono-precision | SCQR | RCQR<br>LUCQR | ||
| Mixed-precision | mpSCQR<br>mpEVDQR | mpLUCQR<br>mpHQR<br>mpRCQR |
Table 1. Classification of the ten preconditioners according to whether they (1) use mixed precision and (2) explicitly form . 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.
explicitly forming introduces a square-root loss in the condition number reduction factor, and
using lower precision replaces the working-precision unit roundoff by the lower-precision unit roundoff .
As we use binary32 as low precision in our experiments, we have that and the use of low precision also corresponds approximately to a square-root loss.
Effect of matrix size
The factors and derived in § 2 were obtained by disregarding factors that depend on and . 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 and , 500, and 1000, and we plot the condition number of the preconditioned matrix at each iteration. For mpSCQR, we use two different shifts, and , resulting in two separate curves, as indicated in the legend.

Figure 2. Condition number histories of the ten preconditioning algorithms for matrices with and , 500, and 1000. For mpSCQR, the results with shifts and are both shown. When and , 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 and .
As increases from 100 to 1000, there are no significant changes in the convergence rates of most algorithms. An exception is mpSCQR with , for which the Cholesky factorization breaks down when . We therefore must use the larger shift , 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 . mpEVDQR also forms the Gram matrix in low precision, and its convergence similarly slows down as increases. However, the number of iterations until only increases by 25%, while increases by a factor 10. Therefore, the dependence on is much weaker than the bounds in § 2 might suggest, and the approximate reduction factors , , and 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 and . Figure 3 and Figure 4 report the time spent by algorithm 2, broken down by operation, for and , respectively.

Figure 3. Total runtime required by algorithm 2 to achieve for a matrix with . 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 is excluded.

Figure 4. Total runtime required by algorithm 2 to achieve for a matrix with . 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 is excluded.
For , RCQR with a sparse sign sketch is the fastest preconditioner, followed by mpLUCQR, which is the fastest among the three proposed alternatives. For , 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 that of binary64 arithmetic. This speedup is most significant in the computations of the Gram matrices and and of the sketched matrix. Comparing SCQR with mpSCQR and mpEVDQR shows that it is approximately faster to form in low precision compared with working precision. A similar comparison between LUCQR and mpLUCQR shows an approximately acceleration in forming in binary32 arithmetic. Similarly, comparing RCQR and mpRCQR with Gaussian sketching shows that forming in low precision is approximately faster than in working precision.
Comparing LUCQR with mpLUCQR shows that a binary32 LU factorization is approximately faster than a binary64 one and faster than binary64 matrix–matrix multiplication. Similarly, the binary32 Householder QR factorization in mpHQR is 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 . 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 to below , but factorizing and forming in binary64 arithmetic are costly operations that make it slower than mpLUCQR for both values of 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: ; unit roundoffs .
Output: CholeskyQR preconditioner ; preconditioned matrix .
6.1: function
6.2: Compute a Householder QR factorization in precision .
6.3: Convert to precision .
6.4: Compute in precision .
Our results also quantify the reduction achieved by our preconditioners, which is approximately for mpSCQR and mpEVDQR and 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 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 , 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, is computed as 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.

Figure 7.
Randomized CholeskyQR
Randomized CholeskyQR (RCQR) [1, 14] is a preconditioner for CholeskyQR based on sketching. Let , with , be an -subspace embedding for , that is, such that
RCQR forms the sketched matrix , computes a Householder QR factorization , and sets . Since , condition (24) gives
Thus, with a suitable sketching matrix , 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 : 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 in algorithm algorithm 7 recovers RCQR.
Proof of Theorem 1
To simplify the notation, throughout this section we write and . Push c Using the error bounds of [17, 22], the componentwise error bounds for algorithm 3 are
where is defined as the computed . The bound (25), which includes the error in converting to the low-precision matrix , can be obtained from
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
where in (27) we have used the fact that is diagonal. We further assume that , , and 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
Consequently,
where denotes the Loewner partial order.
Proof. We first verify that the shift prevents the Cholesky factorization from breaking down. By (26), (27), (14), and , we have
Let . By (26) and the bound on , we have
so is positive semidefinite. Moreover, (25) gives
and therefore
where the last inequality follows from (14). The matrix to which Cholesky factorization is applied is
Thus, by [6 sect. 4.1], the Cholesky factorization will not break down if
Using (33), we obtain
which shows that in (11) guarantees completion of the Cholesky factorization. Next, we estimate . Using , we obtain
Substituting (34) into (28) and using (26) and (32) gives
where the last inequality follows from (14) and . Combining (26), (32), and (35), we obtain
Since 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 .
Proof. For every nonzero , (31) gives
or equivalently
Since is nonsingular, we have
Dividing the numerator and denominator of the lower and upper bounds in (38) by and using (39) yields
which proves (36).
Finally, it also follows from (31) that
which proves (37).
With the help of lemmas 3 and 4, we can finally prove theorem 1.
Proof of theorem 1. Let
where we used
which is implied by (11). Hence .
Multiplying by on the right gives
By (29), we have
Since , this leads to
Weyl’s theorem then yields
Combining (41) and (42), we obtain
It remains to bound the denominator of (43). Using lemma 4, (40), and for , we obtain
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 and .
The componentwise error bounds of algorithm 5 are
and the corresponding normwise bounds are
There is no since the error of the first step, including the rounding error of converting to low precision and LU factorization, is represented by and in theorem 2; see also remark 1.
Using assumptions (16) and (18), one can prove that the Cholesky factorization of will not break down. We do not repeat the proof, which is analogous to that of lemma 3.
Proof. We first prove the bounds for . Assumptions (16) and (18) imply that and . Therefore, substituting (44) and (45) into gives
On the other hand, by Weyl’s theorem, the smallest singular value of satisfies
where, by (16) and (18), the last inequality comes from
For , if we apply Weyl’s theorem together with (46), (48), and (49), we obtain
where, in the last inequality, we used (17) to bound . Finally, dividing
by yields (51).
Lemma 6 (Near-isometry of the LU-based preconditioner). Under assumptions (16), (17), and (18), we have
Proof. We first estimate the perturbation introduced when is formed in working precision. By (46), (48), and (50), we have
Assumption (17) therefore gives
Next, multiplying on the right by gives
Since is nonsingular by lemma 5, it follows that
Using (49) and (54), we obtain
Then, using (52), we obtain
We now estimate the deviation from orthogonality of . Note that
Using (54) and (55), we obtain
Therefore,
and
which proves (53).
Lemma 7 (Ideally preconditioned matrix). Let . Under assumptions (16), (17), and (18),
and consequently
Proof. By the definition of and in (20), for every , we have
Let be arbitrary and let . Then (57) becomes
Applying lemma 6 to the two outer terms gives
Taking the minimum and maximum over all unit vectors 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 is nonsingular.
It remains to estimate the condition number of the computed preconditioned matrix . Multiplying on the right by gives
Using (47), we obtain
We first estimate the largest singular value of . By (58), (59), and (56),
Rearranging the inequality gives
For the smallest singular value, by Weyl’s theorem, together with (56) and (58), we have
The second bound in assumption (19) therefore gives
Finally, combining (60) and (61), we obtain
where the last inequality uses assumption (19). This proves (21).
References
- [1]Oleg Balabanov. Randomized Cholesky QR factorizations. arXiv:2210.09953 [math.NA], February 2022.arxiv.org/abs/2210.09953
- [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]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]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]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]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]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]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]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]Gene H. Golub and Charles F. Van Loan. Matrix Computations. Johns Hopkins University Press, Baltimore, MD, USA, 4th edition, 2013.
- [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]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]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]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]Nicholas J. Higham. Accuracy and Stability of Numerical Algorithms. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2nd edition, 2002.
- [16]Nicholas J. Higham and Theo Mary. Mixed precision algorithms in numerical linear algebra. Acta Numerica, 31:347–414, May 2022.DOI
- [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]Daniel Kressner, Yuxin Ma, and Meiyue Shao. A mixed precision LOBPCG algorithm. Numer. Algorithms, 94:1653–1671, 2023.DOI
- [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]Per-Gunnar Martinsson and Joel A. Tropp. Randomized numerical linear algebra: Foundations and algorithms. Acta Numerica, 29:403–572, May 2020.DOI
- [21]Klaus Neymeyr. A geometric theory for preconditioned inverse iteration applied to a subspace. Math. Comp., 71(237):197–216, 2002.
- [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]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]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]Takeshi Terao, Katsuhisa Ozaki, and Takeshi Ogita. LU-Cholesky QR algorithms for thin QR decomposition. Parallel Comput., 92:102571, April 2020.DOI
- [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]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]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]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