Solving SDPs for synchronization and MaxCut problems via the Grothendieck inequality
Song Mei, Theodor Misiakiewicz, Andrea Montanari, Roberto I. Oliveira
Introduction
A successful approach to statistical estimation and statistical learning suggests to estimate the object of interest by solving an optimization problem, for instance motivated by maximum likelihood, or empirical risk minimization. In modern applications, the unknown object is often combinatorial, e.g. a sparse vector in high-dimensional regression or a partition in clustering. In these cases, the resulting optimization problem is computationally intractable and convex relaxations have been a method of choice for obtaining tractable and yet statistically efficient estimators.
In this paper we consider the following specific semidefinite program
as well as some of its generalizations. This SDP famously arises as a convex relaxation of the MaxCut problemIn the MaxCut problem, we are given a graph and want to partition the vertices in two sets as to maximize the number of edges across the partition., whereby the matrix is the opposite of the adjacency matrix of the graph to be cut. In a seminal paper, Goemans and Williamson [GW95] proved that this SDP provides a approximation of the combinatorial problem. Under the unique games conjecture, this approximation factor is optimal for polynomial time algorithms [KKMO07].
Provided that , the solution of (MC-SDP) corresponds to the global maximum of (-Ncvx-MC-SDP) [Bar95, Pat98, BM03]. Recently, [BVB16] proved that, as long as , for almost all matrices , the problem (-Ncvx-MC-SDP) has a unique local maximum which is also the global maximum. This paper proposed to use the Riemannian trust-region method to solve the non-convex SDP problem, and provided computational complexity guarantees on the resulting algorithm.
As mentioned above, we extend our analysis beyond the MaxCut type problem (-Ncvx-MC-SDP) to treat an optimization problem motivated by synchronization. synchronization (with ) has applications to computer vision [ANKKS+12] and cryo-electron microscopy (cryo-EM) [SS11]. A natural SDP relaxation of the maximum likelihood estimator is given by the problem
By imposing the rank constraint , we obtain a non-convex analogue of (OC-SDP), namely:
According to the result in [BM03], as long as , the global maximum of the problem (-Ncvx-OC-SDP) coincides with the maximum of the problem (OC-SDP). As proved in [BVB16], with the same value of for almost all matrices , the non-convex problem has no local maximum other than the global maximum. [Bou15] proposed to choose the rank adaptively: as is not large enough, increase to find a better solution. However, none of these works considers , which is the focus of the present paper (under the assumption that is of order one as well).
A main result of our paper is a Grothendieck-type inequality that generalizes and strengthens the preliminary technical result of [Mon16]. Namely, we prove that for any -approximate concave point of the rank- non-convex SDP (-Ncvx-MC-SDP), we have
where denotes the maximum value of the problem (MC-SDP) and is the objective function in (-Ncvx-MC-SDP). An -approximate concave point is a point at which the eigenvalues of the Hessian of are upper bounded by (see below for formal definitions).
Surprisingly, this result connects a second order local property, namely the highest local curvature of the cost function, to its global position. In particular, all the local maxima (corresponding to ) are within a -gap of the SDP value. Namely, for any local maximizer , we have
All the points outside this gap, with an -margin have a direction of positive curvature of at least size .
Figure 1 illustrates the landscape of the rank- non-convex MaxCut SDP problem (-Ncvx-MC-SDP). We show that this structure implies global convergence rates for approximately solving (-Ncvx-MC-SDP). We study the Riemannian trust-region method in Theorem 2. In particular, we show that this algorithm with any initialization returns a approximation of the MaxCut of a random -regular graph in iterations, cf. Theorem 3.
For synchronization, we consider the problem (-Ncvx-OC-SDP) and generalize our main Grothendieck-type inequality to this case, cf. Theorem 7. Namely, for any -approximate concave point of the rank- non-convex Orthogonal-Cut SDP (-Ncvx-OC-SDP), we have
where , denotes the maximum value of the problem (OC-SDP) and is the objective function in (-Ncvx-OC-SDP). We expect that the statistical analysis of local maxima, as well as the analysis of optimization algorithms, should extend to this case as well, but we leave this to future work.
2 Notations
Optimization is performed over the convex set of positive-semidefinite matrices with diagonal entries equal to one, also known as the elliptope. We write for the length of the range of the SDP with data (noticing that for every matrix in the elliptope, we have ).
For the rank- non-convex SDP problem (-Ncvx-MC-SDP), we define the manifold as
The Hessian is uniquely defined by the following holding for all in the tangent space :
Main results
First we define the notion of approximate concave point of a function on a manifold .
Let be a twice differentiable function on a Riemannian manifold . We say is an -approximate concave point of on , if satisfies
where denotes the Riemannian (intrinsic) Hessian of at point , is the tangent space, and is the scalar product on .
Note that an approximate concave point may not be a stationary point, or may not even be an approximate stationary point. Both local maximizers and saddles with largest eigenvalue of the Hessian close to zero are approximate concave points.
The classical Grothendieck inequality relates the global maximum of a non-convex optimization problem to the maximum of its SDP relaxation [Gro96, KN12]. Our main tool is instead an inequality that applies to all approximate concave ponts in the non-convex problem.
For any -approximate concave point of the rank- non-convex problem (-Ncvx-MC-SDP), we have
We can use the structural information in Theorem 1, to develop an algorithm that approximately solves the problem (-Ncvx-MC-SDP), and hence the MaxCut SDP (MC-SDP). The algorithm we propose is a variant of the Riemannian trust-region algorithm.
The Riemannian trust-region algorithm (RTR) [ABG07] is a generalization of the trust-region algorithm to manifolds. To maximize the objective function on the manifold , RTR proceeds as follows: at each step, we find a direction that maximizes the quadratic approximation of over a ball of small radius
Solving the trust-region problem (RTR-update) exactly is computationally expensive. In order to obtain a faster algorithm, we adopt two variants in the RTR algorithm. First, if the gradient of at the current estimate is sufficiently large, we only use gradient information to determine the new direction: we call this a gradient-step; if the gradient is small (i.e. we are at an approximately stationary point), we try to maximize uniquely the Hessian contribution: we call this an eigen-step. Second, in an eigen-step, we only approximately maximize the Hessian contribution. Let us emphasize that these two variants are commonly used and we do not claim they are novel.
Take , which means that only eigen-steps are used. In this implementation, we take the step size .
Take . When , we choose the step size . When , we choose the step size , where .
In each eigen-step, we need to compute a direction such that and . This can be done using the following power method. (Note that the condition can always be ensured eventually by replacing by .)
The shifting parameter can be chosen as which is an upper bound of . We take the parameter with a large absolute constant . In practice, when choosing the parameter , we do not know for each , but we can replace it by a lower bound, or estimate it using some heuristics. It is a classical result that –with high probability– the power method with this number of iterations finds a solution with the required curvature [KW92].
There exists a universal constant such that, for any matrix and , the Fast Riemannian Trust-Region method with step size as described above for each iteration and initialized with any returns a point with
within the following number of steps with each implementation
Taking (i.e. only eigen-steps are used), then it is sufficient to run steps.
Taking , then it is sufficient to run steps in which there are eigen-steps and gradient-steps.
The gap in Eq. (9), is due to the fact that Theorem 1 does not rule out the presence of local maxima within an interval from the global maximum. It is therefore natural to set , to obtain the following corollary.
There exists a universal constant such that for any matrix , the Fast Riemannian Trust-Region method with step size as described above for each iteration and initialized with any returns a point with
within the following number of steps with each implementation
Taking , then it is sufficient to run eigen-steps.
Taking , then it is sufficient to run steps in which there are eigen-steps and gradient-steps.
In order to develop some intuition on these complexity bounds, let us consider two specific examples.
As a second example, consider the MaxCut problem for a -regular graph , with adjacency matrix . This can be addressed by considering the SDP (MC-SDP) with , and the corresponding non-convex version (-Ncvx-MC-SDP). As shown in the next section, finding a -approximate concave point of (-Ncvx-MC-SDP) yields an -approximation of the MaxCut of . For this choice of , we have , , and . Therefore, in implementation where all the steps are eigen-step, the number of iterations given by Corollary 1 scales as . In implementation , we choose , and the number of gradient-steps and eigen-steps scale respectively as and . In terms of floating point operations, the computational costs of one gradient-step and one eigen-step power iteration are the same (which are ) as in the example of minimum bisection SDP. The number of iterations in the power method scales as . Therefore, the two approaches are equivalent. The total number of floating point operations to find a approximate solution of the MaxCut of a -regular graph is upper bounded by .
Let us emphasize that the complexity bound in Theorem 2 is not superior to the ones available for some alternative approaches. There is a vast literatures that studies fast SDP solvers [AHK05, AK07, Ste10, GH11]. In particular, [AK07, Ste10] give nearly linear-time algorithms to approximate (MC-SDP). These algorithms are different from the one studied here, and rely on the multiplicative weight update method [AHK12]. Using sketching techniques, their complexity can be further reduced [GH11]. However, in practice, the Burer-Monteiro approach studied here is extremely simple and scales well to large instances [BM03, JMRT16]. Empirically, it appears to have better complexity than what is guaranteed by our theorem. It would be interesting to compare the multiplicative weight update method and the non-convex approach both theoretically and experimentally.
2 Application to MaxCut
We consider the following semidefinite programming relaxation
Denote by the solution of this SDP. Goemans and Williamson [GW95] proposed a celebrated rounding scheme using this , which is guaranteed to find an -approximate solution to the MaxCut problem (11), where , .
The corresponding rank- non-convex formulation is given by
Applying Theorem 1, we obtain the following result.
For any , if is a local maximizer of the rank- non-convex SDP problem (13), then using we can find an -approximate solution of the MaxCut problem (11). If is a -approximate concave point, then using we can find an -approximate solution of the MaxCut problem.
where , and is a signal-to-noise ratio. The random matrix model (14) is also known as the ‘spiked model’ [Joh01] or ‘deformed Wigner matrix’ and has attracted significant attention across statistics and probability theory [BAP+05].
The Maximum Likelihood Estimator for recovering the labels is given by
A natural SDP relaxation of this optimization problem is given –once more– by (MC-SDP).
It was proved in [MS16] that the SDP relaxation (MC-SDP) –with a suitable rounding scheme– achieves the information-theoretic threshold for this problem. In this paper, we prove a similar result for the non-convex problem (-Ncvx-MC-SDP). Namely, we show that for any signal-to-noise ratio there exists a sufficiently large such that every local maximizer has a non trivial correlation to the ground truth. Below we denote by the set of local maximizers of problem (-Ncvx-MC-SDP).
For any , there exists a function , such that for any , with high probability, any local maximizer of the rank- non-convex SDP (-Ncvx-MC-SDP) problem has non-vanishing correlation with the ground truth parameter. Explicitly, there exists such that
The proof of this theorem is deferred to Section 5.2.
Note that this guarantee is weaker than the one of [MS16], which also presents an explicit rounding scheme to obtain an estimator . However, we expect that the techniques of [MS16] should be generalizable to the present setting. A simple rounding scheme takes the sign of principal left singular vector of . We will use this estimator in our numerical experiments in Section 4.
This theorem can be compared with the one of [BBV16] which uses but requires . As a side result which improves over [BBV16] for , we obtain the following lower bound on the correlation for any .
For any , the following holds almost surely
The proof is deferred to Section 5.3. Our lower bound converges to at large , which is the qualitatively correct behavior.
4 Stochastic block model
The planted partition problem (two-groups symmetric stochastic block model), is another well-studied statistical estimation problem that can be reduced to (MC-SDP) [MS16]. We write if is a graph over vertices generated as follows (for simplicity of notation, we assume even). Let be a vector of labels that is uniformly random with . Conditional on this partition, edges are drawn independently with
We consider the case when and with , and , and denote by the average degree. A phase transition occurs as the following signal-to-noise parameter increases
For there exists an efficient estimator that correlates with the true labels with high probability [Mas14, MNS13], whereas no estimator exists below this threshold, regardless of its computational complexity [MNS15].
The Maximum Likelihood Estimator of the vertex labels is given by
where is the adjacency matrix of the graph . This optimization problem can again be attacked using the relaxation (MC-SDP), where is the scaled and centered adjacency matrix.
where for and for . In analogy with Theorem 4, we have the following results on the rank-constrained approach to the two-groups stochastic block model.
Consider the rank- non-convex SDP (-Ncvx-MC-SDP) with the centered, scaled adjacency matrix of graph . For any , there exists an average degree and a rank , such that for any and , with high probability, any local maximizer has non-vanishing correlation with the true labels. Explicitly, there exists an such that
The proof of this theorem can be found in Section 5.4. As mentioned above, efficient algorithms that estimate the hidden partition better than random guessing for and any have been developed, among others, in [Mas14, MNS13]. However, we expect the optimization approach (-Ncvx-MC-SDP) to share some of the robustness properties of semidefinite programming [MPW16], while scaling well to large instances.
5 SO(d)SO𝑑{\rm SO}(d) synchronization
In synchronization we would like to estimate matrices in the special orthogonal group
The Maximum Likelihood Estimator for recovering the group elements solves the problem of the form
In analogy with the MaxCut SDP, we obtain the following Grothendieck-type inequality.
For an -approximate concave point of the rank- non-convex Orthogonal-Cut SDP problem (-Ncvx-OC-SDP), we have
The proof of this theorem is a generalization of the proof of Theorem 1, and is deferred to Section 5.5.
Proof of Theorem 1
In this section we present the proof of Theorem 1, while deferring other proofs to Section 5. Notice that the present proof is simpler and provides a tighter bound with respect to the one of [Mon16]. Before passing to the actual proof, we make a few remarks about the geometry of optimization on .
We will write and often drop the dependence on for simplicity. At , let and be respectively the Euclidean and the Riemannian Hessian of . The Riemannian Hessian is a symmetric operator on the tangent space and is given by projecting the directional derivative of the gradient vector field (we use to denote the directional derivative):
In particular, we will use the following identity
2 Proof of Theorem 1
Let be an -approximate concave point of on . Using the definition and Equation (20), we have (for )
where the expectation is taken over the random matrix .
The left hand side of the last equation gives
Note that . Crucially, if we let , we have and . Thus we have . Therefore, we have
Rearranging the terms gives the conclusion.
Numerical illustration
In this section we carry out some numerical experiments to illustrate our results. We also find interesting phenomena which are not captured by our analysis.
Although Theorem 2 provides a complexity bound for the Riemannian trust-region method (RTR), we observe that (projected) gradient ascent also converges very fast. That is, gradient ascent rapidly increases the objective function, is not trapped at a saddle point, and converges to a local maximizer eventually. In Figure 2, we take , and use projected gradient ascent to solve the optimization problem (-Ncvx-MC-SDP) with a random initialization and fixed step size. Figure 2a shows that the objective function increases rapidly and converges within a small interval from the local maximum (which is upper bounded by the value ). Also the gap between the value obtained by this procedure and the value decreases rapidly with . Figure 2b shows that the Riemannian gradient decreases very rapidly, but presents some non-monotonicity. We believe these bumps occur when the iterates are close to saddle points.
In Figure 3, we examine some geometric properties of the rank- non-convex SDP. As above, we explore the landscape of this problem by projected gradient ascent. In Figure 3a, we plot the curvature versus the gap from the SDP value along the iterations. When is far from , there is a linear relationship between these two quantities, which is consistent with Theorem 1. In Figure 3b, we plot the gap between and for a local maximizer that is produced by projected gradient ascent, for different values of . These data are averaged over realizations of the random matrix . This gap converges to zero as gets large, and is upper bounded by the curve . This coincides with Theorem 1, which predicts that this gap must be smaller than . Note however that –in this case– Theorem 1 is overly pessimistic, and the gap appears to decrease very rapidly with .
Now we turn to study the MaxCut problem. Note that Theorem 3 gives a guarantee for the approximation ratio for the cut induced by any local maximizer of the rank- non-convex SDP (-Ncvx-MC-SDP). In Figure 4, we take the graph to be an Erdős-Rényi graph with and average degree . We plot the cut value found by rounding the maximizer of the rank- non-convex SDP, for from to , and also for which corresponds to the (MC-SDP). Surprisingly, the cut value found by solving rank- non-convex problem is typically bigger than the cut value found by solving the original SDP. This provides a further reason to adopt the non-convex approach (-Ncvx-MC-SDP). It appears to provide a significantly tight relaxation for random instances.
Other proofs
Note that problem (13) is equivalent to problem (-Ncvx-MC-SDP) with matrix . Applying Theorem 1, and noting that the elements of are non-negative, we for any local maximizer of the problem (13), and any optimal solution of the SDP (12),
Applying the randomized rounding scheme of [GW95], we sample a vector , and define by , then we obtain
Therefore, for any local maximizer , it gives an -approximate solution of the MaxCut problem.
If is an -approximate concave point, using Theorem 1 and the same argument, we can prove that it gives an -approximate solution of the MaxCut problem.
2 Proof of Theorem 4
Let . For any local maximum of the rank- non-convex MaxCut SDP problem, according to Theorem 1, we have
Using the convergence of the SDP value as proved in [MS16, Theorem 5], for any , there exists such that, for any , the following holds with high probability
Since for , there exists a such that the above expression is greater than for sufficiently small and , which concludes the proof.
3 Proof of Theorem 5
We decompose the proof into two parts. In part , we prove that almost surely
using only the second order optimality condition. In part , we incorporate the first order optimality condition and prove that as , we have almost surely
Plugging in the expression of , we obtain
Letting , we have
Recall that , and . Thus, we get the lower bound
Also note that is a feasible point of (MC-SDP). Therefore,
where we used the fact that for a GOE matrix , we have almost surely [AGZ10].
Part (b)𝑏(b)
In part we only used the second order optimality condition. In this part of the proof, we will incorporate the first order optimality condition. Note that as , the bound in part is better. So in this part, we only consider the case when .
We decompose the proof into the following steps.
Step 1 Upper bound on , for , using the first order optimality condition.
The first order optimality condition gives , which implies that
for any , where we denoted the entry-wise product of and . Replacing by its expression gives
We take the norm of this expression and, recalling that , we obtain
Notice that , hence
Without loss of generality, let us assume that for which implies
for , where we use the fact that for a GOE matrix , we have almost surely.
Step 2 Lower bound on .
We combine equation (26) and (29) to get almost surely
Since we assumed that and , we obtain, almost surely,
The second inequality above is loose but it is sufficient for our purposes.
Step 3 Upper bound on for .
In Equation (28), let us take and , we have
Combining equation (31) and (30) results in the following upper bound for ,
holding almost surely for any .
Using the second order stationarity condition with this choice of , we have
Consider the first term . It is easy to see that the second order stationary condition implies . Thus, we have
Next consider the second term . We have
where the last inequality is because so that .
Here is the justification of the above fact. For in the elliptope, we have and . For any satisfying and , also satisfies and . Therefore, using the variational representation of the operator norm, we have
Noting that and , we rewrite Equation (34) as following
Plug in the lower bound of , , , we have almost surely
Here we used Equation (32), , and the fact that for a GOE matrix , we have almost surely.
4 Proof of Theorem 6
The proof is similar to the proof of Theorem 4, where the GOE matrix is replaced by the noise matrix .
Applying Theorem 1 with the matrix , similar to Equation (24), we have
According to [MS16, Theorem 8], the gap between the SDPs with the two different noise matrices is bounded with high probability by a function of the average degree
According to [MS16, Theorem 5], for any and , there exists a function such that with high probability, we have
Combining the above results, we have for any , with high probability
For a sufficiently small , taking sufficiently small, and taking successively and sufficiently large, the above expression will be greater than , which concludes the proof. ∎
5 Proof of Theorem 7
We decompose the proof into three parts. In the first part, we do the calculation for a general non-convex problem. In the second part, we focus on the non-convex problem (-Ncvx-OC-SDP). In the third part, we prove a claim we made in the second part.
Let and . We denote the maximum of the above SDP problem:
We assume .
For a fixed integer , the Burer-Monteiro approach considers the following non-convex problem:
with . We will write . The Riemannian Hessian applied on the direction gives
Therefore, according to the definition of the -approximate concave point , we have
where the expectation is taken over the random mapping . Expanding the left hand side gives
The second term in the last equation gives
Part 2
Now let’s consider the case of the rank- non-convex Orthogonal-Cut SDP problem (-Ncvx-OC-SDP). There are constraints corresponding to the set , where . We will denote the optimization manifold:
It is straightforward to verify that for any , we have . Thus, we have . In the following calculation, we write . Recall that is a global maximizer of problem (OC-SDP), and .
Now, let us calculate each term in Equation (39), for the specific problem (-Ncvx-OC-SDP). For the second term in Equation (39), we derived Equation (40). One can check with some calculations that for any , we have
For the fourth term in Equation (39), we derived Equation (42). Following the calculation in Equation (42), we have
For the third term in Equation (39), we derived Equation (41). Following the calculation in Equation (41), we have
where we define . Here, we claim that is a feasible point of the Orthogonal-Cut SDP problem (OC-SDP). We will prove this claim in part .
For any feasible point of the Orthogonal-Cut SDP problem (OC-SDP), we have . Therefore, from Equation (39), we obtain
Letting , rearranging the above inequality, we have
which finally gives the desired inequality
Part 3
Now, let us check that is a feasible point of the Orthogonal-Cut SDP problem (OC-SDP). The reason is given by the following Fact and .
Fact The ’th block of equals . To show this, we assume , and due to the symmetry, we just need to check and . We denote , and we rewrite as
where . We have the following series of simplification
The third equality used the fact that and are feasible point so that their ’th block are . Similarly, we have
The last equality is because is always a diagonal matrix.
Therefore, we proved that is a feasible point of the Orthogonal-Cut SDP problem (OC-SDP). ∎
6 Proof of Theorem 2
(Gradient-step) Fix . For any point such that , taking searching direction and step size , we have
The second order expansion of around with gives
The second inequality used the bound on the second order derivative in Lemma 5 in Appendix A.1. Now we take . Since , we have . Plugging this into the above equation completes the proof. ∎
(Eigen-step) For any point , and satisfying , , and , choosing , we have
The third order expansion of around for gives
The second inequality used the bound on the third order derivative in Lemma 6 in Appendix A.1. Now we take . Note that we always have , and therefore we have . Plugging this into the above equation completes the proof. ∎
The last lower bound on the increment of objective function for eigen-step used the loose bound in Lemma 6. Using Lemma 7, we can give an improved bound for the eigen-step when the norm of the gradient is small. In particular we take .
(Improved bound for eigen-step) For any point with , and satisfying , and , choosing , we have
The third order expansion of around for gives
The first inequality used the improved bound on the third order derivative of Lemma 7 in Appendix A.1, which imply in particular . Taking completes the proof. ∎
We are now at a good position to prove Theorem 2.
Denote and . Let be the number of iterations and the iterates returned by our RTR algorithm from an arbitrary initialization . We are only interested in the convergence rate as , namely the convergence rate below the gap. Since our algorithm is an ascent algorithm, without loss of generality, we assume (otherwise the theorem will hold automatically).
At each point , Theorem 1 gives the following lower bound on the highest curvature
We will use this information to bound the algorithm’s convergence rate.
Case 1. First, we consider the case when all the RTR steps are eigen-steps. In each iteration, the algorithm constructs an update direction with curvature . According to Lemma 3, we have
which implies . Thus, we have
Therefore, we obtain the convergence rate . This implies that
as soon as .
Case 2. Then, we consider the case where we set , and we use the gradient step as , and use the eigen-step as . First let us bound the number of gradient steps. According to Lemma 1, we have
Hence, we deduce the upper bound .
Then let us bound the number of eigen-steps. Let us denote and the subsets of indices corresponding to eigensteps with respectively and . According to Lemma 3, we have for all
Summing the contributions of the above two equations gives the convergence rate
Acknowledgements
A.M. was partially supported by the NSF grant CCF-1319979. S.M. was supported by Office of Technology Licensing Stanford Graduate Fellowship.
References
Appendix A Some technical steps
In this section, we give an upper bound to the second and third derivatives of (these notations are defined below). These bounds are important in bounding the complexity of the Riemannian trust-region method in solving the non-convex SDP problem.
To calculate the first three derivatives of , we expand each row of up to third order in :
By matching each expansion coefficient to the corresponding derivative, we obtain the desired result. ∎
For as defined above
We explicitly calculate the second derivative
Noticing that , we can use the bounds derived in Appendix A.2 to obtain the following inequality
For as defined above
We explicitly calculate the third derivative
The inequality is obtained by upper bounding each term using the bounds derived in Appendix A.2. ∎
The above bound on the third derivative of order as . The next lemma proves a bound of order as . If is small, this improves the above bound.
For as defined above, an improved bound on its third derivative gives
From the proof in the previous lemma, we have
We next bound more carefully . Simple calculation gives us
According to the bounds in Appendix A.2, we have
According to the Taylor expansion of around and at first order, we have