WorksMathematics
Finite-time Cholesky Factorization
Abstract
We propose an algorithm for estimating the Cholesky factorization of positive, semi-definite matrices without pivoting. Our method has the same data access pattern as the canonical Cholesky method, and therefore is amenable to familiar hardware optimization techniques. Our method interprets the factorization task as a variational problem and in turn solves it using an induced dynamical system. We study the rate of convergence of this dynamical system to its stationary state for both positive definite and semi-definite matrices. Numerical experiments validate that our method is competitive with pivoted Cholesky on several practical examples.
Introduction
The Cholesky factorization is one of the most studied transformations in numerical linear algebra. For a symmetric positive semi-definite matrix , it takes the form
where is lower triangular with . This simple transformation has ubiquitous applications in different disciplines of the natural sciences.
The first documented use of this factorization is due to Benoit [3], who published the work of (Commandant) Cholesky in solving linear least-squares problems arising in geodetic networks. Originally developed to solve normal systems of equations, the method later morphed into a solver for positive definite systems
for some , through the works of Fox, Wilkinson [9], and Turing [16]. The factorization also provides a way to simplify other problems. As pointed out in [9], it can be used to transform generalized eigenvalue problems of the form
where is symmetric, is positive definite, and . Let be the Cholesky factorization of , and use the change of variable . We then have
In other words, we manage to turn a generalized eigenvalue problem into an eigenvalue problem corresponding to a symmetric matrix. While this is rarely used today as a direct method, sparse approximations of are used to precondition iterative methods like LOBPCG [15]. Lastly, the Cholesky factorization readily allows us to calculate the determinant of through
The ubiquity of the Cholesky transformation rests on a combination of computational efficiency, numerical reliability, and efficient implementations. For positive definite matrices, it provides a unique factorization at substantially lower computational cost than an orthogonalization-based method such as Householder QR. For a matrix of size , the Cholesky decomposition requires approximately floating-point operations, compared with approximately for Householder QR. For , these counts are approximately and , respectively. At a sustained computing capacity of 2 TFlops, these operation counts correspond to approximately seconds for Cholesky and four times longer for QR. Actual runtimes depend on the implementation and hardware, but the difference grows with matrix size and can be significant when the factorization is repeated within an outer-loop application. The appeal of the Cholesky transformation is not efficiency alone. When , its factorization is unique [2], and its floating-point computation is backward stable [1]. The semidefinite case () can admit infinitely many such factorizations. However, for a permutation matrix , the pivoted matrix has a unique Cholesky factorization [2], and the pivoted Cholesky transformation can also be shown to be backward stable [12]. These properties are supported by reliable LAPACK [4] implementations, which use blocked algorithms and BLAS-3 routines to compute the transformation efficiently; a brief summary is given in Table 1. Together, these three factors explain why the Cholesky method is so widely used.
| Routine | Description |
| xPOTRF | Dense positive-definite matrix; blocked algorithm |
| xPOTF2 | Dense positive-definite matrix; unblocked algorithm |
| xPSTRF | Positive-semidefinite matrix; complete pivoting |
| xPSTF2 | Positive-semidefinite matrix; unblocked complete pivoting |
Table 1. LAPACK Cholesky factorization routines, where denotes single-precision real, double-precision real, single-precision complex, and double-precision complex arithmetic, respectively. For a complete specification of these routines, see [4].
Previous work
Previous work. While pivoted Cholesky is an established method for factorizing positive semi-definite matrices; its implementation is more involved than the canonical Cholesky method. This can be attributed to the additional cost incurred for finding the next pivot; and the memory overhead for reordering the arrays during pivoting. To avoid this, it is common practice to modify the positive-semidefinite (PSD) matrix such that the canonical Cholesky algorithm can be employed while incurring some error due to the modification.
One common modification is diagonal loading. It entails shifting the spectrum of a PSD matrix by a factor such that is positive definite. This inexpensive modification is popular in spatial statistics (a.k.a adding a nugget), in non-convex optimization (a.k.a Levenberg-Marquardt stabilization), in inverse problems (a.k.a Tikhonov regularization) and in machine learning (a.k.a ridge regression). It is evident that the estimated Cholesky factor depends non-linearly on . Therefore, finding an optimal shift parameter usually requires the specification of additional optimality criterion; whose choice is not unique.
Another family of modifications is referred to as modified Cholesky methods. They originated in non-convex optimization where Newton and quasi-Newton methods required a positive definite approximation of the Hessian at a given iteration. Gill, Murray and Wright proposed strategies that entails finding a diagonal matrix such that is positive definite, well-conditioned and sufficiently close to . Schnabel and Eskow proposed another method that uses Gershgorin bounds. Cheng and Higham developed a different modification using a block factorization. A systematic catalogue of modified Cholesky methods can be found in []. Unlike diagonal loading, modified Cholesky methods find little use outside of optimization and numerical linear algebra.
Orthogonal to these modification approaches, there exists another class of methods that seek to eliminate the null space from a PSD matrix. These so-called low-rank methods approximate a matrix as , where is the rank of the approximation. The simplest way to do this is to truncate the eigendecomposition of . This is more expensive than the Cholesky factorization itself, so it is seldom used. On the other hand, Nyström-based approaches, such as the randomly pivoted Cholesky method, scale as and work extremely well when has a low-rank structure. Furthermore, this family of randomized methods is also stable for downstream applications involving approximations of different matrix functions of these PSD matrices.
Alternatively, one can mimic a pivoted Cholesky method through deflation. Recall that a canonical Cholesky algorithm breaks down when the pivot, say . In deflation, we ignore the update on this iteration; setting the corresponding column to zero. This method was primarily used to obtain an approximate Cholesky factor for the purpose of preconditioning linear systems arising from discretizations of PDEs. As noted in [], the decision of when to deflate and when not to remains less understood, therefore deflation remains an approximate Cholesky factorization method.
Lastly, Edelman and Holy recently introduced a new method for factoring semidefinite and indefinite matrices using Jordan algebras. This method has the same structure of a canonical Cholesky algorithm except they use the hemiplex number system. A hemiplex number is of the form where and are the basis elements. The number system has additional axioms as specified in []. In computing the Cholesky factorization of the following matrix:
one requires among other conditions that and . This is impossible when . On the other hand, the axioms of hemiplex numbers allow for this. Their implementations suggest that their method can be competitive with pivoted Cholesky and decompositions. However, a comprehensive benchmark on practical examples remains wanting.
Taken together, these approaches provide different ways to handle positive semidefinite matrices, either by modifying the matrix, constructing a low-rank approximation, handling vanishing pivots, or extending the underlying number system. This review has focused on approaches relevant to the factorization of dense PSD matrices, rather than providing an exhaustive account of sparse and scalable methods or their applications. For a general introduction to Cholesky factorization, its computation and numerical stability, we refer the reader to Higham (2009).
Contributions
This work introduces a new method for calculating the Cholesky factorization of positive-semi definite matrices without pivoting. Its main contributions are as follows:
We formulate Cholesky factorization as a variational problem; and derive dynamical systems whose stationary states provide the required optimality conditions. We derive analytical solutions to these dynamical systems and delineate how these solutions can be used to modify the canonical Cholesky algorithm and its blocked counterpart. We refer to the proposed modifications as finite-time Cholesky methods.
We analyze the accuracy of the finite-time Cholesky map and discuss its dependence on the evolution time (of the dynamical system) .
We demonstrate with synthetic and practical examples that our methods is competitive with (the blocked and unblocked versions of) the pivoted Cholesky methods.
The remainder of the paper is organized as follows. The finite-time Cholesky algorithm is derived in subsection 2.1 and subsection 2.2. Its convergence rates with respect to the evolution time is studied in subsection 2.3. Using synthetic matrices with different spectral shapes, the dependence of the accuracy of the method on is demonstrated in section 3. Lastly, we compare our method with pivoted Cholesky methods on different practical matrices in subsection 3.1.
Finite time Cholesky factorization
Let the space of positive-semi definite matrices be denoted by:
Similarly, the space of lower triangular matrices is denoted by:
Recall that the latter is a linear space whereas the former is a cone in . Any has a unique factorization where . This is referred to as the Cholesky factorization of . For convenience, we will denote this using a map:
where is a bijective map for all . On the other hand, when , the factorization is not unique and one usually considers an equivalence class of Cholesky factors:
Variational formulation
The Cholesky factorization of a given can be interpreted as a structured variational problem:
Here, is the Frobenius norm of a matrix. Denoting the matrices in block form such as:
where , , , and ; one can show that the cost function in (7) can be decoupled. That is:
This dependence of on can be further dropped by examining its factorization in terms of its Schur complement.
We will denote one of the Schur complements by . Since, and , we can show that which should be recursively computed by solving the variational problem . Hence,
The minimizer to this reduced functional can be obtained by solving the zeros of:
When and using the constraint on that , the minimizers are obtained by substitution.
Substituting back, one arrives at the familiar recursive formulation of the Cholesky factorization.
For positive definite matrices , this procedure for estimating is backwards stable. However, positive-semi-definite matrices require additional pivoting before chol can be used reliably.
Cholesky factorization as a gradient flow
Finite-time Cholesky factorization does not resort to pivoting. Instead, it solves the local minimization problem using its corresponding normalized gradient flow.
Here, is chosen appropriately (as we will specify later). Since and for and when , it is sensible to constrain the dynamics of along the direction of the residual. Henceforth, we assume that, there exists such that and . The corresponding reduced system of ODEs is given by:
To the best of our knowledge, there does not exist an analytical solution to this coupled ODE. As solving ODEs using numerical integrators for each iteration in a Cholesky decomposition function call is expensive, we will instead consider a surrogate ODE that has an analytical solution.
Its solution is given by:
A proof of this derivation is found in the Appendix. Using this, the finite-time Cholesky factorization of the matrix in (8) is given by:
Notice that this surrogate ODE has the same stationary points as the reduced ODE. The only caveat of deleting the feedback term from its vector field is that no longer holds. We can argue that this effect is not really necessary. For one, when , . Furthermore when , . Therefore, for computing the coefficients in the Cholesky decomposition, the surrogate ODE should suffice.
The issue of how the terminal time is chosen has to be taken up on a case-by-case basis. The initial condition on the other hand is simply chosen as .
The entire finite-time Cholesky factorization algorithm is specified in Algorithm 2.1.
A blocked implementation of the same algorithm is listed in Algorithm 2.2. As the two implementations are equivalent in infinite precision arithmetic, it suffices to analyze the properties of the former.
Algorithm 2.1 FT-Cholesky factorization
Require: Symmetric PSD matrix , finite horizon .
Ensure: Lower-triangular finite-time factor
Define
for do
end for
return
Algorithm 2.1 has a computational complexity of . In comparison to the canonical Cholesky method, the method requires evaluation of two additional scalar functions, namely and per iteration. These are standard functions in the GNU scientific library [10] and can be included in existing Cholesky implementations without adding much computational overhead. Algorithm 2.2 has the same computational complexity. However, it reorganizes Algorithm 2.1 to use BLAS-3 kernels [8]. Therefore, it utilizes the underlying hardware more efficiently, particular when is large.
We will now demonstrate these algorithms on two positive-semi-definite matrix systems, namely the Hilbert matrices (denoted by ) and the periodic finite-difference 1D-Laplacian matrices . They are defined as follows:
The former is (strictly positive definite but) notoriously ill-conditioned for large , and the latter satisfies . Furthermore, in finite precision arithmetic, the representations of these matrices can also have negative eigenvalues. Promptly, one would expect canonical Cholesky routines like xPOTF2 and xPOTRF to terminate prematurely. The finite time routines, on the other hand, return Cholesky factors that accurately reconstruct the matrices. This is shown in Table 2.
| Method | Hilbert matrix | Periodic Laplacian |
| FT-Cholesky, unblocked | ||
| FT-Cholesky, blocked | ||
| DPOTRF | — | — |
| DPOTF2 | — | — |
Table 2. Relative Frobenius reconstruction errors for the Hilbert matrix of order 14 and the periodic one-dimensional finite-difference negative Laplacian with 14 grid points on and , using Float64 arithmetic. FT-Cholesky uses and block size . The reconstruction error is defined as .
Algorithm 2.2 Block FT-Cholesky factorization
Require: Symmetric PSD matrix , finite horizon , block size .
Ensure: Lower-triangular finite-time factor
Define
for do
for do
end for
end for
return
Dependence on
Note that in Table 2, the time evolution time of the finite-time algorithms was chosen arbitrarily as . The dependence of the reconstruction accuracy on is not immediately obvious. This is studied next. We will first consider positive definite matrices.
Theorem 2.1 (Positive definite matrices). Let with , and let denote its canonical Cholesky factor. For , let . Then, is well defined for every . Moreover, there exist constants depending on , such that
Proof. We will first establish arguments for the well-defined-ness of the Cholesky map. This is followed by a slight digression that bounds the error induced by the finite-time evolution. Lastly, we will establish the exponential rate of convergence of the finite time Cholesky map to the canonical Cholesky map using induction. These arguments are detailed below.
Step 1: Well-definedness. Recall that the finite time Cholesky map is given by:
To prove well-defined-ness, it suffices to show that the Schur complement: for all . To prove this, consider the difference between the finite-time Schur complement and its canonical counterpart.
Since, , it follows that if , then . To show this, regroup the activation functions as:
Since, by the construction of the FT-Cholesky algorithm, it follows that . Recalling that for :
we can conclude that . Therefore, is well defined for all .
Step 2: Bounds on scalar errors. Bounds for the absolute difference between the scalar finite-time and canonical Cholesky coefficients are derived below. Note that:
Since, ; . It follows that:
Therefore, . Similarly,
If , then ; it follows that:
As a result, .
Step 3: Convergence rate. As specified in the proof sketch, we will derive convergence rates using induction. We will deduce the hypothesis for the convergence rates by examining two base cases, namely . For a matrix given matrix , we denote its canonical and finite time Cholesky factors by and respectively. They are given by:
Denoting the Schur complements by , it follows that:
We may bound the last term as follows:
Using , and the previous scalar error bound, it follows that:
Using this, we can show that
Similarly, let be symmetric positive definite, and let and denote its canonical and finite-time Cholesky factors, respectively. Define the exact and finite-time Schur-complement entries by
Then, the corresponding Cholesky factors are given by:
Proceeding in a similar fashion as before, we can show that:
Note that: , . This constitutes the base case for the induction argument. Assume that for analogously defined positive definite matrix and its Cholesky factors and for some , the following is true:
Denoting and its finite time Cholesky factor by:
the error in the factorization is given by:
Since the is Lipschitz continuous say with constant , it follows that:
We will first bound the first term to the right using the scalar bounds derived for .
From step 1, we know that , . Using the induction hypothesis, it follows that:
Here, is the minimum of the square of the diagonal entries of . This quantity can in-turn be related to where . Firstly, . Therefore, for . Additionally, . Consequently,
Therefore, for some constants :
This completes the inductive argument. Hence the result is proven.
This convergence rate is verified numerically for a Matern-5/2 matrix in Figure 1. We will now turn our attention to positive semi-definite matrices. Since, Cholesky factorization for such matrices over is not unique, we will settle for the modest goal of bounding the growth of the reconstruction error with respect to .

Figure 1. Finite-time Cholesky errors for a Matérn-5/2 covariance matrix generated on an grid, with length scale and nugget . The exponential envelopes are and , with , , and . The envelope constants were calibrated over .
Theorem 2.2 (Positive semi-definite matrices). Let . For , let denote its finite-time Cholesky factorization. Then, is well-defined for all . Moreover, there exists a constant such that for some that depends on , such that:
Proof. The proof borrows several elements from and has the same structure as Theorem 2.1. Its arguments are detailed below.
Step 1: Well-definedness. Recall that the finite-time Cholesky map is well-defined if:
Since, , it reduces to verifying . Here, there are two cases. When , we know from the proof of Theorem 2.1 that . On the other hand, when and . Therefore, which is positive semi-definite by definition.
Step 2: Bounds on scalar errors. The activation functions have different asymptotic behavior as . We can show that:
Using this, we can bound the scalar error functions appearing in Step 3. Firstly, :
Since, by construction; the denominator of this expression , therefore:
We are also interested in the case .
Secondly, it will be of interest to obtain the bounds for . Since, , it follows that . In other words, .
Step 3: Convergence rate. The reconstruction error rate of will be obtained by induction. We use the definition in (21). Firstly, we observe that for ,
Furthermore when ,
Here, we slightly modify the algorithm and maintain a running update of . In this case is . Since , it follows that:
Similarly, when approaches zero:
Assuming that the modified is used in both evaluations of the activation function , it follows that:
Similarly, for and its corresponding Cholesky factor , we can use the definitions in Proof 1, proceed in an analogous fashion and show that:
Here, . The last term is dependent on and can be bounded using the following:
Therefore, . These two examples constitute the base cases for the induction hypothesis. For , we hypothesize that:
Then, the proposition can be proven for as follows. We first define:
Here, and . Then,
Denoting by and choosing note that:
Lastly, it suffices to show that is bounded.
To this end, we use the fact that to show that
Furthermore, defining by we can show that
Taken together, we have shown that . Using this and the induction hypothesis .
This rate is verified for a Matern-covariance matrix with controlled null-space in Figure 2. Hence, we have shown through Theorem 2.1 and Theorem 2.2 that for positive semi-definite matrices the accuracy of the finite-time Cholesky algorithm increases monotonously in the evolution parameter so long as it is well-defined.

Figure 2. Relative reconstruction error for a Matérn-5/2 covariance matrix of rank 54. We use the first 54 sites of an grid on , length scale , and a nugget of before duplicating ten row–column pairs. Both methods follow the guide, with , before reaching the Float64 rounding floor.
Numerical experiments
We will now use the finite-time Cholesky algorithm and its blocked implementation to factor a collection of synthetic matrices. These matrices are randomly generated and are designed to have different conditioning and spectral profiles. They are constructed as follows. Let be a random matrix whose elements . The column space corresponding to is orthogonalized using a QR decomposition, such that . The synthetic matrix is defined as:
Here, is a diagonal matrix. Its smallest and largest non-zero elements say specify the condition number . Furthermore, where . The distribution of these elements on points on this interval, in turn, specifies the spectral shape of . The spectral distributions considered in this work are specified in Table 3.
| Spectrum | Eigenvalue | Index range |
| Exponential | ||
| Polynomial | ||
| Log-uniform | ||
| Uniform | ||
| One-cluster | ||
| Two-cluster | ||
Table 3. Spectral constructions . Here , , and , with even . The values are sorted independent samples, with endpoints reset to and .
Our experiment entails estimating the finite-time Cholesky factorization, say , of a given matrix and measuring the Frobenius norm relative residual:
We will consider one set of matrices from each of the groups in Table 3. Each of the matrices in a group are specified the condition numbers . The results of this experiments for one realization of these synthetic matrices is furnished in Figure 3.

Figure 3. FT-Cholesky reconstruction residuals for positive definite matrices. Left: unblocked FT-Cholesky; right: blocked FT-Cholesky with block size . The relative Frobenius residual is plotted against the target condition number. Each point represents one realization.
Subsequently, we will modify the construction of these synthetic matrices to make them semidefinite. This is realized by randomly assigning certain eigenvalues in the spectrum to zero. We refer to the number of zero eigenvalues of a given matrix as its nullity. The reconstruction errors for nullities 1, 2, 5, 10 for the same synthetic matrices are specified in Figure 4, Figure 5, Figure 6 and Figure 7 respectively.

Figure 4. FT-Cholesky reconstruction residuals for positive semidefinite matrices with nullity one. Left: unblocked FT-Cholesky; right: blocked FT-Cholesky with block size . The relative Frobenius residual is plotted against the target condition number. Each point represents one realization.

Figure 5. FT-Cholesky reconstruction residuals for positive semidefinite matrices with nullity two. Left: unblocked FT-Cholesky; right: blocked FT-Cholesky with block size . The relative Frobenius residual is plotted against the target condition number. Each point represents one realization.

Figure 6. FT-Cholesky reconstruction residuals for positive semidefinite matrices with nullity five. Left: unblocked FT-Cholesky; right: blocked FT-Cholesky with block size . The relative Frobenius residual is plotted against the target condition number. Each point represents one realization.

Figure 7. FT-Cholesky reconstruction residuals for positive semidefinite matrices with nullity ten. Left: unblocked FT-Cholesky; right: blocked FT-Cholesky with block size . The relative Frobenius residual is plotted against the target condition number. Each point represents one realization.
Observe that the symmetric positive definite set of experiments produces reconstruction errors that are close to the numerical floor of Float64 representations (See Figure 3). On the other hand, matrices with nullities have relatively worse reconstruction errors. The issue is particularly dire for clustered spectral shapes. This can be attributed to the large evolution times (here ) used in these experiments. A modified algorithm that finds the Pareto front over for which the reconstruction errors are optimal can ameliorate some of these reconstruction issues.
Furthermore, some of these matrices are numerically indefinite in Float64 representations. This will consequently spawn negative pivots in the FT-Cholesky algorithm – a regime where the FT-Cholesky map is not well-posed. Nonetheless, when the negative pivots are in a sufficiently small ball around zero, the FT-Cholesky algorithm works without introducing spurious compounding errors.
Applications
In the rest of this section, we will test the FT-Cholesky algorithms on matrices that arise in different applications. Particular attention is given to a litany of kernel matrices and correspondingly to finite-difference matrices of linear elliptic differential operators. We are again interested in the relative Frobenius residual of the factorization. Comparisons are made with xPOTRF, xPSTRF and its blocked implementations.
Kernel matrices
Kernel estimation, RBF interpolation, and Gaussian process regression are related and, under some assumptions, equivalent methods for estimating a function from noisy observations. Let and denote the input and output spaces, respectively. A target function is observed on certain collocation points , denoted by where denotes the appropriate pointwise i.i.d. Gaussian noise with variance . The kernel estimation problem tries to approximate using an estimator:
Here, is a positive-semi-definite function known as the kernel function. Under certain assumptions, these kernel functions are often Green’s functions of certain linear elliptic differential operators. Common examples of such kernel functions include the Matern kernel, the Wendland kernel, the Gaussian kernel and the like. For a comprehensive review on kernel functions, see [Wendland]. To estimate , one solves the following linear least squares problem:
Furthermore, the average incurred in estimating with finite information is given by its power function (it’s also the posterior covariance in Gaussian process regression). For , it is defined as:
Both these quantities – can be easily estimated once the Cholesky factor of is estimated. However, in applications where is relatively small, the canonical Cholesky implementation terminates prematurely. Therefore, we will carry out this factorization using our finite-time algorithms.
The reconstruction errors of kernel matrices due to Matern, integrated-Wiener process and Wendland priors using the finite-time Cholesky algorithm and its blocked version are furnished in Table 4 and Table 5, respectively. These matrices are constructed using randomly sampled points on an interval of . The nullities of these matrices are controlled by overlapping points in the collocation set. While this appears contrived, uniform random sampling of collocation points has similar tendencies.
| Kernel | Nullity | Finite-time error | DPOTF2 | Pivoted rank | Pivoted error |
| Matérn-5/2 | 1 | Pass | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 | |||
| IWP-1 | 1 | Pass | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 | |||
| Wendland | 1 | Fail | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 |
Table 4. Reconstruction errors for singular kernel matrices generated by exact repeated points. All matrices have size . Revised unblocked FT-Cholesky uses . The error is , accounting for permutation for pivoted factors. Standard and pivoted Cholesky use DPOTF2 and DPSTF2; pivoted rank uses LAPACK’s default tolerance.
Table 5: Reconstruction errors for singular kernel matrices generated by exact repeated points. All matrices have size . Revised blocked FT-Cholesky uses and block size . The error is , accounting for permutation for pivoted factors. Standard and pivoted Cholesky use DPOTRF and DPSTRF; pivoted rank uses LAPACK’s default tolerance.
| Kernel | Nullity | Finite-time error | DPOTRF | Pivoted rank | Pivoted error |
| Matérn-5/2 | 1 | Pass | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 | |||
| IWP-1 | 1 | Pass | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 | |||
| Wendland | 1 | Fail | 499 | ||
| 2 | Fail | 498 | |||
| 5 | Fail | 495 | |||
| 10 | Fail | 490 |
Table 5. Reconstruction errors for singular kernel matrices generated by exact repeated points.
Note that both of our methods are competitive with pivoted routines while preserving the memory access patterns of the canonical Cholesky method. While pivoted routines have the advantage of being rank-revealing, it is seldom interesting in practice to estimate the rank of these Gram matrices.
Remark 3.1. Approximation bounds (along with empirical investigations) on the estimating will be pursued in a subsequent work.
Hermite kernel matrices
A natural generalization of kernel estimation involves approximation, where is smooth, i.e. . Furthermore, we assume that, in addition to function values on , we also measure certain derivatives of , namely at the same points. We denote the measurement sets by
where is again pointwise i.i.d Gaussian noise with variances . The estimator is specified using the following ansatz:
Here, denotes the th derivative operator with respect to the first argument of the kernel , and denotes the coefficients to be estimated. To estimate these parameters, we consider the derivatives of this ansatz:
Taken together, this estimation procedure with derivative information induces a Gram matrix, which we denote by:
Here, each block say . Furthermore, each block is not positive semi-definite. On the other hand, . We will refer to such structures as Hermite-kernel matrices, eponymous with the Hermite-Birkhoff interpolation problem. An immediate application of this is in solving partial differential equations using collocation. For instance, when solving the Poisson equation:
where , one assembles the following Hermite-kernel matrix:
Depending on the smoothness of the kernel, these matrices can be highly ill-conditioned. In the following, we will compare the reconstruction accuracies corresponding to different integer Matern kernels. To control the null space of these matrices, we deliberately introduce duplicate points when the collocation points are sampled. The relative reconstruction accuracies of the unblocked and blocked finite-time Cholesky implementations are furnished in Table 6 and Table 9, respectively.
Table 6: Reconstruction errors for mixed first-order Poisson Hermite Gram matrices with exact repeated operator observations. All matrices have size . Revised unblocked FT-Cholesky uses . The error is , accounting for permutation for pivoted factors. Standard and pivoted Cholesky use DPOTF2 and DPSTF2; pivoted rank uses LAPACK’s default tolerance.
| Kernel | Repeats | Finite-time error | DPOTF2 | Pivoted rank | Pivoted error |
| Matérn-3/2 | 0 | Pass | 1000 | ||
| Matérn-3/2 | 1 | Fail | 999 | ||
| Matérn-3/2 | 2 | Fail | 998 | ||
| Matérn-3/2 | 5 | Fail | 995 | ||
| Matérn-3/2 | 10 | Fail | 990 | ||
| Matérn-5/2 | 0 | Pass | 1000 | ||
| Matérn-5/2 | 1 | Fail | 999 | ||
| Matérn-5/2 | 2 | Fail | 998 | ||
| Matérn-5/2 | 5 | Fail | 995 | ||
| Matérn-5/2 | 10 | Fail | 990 | ||
| Matérn-7/2 | 0 | Pass | 1000 | ||
| Matérn-7/2 | 1 | Fail | 999 | ||
| Matérn-7/2 | 2 | Pass | 998 | ||
| Matérn-7/2 | 5 | Fail | 995 | ||
| Matérn-7/2 | 10 | Fail | 990 |
Table 6.
| Operator | Boundary | Power | FT error | DPOTRF | Pivoted rank | Pivoted error |
| Polyharmonic | Neumann | 1 | Fail | 499 | ||
| 2 | Fail | 499 | ||||
| 3 | Pass | 499 | ||||
| Polyharmonic | Periodic | 1 | Fail | 499 | ||
| 2 | Fail | 499 | ||||
| 3 | Pass | 499 | ||||
| Matérn | Neumann | 1 | Fail | 499 | ||
| 2 | Fail | 499 | ||||
| 3 | Fail | 499 | ||||
| Matérn | Periodic | 1 | Fail | 499 | ||
| 2 | Fail | 499 | ||||
| 3 | Fail | 499 |
Table 9. Relative Frobenius reconstruction errors for 1D elliptic difference operators, , , normalized individually by their infinity norms. The blocked FT-Cholesky method uses and block size . Polyharmonic operators are ; Matérn operators are , where . The Neumann realization uses symmetric zero-flux differences. For Matérn cases, subtract after normalization, with , , creating slightly indefinite stress tests. Comparisons use DPOTRF and DPSTRF, with default pivot tolerance.
We observe that both the unblocked and blocked implementations successfully complete factorization for all the considered kernel matrices. Furthermore, it is competitive with LAPACK’s pivoted Cholesky implementations. The un-pivoted implementations on the other hand, terminate early upon encountering a zero pivot.
Elliptic difference operators
Lastly, we consider finite-difference matrices arising from discretizing second order linear-elliptic differential operators. In free space, these operators are closely related to the positive-definite kernels considered in the previous sections. We consider, for and and :
Table 7: Reconstruction errors for mixed first-order Poisson Hermite Gram matrices with exact repeated operator observations. All matrices have size . Revised blocked FT-Cholesky uses and block size . The error is , accounting for permutation for pivoted factors. Standard and pivoted Cholesky use DPOTRF and DPSTRF; pivoted rank uses LAPACK’s default tolerance.
| Kernel | Repeats | Finite-time error | DPOTRF | Pivoted rank | Pivoted error |
| Matérn-3/2 | 0 | Pass | 1000 | ||
| Matérn-3/2 | 1 | Fail | 999 | ||
| Matérn-3/2 | 2 | Fail | 998 | ||
| Matérn-3/2 | 5 | Fail | 995 | ||
| Matérn-3/2 | 10 | Fail | 990 | ||
| Matérn-5/2 | 0 | Pass | 1000 | ||
| Matérn-5/2 | 1 | Pass | 999 | ||
| Matérn-5/2 | 2 | Fail | 998 | ||
| Matérn-5/2 | 5 | Fail | 995 | ||
| Matérn-5/2 | 10 | Fail | 990 | ||
| Matérn-7/2 | 0 | Pass | 1000 | ||
| Matérn-7/2 | 1 | Fail | 999 | ||
| Matérn-7/2 | 2 | Pass | 998 | ||
| Matérn-7/2 | 5 | Fail | 995 | ||
| Matérn-7/2 | 10 | Fail | 990 |
Table 7.
They are referred to as the polyharmonic and Matern operators, respectively. In addition to mathematical physics, these operators play an important role in statistical estimation using Gaussian random fields. A recurring computational kernel in these applications is the estimation of the Cholesky factors of their corresponding difference matrices.
However, discretizing these free-space PDEs requires us to make some assumptions about the boundary conditions of these operators [Wolhmuth]. Certain choices such as periodic or Neumann boundaries in certain domains can render the finite-difference matrix singular and in the case of certain higher-order operators (larger and ) numerically indefinite. We will demonstrate our method in this regime.
A second-order three-point stencil in one dimension is used to discretize the Laplacian in subject to periodic and Neumann boundary conditions. The relative reconstruction accuracies of matrices corresponding to different (correspondingly ) using the finite-time methods and the pivoted Cholesky methods are compared in Table 8 and Table 9.
| Operator | Boundary | Power | FT error | DPOTF2 | Pivoted rank | Pivoted error |
| Polyharmonic | Neumann | 1 | Fail | 499 | ||
| Polyharmonic | Neumann | 2 | Pass | 499 | ||
| Polyharmonic | Neumann | 3 | Fail | 500 | ||
| Polyharmonic | Periodic | 1 | Fail | 499 | ||
| Polyharmonic | Periodic | 2 | Pass | 499 | ||
| Polyharmonic | Periodic | 3 | Fail | 500 | ||
| Matérn | Neumann | 1 | Fail | 499 | ||
| Matérn | Neumann | 2 | Fail | 499 | ||
| Matérn | Neumann | 3 | Fail | 499 | ||
| Matérn | Periodic | 1 | Fail | 499 | ||
| Matérn | Periodic | 2 | Fail | 499 | ||
| Matérn | Periodic | 3 | Fail | 499 |
Table 8. Relative Frobenius reconstruction errors for 1D elliptic difference operators, , , normalized individually by their infinity norms. The unblocked FT-Cholesky method uses . Polyharmonic operators are ; Matérn operators are , where . The Neumann realization uses symmetric zero-flux differences. For Matérn cases, subtract after normalization, with , , creating slightly indefinite stress tests. Comparisons use DPOTF2 and DPSTF2, with default pivot tolerance.
Taken together, these three sets of experiments strongly suggest that our finite-time method is a viable alternative to pivoted Cholesky implementations. A comprehensive HPC benchmark in the spirit of [Higham] to compare the latencies incurred due to pivoting and the associated gains made by the finite-time methods on modern computing architectures is an interesting direction for future work.
Discussion
This paper introduced the idea of finite-time regularization for factorizing positive semi-definite matrices. Canonical Cholesky factorization maps are not well defined in this regime. Therefore, the standard practice is to permute such matrices before applying this map. However, permutation incurs additional overhead, particularly for large matrices. Therefore, it is desirable to develop methods that don’t resort to pivoting. To this end, we propose finite-time Cholesky factorization.
The central idea is to design scalar dynamical systems whose finite-time evolution until provides a modified Cholesky map that is well-defined in the semi-definite case. The ambiguity of how to choose is clarified by deriving convergence rates for with respect to the evolution time . Additionally, we have demonstrated with several numerical examples that finite-time methods are competitive with pivoted Cholesky methods. This provides an initial demonstration that the dynamical system interpretation provides a more stable Cholesky factorization method. Naturally, several question remain open.
Firstly, to facilitate a concise presentation, we focused on the properties of the proposed Cholesky map in infinite precision. Furthermore, all numerical experiments were carried out in dense double-precision floating-point representations of matrices. This leaves behind the obvious problem of establishing backwards stability of the finite-time Cholesky algorithm for a given floating-point representation. Naturally, one can also study how this algorithm behaves in mixed precision [13]. Understanding these questions will help us design more robust Cholesky methods in the future.
From a practical standpoint, when the matrices are sparse (as they often are), it is not well understood whether the finite-time Cholesky map will lower the number of pivots necessary to adequately factor that matrix. Furthermore, in cases where matrices have a low-rank structure, the finite-time Cholesky map can improve the robustness of Nyström methods [11] like RP-Cholesky [5], particularly when matrix representations could numerically lose positive-semi-definiteness. Empirical and theoretical investigations surrounding this can be consequential for several related problems in machine learning [14, 7, 6].
Lastly, establishing how the finite-time error and the numerical round-off errors induced during the computation of the Cholesky map; affect downstream applications [2] such as those where we solve linear equations, estimate the determinant of matrices, and similar matrix functions remains an active direction for future work.
Acknowledgments. RM was partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation.
Use of AI. The correctness of grammar in the text was verified with Grammarly. The numerical experiments were carried out initially by RM and ChatGPT Sol + Codex was used to wrap the initial research code into a working Julia library. The authors verified the correctness of the code in this library. The proofs for Theorems 2.1, 2.2 were originally derived by RM; ChatGPT Sol was used to simplify expressions, derive limits and polish the structure of the proof.
References
References
- [1]8. The Cholesky Decomposition, pp. 8.1–8.15, https://doi.org/10.1137/1.9781611971811.ch8, https://epubs.siam.org/doi/abs/10.1137/1.9781611971811.ch8, https://arxiv.org/abs/https://epubs.siam.org/doi/pdf/10.1137/1.9781611971811.ch8.
- [2]Cholesky Factorization, pp. 195–212, https://doi.org/10.1137/1.9780898718027.ch10, https://epubs.siam.org/doi/abs/10.1137/1.9780898718027.ch10, https://arxiv.org/abs/https://epubs.siam.org/doi/pdf/10.1137/1.9780898718027.ch10.
- [3]Note sur une méthode de résolution des équations normales provenant de l’application de la méthode des moindres carrés a un système d’équations linéaires en nombre inférieur a celui des inconnues. — application de la méthode à la résolution d’un système défini d’équations linéaires, Bulletin géodésique, 2 (1924), pp. 67–77, https://doi.org/10.1007/BF03031308, https://doi.org/10.1007/BF03031308.
- [4]E. Anderson, Z. Bai, C. Bischof, J. Blackford, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, and D. Sorensen, LAPACK Users’ Guide, Society for Industrial and Applied Mathematics, Philadelphia, PA, 3 ed., 1999, https://www.netlib.org/lapack/lug/.DOI
- [5]Y. Chen, E. N. Epperly, J. A. Tropp, and R. J. Webber, Randomly pivoted cholesky: Practical approximation of a kernel matrix with few entry evaluations, Communications on Pure and Applied Mathematics, 78 (2025), pp. 995–1041.arxiv.org/abs/2207.06503
- [6]Y. Chen, H. Owhadi, and F. Schäfer, Sparse cholesky factorization for solving nonlinear pdes via gaussian processes, Mathematics of Computation, 94 (2025), pp. 1235–1280.arxiv.org/abs/2304.01294
- [7]M. Díaz, E. N. Epperly, Z. Frangella, J. A. Tropp, and R. J. Webber, Robust, randomized preconditioning for kernel ridge regression, Advances in Computational Mathematics, 52 (2026), p. 90.arxiv.org/abs/2304.12465
- [8]J. J. Dongarra, J. Du Croz, S. Hammarling, and I. S. Duff, A set of Level 3 Basic Linear Algebra Subprograms, ACM Transactions on Mathematical Software, 16 (1990), pp. 1–17, https://doi.org/10.1145/77626.79170.
- [9]L. Fox, H. D. Huskey, and J. H. Wilkinson, Notes on the solution of algebraic linear simultaneous equations, The Quarterly Journal of Mechanics and Applied Mathematics, 1 (1948), pp. 149–173, https://doi.org/10.1093/qjmam/1.1.149, https://doi.org/10.1093/qjmam/1.1.149, https://arxiv.org/abs/https://academic.oup.com/qjmam/article-pdf/1/1/149/5322943/1-1-149.pdf.
- [10]M. Galassi et al., GNU Scientific Library Reference Manual, Network Theory Ltd., 3 ed., 2009, https://www.gnu.org/software/gsl/.
- [11]A. Gittens and M. W. Mahoney, Revisiting the nystrom method for improved large-scale machine learning, 2013, https://arxiv.org/abs/1303.1849, https://arxiv.org/abs/1303.1849.
- [12]N. J. Higham, Analysis of the cholesky decomposition of a semi-definite matrix, in Reliable Numerical Computation, M. G. Cox and S. Hammarling, eds., Oxford University Press, 09 1990, https://doi.org/10.1093/oso/9780198535645.003.0010, https://doi.org/10.1093/oso/9780198535645.003.0010, https://arxiv.org/abs/https://academic.oup.com/book/0/chapter/422058562/chapter-pdf/52393608/isbn-9780198535645-book-part-10.pdf.
- [13]N. J. Higham and T. Mary, Mixed precision algorithms in numerical linear algebra, Acta Numerica, 31 (2022), p. 347–414, https://doi.org/10.1017/S0962492922000022.
- [14]Y. Jalali, J. F. O. Ramirez, A. Hsu, B. Hosseini, and H. Owhadi, Data-efficient kernel methods for learning differential equations and their solution operators: Algorithms and error analysis, arXiv preprint arXiv:2503.01036, (2025).
- [15]D. Kressner, Y. Ma, and M. Shao, A mixed precision lobpcg algorithm, Numerical Algorithms, 94 (2023), pp. 1653–1671, https://doi.org/10.1007/s11075-023-01550-9, https://doi.org/10.1007/s11075-023-01550-9.
- [16]A. M. Turing, Rounding-off errors in matrix processes, The Quarterly Journal of Mechanics and Applied Mathematics, 1 (1948), pp. 287–308, https://doi.org/10.1093/qjmam/1.1.287, https://doi.org/10.1093/qjmam/1.1.287, https://arxiv.org/abs/https://academic.oup.com/qjmam/article-pdf/1/1/287/5323145/1-1-287.pdf.