Low-rank Solutions of Linear Matrix Equations via Procrustes Flow
Stephen Tu, Ross Boczar, Max Simchowitz, Mahdi Soltanolkotabi, Benjamin Recht
Introduction
Low rank models are ubiquitous in machine learning, and over a decade of research has been dedicated to determining when such models can be efficiently recovered from partial information [Faz02, RS05, CR09]. See [DR16] for an extended survey on this topic. The simplest such recovery problem concerns how can we can find a low-rank matrix obeying a set of linear equations? What is the computational complexity of such an algorithm? More specifically, we are interested in solving problems of the form
Since the early seventies, a popular heuristic for solving such problems has been to replace with a low-rank factorization and solve matrix bilinear equations of the form
via a local search heuristic [Ruh74]. Many researchers have demonstrated that such heuristics work well in practice for a variety of problems [RS05, Fun06, LRS+10, RR13]. However, these procedures lack strong guarantees associated with convex programming heuristics for solving (1.1).
In this paper we show that a local search heuristic solves (1.2) under standard restricted isometry assumptions on the linear map . For standard ensembles of equality constraints, we demonstrate that can be estimated by such heuristics as long as we have equations.Here and throughout we use if there is a positive constant such that for all sufficiently large. This is merely a constant factor more than the number of parameters needed to specify a rank matrix. Specialized to a random Gaussian model and positive semidefinite matrices, our work improves upon recent independent work by Zheng and Lafferty [ZL15].
Algorithms
In this paper we study a local search heuristic for solving matrix bilinear equations of the form (1.2) which consists of two components: (1) a careful initialization obtained by a projected gradient scheme on matrices, and (2) a series of successive refinements of this initial solution via a gradient descent scheme. This algorithm is a natural extension of the Wirtinger Flow algorithm developed in [CLS15] for solving vector quadratic equations. Following [CLS15], we shall refer to the combination of these two steps as the Procrustes Flow (PF) algorithm. We shall describe two variants of our algorithm based on whether the sought after solution is positive semidefinite or not. The former is detailed in Algorithm 1, and the latter in Algorithm 2.
The initialization phase of both variants is rather similar and is described in Section 2.1. The successive refinement phase is explained in Section 2.2 for positive semidefinite (PSD) matrices and in Section 2.3 for arbitrary matrices. Throughout this paper when describing the PSD case, we assume the size of the matrix is is , i.e. .
In the initial phase of our algorithm we start from and apply successive updates of the form
on rank matrices of size . Here, denotes projection onto either rank- matrices or rank- PSD matrices, both of which can be computed efficiently via Lanczos methods. We run (2.1) for iterations and use the resulting matrix for initialization purposes. In the PSD case, we set our initialization to an matrix obeying . In the more general case of rectangular matrices we need to use two factors. Let be the Singular Value Decomposition (SVD) of . We initialize our algorithm in the rectangular case by setting and .
Updates of the form (2.1) have a long history in compressed sensing/matrix sensing literature (see e.g. [TG07, GK09, NT09, NV09, BD09, MJD09, CCS10]). Furthermore, using the first step of the update (2.1) for the purposes of initialization has also been proposed in previous work (see e.g. [AM07, KMO10, JNS13]).
2 Successive refinement via gradient descent – positive semidefinite case
3 Successive refinement via gradient descent – general case
Note that this is similar to (2.2) but adds a regularizer to measure mismatch between and . Given a factorization , for any invertible matrix , and is also a valid factorization. The purpose of the second term in (2.4) is to account for this redundancy and put the two factors on “equal footing”. To solve (2.4), starting from our initial estimates and we apply the successive updates
Again, (2.3) and (2.3) are essentially gradient descent with a carefully chosen step size.
Main Results
For our theoretical results we shall focus on affine maps which obey the matrix Restricted Isometry Property (RIP).
The map satisfies -RIP with constant , if
We note that this distance is the solution to the classic orthogonal Procrustes problem (hence the name of the algorithm). It is known that the optimal rotation matrix minimizing is equal to , where is the singular value decomposition (SVD) of . We now have all of the elements in place to state our main results.
Furthermore, take a constant step size for all , with . Then, starting from any initial solution obeying (3.3), the -th iterate of Algorithm 1 satisfies
2 Bilinear measurements
Furthermore, take a constant step size for all and assume . Then, starting from any initial solution obeying (3.6), the -th iterate of Algorithm 2 satisfies
The above theorem shows that Procrustes Flow algorithm achieves a good initialization under the RIP assumptions on the mapping . Also, starting from any sufficiently accurate initialization the algorithm exhibits geometric convergence to the unknown matrix . We note that in the above result we have not attempted to optimize the constants. Furthermore, there is a natural tradeoff involved between the upper bound on the RIP constant, the radius in which PF is contractive (3.6), and its rate of convergence (3.7). In particular, as it will become clear in the proofs one can increase the radius in which PF is contractive (increase the constant in (3.6)) and the rate of convergence (increase the constant in (3.7)) by assuming a smaller upper bound on the RIP constant.
The most common measurement ensemble which satisfies the isotropy and RIP assumptions is the Gaussian ensemble here each matrix has i.i.d. entries.We note that in the PSD case the so called spiked Gaussian ensemble would be the right equivalent. In this case each symmetric matrix has entries on the diagonal and entries elsewhere. For this ensemble to achieve a RIP constant of , we require at least measurements. Using equation (3.7) together with a simple calculation detailed in Appendix D, we can conclude that for , we have
Thus, applying Theorem 3.3 to this measurement ensemble, we conclude that the Procrustes Flow algorithm yields a solution with relative error () in iterations using only measurements. We would like to note that if more measurements are available it is not necessary to use multiple projected gradient updates in the initialization phase. In particular, for the Gaussian model if , then (3.3) will hold after the first iteration ().
Theorems 3.2 and 3.3 require that , but is a property of and is hence unknown. However, under the same hypotheses regarding the RIP constant in Theorems 3.2 and 3.3, we can use each iterate of initialization to test whether or not we have entered the radius of convergence. The following lemma establishes a sufficient condition we can check using only information from . We establish this result only in the symmetric case– the extension to the general case is straightforward. The proof is deferred to Appendix B.
One might consider using solely the projected gradient updates (i.e. set ) as in previous approaches [TG07, GK09, NT09, NV09, BD09, MJD09, CCS10]. We note that the projected gradient updates in the initialization phase require computing the first singular vectors of a matrix whereas the gradient updates do not require any singular vector computations. Such singular computations may be prohibitive compared to the gradient updates, especially when or is large and for ensembles where matrix-vector multiplication is fast. We would like to emphasize, however, that for small and dense matrices using projected gradient updates may be more efficient. Our scheme is a natural interpolation: one could only do projected gradient steps, or one could do one projected gradient step. Here we argue that very few projected gradients provide sufficient initialization such that gradient descent converges geometrically.
Related work
There is a vast literature dedicated to low-rank matrix recovery/sensing and semidefinite programming. We shall only focus on the papers most related to our framework.
Recht, Fazel, and Parrilo were the first to study low-rank solutions of linear matrix equations under RIP assumptions [RFP10]. They showed that if the rank- RIP constant of is less than a fixed numerical constant, then the matrix with minimum trace satisfying the equality constraints coincided with the minimum rank solution. In particular, for the Gaussian ensemble the required number of measurements is [CP11]. Subsequently, a series of papers [CR09, Gro11, Rec11, CLS14] showed that trace minimization and related convex optimization approaches also work for other measurement ensembles such as those arising in matrix completion and related problems. In this paper we have established a similar result to [RFP10]. We require the same order of measurements but use a more computationally friendly local search algorithm. Also related to this work are projection gradient schemes with hard thresholding [TG07, GK09, NT09, NV09, BD09, MJD09, CCS10]. Such algorithms enjoy similar guarantees to that of [RFP10] and this work. Indeed, we utilize such results in the initialization phase of our algorithm. However, such algorithms require a rank- SVD in each iteration which may be expensive for large problem sizes. We would like to emphasize, however, that for small problem sizes and dense matrices (such as Gaussian ensembles) such algorithms may be faster than gradient descent approaches such as ours.
Our algorithm and analysis are inspired by the recent paper [CLS15] by Candes, Li and Soltanolkotabi. See also [Sol14, CLM15] for some stability results. In [CLS15] the authors introduced a local regularity condition to analyze the convergence of a gradient descent-like scheme for phase retrieval. We use a similar regularity condition but generalize it to ranks higher than one. Recently, independent of our work, Zheng and Lafferty [ZL15] provided an analysis of gradient descent using (2.2) via the same regularity condition. Zheng and Lafferty focus on the Gaussian ensemble, and establish a sample complexity of . In comparison we only require measurements removing both the dependence on in the sample complexity and improving the asymptotic rate. We would like to emphasize that the improvement in our result is not just due to the more sophisticated initialization scheme. In particular, Zheng and Lafferty show geometric convergence starting from any initial solution obeying dist as long as the number of measurements obeys . In contrast, we establish geometric convergence starting from the same neighborhood of with only measurements. Our results also differs in terms of the convergence rate. We establish a convergence rate of the form whereas [ZL15] establishes a slower convergence rate of the form . Moreover, the theory of restricted isometries in our work considerably simplifies the analysis.
Finally, we would also like to mention [SOR15] for guarantees using stochastic gradient algorithms. The results of [SOR15] are applicable to a variety of models; focusing on the Gaussian ensemble, the authors require samples to reach a relative error of . In contrast, our sample complexity is independent of the desired relative error . However, their algorithm only requires a random initialization.
Since the first version of this paper appeared on arXiv, a few recent papers have also studied low-rank recovery from RIP measurements via Procrustes Flow type schemes [BKS15, ZWL15, CW15]. We would like to point out that the results presented in these papers are suboptimal compared to ours. For example, by utilizing some of the results of the previous version of this paper, [BKS15] provides a similar convergence rate to ours. However, this convergence occurs in a smaller radius around the planted solution so that the required number of measurements is significantly higher. Furthermore, the results of [BKS15] only apply when the matrix is PSD and do not work for general rectangular. Similarly, result in [CW15] holds only for PSD matrices, and the convergence rate has a high-degree polynomial dependence on condition number. The algorithm from [CW15] does generalize to rectangular matrices, but the sample complexity is of the order of rather than the complexity we establish here. Moreover, our analysis of both the PSD and rectangular cases is far more concise.
Proofs
We first prove our results for the symmetric PSD case (Theorem 3.2). However, whenever possible we will state lemmas in the more general setting. The changes required for the proof of the general setting (Theorem 3.3) is deferred to Section 5.4.
Thus, any result proven for the update (5.1) will automatically carry over to the PF update with a simple rescaling of the upper bound on the step size via (5.3). Furthermore, we can upper bound the convergence rate of gradient descent using the PF update in terms of properties of instead of via (5.4).
We start with a well known characterization of RIP.
[Can08] Let satisfy -RIP with constant . Then, for all matrices of rank at most , we have
holds. Here, is defined as
We would like to point out that the dependence on in the lemma above is unavoidable.
2 Proof of convergence of gradient descent updates (Equation (3.4))
We first outline the general proof strategy. See Sections 2.3 and 7.9 of [CLS15] for related arguments. We first will show that gradient descent on an approximate estimate of the function converges. The approximate function we use is . When the map is random and isotropic in expectation, can be interpreted as the expected value of , but we stress that our result is a purely deterministic result. We demonstrate that exhibits geometric convergence in a small neighborhood around . The standard approach in optimization to show this is to prove that the function exhibits strong convexity. However, due to the rotational degrees of freedom for any optimal point, it is not possible for to be strongly convex in any neighborhood around except in the special case when . Thus, we rely on the approach used by [CLS15], which establishes a sufficient condition that only relies on first-order information along certain trajectories. After showing the sufficient condition holds on , we use standard RIP results to show that this condition also holds for the function .
To begin our analysis, we start with the following formulas for the gradient of and
with the dependence on omitted for sake of exposition. The following definition defines a notion of strong convexity along certain trajectories of the function.
The function satisfies a regularity condition, denoted by , if for all matrices the following inequality holds:
If a function satisfies , then as long as gradient descent starts from a point , it will have a geometric rate of convergence to the optimum . This is formalized by the following lemma.
[CLS15] If satisfies and , then the gradient descent update
with step size obeys and
The proof is complete by showing that the regularity condition holds. To this end, we first show in Lemma 5.7 below that the function satisfies a slightly stronger variant of the regularity condition from Definition 5.5. We then show in Lemma 5.8 that the gradient of is always close to the gradient of , and in Lemma 5.9 that the gradient of is Lipschitz around the optimal value .
Let . For all obeying
We shall prove these three lemmas in Sections 5.2.1, 5.2.2, and 5.2.3. However, we first explain how the regularity condition follows from these three lemmas. To begin, note that
where (a) holds from Cauchy-Schwarz followed by Lemma 5.8, using the fact that as assumed in the statement of Theorem 3.2 and (b) follows from .
Combining (5.6) with Lemma 5.7 for any obeying , we have
which shows that is a symmetric PSD matrix. Furthermore, note that since
we can conclude that is symmetric. To avoid carrying in our equations we perform the change of variable . That is, without loss of generality we assume and that and .
Note that for any obeying dist we have
Using the latter along with the simplifications discussed above, to prove Lemma (5.5) it suffices to prove
Equation (5.8) can equivalently be written in the form
Here the constants are defined as
Since , to prove (5.9) it thus suffices to require that
2.2 Proof of gradient concentration (Lemma 5.8)
Define . Then,
where (a) follows from Lemma 5.1, since and . This proves the first part of the lemma. To prove the second part, by the variational form of the Frobenius norm, we have
The result now follows from .
2.3 Proof of Lipschitz gradients around optimal solution (Lemma 5.9)
Define and . Suppose we show that
where . Then by -RIP we have
which yields the claim after rearranging.
We now focus on proving Equation (5.10). Recall , which implies . Using this equality we have
where both (a) and (b) hold by Lemma 5.1 since , , and . We now control from above. Using the variational form of the Frobenius norm,
where (a) holds again by Lemma 5.1 since , and (b) holds since . Plugging this upper bound into Equation (5.11), we have
where (a) holds since . Using the fact that (5.12) implies,
For , we have
Plugging this bound into Equation (5.13), we get
3 Proof of initialization (Equation (3.3))
Using Lemma 5.1, we can conclude that from Lemma 5.2 is bounded by . Setting and applying Lemma 5.2 to our initialization iterates, we have that
Hence, if we want the RHS to be upper bounded by , we require
Since , it is enough to require that
Similarly, it is easy to check that if satisfies (5.14), then
4 Proof for rectangular matrices (Theorem 3.3)
To simplify exposition we aggregate the pairs of matrices , , , and into larger “lifted” matrices as follows
In this lifted space the function takes the form
Note that the updates of the Procrustes Flow algorithm in Equations (2.3) and (2.3) are based on the gradients and given by
One can easily verify that this update has the following compact representation in terms of the lifted space
As in the proof for the PSD case, the crux of Theorem 3.3 lies in establishing that the regularity condition
To prove (5.15), we make use of the similarity of the expressions with the PSD case. We start, as before, by defining a reference function with gradient . We now state two lemmas relating and , which together immediately imply (5.15). The first lemma relates the regularity condition of to that of by utilizing RIP. The second lemma provides a Lipschitz type property for the gradient of .
With these lemmas in place we have all the elements to prove (5.15). We use Lemma 5.10, Equation (5.16) together with the inequality to conclude that,
Applying Lemma 5.11 together with to (5.4) completes the proof of (5.15) and hence the theorem. All that remains is to prove Lemma 5.10 and 5.11, which we do in Sections 5.4.1 and 5.4.2, respectively.
We begin the proof of Lemma 5.10 with the following RIP inequality about the map . The proof of this lemma is almost identical to the proof of Lemma 5.1, so we omit the details.
Taking inner products of both sides of Equation (5.20) gives us
The first term is simple to control with RIP. Observe that
We now relate the second term to the gradient of . By exploiting the structure of and , we have
4.2 Lipschitz-gradient type condition for g𝑔g (Lemma 5.11)
The left-hand side of (5.17) has two terms. We start by bounding the second term. Fix any . Then,
Here, (a) holds since by Young’s inequality for any , we have and (b) holds since and .
With this lemma in place, note that for any ,
Here, (a) follows from Lemma 5.13, (b) follows because , and (c) is another application of Young’s inequality. Combining (5.24) and (5.25) with the hypothesis that , and setting , completes the proof.
4.3 Proofs for the initialization phase of Algorithm 2 (Theorem 3.3, Equation (3.6))
We start with the following generalization of Lemma 5.4, the proof of which is deferred to Appendix C.
The rest of the proof proceeds similarly to the proof of Equation (3.3). Using Lemma 5.1, we conclude that from Lemma 5.2 is bounded by . Setting and applying Lemma 5.2 to our initialization iterates, we have that
In order for the RHS to be bounded above by , must satisfy
When this happens, Lemma 5.14 tells us that
In order for this RHS to be bounded above by , we require that . Using Equation (5.26), it is sufficient for to satisfy
Since , setting as satisfies both (5.27) and (5.28).
Acknowledgements
BR is generously supported by ONR awards N00014-11-1-0723 and N00014-13-1-0129, NSF awards CCF-1148243 and CCF-1217058, AFOSR award FA9550-13-1-0138, and a Sloan Research Fellowship. RB is generously supported by ONR award N00014-11-1-0723 and the NDSEG Fellowship. This research is supported in part by NSF CISE Expeditions Award CCF-1139158, LBNL Award 7076018, and DARPA XData Award FA8750-12-2-0331, and gifts from Amazon Web Services, Google, SAP, The Thomas and Stacey Siebel Foundation, Adatao, Adobe, Apple, Inc., Blue Goji, Bosch, C3Energy, Cisco, Cray, Cloudera, EMC2, Ericsson, Facebook, Guavus, HP, Huawei, Informatica, Intel, Microsoft, NetApp, Pivotal, Samsung, Schlumberger, Splunk, Virdata and VMware.
References
Appendix A Proof of Lemma 5.4
Define . Similar to the discussion at the beginning of Section 5.2.1, without loss of generality we can assume that (a) , (b) , and (c) . With these simplifications, establishing the lemma is equivalent to showing that
holds with . We note that
Hence, a sufficient condition for (A.1) to hold is
Recalling that , and that , we have
Since , to show (A.2) it suffices to show
The RHS trivially holds, concluding the proof.
Appendix B Proof of Lemma 3.4
From RIP and the assumption that , we have
We can upper bound the RHS by the following chain of inequalities,
where (a) follows from RIP, (b) follows since implies that
Appendix C Proof of Lemma 5.14
By simple algebraic manipulations we have
Applying Weyl’s inequality to (C), we have
Applying Lemma 5.4 to the matrices and and utilizing equations (C.1) and (C) we conclude that
Let be the singular value decomposition of . It is easy to verify that the solution to the orthogonal Procrustes problem (equivalently the optimal rotation) between and is equal to . From this we conclude that
Plugging the latter in (C.4) concludes the proof.
Appendix D Proof of the first inequality in Equation (3.2)
The first inequality is immediate from the following lemma.