TL;DR
This paper introduces block factor-width-two matrices, a new subset of positive semidefinite matrices, enabling decomposition of large semidefinite constraints for more efficient large-scale semidefinite programming.
Contribution
It defines block factor-width-two matrices, derives their dual cones, and develops hierarchies of approximations to improve large-scale semidefinite programming.
Findings
Enables decomposition of large semidefinite constraints into smaller ones
Provides closed-form dual cone expressions
Demonstrates effectiveness in sum-of-squares optimization
Abstract
In this paper, we introduce a set of block factor-width-two matrices, which is a generalisation of factor-width-two matrices and is a subset of positive semidefinite matrices. The set of block factor-width-two matrices is a proper cone and we compute a closed-form expression for its dual cone. We use these cones to build hierarchies of inner and outer approximations of the cone of positive semidefinite matrices. The main feature of these cones is that they enable a decomposition of a large semidefinite constraint into a number of smaller semidefinite constraints. As the main application of these classes of matrices, we envision large-scale semidefinite feasibility optimisation programs including sum-of-squares (SOS) programs. We present numerical examples from SOS optimisation showcasing the properties of this decomposition.
| Full SDP | Number of Partitions in SDP Variables | ||||
|---|---|---|---|---|---|
| Computational Time (seconds) | |||||
| Objective values | |||||
| Sizes of SDP Constraints | |||||
| Computational time | |||||||
|---|---|---|---|---|---|---|---|
| SOS | |||||||
| Objective value | |||||||
| SOS | |||||||
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Block Factor-Width-Two Matrices in Semidefinite Programming
Aivar Sootla, Yang Zheng, and Antonis Papachristodoulou The authors are with the Department of Engineering Science, University of Oxford, Parks Road, Oxford, OX1 3PJ, U.K. e-mail: {aivar.sootla, yang.zheng, antonis}@eng.ox.ac.uk. AS and AP are supported by EPSRC Grant EP/M002454/1, YZ is supported in part by the Clarendon Scholarship, and in part by the Jason Hu Scholarship.
Abstract
In this paper, we introduce a set of block factor-width-two matrices, which is a generalisation of factor-width-two matrices and is a subset of positive semidefinite matrices. The set of block factor-width-two matrices is a proper cone and we compute a closed-form expression for its dual cone. We use these cones to build hierarchies of inner and outer approximations of the cone of positive semidefinite matrices. The main feature of these cones is that they enable a decomposition of a large semidefinite constraint into a number of smaller semidefinite constraints. As the main application of these classes of matrices, we envision large-scale semidefinite feasibility optimisation programs including sum-of-squares (SOS) programs. We present numerical examples from SOS optimisation showcasing the properties of this decomposition.
I Introduction
Optimisation programs with positive semidefinite (PSD) constraints (or semidefinite programs — SDPs) are one of the major computational tools in linear systems theory [1, 2]. The introduction of sum-of-squares polynomial optimisation (or SOS programming) [3, 4] (and the dual moment approach [5]) extended the use of SDPs to polynomial optimisation and thus allowed addressing many nonlinear control problems in polynomial time.
Modern SDPs (and especially SOS programs) are often large-scale, that is, the PSD constraints have large dimensions. Consequently, developing fast SDP solvers has received considerable attention in the literature. Solvers for sparse programs were developed in [6, 7, 8] (ADMM-based) and in [9, 10] (interior-point solver) and a general purpose ADMM-based solver was developed in [11]. The sparsity of the PSD constraint was also exploited in the context of SOS programming [12, 13, 14]. The key idea in these sparsity-exploiting approaches is to decompose large PSD constraints into a number of smaller PSD constraints, while the optimal objective of the program remains the same for a special class of sparsity patterns [15]. Since the PSD constraint typically induces the largest computational burden, the computational time can be significantly reduced by using these techniques. These sparsity exploiting techniques can also be used for linear control applications [16].
A related approach to speed-up SOS programming was taken in [17], where the authors replaced the PSD cone with the cone of factor-width-two matrices (which we denote where stands for the dimension of the matrix). A matrix has a factor width two if it can be represented as a sum of rank two PSD matrices [18] and hence it is also PSD. A certificate for matrices can be written as a number of second-order cone constraints, which can reduce the computational and memory burden as demonstrated in [17]. We note that matrices are also scaled diagonally dominant (SDD) as discussed in [18]. The reader unfamiliar with SDD matrices is referred to [19] for details. We only highlight that the individual entries of SDD matrices satisfy a particular set of constraints.
As discussed in [17] the size of the cone is significantly smaller than the size of the PSD cone, therefore, the restricted problem may be infeasible or the optimal solution of the program may be significantly different from the optimal solution of the original SDP. There are several approaches to bridge this restriction gap, cf. [20]. For example, one can employ factor-width- matrices, which can be decomposed into a sum of PSD matrices of rank . Enforcing this constraint, however, is problematic due to a large number of PSD constraints, which is choose , i.e., . Therefore, the computational burden can actually increase in comparison to the original SDP.
In this paper, we take a different route in order to enrich the cone of factor-width-two matrices: We draw inspiration from SDD matrices and consider their block extension. The key idea of this extension is to partition a matrix into a set of non-intersecting blocks of entries and enforce the SDD constraints on these blocks instead of the individual entries [21]. We introduce the class of block factor-width-two matrices based on the block SDD definitions from [22, 23]. A block factor-width-two matrix is also PSD and the constraint “the matrix is block factor-width-two” can be enforced using a number of PSD constraints whose size is determined by the size of the blocks. We proceed by deriving a hierarchy of inner and outer approximations of the PSD cone based on the block partition. We propose to use this approximation in SDPs by replacing the PSD cone constraint with a block “factor-width-two” constraint. The optimal objective value of the SDPs typically cannot be achieved using this technique, however, the computational cost is reduced. Striking the balance between the accuracy of the solution and the speed can be delicate in general, therefore, we envision the feasibility of SDPs without a specific sparsity structure as the main application. For example, finding a Lyapunov function certifying stability of a nonlinear system often results in a feasibility SDP without a particular sparsity structure. Therefore, in this paper, we mainly focus on SOS programs as an application.
In Section II we cover preliminaries. In Section III we introduce block factor-width-two matrices, a hierarchy of inner and outer approximations of the PSD cone and their SDP and SOS applications. We present numerical examples in Section IV and conclude the paper in Section V.
Notation. The matrix denotes the transpose of . We denote the sets of by symmetric, positive definite, positive semidefinite matrices as , , , respectively. We use to denote an identity matrix of dimension .
II Preliminaries
II-A Partitioned Matrices
We say that a matrix has -partition with , if can be written as
[TABLE]
where . For a partition we define block basis matrices
[TABLE]
where
[TABLE]
We also define a relation between a partition of the matrix and a coarser partition of the same matrix.
Definition 1
Let and , where and . We say that is a sub-partition of and write , if there exist integers such that and , , for all .
For example, given , and , we have .
II-B Semidefinite and sum-of-squares programming
The standard primal-form semidefinite program (SDP) is an optimisation problem of the form:
[TABLE]
where and are given problem data.
SDPs have found many applications in linear systems theory, such as stabilization and control [2]. Also, nonlinear control problems in a polynomial field can often be written as polynomial optimisation programs: Given a set of polynomials (their coefficients are given) with and the vector we aim to solve
[TABLE]
Even though the nonnegativity constraint in (3) is convex, the program is infinite dimensional due to the dependence on . Therefore, a tractable sum-of-squares relaxation of the nonnegative constraint is typically used. Given , a polynomial of degree is called a sum-of-squares (SOS) polynomial if it can be written into a sum of squares of other polynomials of degree no greater than . It is known ([24, 25]) that admits an SOS decomposition if and only if there exists with such that
[TABLE]
where is a vector of monomials of degree no greater than . Replacing the nonnegative constraint with an SOS constraint yields the following optimisation program:
[TABLE]
where the constraints imply that is an SOS polynomial. Matching the coefficients on both sides polynomial equality leads to a set of linear equality constraints on and , and we obtain an SDP of the form (2) with additional free variables.
II-C Factor Width of Positive Semidefinite Matrices
It is well-known that small and medium-sized SDPs can be solved up to an arbitrary accuracy in polynomial time via interior point methods [1]. However, as the size of the PSD cone in (2) increases, the current state-of-the-art interior point algorithms become impractical in terms of memory requirements, computational burden or numerical accuracy. In the recent work [17] it was proposed to speed up semidefinite and SOS optimisation by replacing the PSD cone by a cone of factor-width-two matrices. This work is based on the following definitions from [18].
Definition 2
A matrix belongs to the class of factor-width- matrices (denoted as ) if and only if
[TABLE]
where is a collection of matrices with every row having only one non-zero element equal to one, the columns being orthonormal, and .
The matrices can be seen as a decomposition basis for the matrix . It can be shown that a dual (with respect to the trace inner product) set to can be characterised as follows
[TABLE]
One can also show that the following hierarchy of inner and outer approximations of holds:
[TABLE]
Replacing in (2) with leads to a restriction with multiple PSD cones. In particular, the factor-width-two matrices can be written as
[TABLE]
where the matrices are defined as in Section II-A with and . The constraints can be equivalently written as second-order cone constraints, which can be solved much faster compared to solving SDPs. This fact has been used to solve large-scale SOS programs in [17]. However, the solution from might be very conservative. As was pointed out in [17], increasing the factor width may reduce the degree of conservatism, but this requires working with a combinatorial number of PSD cones of size , which is not practical.
III Block Factor-width-two Matrices
III-A Block factor-width-two matrices
In this section, we introduce the class of block factor-width-two matrices, which is less conservative than and more scalable than ().
Definition 3
We say that -partitioned matrix belongs to the class if and only if
[TABLE]
where and are defined in (1).
It is straightforward to show that the set is a cone with a non-empty interior, which is also:
- •
convex: for any , , we have that ,
- •
salient: for any nonzero , ,
- •
pointed: the zero matrix is in .
We will show in what follows that this cone is additionally closed, which makes it a proper cone (closed, convex, pointed, salient cone with non-empty interior).
The main difference with the definition of factor-width-two matrices comes in the partition , which dictates the sizes of ’s and ’s, as well as their number. The number of basis matrices is the same as in the case when we treat every block as a scalar and apply the factor width decomposition to it. In our definition, we have a fixed partition and a fixed “block factor-width”, which is equal to two. In order to create a hierarchy of approximations of we can increase the “block factor-width”, which means increasing the number of basis matrices . However, we can also build a hierarchy based on the partition coarsening, which reduces the number of basis matrices .
Theorem 1
Given , and , we have the following inclusion:
[TABLE]
where , , are positive integers and .
Proof:
First, , hold by definition. Furthermore, is true since in the decomposition for we use PSD matrices of dimension at most .
In order to prove it suffices to consider the case , . Let for be the decomposition basis for the -partition and for be the decomposition basis the -partition. By the premise, there exist such that:
[TABLE]
We need to construct so that is decomposed as:
[TABLE]
Since the first blocks in both partitions are the same, we have that and for all . Therefore, in order to obtain the decomposition (6), it remains to construct for such that
[TABLE]
Consider the matrices for and and split them according to the partition
[TABLE]
where , , . It can be verified by direct computation that the identity (7) holds if for are chosen as follows:
[TABLE]
Thus we complete the proof. ∎
Example 1
Consider the following PSD matrix
[TABLE]
It can be verified that for the partition and the matrices in the decomposition can be chosen as follows:
[TABLE]
If we collapse the last two entries into a block and obtain the partition , then we can use the constructions in Theorem 1 in order to obtain the matrices ,
[TABLE]
The matrices , , are PSD, which shows that .
We can also describe a dual set of matrices to matrices (with respect to the trace inner product), which creates an outer approximation hierarchy for the cone .
Corollary 1
The dual to with respect to the trace inner product is defined as:
[TABLE]
Furthermore, let and , , then we have the following inclusions:
[TABLE]
where , are positive integer and .
Proof:
The proof of the first part follows after noticing that for any matrix such that for all , and for any matrix , we have . The proof of the second part is straightforward. ∎
Remark 1
Using the terminology in [26] the cone is a partially separable cone, which ensures that its dual is and is a proper cone.
The major difference between our hierarchy of and the hierarchy of is the number of basis matrices, which in our case is substantially lower due to two reasons: We use factor-width-two generalisations and we coarsen the partitions. Therefore the number of basis matrices is equal to for , and as we make a partition coarser the number and hence the number of basis matrices decreases. We note however that the set is not contained in for . This is because contains all possible combinations of ’s as the basis vectors (read all possible partitions). In contrast, will not consider certain choices of partitions. Therefore, our approach has a particular advantage in applications where partitions come as a natural property of the problem.
III-B Applications to SDPs in the Standard Primal Form
The main idea is to replace the cone with or its dual in order to obtain a restriction of the original program. Consider a restriction of (2), where we assume the matrix is partitioned according to ,
[TABLE]
This program can be cast in the SDP form as follows:
[TABLE]
which is amenable for a straightforward implementation in standard SDP solvers such as SeDuMi [27], MOSEK [28] or SCS [11]. This program has the same number of equality constraints as (2), but the number and the dimensions of PSD constraints are different. We can also perform a relaxation of (2) by replacing by . We will not discuss the relaxation in detail since we focus on the restriction of the primal SDP.
IV Numerical Examples
In our numerical examples, we used YALMIP [29] in order to reformulate the polynomial optimisation program into a standard SDP and we solve the SDPs using MOSEK [28]111Code is available via https://github.com/zhengy09/SDPfw.
IV-A Polynomial Optimisation
We consider the polynomial optimisation problem:
[TABLE]
where
[TABLE]
We added the last term, so that the problem does not enjoy the structure exploited by the methods in [12, 13]. We vary and obtain different semidefinite optimisation problems in the standard primal form with constraints of different sizes listed in Table I.
We partition the SDP as discussed in Section III-B. We fix the partition size and we choose the size of the blocks as the closest integers to , where is the size of the SDP constraint. In particular, if , then we pick the maximum number of blocks of size and the rest of size . The number of SDP constraints, as discussed above is equal to . Note that the number of linear constraints remains the same as in the full SDP.
We present the computational times and the objective values in Table I. It noticeable that with a finer partition we obtain faster solutions, which are, however, conservative in terms of the objective function. Fine partitions may be very useful for feasibility programs, while coarse partitions are competitive for large SDPs, where the value of the objective function is important. Note that for large-scale instances , MOSEK ran out of memory on our machine. On the other hand, our strategy of using block factor-with-two matrices can still provide a useful upper bound for (10).
IV-B Matrix Sum-of-Squares Programming
In our second example, we show that there exists a natural partition in the case of the matrix-vision of SOS programs. Indeed, consider a polynomial matrix constraint:
[TABLE]
Treating this constraint directly is intractable and the usual technique is the SOS-relaxation, which results in the following reformulation [30]
[TABLE]
where the constraint (11) is actually a linear constraint linking the coefficients of with the matrix . The SOS programs are known to suffer from the curse of dimensionality, in particular, the size of grows combinatorially when we vary both and . Therefore, another technique was proposed in [17], which replaces the constraint (12) with
[TABLE]
Now instead of the large semidefinite constraint we are dealing with a large number of PSD constraints, which can actually be cast as second order cone constraints.
In addition, we can address this problem by replacing the constraint (12) with with a natural choice of . In particular, we assume that for every resulting in the decomposition
[TABLE]
and only then use the SOS relaxation on the polynomial matrices of the dimension . In order to avoid the question of existence of such decompositions, we restrict the search of to the following set of constraints:
[TABLE]
Some rudimentary linear algebra results in the following reformulation of the PSD constraints:
[TABLE]
where is pre-determined.
Using the restriction provides with a larger set of solutions than . For example, the polynomial matrix:
[TABLE]
satisfies the constraints (15, 16), but does not satisfy the constraints (13, 14).
We further test our approach on the following program:
[TABLE]
where every entry of is a random polynomial of degree two in three variables, and we vary the dimension of . The computational results are depicted in Table II. Our restriction offers faster computational solutions with almost the same optimal objectives compared to the standard SOS technique, while the technique [17] provides even faster solutions, but their quality is worse.
V Conclusion and Discussion
We introduced a novel class of matrices and presented a hierarchy of inner and outer approximations of the cone of positive semidefinite (PSD) matrices. Both inner and outer approximations are proper cones and enjoy useful duality relations, furthermore, the inclusion certificates for these cones is a set of PSD constraints smaller than the size of the matrix. This allows deriving a hierarchy of scalable relaxations and restrictions of semidefinite programs (SDPs). The inner approximations (cones ) are built by partitioning the matrix into a non-intersecting set of entries. It is not entirely clear at the moment how to build “the best” partition in terms of the solution of the particular SDP. However, in some problems, the partition comes naturally from the problem formulation, e.g., the matrix-version of SOS programs discussed in Section IV-B. Our numerical experiments suggest that these hierarchies can be used for dense large-scale SDPs, which arise in SOS programming.
Our future work will investigate the consequences of block factor-width-two matrices in relevant control applications that involve SDPs. Also, it would be interesting to incorporate the properties of block factor-width-two matrices in the development of first-order algorithms (e.g., the solvers [11, 6]) for solving general SDPs.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Boyd and L. Vandenberghe, Convex optimization . Cambridge university press, 2004.
- 2[2] S. Boyd, L. El Ghaoui, E. Feron, and V. Balakrishnan, Linear matrix inequalities in system and control theory . Siam, 1994, vol. 15.
- 3[3] V. Powers and T. Wörmann, “An algorithm for sums of squares of real polynomials,” J Pure Applied Algebra , vol. 127, no. 1, pp. 99–104, 1998.
- 4[4] P. A. Parrilo, “Semidefinite programming relaxations for semialgebraic problems,” Math Prog , vol. 96, no. 2, pp. 293–320, 2003.
- 5[5] J.-B. Lasserre, Moments, positive polynomials and their applications . World Scientific, 2010, vol. 1.
- 6[6] Y. Zheng, G. Fantuzzi, A. Papachristodoulou, P. Goulart, and A. Wynn, “Fast ADMM for semidefinite programs with chordal sparsity,” in Proc Am Control Conf , 2017, pp. 3335–3340.
- 7[7] ——, “Fast ADMM for homogeneous self-dual embeddings of sparse SD Ps,” Proc IFAC-Papers On Line , vol. 50, no. 1, pp. 8411–8416, 2017.
- 8[8] ——, “Chordal decomposition in operator-splitting methods for sparse semidefinite programs,” Math Prog A , 2019.
