Global Optimality in Low-rank Matrix Optimization
Zhihui Zhu, Qiuwei Li, Gongguo Tang, Michael B. Wakin
I Introduction
Consider the minimization of a general objective function over all low-rank matrices:
The bilinear nature of the parameterization renders the objective function of (2) nonconvex even when is a convex function. Hence, the objective function in (2) can potentially have spurious local minima (i.e., local minimizers that are not global minimizers) or “bad” saddle points that prevent a number of iterative algorithms from converging to the global solution. By analyzing the landscape of nonconvex functions, several recent works have shown that the factored objective function in certain matrix inverse problems has no spurious local minima .
We generalize this line of work by focusing on a general objective function in the optimization (1), not necessarily a quadratic loss function coming from a matrix inverse problem. By focusing on a general objective function, we attempt to provide a unifying framework for low-rank matrix optimizations with the factorization approach. We provide a geometric analysis for the factored program (2) and show that, under certain conditions on , all critical points of the objective function are well-behaved. Our characterization of the geometry of the objective function ensures that a number of iterative optimization algorithms converge to a global minimum.
The purpose of this paper is to analyze the geometry of the factored problem in (2). In particular, we attempt to understand the behavior of all of the critical points of the objective function in the reformulated problem (2).
Before presenting our main results, we lay out the necessary assumptions on the objective function . As is known, without any assumptions on the problem, even minimizing traditional quadratic objective functions is challenging. For this purpose, we focus on the model where is -restricted strongly convex and smooth, i.e., for any matrices with and , the Hessian of satisfies
for some positive and . A similar assumption is also utilized in [20, Conditions 5.3 and 5.4]. With this assumption on , we summarize our main results in the following informal theorem.
As guaranteed by Proposition 1 (in Section III), the -restricted strong convexity and smoothness property (3) ensures that is the unique global minimum of (1). Theorem 1 then implies that we can recover the rank- global minimizer of (1) by many iterative algorithms (such as the trust region method and stochastic gradient descent ) even from a random initialization. This is because 1) as guaranteed by Theorem 2, the strict saddle property ensures local search algorithms converge to a local minimum, and 2) there are no spurious local minima.
Since our main result only requires the -restricted strong convexity and smoothness property (3), aside from low-rank matrix recovery , it can also be applied to many other low-rank matrix optimization problems which do not necessarily involve quadratic loss functions. Typical examples include robust PCA , 1-bit matrix completion and Poisson principal component analysis (PCA) .
I-B Related Works
Compared with the original program (1), the factored form (2) typically involves many fewer variables (or variables with much smaller size) and can be efficiently solved by simple but powerful methods (such as gradient descent , the trust region method , and alternating methods ) for large-scale settings, though it is nonconvex. In recent years, tremendous effort has been devoted to analyzing nonconvex optimizations by exploiting the geometry of the corresponding objective functions. These works can be separated into two types based on whether the geometry is analysed locally or globally. One type of work analyzes the behavior of the objective function in a small neighborhood containing the global optimum and requires a good initialization that is close enough to a global minimum. Problems such as phase retrieval , matrix sensing , and semi-definite optimization have been studied.
Another type of work attempts to analyze the landscape of the objective function and show that it obeys the strict saddle property. If this particular property holds, then simple algorithms such as gradient descent and the trust region method are guaranteed to converge to a local minimum from a random initialization rather than requiring a good guess. We approach low-rank matrix optimization with general objective functions (1) via a similar geometric characterization. Similar geometric results are known for a number of problems including complete dictionary learning , phase retrieval , orthogonal tensor decomposition , and matrix inverse problems . Empirical evidence also supports using the factorization approach for estimating a low-rank PSD matrix from a set of rank-one measurements corrupted by arbitrary outliers and for recovering a dynamically evolving low-rank matrix from incomplete observations .
Our work is most closely related to certain recent works in low-rank matrix optimization. Bhojanapalli et al. showed that the low-rank, PSD matrix sensing problem has no spurious local minima and obeys the strict saddle property. Similar results were exploited for PSD matrix completion , PSD matrix factorization and low-rank, PSD matrix optimization problems with generic objective functions . Our work extends this line of analysis to general low-rank matrix (not necessary PSD or even square) optimization problems. Another closely related work considers the low-rank, non-square matrix sensing problem and matrix completion with the factorization approach . We note that our general objective function framework includes the low-rank matrix sensing problem as a special case (see Section III-C). Furthermore, our result covers both over-parameterization where and exact parameterization where . Wang et al. also considered the factored low-rank matrix minimization problem with a general objective function which satisfies the restricted strong convexity and smoothness condition. Their algorithms require good initializations for global convergence since they characterized only the local landscapes around the global optima. By categorizing the behavior of all the critical points, our work differs from in that we instead characterize the global landscape of the factored objective function.
This paper continues in Section II with formal definitions for strict saddles and the strict saddle property. We present the main results and their implications in matrix sensing, weighted low-rank approximation, and 1-bit matrix completion in Section III. The proof of our main results is given in Section IV. We conclude the paper in Section VI.
II Preliminaries
II-B Strict Saddle Property
We say a critical point if the gradient at vanishes, i.e., .
A critical point is a strict saddle if the Hessian matrix evaluated at this point has a strictly negative eigenvalue, i.e., .
A twice differentiable function satisfies the strict saddle property if each critical point either corresponds to a local minimum or is a strict saddle.
Intuitively, the strict saddle property requires a function to have a directional negative curvature at all critical points but local minima. This property allows a number of iterative algorithms such as noisy gradient descent and the trust region method to further decrease the function value at all the strict saddles and thus converge to a local minimum.
(informal) For a twice continuously differentiable objective function satisfying the strict saddle property, a number of iterative optimization algorithms (such as gradient descent and the the trust region method) can find a local minimum.
III Problem Formulation and Main Results
This paper considers the problem (1) of minimizing a general function (over the set of low-rank matrices) which is assumed to have a low-rank critical point with such that . Because of the restricted strong convexity and smoothness condition (3), the following result establishes that if has a critical point with , then it is the unique global minimum of (1).
Suppose satisfies the -restricted strong convexity and smoothness condition (3) with positive and . Assume is a critical point of with . Then is the global minimum of (1), i.e.,
and the equality holds only at .
First note that if is a critical point of , then
where for some . This Taylor expansion together with and (3) (both and have rank at most ) gives
Although the new variable has much smaller size than when , the objective function in the factored problem (2) may have a much more complicated landscape due to the bilinear form about and . The reformulated objective function could introduce spurious local minima or degenerate saddle points even when is convex. Our goal is to guarantee that this does not happen.
We remark that is still a global minimizer of the factored problem (5) since achieves its global minimum over the low-rank set of matrices at and also achieves its global minimum at . The regularizer is applied to force the difference between the two Gram matrices of and to be as small as possible. The global minimum of is , which is achieved when and have the same Gram matrices, i.e., when belongs to
III-B Main Results
Our main argument is that, under certain conditions on , the objective function has no spurious local minima and satisfies the strict saddle property. This is equivalent to categorizing all the critical points into two types: 1) the global minima which correspond to the global solution of the original convex problem (1) and 2) strict saddles such that the Hessian matrix evaluated at these points has a strictly negative eigenvalue. We formally establish this in the following theorem, whose proof is given in the next section.
For any , each critical point of defined in (5) satisfies
Equation (7) shows that any critical point belongs to for the objective function in the factored problem (5) with any positive . This demonstrates the reason for adding the regularizer . Thus, any iterative optimization algorithm converging to some critical point of results in a solution within . Furthermore, the strict saddle property along with the lack of spurious local minima ensures that a number of iterative optimization algorithms find the global minimum.
The constants appearing in Theorem 3 are not optimized. We use simply to include which is utilized for the matrix sensing problem in . If the ratio between the restricted strong convexity and smoothness constants , then we can show that has no spurious local minima and obeys the strict saddle property for any (where is utilized for the matrix sensing problem in ). In all cases, a smaller yields a more negative constant in (8); see Section IV for more discussion on this. This implies that when the restricted strong convexity constant is not provided a priori, one can always choose a small to ensure the strict saddle property holds, and hence guarantee the global convergence of many iterative optimization algorithms.
The constant for the dynamic range in Theorem 3 is also not optimized and it is possible to slightly relax this constraint with more sophisticated analysis. However, the following example involving weighted symmetric matrix factorization implies that the room for improving this constant is rather limited. Let
Now consider the following weighted low-rank matrix factorization:
whose gradient and Hessian are given by:
and . We conclude that this is a strict saddle point when and a spurious local minimum when . This weighted symmetric matrix factorization problem (9) satisfies the restricted strong convexity and smoothness condition (3) with constants and (where and represent the smallest and largest entries in ; see Section III-C). Thus, we have a counter example which demonstrates the existence of spurious local minima when .
We finally remark that although Theorem 3 requires the additional regularizer (4), empirical evidence (see experiments in Section V) shows we can get rid of this regularizer for many iterative algorithms with random initialization.
We prove Theorem 3 in Section IV. Before proceeding, we present two stylized applications of Theorem 3 in matrix sensing and weighted low-rank approximation.
III-C Stylized Applications
We first consider the implication of Theorem 3 in the matrix sensing problem where
holds for any matrix with .
Note that, in this case, the gradient of at is
which implies that is a critical point of . The Hessian quadrature form for any matrices and is given by
If satisfies the -restricted isometry property with constant , then satisfies the -restricted strong convexity and smoothness condition (3) with constants and since
for any rank- matrix . Now, applying Theorem 3, we can characterize the geometry for the following matrix sensing problem with the factorization approach:
where is the added regularizer defined in (4).
Suppose satisfies the -RIP with constant , and set . Then the objective function in (11) has no spurious local minima and satisfies the strict saddle property.
This result follows directly from Theorem 3 by noting that if . We remark that Park et al. [19, Theorem 4.3] provided a similar geometric result for (11). Compared to their result which requires , our result has a much weaker requirement on the RIP of the measurement operator.
III-C2 Weighted Low-Rank Matrix Factorization
We now consider the implication of Theorem 3 in the weighted matrix factorization problem , where
Here is an weight matrix consisting of positive elements and denotes the point-wise product between two matrices. In this case, the gradient of at is
which implies that is a critical point of . The Hessian quadrature form for any matrices and is given by
Thus satisfies the -restricted strong convexity and smoothness condition (3) with constants and since
where and represent the smallest and largest entries in , respectively. Now we consider the following weighted matrix factorization problem:
where is the added regularizer defined in (4). For an arbitrary weight matrix , it is proven that the weighted low-rank factorization can be NP-hard and has spurious local minima. When the elements in the weight matrix are concentrated, it is expected that (12) can be efficiently solved by a number of iterative optimization algorithms as it is close to an (unweighted) matrix factorization problem (where is a matrix of ones) which obeys the strict saddle property . The following result characterizes the geometric structure in the objection function of (12) by directly applying Theorem 3.
Suppose satisfies . Set . Then the objective function in (12) has no spurious local minima and satisfies the strict saddle property.
III-C3 1-bit Matrix Completion
for all . Typical choices for include the logistic regression model where and the probit regression model where . Here is the cumulative distribution function (CDF) of a mean-zero Gaussian distribution with variance . In , the authors attempt to recover from the incomplete nonlinear measurements by minimizing the negative log-likelihood function
which results in a maximum likelihood (ML) estimate.
We note that is a convex function for both the logistic model and the probit model. The following result also establishes that satisfies the restricted strong convexity and smoothness condition if we observe full 1-bit measurements, i.e., .
Then satisfies the restricted strong convexity and smoothness condition:
The proof of Lemma 1 is given in Appendix A. Now we consider the logistic regression model where .
Suppose and . Consider the logistic regression model where . Then satisfies the restricted strong convexity and smoothness condition with
Applying Lemma 1 with direct calculation gives
where . Now if we restrict , we have
Under the assumption that is low-rank, a nuclear norm constraint is utilized in to force a low-rank solution. Corollary 3 implies that we can apply matrix factorization for 1-bit matrix recovery given that the elements of are bounded. For the setting where is only a subset of , considered the 1-bit matrix completion problem with the rank constraint and established a stronger statistical recovery guarantee than that in . Empirical evidence (see and Section V-C) supports that matrix factorization also works for 1-bit matrix completion.
IV Proof of Theorem 3
In this section, we provide a formal proof of Theorem 3. The main argument involves showing that each critical point of either corresponds to the global solution of (1) or is a strict saddle whose Hessian has a strictly negative eigenvalue. Specifically, we show that is a strict saddle by arguing that the Hessian has a strictly negative curvature along , i.e., for some . Here is an orthonormal matrix such that the distance between and rotated through is as small as possible.
We first present some useful results. The -restricted strong convexity and smoothness assumption (3) implies the following isometry property, whose proof is given in Appendix B.
Suppose the function satisfies the -restricted strong convexity and smoothness condition (3) with positive and . Then for any matrices of rank at most , we have
We remark that Lemma 2 is a variant of [19, Lemma 3.2]. While the result there requires the -RIP condition of the objective function, our result depends on the -restricted strong convexity and smoothness condition. Our result is also slightly tighter than [19, Lemma 3.2].
If , then we have
We present one more useful result in the following Lemma.
Finally, we provide the gradient and Hessian expressions for . The gradient of is given by
IV-B The Formal Proof
Any critical point of satisfies , i.e.,
Now we turn to prove the strict saddle property and that there are no spurious local minima.
First, note that as guaranteed by Proposition 1, is the unique matrix with rank at most . Also the gradient of vanishes at since (1) is an unconstraint optimization problem. Denote the set of critical points of by
We separate into two subsets:
satisfying . Since any critical point satisfies (18), achieves its global minimum at . Also achieves its global minimum at . We conclude that is the globally optimal solution of for any . If we show that any is a strict saddle, then we prove that there are no spurious local minima as well as the strict saddle property. Thus, the remaining part is to show that is the set of strict saddles.
To show that is the set of strict saddles, it is sufficient to find a direction along which the Hessian has a strictly negative curvature for each of these points. We construct , the difference from to its nearest global factor , where
The following result (which is proved in Appendix E) states that is strictly negative, while the remaining terms are relatively small, though they may be nonnegative:
where utilizes Lemmas 2 and 4, utilizes the following inequality (which is proved in Appendix F)
and holds because and . Thus, if , is always negative. This implies that is a strict saddle.
To complete the proof, we utilize Lemma 3 to further bound the last term in (23):
From (23), we observe that a smaller yields a more negative bound on . This can be explained intuitively as follows. First note that any critical point satisfies (18) provided , no matter how large or small is. The Hessian information about is represented by the terms and . We have
where the last line holds since for any matrix ,
Thus the Hessian of evaluated at any critical point is a PSD matrixThis can also be observed since any critical point is a global minimum point of , which directly indicates that . instead of having a negative eigenvalue. In low-rank, PSD matrix optimization problems, the corresponding objective function (without any regularizer such as ) is proved to have the strict saddle property . Therefore, is also expected to have the strict saddle property, and so is when is small, i.e., the Hessian of has little influence on the Hessian of when is small. Our results also indicate that when the restricted strict convexity constant is not provided a priori, we can always choose a small to ensure the strict saddle property of is met, and hence we are guaranteed the global convergence of a number of local search algorithms applied to (5).
V Experiments
In this section, we present a set of experiments on matrix sensing, matrix completion, and 1-bit matrix completion to demonstrate the performance of iterative algorithms for low-rank matrix optimization. Unless noted otherwise, we denote the matrix factorization approach by NVX and use the minFunc packageSoftware available at https://www.cs.ubc.ca/schmidtm/Software/minFunc.html to perform the local search algorithms for the factored problem.
where the entries of each matrix are independent and identically distributed (i.i.d.) normal random variables with zero mean and variance for . For each pair of and the number of measurements, 10 Monte Carlo trials are carried out and for each trial, and we claim matrix recovery to be successful if the relative reconstruction error satisfies
where we denote by the reconstructed matrix. Figure 1 displays the phase transition for factorized gradient descent starting from a random initialization, the singular value projection (SVP) method proposed in which requires a SVD in each iteration, and the convex approach which solves
We see that there are only negligible differences between the different approaches for matrix sensing; these approaches also have very similar performance guarantees when the Gaussian sensing operator satisfies the RIP . We note that with or without the regularizer as defined in (4), local search algorithms have similar performance with random initialization. Hence, throughout all of the experiments, we simply discard the regularizer , but we stress that identical performance is observed if we have this regularizer .
V-B Matrix Completion
We compare the performance of the matrix factorization approach with SVP , the convex approach, and singular value thresholdingSoftware available at http://svt.stanford.edu/ (SVT) for matrix completion where we want to recover a low-rank matrix from incomplete measurements , where . Let denote the projection onto the index set . The convex approach (denoted by CVX) attempts to use the nuclear norm as a convex relaxation of the rankness and solves
Though does not satisfy the -RIP (10) for all low-rank matrices , it satisfies the RIP when restricted to low-rank incoherent matrices.
[48, Theorem 4.2] Without loss of generality, assume . There exists a constant such that for chosen according to the Bernouli model with density greater than , with probability at least , the RIP holds for all -incoherent matrices of rank at most .
Thus, if local search algorithms (such as gradient descent) start with a random initialization and the iterates remain incoherent, then Theorem 3 guarantees the global convergence of the matrix factorization approach with these algorithms. We note that this hypothesis is also required for SVP . Though we can add a regularizer for incoherence as in , empirical evidence supports this hypothesis that the iterates in gradient descent are incoherent.
In the first set of experiments, we set and vary the rank from to . Similar to the setup for matrix sensing in Section V-A, we generate a rank- random matrix and randomly obtain entries, i.e., . Figure 3 displays the phase transition for gradient descent with a random initialization, SVP , singular value thresholding (SVT) , and the convex approach. As can been seen, the matrix factorization approach has similar phase transition to SVP, and is slightly better than SVT and the convex approach in terms of the number of measurements needed for successful recovery.
In the second set of experiments, we set and (3 times the number of degrees of freedom within a rank- matrix), and vary from to . We compare the time needed for the four approaches in Figure 4; our matrix factorization approach is much faster than the other methods. The time savings for the matrix factorization approach comes from avoiding performing the SVD, which is needed both for SVT and SVP in each iteration. We also observe that convex approach has the highest computational complexity and is not scalable (which is the reason that we only present its time for up to ).
V-C 1-bit Matrix Completion
In the last set of experiments, we compare the performance of the matrix factorization approach with the convex approachSoftware available at http://mdav.ece.gatech.edu/software/ in for 1-bit matrix completion. We first note that to make the recovery problem well-posed, a constraint on (the entry-wise maximum of the matrix ) is applied in to require that the matrix is not too “spiky”. Instead of using the constraint on , we add a smooth regularizer and turn to minimize the following objective function
To evaluate the performance of this factorization approach on 1-bit matrix completion, we generate matrices and with entries drawn i.i.d. from a uniform distribution on and construct a random matrix with rank . Similar to the setup in , the matrix is then scaled so that . We obtain 1-bit observations by adding Gaussian noise of variance and recording the sign of the resulting value (15), where the subset of indices is chosen at random with . We compare the performance of the factorization approach and the convex approach over a range of different values of , , or . Figures 5(a)-(d) show the normalized squared Frobenius norm of the error (where denotes the reconstructed matrix) and average the results over 10 draws of Monte Carlo trials. We observe that matrix factorization approach has slightly better performance than the convex approach for 1-bit matrix completion . Note that this phenomenon (the factorization approach having better performance) is also observed in . We repeat these experiments but obtaining 1-bit observations with the logistic regression model where for (15) and display the results in Figure 6.
VI Conclusion
This paper considers low-rank matrix optimization on general (nonsymmetric and rectangular) matrices with general objective functions. By focusing on general objective functions, we provide a unifying framework for low-rank matrix optimizations with the factorization approach. Although the resulting optimization problem is not convex, we show that the reformulated objection function has a simple landscape: there are no spurious local minima and any critical point not being a local minimum is a strict saddle such that the Hessian evaluated at this point has a strictly negative eigenvalue. These properties guarantee that a number of iterative optimization algorithms (such as gradient descent and the trust region method) will converge to the global optimum from a random initialization.
Appendix A Proof of Lemma 1
We compute the partial derivative of in terms of as
Appendix B Proof of Proposition 2
This proof follows similar steps to the proof of [51, Lemma 2.1]. First note that the bilinear form implies is invariant under all scalings for both and , i.e.,
Now suppose both or are nonzero. By the scaling invariance property of both sides in (3), we assume without loss of generality. Note that the -restricted strong convexity and smoothness condition (3) implies
Appendix C Proof of Lemma 2
It follows from (19) and (20) that any critical point satisfies
On the other hand, we give an upper bound on the right hand side of (29):
Appendix D Proof of Lemma 3
When , the proof follows directly from the following results.
If , then we have
Appendix E Proof of (22)
We prove the upper bounds for the four terms as follows.
Bounding term : Utilizing the fact that and , we have
where follows from (19) and (20), utilizes , and follows by using the -restricted strict convexity property (3):
where the first line follows from the integral form of the mean value theorem for vector-valued functions, and the second line uses the fact that both and have rank at most , and the -restricted strong convexity of the Hessian .
Bounding term : By the smoothness condition (3), we have
Appendix F Proof of (24)
To show (24), expanding the left hand side of (24), it is equivalent to show
Thus, we obtain (24) by noting that the above equation is equivalent to