Low-rank updates and divide-and-conquer methods for quadratic matrix equations
Daniel Kressner, Patrick K\"urschner, Stefano Massei

TL;DR
This paper introduces a fast low-rank update technique and a divide-and-conquer method for solving large-scale quadratic matrix equations, especially those with hierarchical low-rank structured coefficients, improving efficiency over iterative schemes.
Contribution
It presents a novel low-rank update approach and a divide-and-conquer algorithm tailored for quadratic matrix equations with hierarchical low-rank structures, extending previous linear matrix methods.
Findings
The proposed methods outperform iterative schemes in numerical experiments.
The divide-and-conquer approach efficiently handles structured large-scale equations.
Low-rank updates enable quick adjustments to solutions under coefficient modifications.
Abstract
In this work, we consider two types of large-scale quadratic matrix equations: Continuous-time algebraic Riccati equations, which play a central role in optimal and robust control, and unilateral quadratic matrix equations, which arise from stochastic processes on 2D lattices and vibrating systems. We propose a simple and fast way to update the solution to such matrix equations under low-rank modifications of the coefficients. Based on this procedure, we develop a divide-and-conquer method for quadratic matrix equations with coefficients that feature a specific type of hierarchical low-rank structure, which includes banded matrices. This generalizes earlier work on linear matrix equations. Numerical experiments indicate the advantages of our newly proposed method versus iterative schemes combined with hierarchical low-rank arithmetic.
| Algorithm 4 | SDA | |||||
|---|---|---|---|---|---|---|
| HODLR rank | HODLR rank | |||||
| Algorithm 4 | SDA | |||||
|---|---|---|---|---|---|---|
| HODLR rank | HODLR rank | |||||
| Algorithm 4 | |||
|---|---|---|---|
| HODLR rank | |||
| Algorithm 6 | CR | |||||
|---|---|---|---|---|---|---|
| HODLR rank | HODLR rank | |||||
| Algorithm 6 | CR | |||||
|---|---|---|---|---|---|---|
| HODLR rank | HODLR rank | |||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Low-rank updates and divide-and-conquer methods for quadratic matrix equations
Daniel Kressner EPF Lausanne, Switzerland, [email protected]
Patrick Kürschner KU Leuven, Electrical Engineering (ESAT), Kulak Kortrijk Campus, Belgium, [email protected]
Stefano Massei EPF Lausanne, Switzerland, [email protected]
Abstract
In this work, we consider two types of large-scale quadratic matrix equations: Continuous-time algebraic Riccati equations, which play a central role in optimal and robust control, and unilateral quadratic matrix equations, which arise from stochastic processes on 2D lattices and vibrating systems. We propose a simple and fast way to update the solution to such matrix equations under low-rank modifications of the coefficients. Based on this procedure, we develop a divide-and-conquer method for quadratic matrix equations with coefficients that feature a specific type of hierarchical low-rank structure, which includes banded matrices. This generalizes earlier work on linear matrix equations. Numerical experiments indicate the advantages of our newly proposed method versus iterative schemes combined with hierarchical low-rank arithmetic.
1 Introduction
This paper is concerned with numerical algorithms for treating two types of quadratic matrix equations with large-scale, data-sparse coefficients.
Type 1: CARE.
A continuous-time algebraic Riccati equation (CARE) takes the form
[TABLE]
where are real matrices, such that is invertible and are symmetric positive semi-definite. Motivated by its central role in robust and optimal control [42, 31, 44, 35, 8], this class of equations has been widely studied in the literature; see, e.g., [15, 11, 6]. A solution to (1) is called stabilizing if the so called closed-loop matrix is stable, that is, all its eigenvalues are contained in the open left half plane. Mild conditions on the coefficients (see, e.g., [15, Sec. 2.2.2]) ensure the existence, uniqueness, and symmetric positive semi-definiteness of such a stabilizing solution .
We consider the case when is large and has low rank, that is, for some matrix with . This is a common assumption in linear-quadratic optimal control problems, where corresponds to the number of inputs [10, 11]. However, we do not impose low rank on , which allows for having a large number of outputs in control problems, e.g., when observing the state directly. To simplify the exposition, we will focus the discussion mostly on the case ; the extension to general invertible will be explained in Section 3.2.1.
For , the equation (1) becomes linear and is called Lyapunov equation. A low-rank updating procedure for such linear matrix equations has been proposed recently in [30]. In this work, we extend this procedure to CARE. More specifically, assuming that satisfies a reference CARE
[TABLE]
we aim at computing a correction such that solves the modified CARE
[TABLE]
with
[TABLE]
Subtracting (2) from (3) yields
[TABLE]
The modified constant term satisfies
[TABLE]
where denotes the rank of a matrix. Hence, independently of the rank of , the constant term of the CARE (4) is guaranteed to have low rank. Note that most algorithms for large-scale Riccati equations [10, 11, 47, 46, 7] assume the constant term to be of low rank which, in turn, may render them unsuitable for solving (3). In contrast, the formulation (4) is well suited for such methods, returning an approximation of in the form of a symmetric low-rank factorization.
Type 2: UQME.
A unilateral quadratic matrix equation (UQME) takes the form
[TABLE]
with . The spectrum of a solution to (5) corresponds to a subset of the eigenvalues of the matrix polynomial
[TABLE]
Instances of equation (5) arise in overdamped systems in structural mechanics [24] and are at the core of the matrix analytic method for quasi-birth–death (QBD) stochastic processes [13].
A typical situation in applications is that the eigenvalues of are separated by the unit circle into two subsets of cardinality :
[TABLE]
and it is of interest to compute the minimal solution of (5), that is, the solution associated with . Note that some of the eigenvalues are allowed to be infinite.
(7) implies that the matrix is the only power bounded solution of (5); this uniquely identify the matrix-geometric property [13] of certain QBD processes. (7) also guarantees the quadratic convergence of the cyclic reduction algorithm for computing [18, Theorem 9]. The minimal solution can be constructed as if the matrix containing the eigenvectors associated with is invertible [29]. This property is usually met in practice and in the QBD setting it can be ensured via the probabilistic interpretation of the minimal solution [34, Section 6.2].
We assume that the minimal solution exists and that (7) holds for a reference equation
[TABLE]
as well as for the modified equation
[TABLE]
where and are given low-rank matrices.
Denoting and subtracting (8) from (9) yields the following equation for the correction :
[TABLE]
where has rank bounded by . Note that equation (10) is not a UQME. Nevertheless, as will be seen in Section 2, there is still a correspondence between the solutions of (10) and an appropriately chosen eigenvalue problem. Similarly as for CARE, the low rank of will allow us to devise an efficient numerical method for (10).
Quadratic matrix equations with hierarchical low-rank structure.
In the second part of the paper we focus on quadratic equations with coefficients that feature hierarchically low-rank structure. More specifically, the coefficients of a CARE (1) or a UQME (5) are assumed to be hierarchically off-diagonal low-rank (HODLR) matrices[2, 27]. This framework aligns well with the low-rank updates discussed above, because HODLR matrices are block diagonalized by a low-rank perturbation and, in turn, the corresponding reference equations (2) and (8) decouple into two equations of smaller size. Applying this idea recursively results in a divide-and-conquer method for solving UQMEs with HODLR coefficients and CAREs with a low-rank quadratic term and all other coefficients in the HODLR format.
Existing fast algorithms that address such (and more general) scenarios are based on combining a matrix iteration with fast arithmetic in hierarchical low-rank format. For CAREs, a combination of the sign function iteration with hierarchical matrices has been proposed in [3, 23]. For UQMEs, a combination based on cyclic reduction has been proposed in [16, 17]. As pointed out in [30], a disadvantage of these strategies is that they exploit the structure only indirectly and rely on repeated recompression during the iteration, which may constitute a computational bottleneck.
Outline.
The rest of this paper is organized as follows. In Section 2, we study the correction equations (4) and (10), with a particular focus on providing intuition why one can expect their solutions to admit good low-rank approximations. Section 3 is concerned with numerical methods for obtaining such low-rank approximations. While a variety of large-scale solution methods have been recently developed for (4), the equation (10) is non-standard and requires the development of a novel large-scale solver, which may be of independent interest. Section 4 utilizes these solvers to derive divide-and-conquer methods for CARE and UQME featuring HODLR matrix coefficients. Finally, Section 5 highlights several applications of these divide-and-conquer methods and provides numerical evidence of their effectiveness.
2 Analysis of the correction equations
The purpose of this section is to study properties of the correction matrix , which satisfies one of the two correction equations, (4) or (10).
2.1 Existence and low-rank approximability
A necessary requirement of most solvers for large-scale matrix equations to perform well is that the solution admits good low-rank approximations. This property can sometimes be verified a priori by showing that the singular values exhibit a strong decay. In the following we first recall such results for linear matrix equations and then use them to shed some insight on the low-rank approximability of .
Singular value decay for linear matrix equations
Let us consider the so called Sylvester equation
[TABLE]
with the coefficients such that the spectra of and are disjoint, and has rank . Moreover, let denotes the set of rational functions with numerator and denominator degrees at most .
In [5], it is shown that for every there exists a matrix of rank at most such that , provided that the right-hand side is well defined. Using that the th singular value, denoted by , governs the -norm error of the best approximation by a matrix of rank at most , one obtains
[TABLE]
Combined with norm estimates for rational matrix functions, this leads to the following theorem.
Theorem 2.1** (Theorem 2.1 in [5]).**
Consider the Sylvester equation , with of rank , and let and be disjoint compact sets in the complex plane.
If contain the numerical ranges of and , respectively, then
[TABLE]
where if are normal matrices and otherwise.
If are diagonalizable and contain the spectra of and , respectively, then
[TABLE]
where denotes the -norm condition number of the eigenvector matrix.
The quantities are known in the literature as Zolotarev numbers. When and are well separated one can expect that decreases rapidly, as increases, and quickly reaches the level of machine precision. Explicit bounds showing exponential decay have been established for various configurations of and , including disjoint real intervals and circles [5, 48].
CARE.
The existence and uniqueness of a stabilizing solution to the correction equation (4) follows immediately from the observation that the closed-loop matrices of CARE (3) and CARE (4) are identical:
[TABLE]
This yields the following lemma.
Lemma 2.2**.**
Let be a solution of (2). Then the correction equation (4) has a unique stabilizing solution if and only if the modified equation (3) has a unique stabilizing solution .
To study the low-rank approximability of , let us first assume that is stable. By rearranging (4), we get
[TABLE]
Hence, satisfies a Lyapunov equation with the rank of the right-hand side bounded by . If, additionally, the numerical range of is contained in the open left half plane then the first part of Theorem 2.1 can be applied to yield singular value bounds for . Alternatively, the second part can be applied under the milder assumption that is diagonalizable.
If is not stable, we rearrange (4) as
[TABLE]
As the closed loop matrix is stable and the rank of the right-hand side is bounded by , Theorem 2.1 applies under the assumptions stated above with replaced by . One should note, however, that the obtained bounds are somewhat implicit because they involves the numerical range or the eigenvector conditioning of , quantities that are hard to estimate a priori. If more information is available for the closed loop matrix associated with a stabilizing initial guess , one can instead work with the equation
[TABLE]
where .
UQME.
Solutions of the correction equation (10) are intimately related to the matrix pencil
[TABLE]
In fact, a direct computation shows that solves (10) if and only if
[TABLE]
For simplicity, let us assume that is invertible. Then the eigenvalues of (11) coincide with the eigenvalues of the matrix
[TABLE]
By a similarity transformation,
[TABLE]
Because is a solution of , the quadratic matrix polynomial defined in (6) admits the factorization
[TABLE]
Together with (13), this shows that the eigenvalues of the pencil (11) coincide with the eigenvalues of . In particular, if and are the minimal solutions of (8) and (5), respectively, then the spectra of and are separated by the unit circle. By rearranging (9), can be viewed as the solution of a Sylvester equation with these coefficients and low-rank right hand side:
[TABLE]
This indicates good low-rank approximability of .
3 Low-rank updates
In Section 1 we already described the basic procedure for updating the solution of a reference CARE or UQME. This requires solving correction equations of the form (4) or (10), respectively. In the following, we discuss how to solve these correction equations efficiently .
3.1 Projection subspaces
According to the discussion in Section 2.1, one may expect that the solutions of (4) and (10) admit good low-rank approximations. A common strategy for obtaining such approximate solutions is to project these matrix equations to a pair of subspaces. To be more specific, let contain orthonormal bases of -dimensional subspaces . Then we consider approximate solutions of the form , where is obtained from solving a compressed matrix equation.
The choice of the projection subspaces is key to obtaining good approximations. In the context of matrix equations, rational Krylov subspaces [41] are a popular and effective choice.
Definition 3.1**.**
Let , , , and . The vector space
[TABLE]
is called rational Krylov subspace with respect to .
A good choice of shift parameters is crucial and we will discuss our choices for CARE and UQME below.
3.2 Low-rank solution of correction equation for CARE
To describe our approach for approximating the solution of (4), let us define and suppose that the low-rank updates of the coefficients are given in factorized, symmetry-preserving form:
[TABLE]
with , , , and symmetric matrices , . This allows us to write the right-hand side of (4) in factorized form as well, with
[TABLE]
where denotes a block diagonal matrix with the blocks determined by the arguments. The correction equation (4) now reads as
[TABLE]
It is recommended to perform an optional preprocessing step that aims at reducing the rank of further. For this purpose, we compute a thin QR factorization followed by a (reordered) spectral decomposition
[TABLE]
such that the diagonal matrix contains all eigenvalues of magnitude smaller than a prescribed tolerance . Discarding these eigenvalues results in the reduced-rank approximation with and .
For a large-scale CARE of the form (16), with both and of low rank, various numerical methods have been proposed [10, 11, 47, 46, 7, 6]. In the following, we focus on the rational Krylov subspace method (RKSM) [47, 46], but other solvers could be used as well. While these algorithms usually assume to be positive semi-definite, their extension to possibly indefinite poses no major obstacle; see also the discussion in [33]. RKSM constructs an approximate solution of the form , where contains an orthonormal basis of a rational Krylov subspace . The small matrix is determined via a Galerkin condition, which comes down to solving the compressed CARE
[TABLE]
for a stabilizing solution which can be addressed by direct algorithms for small, dense CAREs [9]. Note that the indefinite inhomogeneities are not an issue for the existence of such stabilizing solution which will then be also indefinite, see, e.g., [50].
In practice it can happen that the Hamiltonian matrix associated to the compressed CARE has eigenvalue close to the imaginary axis which can result in inaccurate solutions . For refining the accuracy of we apply a defect correction strategy similar to [37] given by (at most) 2 steps of a Newton’s method. Algorithm 1 gives a basic illustration of this method.
We refer to the relevant literature [22, 47, 46] for implementation details and only comment on some critical steps. For selecting the shift parameters in line 7 we employ the adaptive procedure from [22, 47, 46]. This may result in complex shifts or, more precisely, in complex conjugate pairs of shifts. The increased cost of working in complex arithmetic can be largely reduced by using an appropriate implementation, see, e.g., [40], which also returns a real approximation . The shifted linear systems in line 7 involve the matrix . If is sparse, such a system can be solved, e.g., by combining a sparse direct solver for with the Sherman-Morrison-Woodbury formula to incorporate the low-rank modification . If is a HODLR matrix then is a HODLR matrix as well and solvers for HODLR matrices can be used. Algorithm 1 is terminated once the residual is sufficiently small, that is, for some prescribed tolerance . An efficient way of computing the residual norm is described in [46]. After termination, it is recommended to perform an optional post-processing step, which aims at reducing the rank of , analogous to the rank-reducing procedure for described above.
3.2.1 Extension to generalized CAREs
In this section, we briefly discuss the extension of our low-rank update procedure to the generalized CARE (GCARE), see (1). The reference and modified equation take the form
[TABLE]
[TABLE]
where and are of low rank, and both as well as are invertible. By subtracting (17) from (18), we find that solves
[TABLE]
where satisfies . Similarly as in (15), we can write with
[TABLE]
where with . Again, an optional rank-reducing step for is recommended. By implicitly working on the equivalent CARE defined by the coefficients , , , Algorithm 1 extends with minor modifications to (19). We refer to [47, 11, 46] for further details.
3.3 Low-rank solution of correction equation for UQME
The correction equation (10) features a constant coefficient that has low rank. However, unlike in the case of CARE, we are not aware of existing large-scale solvers tailored to this situation, neither for UQME nor for the modified form (10). For example, a fast cyclic reduction iteration proposed in [14] requires both the quadratic and the constant coefficient (that is, the matrices and in (5)) to be of low rank.
In the following, we develop a novel subspace projection method, largely inspired by the existing techniques for CARE described above.
We first discuss the choice of subspaces for our method and consider the Sylvester equation (14) for this purpose. In principle, subspace projection methods for Sylvester equations are well understood, but the coefficients of (14) involve the matrix , which depends on the unknown . Solely for the purpose of choosing the subspaces, we replace with the reference solution and consider
[TABLE]
instead. Again, we assume that the low-rank updates are given in factorized form: and . Then, the right-hand sides of (14) and (20) can be written as with
[TABLE]
As for CARE, it is recommended to apply a preprocessing step aiming at reducing the rank of . Existing solver for Sylvester equations [46] suggest the use of rational Krylov subspaces with coefficient matrices , and starting vectors , in order to solve (20). Specifically, we choose
[TABLE]
where . This particular choice of shift parameters corresponds to the extended Krylov subspace [45] for Sylvester equations, adapted to the case in which the spectra of the coefficients are separated by the unit circle instead of the imaginary line. Indeed, we replaced [math] and , the usual choice in the extended Krylov method, with and where is the Cayley transform.
Suppose now that contain orthonormal bases of the subspaces defined in (22). To construct an approximate solution of the original equation (14), we impose a Galerkin condition with respect to the tensorized space . This implies that the small matrix satisfies the non-symmetric algebraic Riccati equation
[TABLE]
This compressed equation is solved by the structured doubling algorithm (SDA) [25, 15], see also Algorithm 2. If the projected Hamiltonian
[TABLE]
has an eigenvalue splitting with respect to the unit disc and both equation (23) and its dual equation (the one obtained interchanging and ) admit a minimal solution, then SDA converges quadratically to the minimal solution of (23) [15, Theorem 5.4].
The whole procedure for solving (14) is summarized in Algorithm 3.
A few remarks concerning the implementation of Algorithms 2 and 3:
- •
Algorithm 2 is stopped either when or when a maximum of iterations is reached. If the projected Hamiltonian (24) has the desired splitting of eigenvalues with respect to the unit circle then Algorithm 2 converges quadratically and is therefore likely to match the convergence condition within iterations. Otherwise, we move on and consider the next (enlarged) extended Krylov subspaces.
- •
We rely on the rktoolbox [12] for executing the rational block Arnoldi processes that return the orthonormal bases and . We remark that the compressed matrices in line 6 of Algorithm 3 do not need to be computed explicitly; they can be obtained from the rational Krylov decomposition by adding an artificial final step with an infinite shift, see [26, page 74] and [4].
- •
The number of iterations in Algorithm 3 is chosen adaptively to ensure that the relation
[TABLE]
is satisfied for some tolerance . The artificial final step with an infinite shift mentioned above allows this relation to be verified efficiently, see [45, 28].
- •
For applying , , LU factorizations of and are computed once before starting the rational block Arnoldi process.
- •
After termination of Algorithm 3, it is – once again – recommended to perform an optional post-processing step that aims at reducing the rank of .
4 Divide-and-conquer methods
Having an efficient procedure for performing low-rank updates at hand allows us to design divide-and-conquer methods for quadratic matrix equations with rank structured coefficients. For example, suppose that the coefficients of the CARE (3) admit the decompositions
[TABLE]
where are block diagonal matrices of the same shape and have low rank. This allows us to split (3) into the correction equation (4), which we solve with Algorithm 1, and the two smaller, decoupled equations associated with the diagonal blocks of . If these diagonal blocks again admit a decomposition of the form (26), we recursively repeat the splitting. The described strategy easily adapts to the UMQE (9).
The storage and manipulation of the low-rank corrections on the various levels of the recursion requires to work with a suitable format, such as the HODLR format.
4.1 HODLR matrices
A HODLR matrix admits block partition
[TABLE]
where , have low rank and , are square matrices that again take the form (27). This splitting is continued recursively until the diagonal blocks reach a certain minimal block size . Usually, the partitioning is chosen such that , have nearly equal sizes. Banded matrices are an important special case of HODLR matrices.
We say that has HODLR rank if is the smallest integer such that the ranks of and in (27) are bounded by at all levels of the recursion. If remains small then can be stored efficiently by replacing each off-diagonal block with its low-rank factors. The only dense blocks that need to be stored are the diagonal blocks at the lowest level, see Figure 1. In turn, the storage of a HODLR matrix requires memory.
4.2 Divide-and-conquer in the HODLR format
For a CARE (3) with HODLR matrices and a low-rank matrix , a divide-and-conquer method can be derived along the lines of the linear case discussed in [30]. Consider
[TABLE]
The diagonal blocks , are again HODLR matrices (with the recursion depth reduced by one). After recursively solving the CAREs associated with the diagonal blocks, a low-rank approximation to the solution of the correction equation (4) is obtained with Algorithm 1. The resulting procedure is summarized in Algorithm 4. As highlighted in the pseudo-code, it is strongly recommended to reduce the ranks of in line 9 and of in line 11. Algorithm 4 requires the equations associated with the diagonal blocks to admit a unique stabilizing solution at all levels of the recursion.
The divide-and-conquer method for a UQME with HODLR matrix coefficients is derived in an analogous manner. The only substantial changes are that the equations associated with the diagonal blocks are solved by cyclic reduction [18], see Algorithm 5. The resulting procedure is summarized in Algorithm 6. This algorithm requires that the matrix polynomials associated with the diagonal blocks — for — maintain the splitting property (7), at all levels of the recursion. Similarly as in Algorithm 4, compression is recommended in lines 9 and 11 of Algorithm 6.
4.2.1 Complexity of divide-and-conquer in the HODLR format
The complexity of Algorithms 4 and 6 critically depends on the convergence of the projection methods (Algorithms 1 and 3, respectively) used for solving the correction equations. To a milder extent, it also depends on the numerical methods used for solving the small dense equations associated with the diagonal blocks on the lowest level of the recursion. In order to provide some insights of the computational cost we make the following simplifying assumptions:
- (i)
Algorithm 1 and Algorithm 3 converge in a constant number of iterations; 2. (ii)
solving the dense (unstructured) equations has complexity ; 3. (iii)
the matrix in CARE has rank ; 4. (iv)
all involved HODLR matrices have HODLR rank and have a regular partition, that is, and the splitting (27) always generates equally sized diagonal blocks; 5. (v)
the compressions in Algorithm 4 and Algorithm 6 is not performed.
Under the assumptions stated above, the LU decomposition of an HODLR matrix requires operations, while performing forward or backward substitution with a vector is . A matrix-vector product is and all involved matrix-matrix operations are at most , see, e.g., [27].
CARE.
Let denote the complexity of Algorithm 4. Assumption (i) implies that the cost of Algorithm 1, called at Line 10, is , because it is dominated by the cost of solving (shifted) linear systems with the matrix . Assumption (i) also implies that , see Line 8, has HODLR rank . Because and each have columns, the matrix multiplications and at Line 9 require operations. Finally, thanks to assumption (ii) we have
[TABLE]
Applying the master theorem [20] to (29) yields .
UQME.
Let denote the complexity of Algorithm 6. Analogously to CARE, Assumption (i) implies that Algorithm 1 requires operations and that at Line 8 has HODLR rank . Therefore, the complexity of Line 9 is given by the one of solving linear systems, that is, . In turn, the recurrence relation for is identical with (29) and hence .
5 Numerical results
We now proceed to verify the numerical performance of the divide-and-conquer methods, Algorithms 4 and 6 from Section 4. Our methods are compared with state-of-the-art iterative algorithms for solving quadratic matrix equations:
- •
structure preserving doubling algorithm (SDA) for CARE [19],
- •
cyclic reduction (CR) for UQME [18] (Algorithm 5).
Both algorithms are well suited for coefficients with hierarchical low-rank structures; we have implemented in HODLR arithmetic using the hm-toolbox [36]. As indicated in the description of the algorithms, we apply recompression with the threshold in order to keep the ranks under control. Unless stated otherwise, we set the minimal block-size to for the representation in the HODLR format. The parameters used in Algorithm 4 and Algorithm 6, respectively, for stopping the low-rank iterative solver have been set to .
All experiments have been performed on a Laptop with a dual-core Intel Core i7-7500U 2.70 GHz CPU, 256KB of level 2 cache, and 16 GB of RAM. The algorithms are implemented in MATLAB and tested under MATLAB2017a, with MKL BLAS version 11.2.3 utilizing both cores.
5.1 Results for CARE
We will use the following three examples to test the performance of Algorithm 4 for CARE.
Example 5.1**.**
This is an academic example of arbitrary size : , that is, is a tridiagonal matrix with on the diagonal and on the sub- and superdiagonal. The matrix is random with normally distributed entries, , where is a random symmetric tridiagonal matrix also with normally distributed entries, and is the smallest eigenvalue of .
Example 5.2**.**
This example is taken from [30, Example 3.2 and Section 5.6]:
[TABLE]
where denotes the th unit vector of appropriate length. Since is unstable, we use an initial stabilizing solution , and consider the stabilized CARE given by and . Because of the structure of and , is still sparse. All matrices are scaled by and, to acquire a banded structure, reordered by a perfect shuffle permutation.
Example 5.3**.**
This example is carex18 from the CARE benchmark collection [1] with tridiagonal and , , but we set .
All matrices have been converted into the HODLR format using the hmtoolbox. However, for the fast solution of the linear systems in Algorithm 1 we invoke the original sparse matrices and and call a sparse direct solver via MATLAB’s “backslash”.
The results — compared to those of SDA — are summarized in the Tables 1–3, where . The reported computing times for both methods clearly reveal that the divide-and-conquer method requires substantially less time than SDA while achieving a similar or even better level of accuracy at the same time. Most of the time in SDA was spent in the numerous HODLR matrix-matrix multiplications and the associated recompression steps after each multiplication.
For the largest matrices from Example 5.1, , we have profiled the computing time spent at the different stages of the divide-and-conquer method. Solving dense CAREs for the diagonal blocks at the lowest level of recursion consumed about 30% of the total time, while about 50% was spent on solving the correction equation, CARE (4), by RKSM (Algorithm 1). About 15% of the time was spent on performing the update (line 11 in Algorithm 4). The work spent on rank compressions was negligible; it consumed less than 1% of the total time. Within RKSM, orthonormalization within the Arnoldi method and the solution of the compressed CAREs were the most time consuming steps (totaling approximately 40% of the time spent on RKSM), followed by the procedure for shift generation (15%). Due to the sparse, banded structure of , the linear system solves consumed only a very small fraction (about 3%). We note that the time for solving the correction equation (4) could potentially be reduced by employing a different low-rank solver for CAREs. A good candidate for such a solver is the recently proposed RADI method [7], which does not rely on Galerkin projections and, hence, does not require solving compressed CAREs111Preliminary results suggest that replacing Algorithm 1 with RADI reduces the time by 10% on average over all used sizes .. We also investigated the effect of reducing the block size from 256 to 128. As expected, this decreased the fraction of computing time spent on diagonal blocks from 30% to 10% but, due to the higher number of occurrences, increased part spent on solving the correction CAREs to about 67%. The change in the overall time for Algorithm 4 was negligible compared to .
5.2 Results for UQMEs from QBD processes
QBD processes are discrete-time stochastic processes with a two-dimensional discrete state space. The variables of the state space are called level and phase; the transition — at each time step — with respect to the level coordinate has at most unit length. We consider models whose state space is isomorphic to , that is, we have infinite levels and a finite number of possible phases. Moreover, we assume that the process is level independent, i.e. the transition probability depends on the variation of the level but not on its current value.
Computing the stationary distribution of a level independent QBD process amounts to solving a UQME with coefficients corresponding to (possibly shifted) sub-blocks of its transition probability matrix [13]. More specifically, the coefficients of the UQME have the properties that are non-negative and is stochastic, that is, each row sums to one. As the following lemma shows, these properties imply — under some mild additional conditions — the eigenvalue splitting property (7) on every level of recursion in the divide-and-conquer method.
Lemma 5.4**.**
Suppose that have the properties stated above and that has only one eigenvalue on the unit circle, the simple eigenvalue . For some index set , let denote the corresponding principal submatrices of . Assume that is invertible and is irreducible. Then has the splitting property (7).
Proof.
For the moment, let us assume that is substochastic, that is, , where denotes the vector of all ones and the inequality is understood componentwise. We aim at utilizing the following consequence of Rouché’s theorem for matrix-valued functions [38, Theorem 3.2]: if
[TABLE]
holds for an induced norm then has exactly eigenvalues (counting multiplicities) in the open unit disc and eigenvalues with modulus greater than , where denotes the cardinality of . This implies the result of the lemma.
Setting , the condition (30) clearly holds if we can show that the spectral radius is less than for every on the unit circle. Note that because are non-negative. Combined with the fact that is an M-matrix, which implies , and the monotonicity of the spectral radius, we obtain
[TABLE]
Using we also have
[TABLE]
In particular, the matrix is irreducible and substochastic, and by the Perron Frobenius theorem [43, Theorem 1.5] it has spectral radius strictly less than .
It remains to consider the case when is stochastic. Note that, under this assumption also the matrix is stochastic. Obviously, the statement of the lemma holds when and , so we assume from now on. Assuming after a suitable reordering, we can partition
[TABLE]
and hence an eigenvalue of is also an eigenvalue of .
Let us consider the perturbed matrix polynomial for and Boolean matrices with the sparsity pattern of and , respectively. Because of , the matrix is substochastic for sufficiently close to [math]. Using again Rouché’s theorem, this ensures that has the property (7). By continuity, the eigenvalue functions of do not cross the unit circle as and, in turn, has eigenvalues inside or on the unit circle and eigenvalues outside or on the unit circle. Because the simple eigenvalue is the only eigenvalue of on the unit circle and the same property holds for , this completes the proof.
∎
We remark that the eigenvalue assumption on in Lemma 5.4 can be relaxed to the assumption that is a simple eigenvalue (admitting possibly other eigenvalues on the unit circle), provided that is primitive and , where indicates the componentwise product.
Often, the probabilistic model requires bounded transitions in the phase coordinate as well. This translates into a band structure in the matrices and . For example, in the case of double QBD processes (DQBD) [39] the coefficients are all tridiagonal, see also Figure 2.
We test Algorithm 6 on instances of DQBD with increasing size . In particular, we choose the entries of the central diagonals of and randomly from a uniform distribution on . We divide each row of the three matrices by the corresponding entry in , in order to make row stochastic. Finally, we subtract the identity matrix from :
[TABLE]
[TABLE]
In Table 4 we compare the performance of Algorithm 6 with the method in [16] that combines cyclic reduction — Algorithm 5 — with HODLR arithmetic. Both methods can handle large values for and return solutions of comparable accuracy, measured in terms of . However, the divide-and-conquer method provides a significant speed up; it is about times faster than the competitor for .
5.3 Results for UQMEs from damped mass-spring system
Another application of UQME is the solution of the quadratic eigenvalue problem , arising in the analysis of damped structural systems and vibration problems [21, 32, 29]. After having determined the solution of (5), the quadratic eigenvalue problem reduces to two linear eigenvalue problems: the one associated with and the generalized eigenproblem .
We repeat the experiments from Section 5.2 for the UQME associated with a quadratic eigenvalue problem from a damped mass spring system considered in [49, Example 2]. The coefficients of the UQME are given by
[TABLE]
The results reported in Table 5 confirm the good scalability and accuracy of both methods. The solution exhibits a very low HODLR rank and cyclic reduction needs only 2–3 iterations to converge. As a consequence, cyclic reduction is faster than Algorithm 6 on larger instances of this example.
6 Conclusions
We have proposed novel Krylov subspace methods for updating the solution of continuous-time algebraic Riccati equations and unilateral quadratic matrix equations whose coefficients are subject to low-rank modifications. We have provided theoretical insights into the low-rank and stability properties of the solutions to the involved correction equations. This has led us to design novel divide-and-conquer methods for quadratic equations with large-scale coefficients featuring hierarchical low-rank structures. Our methods have linear polylogarithmic complexity and often outperform existing techniques, sometimes significantly. The applications highlighted in this work include quasi-birth–death processes and damped mass-spring systems.
Acknowledgements. During the larger part of the work on this article, the second author PK was affiliated with the Max Planck Institute for Dynamics of Complex Technical Systems Magdeburg.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J. Abels and P. Benner. CAREX - A Collection of Benchmark Examples for Continuous-Time Algebraic Riccati Equations (Version 2.0). SLICOT working note 1999-14, 1999.
- 2[2] S. Ambikasaran and E. Darve. An 𝒪 ( N log N ) 𝒪 𝑁 𝑁 \mathcal{O}(N\log N) fast direct solver for partial hierarchically semi-separable matrices: with application to radial basis function interpolation. J. Sci. Comput. , 57(3):477–501, 2013.
- 3[3] U. Baur and P. Benner. Factorized solution of Lyapunov equations based on hierarchical matrix arithmetic. Computing , 78(3):211–234, 2006.
- 4[4] B. Beckermann and L. Reichel. Error estimates and evaluation of matrix functions via the Faber transform. SIAM J. Numer. Anal. , 47(5):3849–3883, 2009.
- 5[5] B. Beckermann and A. Townsend. On the singular values of matrices with displacement structure. SIAM J. Matrix Anal. Appl. , 38(4):1227–1248, 2017.
- 6[6] P. Benner, Z. Bujanović, P. Kürschner, and J. Saak. A numerical comparison of solvers for large-scale, continuous-time algebraic Riccati equations. Technical Report 1811.00850, ar Xiv, 2018.
- 7[7] P. Benner, Z. Bujanović, P. Kürschner, and J. Saak. RADI: A low-rank ADI-type algorithm for large scale algebraic Riccati equations. Numer. Math. , 138(2):301–330, 2018.
- 8[8] P. Benner, R. Byers, V. Mehrmann, and H. Xu. Robust numerical methods for robust control. Technical Report 06-2004, Institut für Mathematik, TU Berlin, 2004.
