Fast Stochastic Algorithms for SVD and PCA: Convergence Properties and Convexity
Ohad Shamir
Introduction
We consider the problem of recovering the top left singular vectors of a matrix , where . This is equivalent to recovering the top eigenvectors of , or equivalently, solving the optimization problem
This is one of the most fundamental matrix computation problems, and has numerous uses (such as low-rank matrix approximation and principal component analysis).
For large-scale matrices , where exact eigendecomposition is infeasible, standard deterministic approaches are based on power iterations or variants thereof (e.g. the Lanczos method) . Alternatively, one can exploit the structure of Eq. (1) and apply stochastic iterative algorithms, where in each iteration we update a current matrix based on one or more randomly-drawn columns of . Such algorithms have been known for several decades (), and enjoyed renewed interest in recent years, e.g. . Another stochastic approach is based on random projections, e.g. .
Unfortunately, each of these algorithms suffer from a different disadvantage: The deterministic algorithms are accurate (runtime logarithmic in the required accuracy , under an eigengap condition), but require a full pass over the matrix for each iteration, and in the worst-case many such passes would be required (polynomial in the eigengap). On the other hand, each iteration of the stochastic algorithms is cheap, and their number is independent of the size of the matrix, but on the flip side, their noisy stochastic nature means they are not suitable for obtaining a high-accuracy solution (the runtime scales polynomially with ).
Recently, proposed a new practical algorithm, VR-PCA, for solving Eq. (1), which has a “best-of-both-worlds” property: The algorithm is based on cheap stochastic iterations, yet the algorithm’s runtime is logarithmic in the required accuracy . More precisely, for the case , of bounded norm, and when there is an eigengap of between the first and second leading eigenvalues of the covariance matrix , the required runtime was shown to be on the order of
The algorithm is therefore suitable for obtaining high accuracy solutions (the dependence on is logarithmic), but essentially at the cost of only passes over the data. The algorithm is based on a recent variance-reduction technique designed to speed up stochastic algorithms for convex optimization problems (), although the optimization problem in Eq. (1) is inherently non-convex. See Section 3 for a more detailed description of this algorithm, and for more discussions as well as empirical results.
The results and analysis in left several issues open. For example, it is not clear if the quadratic dependence on in Eq. (2) is necessary, since it is worse than the linear (or better) dependence that can be obtained with the deterministic algorithms mentioned earlier, as well as analogous results that can be obtained with similar techniques for convex optimization problems (where is the strong convexity parameter). Also, the analysis was only shown for the case , whereas often in practice, we may want to recover singular vectors simultaneously. Although proposed a variant of the algorithm for that case, and studied it empirically, no analysis was provided. Finally, the convergence guarantee assumed that the algorithm is initialized from a point closer to the optimum than what is attained with standard random initialization. Although one can use some other, existing stochastic algorithm to do this “warm-start”, no end-to-end analysis of the algorithm, starting from random initialization, was provided.
In this paper, we study these and related questions, and make the following contributions:
We propose a variant of VR-PCA to handle the case, and formally analyze its convergence (Section 3). The extension to is non-trivial, and requires tracking the evolution of the subspace spanned by the current solution at each iteration.
In Section 4, we study the convergence of VR-PCA starting from a random initialization. And show that with a slightly smarter initialization – essentially, random initialization followed by a single power iteration – the convergence results can be substantially improved. In fact, a similar initialization scheme should assist in the convergence of other stochastic algorithms for this problem, as long as a single power iteration can be performed.
In Section 5, we study whether functions similar to Eq. (1) have hidden convexity properties, which would allow applying existing convex optimization tools as-is, and improve the required runtime. For the case, we show that this is in fact true: Close enough to the optimum, and on a suitably-designed convex set, such a function is indeed -strongly convex. Unfortunately, the distance from the optimum has to be , and this precludes a better runtime in most practical regimes. However, it still indicates that a better runtime and dependence on should be possible.
Some Preliminaries and Notation
We consider a matrix composed of columns , and let
Thus, Eq. (1) is equivalent to finding the leading eigenvectors of .
The VR-PCA Algorithm and a Block Version
We begin by recalling the algorithm of for the case (Algorithm 1), and then discuss its generalization for .
To handle the case (where more than one eigenvector should be recovered), one simple technique is deflation, where we recover the leading eigenvectors one-by-one, each time using the algorithm. However, a disadvantage of this approach is that it requires a positive eigengap between all top eigenvalues, otherwise the algorithm is not guaranteed to converge. Thus, an algorithm which simultaneously recovers all leading eigenvectors is preferable.
We now turn to provide a formal analysis of Algorithm 2, which directly generalizes the analysis of Algorithm 1 given in :
Define the matrix as , and let denote the matrix composed of the eigenvectors corresponding to the largest eigenvalues. Suppose that
for some .
has eigenvalues , where for some .
Let be fixed. If we run the algorithm with any epoch length parameter and step size , such that
(where designate certain positive numerical constants), and for epochs, then with probability at least , it holds that
For any orthogonal , lies between and , and equals when the column spaces of and are the same (i.e., when spans the leading singular vectors). According to the theorem, taking appropriateSpecifically, we can take and , where is sufficiently small to ensure that the first and third condition in Eq. (3) holds. It can be verified that it’s enough to take . , and , the algorithm converges with high probability to a high-accuracy approximation of . Moreover, the runtime of each epoch of the algorithm equals . Overall, we get the following corollary:
This runtime bound is the same showed that it’s possible to further improve the runtime for sparse , replacing by the average column sparsity . This is done by maintaining parameters in an implicit form, but it’s not clear how to implement a similar trick in the block version, where . as that of for .
Warm-Start and the Power of a Power Iteration
In this section, we study the runtime required to compute a starting point satisfying the conditions of Theorem 1, starting from a random initialization. Combined with Theorem 1, this gives us an end-to-end analysis of the runtime required to find an -accurate solution, starting from a random point. For simplicity, we will only discuss the case , i.e. where our goal is to compute the single leading eigenvector , although our observations can be generalized to . In the case, Theorem 1 kicks in once we find a vector satisfying .
To the best of our knowledge, the existing iteration complexity guarantees for such algorithms (assuming the norm constraint for simplicity) scale at leastFor example, this holds for , although the bound only guarantees the existence of some iteration which produces the desired output. The guarantee of scale as , and the guarantee of scales as in our setting. as . Since the runtime of each iteration is , we get an overall runtime of .
The dependence on in the iteration bound stems from the fact that with a random initial unit vector , we have . Thus, we begin with a vector almost orthogonal to the leading eigenvector (depending on ). In a purely stochastic setting, where only noisy information is available, this necessitates conservative updates at first, and in all the analyses we are aware of, the number of iterations appear to necessarily scale at least linearly with .
For as above, it holds for any that with probability at least ,
where is the numerical rank of .
The numerical rank (see e.g. ) is a relaxation of the standard notion of rank: For any matrix , nrank(A) is at most the rank of (which in turn is at most ). However, it will be small even if is just close to being low-rank. In many if not most machine learning applications, we are interested in matrices which tend to be approximately low-rank, in which case nrank(A) is much smaller than or even a constant. Therefore, by a single power iteration, we get an initial point for which is on the order of , which can be much larger than the given by a random initialization, and is never substantially worse.
Let be the eigenvalues of , with eigenvectors . We have
Since is distributed according to a standard Gaussian distribution, which is rotationally symmetric, we can assume without loss of generality that correspond to the standard basis vectors , in which case the above reduces to
where are independent and scalar random variables with a standard Gaussian distribution.
First, we note that equals , the spectral norm of , whereas equals , the Frobenius norm of . Therefore, , and we get overall that
We consider the random quantity , and independently bound the deviation probability of the numerator and denominator. First, for any we have
Combining Eq. (5) and Eq. (6), with a union bound, we get that for any , it holds with probability at least that
To slightly simplify this for readability, we take , and substitute . This implies that with probability at least ,
Plugging back into Eq. (4), the result follows. ∎
This result can be plugged into the existing analyses of purely stochastic PCA/SVD algorithms, and can often improve the dependence on the factor in the iteration complexity bounds to a dependence on the numerical rank of . We again emphasize that this is applicable in a situation where we can actually perform a power iteration, and not in a purely stochastic setting where we only have access to an i.i.d. data stream (nevertheless, it would be interesting to explore whether this idea can be utilized in such a streaming setting as well).
To give a concrete example of this, we provide a convergence analysis of the VR-PCA algorithm (Algorithm 1), starting from an arbitrary initial point, bounding the total number of stochastic iterations required by the algorithm in order to produce a point satisfying the conditions of Theorem 1 (from which point the analysis of Theorem 1 takes over). Combined with Theorem 1, this analysis also justifies that VR-PCA indeed converges starting from a random initialization.
(for some universal constant ). Then with probability at least , after
stochastic iterations (lines in the pseudocode, where is again a universal constant), we get a point satisfying . Moreover, if is chosen on the same order as the upper bound in Eq. (7), then
Note that the analysis does not depend on the choice of the epoch size , and does not use the special structure of VR-PCA (in fact, the technique we use is applicable to any algorithm which takes stochastic gradient steps to solve this type of problemAlthough there exist previous analyses of such algorithms in the literature, they unfortunately do not quite apply to our algorithm, for various technical reasons.). The proof of the theorem appears in Section 6.2.
By Corollary 1, the runtime required by VR-PCA from that point to get an -accurate solution is
so the sum of the two expressions (which is up to log-factors), represents the total runtime required by the algorithm.
Convexity and Non-Convexity of the Rayleigh Quotient
As mentioned in the introduction, an intriguing open question is whether the runtime guarantees from the previous sections can be further improved. Although a linear dependence on seems unavoidable, this is not the case for the quadratic dependence on . Indeed, when using deterministic methods such as power iterations or the Lanczos method, the dependence on in the runtime is only or even . In the world of convex optimization from which our algorithmic techniques are derived, the analog of is the strong convexity parameter of the function, and again, it is possible to get a dependence of , or even with accelerated schemes (see e.g. in the context of the variance-reduction technique we use). Is it possible to get such a dependence for our problem as well?
Another question is whether the non-convex problem that we are tackling (Eq. (1)) is really that non-convex. Clearly, it has a nice structure (since we can solve the problem in polynomial time), but perhaps it actually has hidden convexity properties, at least close enough to the optimal points? We note that Eq. (1) can be “trivially” convexified, by re-casting it as an equivalent semidefinite program . However, that would require optimization over matrices, leading to poor runtime and memory requirements. The question here is whether we have any convexity with respect to the original optimization problem over “thin” matrices.
In fact, the two questions of improved runtime and convexity are closely related: If we can show that the optimization problem is convex in some domain containing an optimal point, then we may be able to use fast stochastic algorithms designed for convex optimization problems, inheriting their good guarantees.
To discuss these questions, we will focus on the case for simplicity (i.e., our goal is to find a leading eigenvector of the matrix ), and study potential convexity properties of the negative Rayleigh quotient,
Note that for , this function coincides with Eq. (1) on the unit Euclidean sphere, and with the same optimal points, but has the nice property of being defined on the entire Euclidean space (thus, at least its domain is convex).
At a first glance, such functions appear to potentially be convex at some bounded distance from an optimum, as illustrated for instance in the case where A=\left(\begin{array}[]{cc}1&0\\ 0&0\\ \end{array}\right) (see Figure 1). Unfortunately, it turns out that the figure is misleading, and in fact the function is not convex almost everywhere:
For the matrix above, the Hessian of is not positive semidefinite for all but a measure-zero set.
The leading eigenvector of is , and . The Hessian of this function at some equals
The determinant of this matrix equals
The theorem implies that we indeed cannot use convex optimization tools as-is on the function , even if we’re close to an optimum. However, the non-convexity was shown for as a function over the entire Euclidean space, so the result does not preclude the possibility of having convexity on a more constrained, lower-dimensional set. In fact, this is what we are going to do next: We will show that if we are given some point close enough to an optimum, then we can explicitly construct a simple convex set, such that
The set includes an optimal point of .
The function is -smooth and -strongly convex in that set.
This means that we can potentially use a two-stage approach: First, we use some existing algorithm (such as VR-PCA) to find , and then switch to a convex optimization algorithm designed to handle functions with a finite sum structure (such as ). Since the runtime of such algorithms scale better than VR-PCA, in terms of the dependence on , we can hope for an overall runtime improvement.
Unfortunately, this has a catch: To make it work, we need to have very close to the optimum – in fact, we require , and we show (in Theorem 5) that such a dependence on the eigengap cannot be avoided (perhaps up to a small polynomial factor). The issue is that the runtime to get such a , using stochastic-based approaches we are aware of, would scale at least quadratically with , but getting dependence better than quadratic was our problem to begin with. For example, the runtime guarantee using VR-PCA to get such a point (even if we start from a good point as specified in Theorem 1) is on the order of
whereas the best known guarantees on getting an -optimal solution for -strongly convex and smooth functions (see ) is on the order of
Therefore, the total runtime we can hope for would be on the order of
In comparison, the runtime guarantee of using just VR-PCA to get an -accurate solution is on the order of
Unfortunately, Eq. (9) is the same as Eq. (8) up to log-factors, and the difference is not significant unless the required accuracy is extremely small (exponentially small in ). Therefore, our construction is mostly of theoretical interest. However, it still shows that asymptotically, as , it is indeed possible to have runtime scaling better than Eq. (9). This might hint that designing practical algorithms, with better runtime guarantees for our problem, may indeed be possible.
To explain our construction, we need to consider two convex sets: Given a unit vector , define the hyperplane tangent to ,
as well as a Euclidean ball of radius centered at :
The convex set we use, given such a , is simply the intersection of the two, , where is a sufficiently small number (see Figure 2).
The following theorem shows that if is -close to an optimal point (a leading eigenvector of ), and we choose the radius of appropriately, then contains an optimal point, and the function is indeed -strongly convex and smooth on that set. For simplicity, we will assume that is scaled to have spectral norm of , but the result can be easily generalized.
For any positive semidefinite with spectral norm , eigengap and a leading eigenvector , and any unit vector such that , the function is -smooth and -strongly convex on the convex set , which contains a global optimum of .
The proof of the theorem appears in Subsection 6.3. Finally, we show below that a polynomial dependence on the eigengap is unavoidable, in the sense that the convexity property is lost if is significantly further away from .
For any , there exists a positive semidefinite matrix with spectral norm , eigengap , and leading eigenvector , as well as a unit vector for which , such that is not convex in any neighborhood of on .
for which , and take
where (which ensures ). Consider the ray , and note that it starts from and lies in . The function along that ray (considering it as a function of ) is of the form
The second derivative with respect to equals
where we plugged in the definition of . This is a negative quantity for any . Therefore, the function is strictly concave (and not convex) along the ray we have defined and close enough to , and therefore isn’t convex in any neighborhood of on . ∎
Proofs
Although the proof structure generally mimics the proof of Theorem 1 in for the special case, it is more intricate and requires several new technical tools. To streamline the presentation of the proof, we begin with proving a series of auxiliary lemmas in Subsection 6.1.1, and then move to the main proof in Subsection 6.1. The main proof itself is divided into several steps, each constituting one or more lemmas.
For any , it holds that and .
It is enough to prove that for any positive semidefinite matrices , it holds that . The lemma follows by taking either (in which case, ), or (in which case, ).
Any positive semidefinite matrix can be written as the product for some symmetric matrix (known as the matrix square root of ). Therefore,
We begin by proving the one-dimensional case, where are scalars . The inequality then becomes , which is equivalent to , or upon rearranging, , which trivially holds.
Turning to the general case, we note that by Lemma 2, it is enough to prove that . To prove this, we make a couple of observations. The positive definite matrix (like any positive definite matrix) has a singular value decomposition which can be written as , where is an orthogonal matrix, and is a diagonal matrix with positive entries. Its inverse is , and . Therefore,
To show this matrix is positive semidefinite, it is enough to show that each diagonal entry of is non-negative. But this reduces to the one-dimensional result we already proved, when and is any diagonal entry in . Therefore, , from which the result follows. ∎
The first inequality is immediate from Cauchy-Shwartz. As to the second inequality, letting denote the -th column of , and the Euclidean norm for vectors,
Let be square matrices, where are fixed and are stochastic and zero-mean (i.e. their expectation is the all-zeros matrix). Furthermore, suppose that for some fixed , it holds with probability that
For all , .
.
Since is positive definite, it is always invertible, hence is indeed well-defined. Moreover, it can be differentiated with respect to , and we have
Again differentiating with respect to , we have
Using Lemma 4 and the triangle inequality, this is at most
Applying a Taylor expansion to around , with a Lagrangian remainder term, and substituting the values for , we can lower bound as follows:
Taking expectation over , and recalling they are zero-mean, we get that
Let and be positive semidefinite matrices, such that , and define the function
over all for some . Then .
Taking a partial derivative of with respect to some , we have
By the lemma’s assumptions, each matrix in the product above is positive semidefinite, hence the product is positive semidefinite, and the trace is non-negative. Therefore, , which implies that the function is minimized when each takes its smallest possible value, i.e. . ∎
Let be a matrix with minimal singular value . Then
so it remains to prove . Let denote the vector of singular values of . The singular values of are , and the Frobenius norm of a matrix equals the Euclidean norm of its vector of singular values. Therefore, the lemma is equivalent to requiring
assuming for all . This holds since
For any matrices with orthonormal columns, let
be the nearest orthonormal-columns matrix to in the column space of (where is a matrix). Then the matrix minimizing the above equals , where is the SVD decomposition of , and it holds that
Since has orthonormal columns, we have , so the definition of is equivalent to
This is the orthogonal Procrustes problem (see e.g. ), and the solution is easily shown to be where is the SVD decomposition of . In this case, and using the fact that (as have orthonormal columns), we have that equals
Since the trace function is similarity-invariant, this equals . Let be the diagonal elements of , and note that they can be at most (since they are the singular values of , and both and have orthonormal columns). Recalling that the Frobenius norm equals the Euclidean norm of the singular values, we can therefore upper bound the above as follows:
Let be as defined in Algorithm 2, where we assume . Then for any matrix with orthonormal columns, it holds that
Letting denote the vectors of singular values of and , and noting that they are both in (as all have orthonormal columns), the left hand side of the inequality in the lemma statement equals
where is the infinity norm. By Weyl’s matrix perturbation theoremUsing its version for singular values, which implies that the singular values of matrices and are different by at most . , this is upper bounded by
Recalling the relationship between and from Algorithm 2, we have that
Plugging back to Eq. (10), the result follows. ∎
1.2 Main Proof
To simplify the technical derivations, note that the algorithm remains the same if we divide each by , and multiply by . Since , this corresponds to running the algorithm with step-size rather than , on a re-scaled dataset of points with squared norm at most , and with an eigengap of instead of . Therefore, we can simply analyze the algorithm assuming that , and in the end plug in instead of , and instead of , to get a result which holds for data with squared norm at most .
Part I: Establishing a Stochastic Recurrence Relation
We begin by focusing on a single iteration of the algorithm, and analyze how (which measures the similarity between the column spaces of and ) evolves during that iteration. The key result we need is Lemma 10 below, which is specialized for our algorithm in Lemma 11.
Let be a symmetric matrix with all eigenvalues in $s_{k}-s_{k+1}\geq\lambda\lambda>0$.
Let be a zero-mean random matrix such that and with probability , and define
Let be a matrix with orthonormal columns, and define
for some .
If is the matrix of ’s first eigenvectors, then the following holds:
If , then
Using the fact that for any matrices , we have
are zero mean: This holds since they are linear in , and is assumed to be zero-mean.
for all : Recalling the definition of , and the facts that , (by construction), and , we have that . Moreover, the spectral norm of is at most
which by the assumption on is at most . This implies that the smallest singular value of is at least .
: By definition of , and using Lemma 4, the Frobenius norm of these two matrices is at most
which by the assumption on is at most .
: Using the definition of and the assumption ,
Applying Lemma 5 and plugging back to Eq. (11), we get
We now turn to lower bound , by first re-writing in a different form. For , let
where is the eigenvector of corresponding to the eigenvalue . Note that each is positive semidefinite, and . We have
Plugging Eq. (13) and Eq. (14) back into Eq. (12), we get
Recalling that and letting , the trace term can be lower bounded by
Applying Lemma 6 (noting that as required by the lemma, ), we can lower bound the above by
Using Lemma 2, this can be lower bounded by
Recalling that , this can be simplified to
Since , then using Lemma 3, we can lower bound the expression above by shrinking each of the terms. In particular, since for each ,
which by the assumption that and , is at least . Plugging this back into Eq. (16), and recalling that , we get the lower bound
Recall that this is a lower bound on the trace term in Eq. (15). Plugging it back and slightly simplifying, we get
The trace term above can be re-written (using the definition of and the fact that ) as
Applying Lemma 7, and letting denote the minimal singular value of , this is lower bounded by
Taking the first argument of the max term in Eq. (17), we get
Subtracting from both sides and simplifying, we get
Suppose that . Taking the second argument of the max term in Eq. (17), we get
Subtracting both sides from , , we get
Since , we can lower bound the term by . Moreover, the condition implies that the singular values of satisfy . But each is in $V_{k},W\sigma_{i}\frac{1}{2}\delta\geq\frac{1}{2}k-\frac{1}{2}\geq\frac{k}{2}\delta\geq\frac{1}{2}$ into the above, we get
Let be as defined in Algorithm 2, and suppose that . Then the following holds for some positive numerical constants :
If , then
so we may take . As to the Frobenius norm, using Lemma 4 and a similar calculation, we have
to be the nearest orthonormal-columns matrix to in the column space of , and
Plugging and into the as defined in Lemma 10, and picking any (which satisfies the condition in Lemma 10 that , since ), we get
This implies that always, which by application of Lemma 10, gives the first part of our lemma. As to the second part, assuming and applying Lemma 10, we get that
This corresponds to the lemma statement. ∎
Part II: Solving the Recurrence Relation for a Single Epoch
Suppose that , where is a sufficiently small constant to be chosen later. Also, let
Then Lemma 11 tells us that if is a sufficiently small constant, , then
for some numerical constants .
Let be the event that for all . Then for certain positive numerical constants , if , then
where the expectation is over the randomness in the current epoch.
Note that the first equality holds, since conditioned on , is independent of , so the event is equivalent to just requiring .
Taking expectation over (conditioned on ), we get that
We now turn to prove that the event assumed in Lemma 12 indeed holds with high probability:
The following holds for certain positive numerical constants : If , then for any and , if
then it holds with probability at least that
is bounded by for some constant : Applying Lemma 9, and assuming that is at most some sufficiently small constant (e.g. , so ),
Armed with these facts, and using the maximal version of the Hoeffding-Azuma inequality , it follows that with probability at least , it holds simultaneously for all (and for by assumption) that
Combining Lemma 12 and Lemma 13, and using Markov’s inequality, we get the following corollary:
Let confidence parameters be fixed. Suppose that are chosen such that and
where are certain positive numerical constants. Then with probability at least , it holds that
for some positive numerical constants .
Part III: Analyzing the Entire Algorithm’s Run
Given the analysis in Lemma 14 for a single epoch, we are now ready to prove our theorem. Let
then we get with probability at least that
Using the inequality , which holds for any and any , and taking and , we can upper bound the above by
Using a confidence parameter , we pick , which ensures that the accuracy bound above holds with probability at least
for suitable positive constants .
To get the theorem statement, recall that the analysis we performed pertains to data whose squared norm is bounded by . By the reduction discussed at the beginning of the proof, we can apply it to data with squared norm at most , by replacing with , and with , leading to the condition
2 Proof of Theorem 2
The proof relies mainly on the techniques and lemmas of Section 6.1, used to prove Theorem 1. As done in Section 6.1, we will assume without loss of generality that is at most , and then transform the bound to a bound for general (see the discussion at the beginning of Subsection 6.1.2)
First, we extract the following result, which is essentially the first part of Lemma 11 (for ):
Let be as defined in Algorithm 1, and suppose that . Then
for some positive numerical constants .
The proof is based on martingale arguments, quite similar to the ones in Subsection 6.1.2 but with slight changes. First, we let
to simplify notation. We note that is assumed fixed, whereas are random variables based on the sampling process. Lemma 11 tells us that if is sufficiently small, and for some , then
for some numerical constants .
Let be the event that for all . Then for certain positive numerical constants , if , then
Using Eq. (21), we have for any satisfying event that
Taking expectation over (conditioned on ), we get that
We now turn to prove that the event assumed in Lemma 12 indeed holds with high probability:
The following holds for certain positive numerical constants : If , then for any , if
then it holds with probability at least that
To prove the lemma, we analyze the stochastic process , and use a concentration of measure argument. First, we collect the following facts:
: This directly follows from the assumption stated in the lemma.
is bounded by for some constant : Applying Lemma 9 for the case , and assuming ,
Armed with these facts, and using the maximal version of the Hoeffding-Azuma inequality , it follows that with probability at least , it holds simultaneously for all that
for some constants . If the expression is indeed less than , then we get that for all , from which the lemma follows. ∎
Combining Lemma 16 and Lemma 17, and using Markov’s inequality, we get the following corollary:
Let confidence parameters be fixed. Then for some positive numerical constants , if and
then with probability at least , it holds that
We are now ready to prove our theorem. By Lemma 18, for any and any
we get with probability at least that
Using the inequality , which holds for any and any , and taking and , we can upper bound the above by
and since we assume , this is at most . Overall, we got that with probability at least , , and therefore as required.
It remains to show that the parameter choices in Eq. (23) can indeed be satisfied. First, we fix (where we recall that ), which trivially ensures that is at most . Moreover, suppose we pick in , and so that
where are sufficiently small constants so that the bounds on in Eq. (23) are satisfied. This implies that the third bound in Eq. (23) is also satisfied, since by plugging in the values / bounds of and , and using the assumptions and , we have
which is less than if we pick sufficiently small compared to .
To summarize, we get that for any , by picking as in Eq. (24), we have that after iterations (where is specified in Eq. (24)), with probability at least , we get such that . Substituting and , we get that if
(for some universal constant ), then with probability at least , after
stochastic iterations, we get a satisfactory point .
As discussed at the beginning of the proof, this analysis is valid assuming . By the reduction discussed at the beginning of Subsection 6.1.2, we can get an analysis for any by substituting and . This means that we should pick satisfying
3 Proof of Theorem 4
We first prove the following two auxiliary lemmas:
If is a symmetric matrix, then the gradient of the function at some equals
where (i.e., a matrix plus its transpose).
By the product and chain rules (using the fact that is a composition of and ), the gradient of equals
giving the gradient bound in the lemma statement after a few simplifications.
Differentiating the vector-valued Eq. (25) with respect to (using the product and chain rules, and the fact that is a composition of , , and ), we get that the Hessian of equals
which can be verified to equal the expression in the lemma statement (using the fact that and are all symmetric matrices, hence equal their transpose). ∎
Let be two unit vectors such that (which implies ). Let be the intersection of the ray with the hyperplane . Then .
See Figure 2 in the main text for a graphical illustration.
Letting , must satisfy . Since are unit vectors, this implies
and since , this means that
and since , this is at most . ∎
We now turn to prove the theorem. Let denote the Hessian at some point . To show smoothness and strong convexity as stated in the theorem, it is enough to fix some unit which is -close to the leading eigenvector (where is assumed to be sufficiently small), and show that for any point on which is close to , and any direction along (i.e. any unit such that ), it holds that . This implies that the second derivative in an neighborhood of on is always in , hence the function is both -strongly convex in that neighborhood.
More formally, letting be a small parameter to be chosen later, consider any such that
Our goal is to show that for an appropriate , we have . Moreover, by Lemma 20, the neighborhood set would also contain a point for some , which is a global optimum of due to its scale-invariance. This would establish the theorem.
The easier part is to show the upper bound on . Since is a unit vector, it is enough to bound the spectral norm of , which equals
Since the spectral norm of is , and (as lies on a hyperplane tangent to a unit vector ), it is easy to verify that this is at most as required.
We now turn to lower bound , which by Lemma 19 equals
Since , the above equals
Using the fact that , and , we get that . Moreover, since is positive semidefinite and has spectral norm of , . Expanding Eq. (26) and plugging these in, we get
Since , , , and is between and , this is at least
Let us now analyze and more carefully. The idea will be to show that since we are close to the optimum, is very close to , and (which is orthogonal to the near-optimal ) is such that is strictly smaller than . This would give us a positive lower bound on Eq. (27).
By the triangle inequality and the assumptions , , we have . Also, we claim that is -Lipschitz outside the unit Euclidean ball (since the gradient of at any point with norm , according to Lemma 19, has norm at most ). Therefore, , so overall,
Since , and , it follows that
Letting and be the eigenvectors and eigenvalues of in decreasing order (and recalling that for some eigengap ), we get
Plugging Eq. (28) and Eq. (29) back into Eq. (27), we get a lower bound of
Using the fact that , this can be loosely lower bounded by
Recalling that is at most , and picking sufficiently small compared to , (say ), we get that the above is at least , which implies the required strong convexity condition.
To summarize, by picking , we have shown that the function is -strongly convex and -smooth in a neighborhood of size around on the hyperplane , provided that . By Lemma 20, we are guaranteed that this neighborhood contains up to some rescaling (which is immaterial for our scale-invariant function ), hence by optimizing in that neighborhood, we will get a globally optimal solution.
This research is supported in part by an FP7 Marie Curie CIG grant, the Intel ICRI-CI Institute, and Israel Science Foundation grant 425/13.