A Riemannian low-rank method for optimization over semidefinite matrices with block-diagonal constraints
Nicolas Boumal
Introduction
and the set of ’s obtained by stacking as
This paper is concerned with solving optimization problems of the form
with the additional constraint . As often, the rank constraint is the culprit. Indeed, continuing with the Max-Cut example (linear ), optimization over without the rank constraint is a semidefinite program, which can be solved to arbitrary precision in polynomial time .
This is motivation to study the relaxation obtained by ignoring the rank constraint (for linear , it is also the dual of the dual of ()):
For linear , solutions of (P) can of course be computed using standard SDP solvers, such as interior point methods (IPM). Unfortunately, as demonstrated in Section 5, IPM’s do not scale well. The main reason for it is that, as the name suggests, IPM’s iterate inside the interior of the search space . The latter is formed by full-rank, dense matrices of size : this quickly becomes unmanageable.
The full-rank operations seem even more wasteful considering that, still for linear , problem (P) always admits a solution of rank at most
Indeed, this follows a general result of Shapiro , Barvinok and Pataki regarding extreme points of spectrahedra,The name spectrahedron for the search space of a semidefinite program echoes the name polyhedron for the search space of a linear program. that is, intersections of the positive semidefinite cone with an affine subspace—the geometry of is discussed in Section 2.2. This prompted Burer and Monteiro to propose SDPLR, a generic SDP solver which exploits the low-rank phenomenon. Applying SDPLR to our problem amounts to computing a local minimizer of () for some small , using classical nonlinear optimization algorithms and penalizing for the constraints in a Lagrangian way. Then, is increased as needed until can be certified as a solution to the SDP.
SDPLR is powerful and generic, and the theory accompanying the algorithm brings great insight into the problem. But it also has some downsides we want to improve on in the context of (P). First, it is not an easy matter to guarantee convergence to (even local) optimizers in the nonlinear subproblems. Furthermore, since constraints are enforced by penalization, they are not accurately satisfied by the returned solution. Finally, we would like to allow for nonlinear . Nevertheless, Section 5 shows SDPLR improves significantly upon IPM’s.
In both and , one of the keys to practical efficiency is (well-justified) optimism: () is first solved for small values of , and is increased only as needed. In both papers, it is observed that, in practice, it often suffices to reach just above the rank of the target solution of (P), which may be quite small; but there is no theory to confirm this. We do not prove such a strong result either, but we give some nontrivial, deterministic bounds on “how high one must lift”, refining certain results of .
We then turn our attention to computing Karush-Kuhn-Tucker (KKT) points for (P). These are points that satisfy first-order necessary optimality conditions. If is convex, the conditions are also sufficient. Our goal is to compute KKT points via the computation of second-order critical points of (), which is lower-dimensional. A key property that makes this possible is the availability of an explicit dual matrix (21) which intervenes in both sets of conditions.
Using this dual matrix, we show that rank-deficient second-order critical points reveal KKT points . Furthermore, when a computed second-order critical point is full rank, it is shown how to use it as a warm-start for the computation of a second-order critical point of () with a larger value of . It is guaranteed that if is allowed to grow up to , then all second-order critical points reveal KKT points, so that the procedure terminates. This is formalized in Algorithm 1, which we call the Riemannian Staircase, as it lifts () to (P) step by step, instead of all at once.
The above points rest extensively on work discussed earlier in this introduction , and improve upon those along the lines announced in the same. In particular, we do not require the computation of local optimizers of (), and we avoid the geometry breakdown tied to the quotient approach in . We also stress that the latter reference only covers , and SDPLR only covers linear .
We further take particular interest in understanding how large may grow in the staircase algorithm. We view this part as our principal theoretical contribution. This investigation calls for inspection of the convex geometry of , with particular attention to its faces and their dimension. To this effect, we use results by Pataki to describe the face of which contains a given in its relative interior, and we quote the lower-bound on the dimension of that face as a function of . We further argue that this bound is almost always tight, and we give an essentially tight upper bound on the dimension of a face, generalizing a result of Laurent and Poljak to .
Using this facial description of , we establish that for strongly concave , for (3), all second-order critical points of () reveal KKT points. Also, for concave , we show the same for (Corollary 3.16), and argue that is sufficient under an additional condition we believe to be mild. Hence,
For linear , above a certain threshold for , all second-order critical points of () are global optimizers.
The condition is stronger than the one proposed in , and the statement is about second-order critical points, rather than about local optimizers of (). There are no similar results for convex , as then solutions can have any rank.
We close the paper with numerical experiments showing the efficiency of the staircase algorithm to solve (P) on certain synchronization problems involving rotations and permutations, as compared to IPM’s and SDPLR.
Note that, up to a linear change of variable, problem (P) also encompasses constraints of the form where each is positive definite. We assume all diagonal blocks have identical size as this simplifies exposition, but the proposed method can easily accommodate inhomogeneous sizes, and many of the developments go through for complex matrices as well.
2 Applications
Problem () and its relaxation (P) appear in numerous applications. Many of those belong to the class of synchronization problems, which consist in estimating group elements from measurements of pairwise ratios. Further applications are also described, e.g., in .
can be modeled in () with . A seminal example is Max-Cut: the problem of clustering a graph in two classes, so as to maximize the sum of weights of edges joining the two classes. The cost is linear, determined by the graph’s adjacency matrix. Its relaxation to (P) is the subject of an influential analysis by Goemans and Williamson , which helped popularize the type of lifts considered here. See [31, eq. (3)] for a recent application of Max-Cut to genomics. The same setup, but with different linear costs, appears in the stochastic block model , in community detection , in maximum a posteriori (MAP) inference in Markov random fields with binary variables and pairwise interactions and in robust PCA [46, Alg. 1]. All of these study the effects of the relaxation on the final outcome, mostly under random data models. Their linear cost matrices are often structured (sparse or low-rank), which is easily exploited here.
is an important biomedical imaging instance of (), where orthonormal matrices are to be estimated with .
3 Related work
Problem () is an instance of optimization on manifolds . Optimization over orthonormal matrices is also studied in, e.g., . Being equivalent to (P) with a rank constraint, () also falls within the scope of optimization over matrices with bounded rank , where the latter is also an extension of . The particular case of optimization over bounded-rank positive semidefinite matrices with linear constraints was already addressed in . The same without positive semidefiniteness constraint is studied recently in , also with a discussion of global optimality of second-order critical points. With a linear cost , problem () (which then has a quadratic cost ) is a subclass of quadratically constrained quadratic programming (QCQP). QCQP’s and their SDP relaxations have been extensively studied, notably in , with particular attention to approximation ratios. For (P), these approximation ratios can be found in .
In part owing to the success of (P) with linear in adequately solving a myriad of hard problems, there has been strong interest in developing fast, large-scale SDP solvers. The present paper is one example of such a solver, restricted to the class of problems (P). SDPLR is a more generic such solver . See also for a review, and for a recent low-complexity example with precise convergence results, but which does not handle constraints.
Much of this paper is concerned with characterizing the rank of solutions of (P), especially with respect to how large must be allowed to grow in () to solve (P). There is also considerable value in determining under what conditions (P) admits solutions of the desired rank for a specific application, that is: when is the relaxation tight? This question is partially answered in for the closely related phase synchronization problem, under a stochastic model for the data. See for a proof in the stochastic block model, and for a study of phase transitions in random convex programs. There also exist deterministic tightness results, typically relying on special structure in a graph underlying the problem data. See for example . See also Appendix A for a deterministic proof of tightness in the case of single-cycle synchronization of rotations. The proof rests on the availability of a closed-form expression for the dual matrix (21), and for the solution to be certified. With the same ingredients, it is easy to show, for example, that (P) is tight for Max-Cut when the graph is bipartite.
Semidefinite relaxations in the form of (P) with additional constraints have also appeared in the literature. In particular, this occurs in estimation of rotations, with explicit care for the determinant constraints: Saunderson et al. explicitly constrain off-diagonal blocks to belong to the convex hull of the rotation group; this is not necessary for the orthogonal group—see Proposition 2.1. Similarly, for synchronization of permutations in joint shape matching, off-diagonal blocks are restricted to be doubly stochastic . Finally, in recent work, Bandeira et al. study a more powerful class of synchronization problems with additional linear constraints of various forms. An example with an additional nonlinear constraint appears in , which imposes an upperbound on the spectral norm of . All of these are motivation to generalize the framework studied here, in future work.
We mention in passing that the MaxBet and MaxDiff problems do not fall within the scope of this paper. Indeed, although they also involve estimating orthonormal matrices as in (), their cost function has a different type of invariance, which would also lead to a different type of relaxation.
4 Notation
Geometry
Both search spaces of () and (P) enjoy rich geometry, which leads to efficient analytical and numerical tools for the study of these optimization problems. The former is a smooth Riemannian manifold, while the latter is a compact convex set. Figure 1 depicts the two.
This allows for a simple definition of the manifold via an equality constraint as
The total computational cost of a projection is thus flops.
Optimization algorithms on Riemannian manifolds typically are iterative. As such, they require a means of moving away from a point along a prescribed tangent direction , to reach a new point on the manifold: the next iterate. Since does not, in general, belong to the manifold, extra operations are required. Retractions achieve exactly this [4, § 4.1]. One possible retraction for (1) is as follows. For each “slice” in ,
where is a thin singular value decomposition of the th slice . This retraction projects each slice of to the closest orthonormal matrix. Consequently, this is even a second-order retraction . The total cost of computing a retraction is flops.
2 Convex geometry of the full search space
The optimization problem (P) is defined over the compact convex set
Since is positive semidefinite, for all , the submatrix formed by the blocks and is positive semidefinite. By Schur, this holds if and only if , which in turn happens if and only if all singular values of are at most 1. The set of such matrices is the convex hull of all orthogonal matrices of size .
The set may be decomposed into faces of various dimensions.
A face of is a convex subset of such that every (closed) line segment in with a relative interior point in has both endpoints in . The empty set and itself are faces of .
By [56, Thm. 18.2], the collection of relative interiorsThe relative interior of a singleton is the singleton. of the non-empty faces forms a partition of . That is, each is in the relative interior of exactly one face of , called . Furthermore, all faces of are exposed [55, Cor. 1], that is, for every face , there exists a linear function such that is the set of solutions of (P). Of particular interest are the zero-dimensional faces of (singletons), called its extreme points.
is an extreme point of if there does not exist and such that . is an exposed point of if there exists such that is the unique maximizer of in .
In other words, is extreme if it does not lie on an open line segment included in . Since is compact, it is the convex hull of its extreme points [56, Cor. 18.5.1]. Extreme points are of interest notably because they often arise as the solution of optimization problems. Specifically, if is a concave function (in particular, if is linear), then attains its minimum on at one of its extreme points [56, Cor. 32.3.2].
The dimension of is the dimension of the kernel of . The rank-nullity theorem gives a lowerbound (see also Theorem 3.15 for an upperbound):
It follows that extreme points (i.e., points such that ) have small rank:
Note that when .
For linear , (P) admits an extreme point as global optimizer, so that () and (P) have the same optimal value as soon as (16). In other words: for linear , () is not NP-hard if .
Not all feasible ’s with rank as in (16) are extreme. For example, setting and as in Figure 1, select two distinct, admissible matrices of rank 1, and . For all , the matrix , lying on the open line segment between and , is admissible and has rank 2. Thus, satisfies (16), but it is not an extreme point, by construction. Notwithstanding, the expectation that is generically of full rank suggests that almost all feasible ’s satisfying (16) should be extreme; an intuition that is supported by Figure 1. More generally, in Theorem B.1, we prove for that for almost all of rank .
Many applications look for solutions of rank . All ’s of rank are exposed (hence extreme), meaning they can all be recovered as unique solutions of (P).
Let denote the singular values of . By Proposition 2.1, for all . Hence,
The upperbound is attained if and only if for all , thus, if and only all ’s are orthogonal. By Proposition 2.1, this is the case if and only if . Now consider has rank . We show it is exposed (and hence extreme):
The second inequality follows by Cauchy-Schwarz, and equality is attained if and only if , which is in . Thus, both max problems admit as unique solution, confirming that is an exposed extreme point. ∎
Proposition 2.3 is an extension of [45, Thm. 1] to the case . We note that the proof in that reference does not generalize to .
From second-order critical points Y𝑌Y to KKT points X𝑋X
In this section, we show that rank-deficient second-order critical points of () yield KKT points of (P). Furthermore, when is second-order critical but is not KKT, it is shown how to escape the saddle point by increasing . If increases all the way to , then all second-order critical points reveal KKT points. The proofs parallel those in . The main novelty is explicit bounds on such that all second-order critical points of () reveal KKT points. The proofs bring us to consider the facial structure of .
A key ingredient for all proofs in this section is the availability of an explicit matrix (21) which is positive semidefinite if and only if is KKT (Theorem 3.3). The formula for is simply read off from the first-order optimality conditions of (), owing to smoothness of the latter.
If is a local optimizer for (P), then is a KKT point. If is convex, all KKT points are global optimizers.
Apply Theorems 3.25 and 3.34, and Example 3.36 in . KKT conditions are necessary since Slater’s condition holds: is feasible for (P) and it is strictly positive definite. ∎
If is a local optimizer for (), then it is a second-order critical point.
Lemmas 3.1 and 3.2 suggest the definition of an (as yet merely tentative) formula for the dual certificate , based on (19):
is a KKT point for (P) if and only if (21) is positive semidefinite. If so, is the unique dual certificate for Lemma 3.1.
We show the if and only if parts of the first statement separately.
Since is a KKT point for (P), there exist and symmetric, block-diagonal satisfying the conditions in Lemma 3.1. In particular, and . Thus, and . Here, we used both the fact that is symmetric, block-diagonal and the fact that . Consequently, .
The last point also shows there exists only one pair certifying is a KKT point. ∎
Notice how the Riemannian structure underlying problem (P) made it possible to simply read off an analytical expression for a dual certificate from the necessary optimality conditions of (). This smooth geometry also leads to uniqueness of the dual certificate (this is connected to nondegeneracy [5, Thm. 7]). Theorem 3.3 makes for an unusually comfortable situation and will be helpful throughout the paper.
For convex , we can make the following statement regarding uniqueness of the solution.
Assume is convex. If is an extreme point for (P) (which is true in particular if ), and , and (strict complementarity), then is the unique global optimizer of (P).
From Theorem 3.3, it is clear that is a global optimizer. We prove by contradiction that it is unique. Let be another global optimizer. Since (P) is a convex problem in this setting, is constant over the whole (optimal) segment for . Hence, the directional derivative of at along is zero:
Since both and are positive semidefinite, it ensues that . (Note that for linear , this shows is the dual certificate for all global optimizers of (P), not only for .) Hence, .
In general, the condition that be an extreme point in the previous theorem cannot be removed. Indeed, if , then all admissible ’s are globally optimal and . In particular, satisfies strict complementarity, but if , it is not extreme, and it is not a unique global optimizer. Likewise, any rank- admissible is extreme and globally optimal, but does not satisfy strict complementarity. Similar examples can be built with nonzero linear costs , where the sparsity pattern of corresponds to a disconnected graph.
Continuing with convex cost functions, KKT points of (P) coincide with global optimizers. This and the fact that () is a relaxation of (P) lead to the following summary regarding global optimality conditions. For (), these sufficient conditions are conclusive whenever the relaxation is tight.
Since () is essentially equivalent to (P) with the additional constraint , assuming is optimal for (), we expect to be a KKT point at least if either of the following holds: (1) if is rank deficient, since then the extra constraint is not active, meaning it is “as if” we were solving (P); or (2) if , since then the extra constraint is vacuous. The two following theorems show this still holds for second-order critical points .
If is a rank-deficient, second-order critical point for (), then is a KKT point for (P).
If is square () and it is a second-order critical point for , then is a KKT point for (P). If is full-rank, it needs only be first-order critical for to be a KKT point.
If is rank deficient, then the result follows from Theorem 3.7. If is full rank, then it is invertible. Since is also a critical point, first-order optimality conditions (19) imply , hence . This completes the proof, as per Theorem 3.3. ∎
In particular, if is convex and (P) has a unique solution of rank , then all second-order critical points of () have rank either or . Thus, if is larger than the rank of a solution of (P), we may hope that minimizing () until we reach a second-order critical point will result in a rank-deficient , revealing a KKT point. Unfortunately, in general, we cannot guarantee rank deficiency beforehand. For those cases, the following theorem and corollary provide a means of escaping unsatisfactory critical points.
By Theorem 3.3, exists because is not a KKT point. Since , is indeed tangent at (6). From (22), it follows that
Since , there exists such that for all in .∎
Since , is indeed feasible for and . Since is critical, , so : is a critical point. The rest follows from Theorem 3.9. ∎
Later in this section, we show how to escape full-rank points without increasing the rank, under additional assumptions—see Proposition 3.17.
An important question remains: for moderate , should we expect to encounter second-order critical points that do not correspond to KKT points of (P)? We provide partial answers for concave below. In particular, this covers the important case of linear costs. The stronger results do not include strictly convex functions, as for these (P) can have solutions of arbitrary rank.
The result below shows that can only be a critical point of () if is a critical point for (P) restricted to the face ; and similarly for second-order critical points. This brings a useful corollary.
Thus, is a second-order critical point for the face-restricted optimization problem. ∎
The following corollary can be put in perspective with [20, Thm. 3.4]. The latter states a similar result for (P) with general linear equality constraints, for linear . Their result characterizes local optimizers of (), whereas the following result characterizes first- and second-order critical points (computationally more manageable objects).
If is linear and is critical, then is constant over . If furthermore is second-order critical and (16), then either is globally optimal for (P), or ( has full rank and) the face has positive dimension (15) and is suboptimal.
If is convex (resp., strictly convex) and is critical, then is optimal (resp., the unique optimizer) for (P) restricted to .
For linear , Corollary 3.12 is not quite sufficient to determine how large must be to exclude “bad” second-order critical points. Paraphrasing the comment following [20, Thm. 3.4], the latter showed that, for linear and (essentially), local optima of () are global optima, with the caveat that positive-dimensional faces (over which must be constant) may harbor non-global local optima. In the literature, this has sometimes been quoted as saying that local optima are global optima if is not constant over any proper face of [see, e.g., 46, footnote 3], but there is no indication that this is a mild condition.In fact, we found in numerical experiments (not reported) that, for , (thus, almost all faces have dimension 1 and ) and a random linear cost , we could easily find a face of dimension 1 over which the cost is constant but not optimal.
We thus set out to further refine the implications of second-order criticality of . We do so by leveraging the tight relationship (22) between the Hessian of the cost on () and the dual certificate .
negative eigenvalues. Hence, if is not a KKT point for (P), then it has rank and .
In particular, since , we have . It remains to determine .
Combine with and the definition of (15) to conclude. ∎
Theorem 3.13 is particularly meaningful for linear , considering the intuition that for , generically, (15) (Theorem B.1 gives a proof for ). Thus, for such , a second-order critical point is either globally optimal, or it maps to a face of abnormally high dimension, over which must be constant and suboptimal. We could not produce an example of the latter. We summarize this in a corollary, followed by a question.
Use Corollary 3.12, Theorem 3.13 and Theorem 3.7. ∎
For linear and , the question is the following: if is sampled uniformly at random from the unit-norm symmetric matrices, what is the probability that is constant over a face of dimension or larger, with ? If it is zero, then almost surely all second-order critical points of () are global optimizers. We do not answer this question here, but refer to Theorem B.1 to argue that there are few such faces.
Theorem 3.13 is motivation to investigate upper-bounds on the dimensions of faces of . The following result extends [42, Thm. 3.1(i)] to .
If has rank , then the face (13) has dimension bounded as:
If is an integer multiple of , the upperbound is attained for some .
The constraint means for each and for each . To establish the theorem, we need to extract a subset of at least of these constraint matrices, and guarantee their linear independence. To this end, let
That is, for each slice , includes all constraints of that slice which involve at least one of the selected rows. For each slice , there are such constraints—note the correction for double-counting the ’s where both and are in . Thus, using , the cardinality of is:
We first show matrices in are linearly independent. Then, we show is large enough.
It remains to lowerbound (28). To this effect, use to obtain:
Indeed, the maximum is attained by making as many of the entries of as large as possible—this can be verified using KKT conditions. In combination with (28), this confirms at least linearly independent constraints act on , thus upperbounding .
To conclude, we argue that the proposed upperbound is essentially tight. Indeed, build by repeating times the first rows of , then by replacing its first rows with (to ensure is full-rank). If is an integer, then exactly the first slices each contribute independent constraints, i.e., . ∎
Theorems 3.3, 3.13 and 3.15 combined give a sufficient condition on to ensure all second-order critical points of () correspond to KKT points of (P).
Since , we have . Theorem 3.13 then gives (21) if , which is the case. Apply Theorem 3.3 to conclude. ∎
In particular, for the Max-Cut SDP (, linear), this shows that computing a second-order critical point of () with certainly solves (P). This is an interesting and new result, but of course, in practice, it is desirable (and empirically sufficient) to take (much smaller). In the unlikely event we would encounter a “bad” second-order critical point with such , the following theorem provides an escape route (for concave ) which does not require increasing the rank. It proceeds by moving inside a face.
Recall the definitions of (13) and (14). All follows from , where is the adjoint of . ∎
The latter proposition suggests an explicit numerical method to compute , by computing a minimal eigenvector of . Applying costs flops. Assuming and that up to applications are necessary, this brings the cost of computing to flops.
The Riemannian staircase algorithm
The above results suggest a simple algorithm to compute KKT points of (P): for some small value of , find a second-order critical point of (). If is rank deficient, then Theorem 3.7 guarantees is KKT for (P). Otherwise, increase and find a second-order critical point of , possibly warm-starting as suggested by Corollary 3.10. Iterating this procedure, the worst-case scenario is when increases all the way to , in which case any second-order critical point of yields a KKT point of (P), as per Theorem 3.8. Specific results pertaining to classes of functions limit how large could grow. We call this the Riemannian Staircase, listed as Algorithm 1. Of course, the hope is that the algorithm returns for some small , and in practice we find that it is often sufficient to take just above the rank of a solution.
Inside the else-block, the augmented (with additional columns of zeros) is (usually) a saddle point. Although the second-order procedure RiemannianOptimization should be able to escape it, we make this step explicit via the procedure EscapeDirection. The latter can be implemented using Corollary 3.10, which indicates how computing an eigenvector of (21) associated to its smallest eigenvalue, combined with a line-search, allows to escape the saddle with strict cost decrease (unless that eigenvalue is nonnegative, in which case and is returned with being KKT).
For all sufficiently smooth , taking guarantees Algorithm 1 returns such that is a KKT point. For convex , KKT points may have arbitrary rank, so that allowing large seems necessary in general. For strongly concave , it is sufficient to take (Corollary 3.12) ; for concave (and linear) , it is sufficient to take (Corollary 3.16), and it is expected that should be sufficient (Corollary 3.14 and discussion).
In the latter case, in the unlikely event that Algorithm 1 terminates with of size , , full-rank and second-order critical such that is not a KKT point of (P), it is possible to further optimize without increasing the rank. Indeed, since , Proposition 3.17 shows how to compute such that is on the boundary of . Since is concave, (Lemma 3.11). is critical and rank-deficient. If is second-order critical, is KKT. Otherwise, Theorem 3.9 shows how to escape with a strict cost decrease. Iterating this procedure as needed, the cost decreases strictly (no cycling), and the rank never exceeds . We expect this procedure to terminate since (P) admits KKT points of rank at most , but we do not prove this.
In practice, for the RiemannianOptimization procedure, we use the Riemannian trust-region method (RTR) , through the Manopt toolbox . RTR is a descent method. It converges toward critical points regardless of the initial iterate (global convergence).If the local optimizers of were isolated, we could also guarantee local convergence at a quadratic rate, but for all orthogonal , so this is never the case. In practice though, we do observe a characteristically superlinear convergence. Furthermore, the stable fixed points of RTR are local optimizers, thus making convergence to points which are not second-order critical unlikely (but not impossible). Should this happen, Theorem 3.9 shows how to escape. Admittedly, it is unclear how many times this might have to be repeated in the worst case.
Ideally, one would modify the RTR algorithm itself to ensure global convergence to second-order critical points. To the best of our knowledge, algorithms with such properties have not yet been described in the Riemannian setting. Nevertheless, we are hopeful that this should be possible, in the light of recent work by Cartis et al. . These authors indeed describe a modification of the classical trust-region method and guarantee polynomial-time convergence to approximate second-order critical points. Encouragingly, Sun et al. achieved a strong result in this vein for dictionary learning with RTR on a sphere, hinting to a possible generalization on manifolds.
Special case: linear cost function
Let be linear and let denote the optimal value of (P). Then, for all ,
Algorithm 1 solves the SDP by optimizing in (), whose differentials are:
As an illustrative example, we here apply Algorithm 1 and competing SDP solvers to random instances of the orthogonal synchronization problem . In this setting, one wishes to estimate orthogonal matrices , based on noisy measurements of the relative transformations . See the introduction for applications.
In this benchmark, for increasing values of , target matrices of size are generated uniformly at random. The measurements of relative rotations are (), where is the noise level and the ’s are independent random noise matrices with i.i.d. normal entries. We also set and . To estimate the ’s from the ’s, we set and solve (P). If the solution has rank , this is equivalent to solving the maximum likelihood problem:
Remarkably, for all instances generated, (P) admits a rank solution, thus revealing the true maximum likelihood estimator: a hard quantity to compute, in general. This serendipitous phenomenon is partly explained in .
Figure 2 shows how much time it takes various solvers to find this solution of rank (they all do). Algorithm 1 runs RTR once on () with , with a random initial guess, and returns with an optimal rank solution. We compare against interior point methods SeDuMi , SDPT3 and Mosek (the latter two via CVX ) as well as against SDPLR with and without forcing the search rank to (the forced version is labeled SDPLR*). We also depict how much time it takes to simply compute the top eigenvectors of , which, after projection, reveal an (empirically) equally good estimator for this problem, but with weaker guarantees .
Special case: Pseudo-Huber loss cost function
In the previous section, orthogonal synchronization is considered with Gaussian noise on the relative measurements. Maximum likelihood estimation then naturally leads to the minimization of a quadratic cost in , which simplifies to a linear cost in .
Tools in this paper do not directly apply to the LUD cost, because it is nonsmooth.Recent work on nonsmooth optimization on manifolds may prove useful in this regard. Unfortunately, in our experiments we also found that smoothing the LUD cost typically leads to higher rank solutions, at a significant computational premium. We formalize this observation in the following theorem. The assumptions on are not restrictive: they require just the slightest inconsistency in the measurements.
In view of these results, we take interest in minimizing the related smoothed cost:
We may still compute a KKT point for (P), but there is no guarantee that such a point will be even a local minimizer anymore. On the bright side, Corollary 3.12 states that, by strong concavity of , all KKT points of (P) are extreme points (thus they have rank at most (16)) and, for , all second-order critical points of () reveal KKT points of (P). The numerical experiment below shows that, empirically, even for , the proposed algorithm typically converges to a rank- KKT point of excellent quality. Furthermore, as is decreased, the quality of the found KKT point increases (with warm-starting).
We now use the proposed robust formulation of orthogonal synchronization to situations where the sought matrices are in fact permutationsPermutation matrices are binary matrices with exactly one 1 on each row and column. They are orthogonal. (without modifying the algorithms). Synchronization of permutations notably arises in image association problems in computer vision .
Let the ’s be permutations to estimate and let the ’s be measurements of the relative permutations . A subset of the measurements of a given size is selected uniformly at random and replaced by uniformly random permutations (outliers). The other measurements are correct. If perfect recovery of the ’s is achieved, then the permutations are recovered.
Figure 3 exhibits the perfect recovery phenomenon hinted by Wang and Singer . We say “hinted” as the chosen scenario does not exactly fit the assumptions of these authors. Even in the face of many outliers, the true permutations are recovered, showing the applicability of the proposed methods to permutation estimation.
Conclusions and perspectives
We proposed a novel algorithm to compute KKT points for optimization problems over a class of spectrahedra that come up in relaxations of various problems involving orthonormal matrices. Our approach consists in exploiting the smooth geometry of bounded-rank subsets of those spectrahedra, to reduce the problem to Riemannian optimization. This effectively allows one to control how much lifting (dimension increase) is involved in the relaxation. An investigation of both the convex and the Riemannian geometries of the total and the bounded-rank problem showed that, under certain conditions, it is only necessary to compute second-order critical points on a low-dimensional portion of the boundary of the spectrahedron. Numerical experiments confirm the usefulness of this observation.
The present work triggers a number of questions for future investigation.
Which spectrahedra are such that their elements of bounded rank form a smooth manifold? (Journée et al. cover a number of such sets.) When the search space is of such form with additional constraints, can those be accommodated efficiently? This would be useful to address the SDP’s in, e.g., .
What is the computational complexity of obtaining a second-order critical point of a sufficiently smooth function on a Riemannian manifold, up to a given accuracy? This might be answered by following work in . When is only approximately second-order critical and rank deficient, is approximately KKT, in a certain sense? For linear , Proposition 5.1 offers a positive answer.
For nonconvex , the set of KKT points includes the local optimizers of (P), as well as a number of uninteresting points. All KKT points give rise to critical points, but not necessarily second-order critical points. Can this be used to improve guarantees? Could we compute second-order KKT points instead, thus possibly excluding even more spurious points? A starting point might be [57, Thm. 3.45] and .
Assuming linear , if (P) admits a unique solution of rank (see, e.g., ), is it sufficient to explore () with ? Under the noise model of Section 5, this is observed empirically. Perhaps, this could be investigated via the expected size of the attraction basin of the global optimizers, similarly to in the context of dictionary learning.
Finally, regarding Corollary 3.14 and its attached question: for a random linear cost function and , what is the probability that () admits second-order critical points which are not global optimizers?
The author thanks P.-A. Absil, A. d’Aspremont, A. Bandeira, X. Cheng, B. Gerencsér, Y. Khoo, B. Mishra, A. Singer and B. Vandereycken for fruitful discussions. Parts of this research were conducted while N.B. was a research fellow with the FNRS in Belgium, and while generously supported by a Research in Paris grant, by the “Fonds Spéciaux de Recherche” (FSR) at UCLouvain and by the Chaire Havas “Chaire Economie et gestion des nouvelles données”, the ERC Starting Grant SIPA and a Research in Paris grant in France.
References
Appendix A Tightness for synchronization on a cycle
with the indexing convention that and . Under a permissive condition on the measurements, Sharp et al. , Peters et al. exhibit an explicit formula for the solution (they restrict their attention to rotation matrices, that is, orthogonal matrices of determinant +1). We show that under that same condition, the corresponding SDP relaxation (P) with
is tight: there exists a unique solution of rank which reveals the global optimum.
The proof rests on two key ingredients: (a) we have an explicit formula for the solution to certify, and (b) we have an explicit formula for the dual certificate to check. It seems reasonable to expect that the result should carry over to connected graphs whose cycles have disjoint edges.
Recently, Zhang and Singer gave a powerful tightness result for such SDP’s: as stated, their result is restricted to cycles of length 3, but it nicely accommodates non-orthogonal blocks in the data matrix .
Part 1: guessing . When the measurements are perfectly consistent, , and it is easy to construct : set and for ; then . This construction does not use but still achieves owing to , hence is optimal. When the cycle is inconsistent, it is reasonable to guess that the least-squares criterion will attempt to spread the inconsistency evenly over each edge . One th of the error is represented by an offset —taking this principal matrix root requires not to have negative eigenvalues. We build by incorporating part of the error at each step, appropriately aligned. First define this recurrence: and for (note that ). Then, and for . As previously, . It is not hard to check that . Of course, is admissible for (P) with rank .
All blocks of (32) are diagonal, so that its rows and columns may be permuted (without affecting its spectrum) to make it block diagonal, with th block of size given by
In particular, . Since the vector is in the kernel of , it must be that . This concludes the proof. ∎
In general, the condition on the eigenvalues of is necessary. Indeed, for and , choose the measurements such that (for example, , and ) and verify that none of the 4 admissible rank-1 matrices are optimal. For the frequent case where the measurements are rotation matrices (that is, orthogonal with determinant +1), the condition is not too restrictive: even if they were distributed uniformly at random, would satisfy the condition almost surely.
Appendix B Generic face dimension
For , the following theorem shows almost all faces of have minimal dimension, as per the bound (15) . Key parts of the proof are due to Xiuyuan Cheng and Balázs Gerencsér.
We expect that this result remains valid for , but we are missing a proof.