The local convexity of solving systems of quadratic equations
Chris D. White, Sujay Sanghavi, Rachel Ward
Introduction
However, due to the large dimensionality, storing all of the incoming vectors might be prohibitive. Instead, we randomly draw a set of sensing vectors which are efficient to store (e.g., they are sparse) and for each incoming data point compute . We are now only storing which is a sparse data set. Note that if we define
The question posed above is: can we compute the covariance structure of the given only this data?
The example above describes covariance sketching of high-dimensional data streams [DSBN12, CCG13], but there are many other scenarios that fall under our problem setting, e.g., phaseless measurements in physics and optics [RBM94, TLOB12, Ger72, Fie82]. Because this data is invariant under the transformation
In the rank-1 setting in particular, several alternative reconstruction algorithms have been proposed with global phase recovery guarantees which operate directly on the lower-dimensional problem, and thus are more computationally efficient. Notably, [NJS13] considers the nonconvex optimization problem
and proves that after a judiciously chosen initialization, with high probability alternating minimization will converge to the underlying vector up to phase, assuming random Gaussian measurements. Subsequently [CLS14] used the same initialization to show convergence when followed by gradient descent without requiring resampling. Both of these algorithms provably recover the underlying vector up to global phase, from a number of measurements which is optimal up to additional logarithmic factors in . Very recently, the paper [CC15] provides a modified gradient method which removes the additional logarithmic factors of in the number of measurements.
In a similar vein, many recent works have demonstrated global convergence guarantees for gradient descent on other nonconvex matrix factorization problems. Specifically, in [ZB15] the authors consider gradient descent on the Grassmannian and prove global convergence for a class of SVD problems. In [DSOR14] a stochastic gradient algorithm was shown to converge globally for a low-rank matrix least squares problem. In [SQW15] the authors consider the recovery of a full-rank matrix from sparse linear measurements via manifold optimization over the sphere. In all of these works including ours, the underlying idea is that the lack of convexity can be fixed by operating on an appropriate matrix manifold.
In this paper, we consider the more general version of problem (1) in which the underlying matrix is of rank :
As noted in [CSV13], it seems unlikely that a deterministic RIP condition holds in this setting. In any case, our local convexity results are novel and might shed light on other nonconvex problems unrelated to matrix recovery.
for general , we demonstrate that after Gaussian samples, in a quantifiable region the function (2) is strongly convex in directions perpendicular to the manifold of solutions
The size of this region is independent of both the ambient dimension and the rank
with an additional factor of samples, a simple spectral initialization will land within this region with high probability and thus standard gradient descent on (2) will linearly converge to a global minimizer
In the real-valued rank one setting, the strong convexity result we present actually holds in much more generality than the initialization result – for sub-gaussian measurements – and we believe this should be of independent interest; in particular, our results hold for Bernoulli measurements and Sparse Gaussian measurements. We note that in the rank-1 setting, recovery results from general sub-gaussian measurements were also provided in [KL15] using convex optimization for reconstruction, and a similar incoherence condition on the underlying was also required there.
While preparing this manuscript, we became aware of [[Sol14], p.250] which also certifies local convexity of the function (2), for the special case of Gaussian measurements in the rank one setting.
Our results can be viewed as exact recovery guarantees for a special case of a manifold-constrained least squares problem where the manifold is the set of rank positive semidefinite matrices. This algorithm was studied empirically in [FM15]. Many nonconvex problems of interest can be reformulated as a manifold-constrained least squares problem, and we believe that the exact recovery guarantees presented here should be extendable to a broader class of problems.
Main results
by solving the nonconvex optimization problem
Because the function appearing in (4) is invariant under right multiplication by an orthogonal matrix, there is an entire manifold of solutions given by where is the set of orthogonal matrices. Our strategy is to establish that a spectral initialization will land (with high probability) in a region of strong convexityStrong convexity here and throughout always refers to convexity in directions orthogonal to the manifold of solutions. around the manifold of global minimizers. An overview of our approach is given in Algorithm 1.
There are two main ingredients to proving performance guarantees for Algorithm 1, namely, the strong convexity of the function in a region around the manifold of global minimizers at finite sample complexity, and a guarantee that spectral initialization will land within this region. The finite sample convexity result holds in more generality when , while for general we always assume Gaussian measurements.
for i.i.d. standard Gaussian vectors . Now that we have an entire manifold of solutions given by we will need to consider the quantity
which is well-defined by compactness of the orthogonal group. We note that the minimizer may not be unique, but this is not important for our purposes. We will also need to consider
The main finite sample convexity result is as follows:
Then with probability at least , it holds that
We now show how this local strong convexity results in linear convergence to the true we seek to recover. We have the following theorem which concisely establishes the initialization and performance guarantees of Algorithm 1.
Suppose we take samples of the form (5), where and are as in (7). Define the matrix
where are the eigenvalues of and are the corresponding normalized eigenvectors. If we iteratively update via gradient descent
then with probability at least ,
For a proof of Theorem 2.2, see Section 3.3.
Note that the quantity is scale invariant; however, we have the bounds
One consequence of our result is that the sampling complexity is entirely independent of the desired solution tolerance. That is, the fixed set of samples suffices to produce a global solution up to arbitrary accuracy.
Our numerical results in §4 suggest that in general the sampling complexity only linearly depends on the ambient dimension . Consequently a more refined analysis and initialization procedure such as that found in the recent work of [CC15] for the case of rank-1 recovery is most likely possible also in the general rank-r recovery setting.
This method of analysis should find use in providing recovery guarantees by gradient descent for a broader class of nonconvex problems arising in machine learning applications such as matrix completion, nonnegative matrix factorization, clustering, etc. More generally, such an analysis could possibly be useful towards achieving provable guarantees for machine learning problems which have many unstable saddle points, such as neural networks [DPG+14].
2 Rank-One Matrix Recovery
where is the covariance matrix, which we assume is invertible. With this setup, we then consider minimization of the random function
If then with probability greater than
Above, is a constant which depends only on the sub-gaussian norm of .
The finite sample convexity result holds for general sub-gaussian measurements satisfying (22), while our initialization results require more restrictive conditions, namely that the fourth moment of the measurements is close to that of Gaussian measurements; for simplicity we have only included the result for Gaussians which follows from Lemma 3.11 in the next section.
The rest of the paper is organized as follows: in §3.1 we prove the main finite sample convexity result Theorem 2.1, which relies on classifying tangent and normal directions to the manifold of solutions and an explicit formula for the expected Hessian. In §3.2 we prove convexity results for the rank one case under more general randomness assumptions. In §3.3 we prove that with high probability the initialization step produces a matrix in a convex region around the manifold of solutions and establish the convergence of gradient descent. Briefly in §3.4 we describe how our results generalize to the complex setting. Finally, in §4 we conclude with some numerical experiments demonstrating the performance and robustness of the results presented here.
Convexity
Here we present lemmas that are used in the proof of Theorem 2.1, as well as a summary of the proof. For the full proof, we refer the reader to Section 5.1.3.
The main lemma we rely on is the following simple characterization of the normal directions to the manifold of solutions:
Assume has full column rank and let , which is not necessarily unique. Then we can write
This basically follows from the solution to the Orthogonal Procrustes Problem [Sch66]. If we write for the singular value decomposition of , then we can expand the objective as follows:
is a symmetric positive semidefinite matrix. As is equivalent to , we arrive at the stated claim. ∎
This lemma says that if we consider the direction between and its closest solution matrix we have that
which is a symmetric matrix. Why symmetry is important will become apparent after the next lemma, which establishes formulas for the expectation of the Hessian of (4):
The gradient of is given by
where the block matrices and satisfy
For details, see §5.1.1 in the Appendix. We will also need a standard concentration result:
Suppose we collect samples of the form , where and are given constants and rank; then we have that with probability greater than
The sampling complexity can be improved, but we state Lemma 3.3 as a general proof-of-concept. For details see §5.1.2.
To complete the proof sketch, observe that
can be written as a convex quadratic polynomial in , where the constant term is given by
and consequently we can bound its smallest positive root using the remarks above (see §3.2.2 for the rank one setting, where this observation is more straightforward). We apply the concentration from above along with the following one-sided martingale bound from [Ben03] (as stated in [CLS14]) to establish the stated non-asymptotic bound. For details see §5.1.3.
where one can take and is the CDF for the standard normal.
2 Rank One
where is the covariance matrix, which we assume is invertible. Consider the eigenvalue decomposition of the covariance matrix, . An important quantity in our analysis will be
a coherence parameter for and
We consider convexity of the function defined in (12) (equivalently, positive semi-definiteness of the Hessian matrix ) in the neighborhood of , first in expectation with respect to the draw of , or in the limit of infinitely many samples . These results are necessary for the proof of Lemma 3.9.
For details, see §5.3.1 in the Appendix. We then have the following asymptotic convexity result:
where is the coherence of as in (23), and above and .
for some . In fact we find that a loose bound is given by
This result alone provides enough information to prove performance guarantees for stochastic gradient descent after an initialization procedure. Via a union bound and covering argument, this result along with matrix concentration will also guarantee uniform convexity in this region at finite sample size . However, to ensure uniform convexity at finite sample size , we will need a more refined analysis based on the structure of the Hessian matrix, as presented in the next section.
2.2 Non-Asymptotic Convexity
Here we present the sketch of the proof of Theorem 2.3. For the full proof, we refer the reader to Section 5.3.5.
As before, we will use the standard concentration result:
This result can be proved by first truncating the norms of the measurements vectors and then applying Matrix Bernstein’s Inequality (e.g., [Tro12]). The sampling complexity can be improved, but we state Lemma 3.8 as a general proof-of-concept. For details see §5.3.4. For sufficiently small, this result indicates that we can control the eigenvalues of for sufficiently close to . In particular, if is positive definite in a region around , then is strongly convex and is the unique minimum in this region. It is not immediately clear how to extend such control to a quantifiable region around . However, Theorem 2.3 requires only that we have a lower bound on the eigenvalues.
Assuming that , the same technique from §3.1 can be applied: first write for a unit vector and observe that
and consequently using Lemma 3.8 and Lemma 3.6 we can control this term. As before, applying Lemma 3.4 to the positive term
where is the coherence of .
The proof of this uses the fact that the smallest eigenvalue is a concave function of ; the proof can be found in §5.3.2. We can now quantify the lower bound appearing in (15) for a large class of sub-gaussian measurements:
Bernoulli: For standard Bernoulli measurement vectors, where are i.i.d. with equal probability, and we have a quantifiable strong convexity guarantee so long as is incoherent, i.e., . This is sharp in the sense that for the expected Hessian has a 0 eigenvalue.
Gaussian: For vectors with i.i.d. standard Gaussian entries, and Lemma 3.9 provides the uniform lower bound
for all .
Sparse Gaussian: Note that (28) holds anytime by Lemma 3.9. This includes sparse Gaussian vectors, whose coordinates are i.i.d. standard normal with probability and 0 with probability . In this case
3 Initialization and Gradient Descent
We have shown that the function is strongly convex in a quantifiable region around the global minimizers. To guarantee results for gradient descent, we will also need the following lemma which bounds the Lipschitz constant of the gradient of our function.
Consider the function . Suppose . For a universal constant , it holds with probability exceeding that for any within the region of convexity given by (8),
with . Here, are the eigenvalues of and
By the sub-gaussian assumption, the following holds with probability exceeding :
Conditioning on this event, recalling that , and recalling the formula for the gradient in (18), observe the bound
Thus, ∎
It remains to certify a point in this region to initialize gradient descent.
Suppose we take samples of the form (5), where and are as in (7). Define the matrix
where are the eigenvalues of and are the corresponding normalized eigenvectors. Then with probability at least we have that
For the proof, see §5.2. Initializing from a matrix satisfying (30) guarantees we are close enough so that gradient descent will converge. We can now prove the main theorem, Theorem 2.2:
Given the number of samples the following events simultaneously occur with the stated probability:
Lemma 3.11 holds, and thus .
Theorem 2.1 holds, and so considering the Taylor expansion of around , the following holds for all satisfying
Lemma 3.10 holds with Lipschitz constant .
Let and . Then
4 The Complex Case
where we note . Moreover, the columns of are orthogonal, and the map
gives us an isomorphism onto the orientation preserving component of the orthogonal group . Thus this problem is equivalent to recovering an unknown real-valued rank 2 matrix, and the results in the previous sections reproduce known optimality guarantees for gradient descent in the phase retrieval model as found in e.g., [CLS14]. Specifically, we have shown the following:
Given noiseless samples of the form
and let be the output of Algorithm 1 applied to the data with constant step size
Then with probability at least we have that
where is the number of iterations of gradient descent and is the matrix (33).
Examples and Experiments
First, we consider the performance of the algorithm (1) in the rank-1 real-valued setting, where the measurements are . Our numerical studies strongly suggest that the algorithm (1) is stable to noise, that is, given measurements of the form the algorithm successfully returns an matrix up to the noise level . We consider three different measurement ensembles:
Bernoulli: are i.i.d. Bernoulli random vectors
Standard Gaussian: are i.i.d. drawn from .
Gaussian with covariance: are i.i.d drawn from with covariance matrix
In a first experiment, we fix an -dimensional vector of unit norm with randomly-generated coefficients, and consider noiseless measurements . We implement the meta-algorithm 1, calling Matlab’s built-in function fminunc to find a stationary point starting from the initialization. In the local optimization procedure, we do not provide any information to fminunc other than the function itself; by default Matlab uses a quasi-Newton method for local minimization. We run this experiment using the three different measurement ensembles above, at problem size and at a number of measurements . If the solution recovered by the algorithm is within the tolerance , we say the algorithm has succeeded in finding the global solution. In Figure 1, the results of this experiment are displayed, averaged over 100 trials.
Next, we analyze numerically the stability of the algorithm to additive measurement noise. For these experiments, we consider noisy measurements of the form
where are i.i.d. mean-zero uniformly distributed, and normalized such that for (low signal to noise ratio) and (high signal to noise ratio). We observe that the meta-algorithm is robust to such additive noise, with relative reconstruction error averaging below the signal to noise threshold. We leave a theoretical analysis of this observed noise stability to future work.
where is the singular value decomposition.n In Figure 1, the results of the experiment are displayed, averaged over 100 trials.
R. Ward and C. White were funded in part by an NSF CAREER Grant and an AFOSR Young Investigator Award. We would like to thank Ju Sun for pointing out a mistake in the original rank one proof, and thank Mahdi Soltanolkotabi and Laurent Jacques for additional helpful comments and corrections. C. White would like to thank Aaron Royer and Ravi Srinivasan for helpful conversations.
References
Appendix
which can be seen by writing out the entries of the matrix individually. This implies
1.2 Proof of Lemma 3.3
We begin with a more general concentration result.
First Term. Note that we have a product of independent subexponential random variables, and so if we condition on the bounds
both of which happen with probability at least , we find via Bernstein that
which we can make smaller than so long as and we conclude via an -net argument that
We can make this bound smaller than so long as . As (35) happens with probability greater than we find
Second Term. For this term we further decompose into its -component and its -component. We can apply the same analysis for the first and third terms to the terms, and have only to deal with
which we can make smaller than so long as . Moreover, note that we can also make (37) smaller than for . We conclude that
Combining (34), (38), and (36) yields the stated result. ∎
Suppose we collect samples of the form , where and are given constants and rank; then we have that with probability greater than
Note that , and so by Theorem 5.1 we find that with probability greater than
Suppose we collect samples of the form , where and are given constants and rank; then we have that with probability greater than
1.3 Proof of the Convexity Theorem 2.1
We will rely on the following Lemma from [Ben03], as stated in [CLS14]:
where one can take and is the CDF for the standard normal.
Let be the normalized direction from to and let be a positive scalar. Moreover, WLOG we will be assuming that .
Finally, because is invariant under the action of it suffices to consider the case where .
Consider the single-variable function which can be written
which is a convex polynomial in ; observe that . If the linear term is positive, then clearly (40) is positive for all and we have nothing to show (the smallest eigenvalue is bounded below by in the direction ). Define the following quantities:
Observe that is a chi-squared random variable with 1 degree of freedom by the normalization . Thus we have
By the definition of , we have
Next we consider the variance of :
we find that if then with probability at least we have
where we used (44) to lower bound by
Moreover, an -net argument over all directions shows that (46) holds for an arbitrary with probability at least .
Further observe that our condition on guarantees
with probability at least by Corollary 5.3. This implies that
with probability at least for any direction . Thus by a tangent line bound we find that the smallest positive root of is bounded below by
Thus for all which is the advertised lower bound.
For the upper bound, observe that by Cauchy-Schwarz
and thus we find an upper bound for (40) is given by
Now, is a chi-squared random variable with one degree of freedom; consequently we find
with probability greater than .
for all .
To finish the proof, observe that we can write
and by Corollary 5.3 (where, given the number of measurements , we may take ) we have
From everything above, we conclude that for ,
we conclude that for general , it holds for that
2 Proofs for 3.3, Initialization and Convergence
It suffices to prove the case . By Corollary 5.2 we have that with probability greater than
so long as . This implies
Let , and where is the singular value decomposition and observe
where (53c) follows from Theorem 2 in [YWS15] and (53d) follows from
The first equality holds because has orthogonal columns and thus is a diagonal matrix.
3 Proofs for Rank-one Matrix Recovery, §3.2
If , then observe that if we define ,
then the inner term satisfies the assumptions needs for (56), and so we find
where . ∎
3.2 Proof of Lemma 3.9
Suppose first that . Then we can use the determinant formula
If any then is an eigenvalue.
If all of the squared coordinates are distinct then each eigenvalue satisfies
and because there will be a vertical asymptote at each we see the eigenvalues of interlace the squared coordinates, the smallest occurring somewhere between and the largest somewhere after .
In general, if some of the coordinates are , we see that with the assumed ordering will be a block matrix and we can apply (57) to the reduced space where acts nontrivially.
The bound follows from
Note that by the Gershgorin Circle Theorem, the largest eigenvalue is no larger than . ∎
Lemma 5.5 above shows and it is clear that . By concavity of we then find
If , then is a positive semi-definite matrix and thus . Observing that
3.3 Proof of Lemma 3.6
For (60), we used Lemma 3.9. Lastly, note that
Consequently we can define the polynomials
and by convexity we can bound the smallest positive root by the intercept of the tangent line; the bounds (60) and (61) thus yield the stated conclusion for .
For general covariance matrices, note that we have just shown that
whenever and are close enough, which implies
3.4 Proof of Lemma 3.8
Begin by assuming and . Note that because of the sub-gaussian assumption we have that for
where the constants depend on the sub-gaussian norm of . Consequently
Bernstein’s inequality (Theorem 4.1 in [Tro12]) tells us that
where is a constant which depends on the moments of .
Lastly observe that if then we can write
where we used Jensen’s inequality for the first line and have assumed . Consequently we find that for
where from (63). Now, all we have left is to show that the exponential can be made less than a power of . Using (62) we find that we need to satisfy
for which it suffices to require for some constant which only depends on the moments of .
For the more general statement note that our previous work shows
whenever . Consequently,
3.5 Proof of Theorem 2.3
Assume without loss that and that is the normalized direction from to . Moreover begin by assuming . Closely following the proof of Theorem 2.1 we first note that
Note that by the computations done in Lemma 3.5 we have
where depends only on the subgaussian norm of the .
Now, for a given define
we find that if then with probability at least we have
where we used the concentration guaranteed by Lemma 3.8 above with and the fact that
Consequently, using a tangent line bound for the smallest positive root we find that for all
Moreover, an -net argument over all directions shows that (67) holds for an arbitrary with probability at least .
For general covariance matrices, apply the previous argument to and with measurements as usual.