Fast Stochastic Algorithms for SVD and PCA: Convergence Properties and Convexity

Ohad Shamir

Introduction

We consider the problem of recovering the top kk left singular vectors of a d×nd\times n matrix X=(x1,…,xn)X=(\mathbf{x}_{1},\ldots,\mathbf{x}_{n}), where k≪dk\ll d. This is equivalent to recovering the top kk eigenvectors of XX⊤XX^{\top}, 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 XX, 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 d×kd\times k matrix WW based on one or more randomly-drawn columns xi\mathbf{x}_{i} of XX. 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 ϵ\epsilon, 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 ϵ\epsilon).

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 ϵ\epsilon. More precisely, for the case k=1k=1, xi\mathbf{x}_{i} of bounded norm, and when there is an eigengap of λ\lambda between the first and second leading eigenvalues of the covariance matrix 1nXX⊤\frac{1}{n}XX^{\top}, the required runtime was shown to be on the order of

The algorithm is therefore suitable for obtaining high accuracy solutions (the dependence on ϵ\epsilon is logarithmic), but essentially at the cost of only O(log⁡(1/ϵ))\mathcal{O}(\log(1/\epsilon)) 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 1/λ1/\lambda 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 λ\lambda is the strong convexity parameter). Also, the analysis was only shown for the case k=1k=1, whereas often in practice, we may want to recover k>1k>1 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 k>1k>1 case, and formally analyze its convergence (Section 3). The extension to k>1k>1 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 k=1k=1 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 λ\lambda-strongly convex. Unfortunately, the distance from the optimum has to be O(λ)\mathcal{O}(\lambda), and this precludes a better runtime in most practical regimes. However, it still indicates that a better runtime and dependence on λ\lambda should be possible.

Some Preliminaries and Notation

We consider a d×nd\times n matrix XX composed of nn columns (x1,…,xn)(\mathbf{x}_{1},\ldots,\mathbf{x}_{n}), and let

Thus, Eq. (1) is equivalent to finding the kk leading eigenvectors of AA.

The VR-PCA Algorithm and a Block Version

We begin by recalling the algorithm of for the k=1k=1 case (Algorithm 1), and then discuss its generalization for k>1k>1.

To handle the k>1k>1 case (where more than one eigenvector should be recovered), one simple technique is deflation, where we recover the leading eigenvectors v1,v2,…,vk\mathbf{v}_{1},\mathbf{v}_{2},\ldots,\mathbf{v}_{k} one-by-one, each time using the k=1k=1 algorithm. However, a disadvantage of this approach is that it requires a positive eigengap between all top kk eigenvalues, otherwise the algorithm is not guaranteed to converge. Thus, an algorithm which simultaneously recovers all kk 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 d×dd\times d matrix AA as 1nXX⊤=1n∑i=1nxixi⊤\frac{1}{n}XX^{\top}=\frac{1}{n}\sum_{i=1}^{n}\mathbf{x}_{i}\mathbf{x}_{i}^{\top}, and let VkV_{k} denote the d×kd\times k matrix composed of the eigenvectors corresponding to the largest kk eigenvalues. Suppose that

max⁡i∥xi∥2≤r\max_{i}\|\mathbf{x}_{i}\|^{2}\leq r for some r>0r>0.

AA has eigenvalues s1>s2≥…≥sds_{1}>s_{2}\geq\ldots\geq s_{d}, where sk−sk+1=λs_{k}-s_{k+1}=\lambda for some λ>0\lambda>0.

Let δ,ϵ∈(0,1)\delta,\epsilon\in(0,1) be fixed. If we run the algorithm with any epoch length parameter mm and step size η\eta, such that

(where c,c′,c′′c,c^{\prime},c^{\prime\prime} designate certain positive numerical constants), and for T=⌈log⁡(1/ϵ)log⁡(2/δ)⌉T=\left\lceil\frac{\log(1/\epsilon)}{\log(2/\delta)}\right\rceil epochs, then with probability at least 1−⌈log⁡2(1/ϵ)⌉δ1-\lceil\log_{2}(1/\epsilon)\rceil\delta, it holds that

For any orthogonal WW, k−∥Vk⊤W∥F2k-\|V_{k}^{\top}W\|_{F}^{2} lies between and kk, and equals when the column spaces of VkV_{k} and WW are the same (i.e., when WW spans the kk leading singular vectors). According to the theorem, taking appropriateSpecifically, we can take m=c′log⁡(2/δ)/ηλm=c^{\prime}\log(2/\delta)/\eta\lambda and η=aδ2/r2λ\eta=a\delta^{2}/r^{2}\lambda, where aa 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 a=min⁡{c,c′′4δ2cklog⁡(2/δ),14δ2c(c′′klog⁡(2/δ))2}a=\min\left\{c,\frac{c^{\prime\prime}}{4\delta^{2}ck\log(2/\delta)},\frac{1}{4\delta^{2}c}\left(\frac{c^{\prime\prime}}{k\log(2/\delta)}\right)^{2}\right\}. η=Θ(λ/(kr)2)\eta=\Theta(\lambda/(kr)^{2}), and m=Θ((rk/λ)2)m=\Theta((rk/\lambda)^{2}), the algorithm converges with high probability to a high-accuracy approximation of VkV_{k}. Moreover, the runtime of each epoch of the algorithm equals O(mdk2+dnk)\mathcal{O}(mdk^{2}+dnk). Overall, we get the following corollary:

This runtime bound is the same showed that it’s possible to further improve the runtime for sparse XX, replacing dd by the average column sparsity dsd_{s}. 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 k>1k>1. as that of for k=1k=1.

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 ϵ\epsilon-accurate solution, starting from a random point. For simplicity, we will only discuss the case k=1k=1, i.e. where our goal is to compute the single leading eigenvector v1\mathbf{v}_{1}, although our observations can be generalized to k>1k>1. In the k=1k=1 case, Theorem 1 kicks in once we find a vector w\mathbf{w} satisfying ⟨v1,w⟩2≥12\langle\mathbf{v}_{1},\mathbf{w}\rangle^{2}\geq\frac{1}{2}.

To the best of our knowledge, the existing iteration complexity guarantees for such algorithms (assuming the norm constraint r≤1r\leq 1 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 d2/λ2d^{2}/\lambda^{2}, and the guarantee of scales as d/λ3d/\lambda^{3} in our setting. as d/λ2d/\lambda^{2}. Since the runtime of each iteration is O(d)\mathcal{O}(d), we get an overall runtime of O((d/λ)2)\mathcal{O}((d/\lambda)^{2}).

The dependence on dd in the iteration bound stems from the fact that with a random initial unit vector w0\mathbf{w}_{0}, we have ⟨v1,w0⟩2≈1d\langle\mathbf{v}_{1},\mathbf{w}_{0}\rangle^{2}\approx\frac{1}{d}. Thus, we begin with a vector almost orthogonal to the leading eigenvector v1\mathbf{v}_{1} (depending on dd). 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 dd.

For w0\mathbf{w}_{0} as above, it holds for any δ\delta that with probability at least 1−1d−δ1-\frac{1}{d}-\delta,

where nrank(A)=∥A∥F2∥A∥sp2\text{nrank}(A)=\frac{\|A\|_{F}^{2}}{\|A\|_{sp}^{2}} is the numerical rank of AA.

The numerical rank (see e.g. ) is a relaxation of the standard notion of rank: For any d×dd\times d matrix AA, nrank(A) is at most the rank of AA (which in turn is at most dd). However, it will be small even if AA 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 dd or even a constant. Therefore, by a single power iteration, we get an initial point w0\mathbf{w}_{0} for which ⟨v1,w0⟩2\langle\mathbf{v}_{1},\mathbf{w}_{0}\rangle^{2} is on the order of 1/nrank(A)1/\text{nrank(A)}, which can be much larger than the 1/d1/d given by a random initialization, and is never substantially worse.

Let s1≥s2≥…≥sd≥0s_{1}\geq s_{2}\geq\ldots\geq s_{d}\geq 0 be the dd eigenvalues of AA, with eigenvectors v1,…,vd\mathbf{v}_{1},\ldots,\mathbf{v}_{d}. We have

Since w\mathbf{w} is distributed according to a standard Gaussian distribution, which is rotationally symmetric, we can assume without loss of generality that v1,…,vd\mathbf{v}_{1},\ldots,\mathbf{v}_{d} correspond to the standard basis vectors e1,…,ed\mathbf{e}_{1},\ldots,\mathbf{e}_{d}, in which case the above reduces to

where w1,…,wdw_{1},\ldots,w_{d} are independent and scalar random variables with a standard Gaussian distribution.

First, we note that s12s_{1}^{2} equals ∥A∥sp2\|A\|_{sp}^{2}, the spectral norm of AA, whereas ∑i=1dsi2\sum_{i=1}^{d}s_{i}^{2} equals ∥A∥F2\|A\|_{F}^{2}, the Frobenius norm of AA. Therefore, s12∑isi2=∥A∥sp2∥A∥F2=1nrank(A)\frac{s_{1}^{2}}{\sum_{i}s_{i}^{2}}=\frac{\|A\|_{sp}^{2}}{\|A\|_{F}^{2}}=\frac{1}{\text{nrank}(A)}, and we get overall that

We consider the random quantity w12/max⁡iwi2w_{1}^{2}/\max_{i}w_{i}^{2}, and independently bound the deviation probability of the numerator and denominator. First, for any t≥0t\geq 0 we have

Combining Eq. (5) and Eq. (6), with a union bound, we get that for any t1,t2≥0t_{1},t_{2}\geq 0, it holds with probability at least 1−2πt1−exp⁡(−t22/2)1-\sqrt{\frac{2}{\pi}t_{1}}-\exp(-t_{2}^{2}/2) that

To slightly simplify this for readability, we take t2=2log⁡(d)t_{2}=\sqrt{2\log(d)}, and substitute δ=2πt1\delta=\sqrt{\frac{2}{\pi}t_{1}}. This implies that with probability at least 1−δ−1/d1-\delta-1/d,

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 dd factor in the iteration complexity bounds to a dependence on the numerical rank of AA. 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 cc). Then with probability at least 1−δ1-\delta, after

stochastic iterations (lines 6−106-10 in the pseudocode, where c′c^{\prime} is again a universal constant), we get a point wT\mathbf{w}_{T} satisfying 1−⟨v1,wT⟩2≤121-\langle\mathbf{v}_{1},\mathbf{w}_{T}\rangle^{2}\leq\frac{1}{2}. Moreover, if η\eta 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 mm, 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 ϵ\epsilon-accurate solution is

so the sum of the two expressions (which is d(n+1λ2)d\left(n+\frac{1}{\lambda^{2}}\right) 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 d(n+1λ2)log⁡(1ϵ)d\left(n+\frac{1}{\lambda^{2}}\right)\log\left(\frac{1}{\epsilon}\right) runtime guarantees from the previous sections can be further improved. Although a linear dependence on d,nd,n seems unavoidable, this is not the case for the quadratic dependence on 1/λ1/\lambda. Indeed, when using deterministic methods such as power iterations or the Lanczos method, the dependence on λ\lambda in the runtime is only 1/λ1/\lambda or even 1/λ\sqrt{1/\lambda} . In the world of convex optimization from which our algorithmic techniques are derived, the analog of λ\lambda is the strong convexity parameter of the function, and again, it is possible to get a dependence of 1/λ1/\lambda, or even 1/λ\sqrt{1/\lambda} 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 d×dd\times d 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” d×kd\times k 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 k=1k=1 case for simplicity (i.e., our goal is to find a leading eigenvector of the matrix A=1nXX⊤=1n∑i=1nxixi⊤A=\frac{1}{n}XX^{\top}=\frac{1}{n}\sum_{i=1}^{n}\mathbf{x}_{i}\mathbf{x}_{i}^{\top}), and study potential convexity properties of the negative Rayleigh quotient,

Note that for k=1k=1, 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 FAF_{A} 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 AA above, the Hessian of FAF_{A} is not positive semidefinite for all but a measure-zero set.

The leading eigenvector of AA is v1=(1,0)\mathbf{v}_{1}=(1,0), and FA(w)=−w12w12+w22F_{A}(\mathbf{w})=-\frac{w_{1}^{2}}{w_{1}^{2}+w_{2}^{2}}. The Hessian of this function at some w\mathbf{w} equals

The determinant of this 2×22\times 2 matrix equals

The theorem implies that we indeed cannot use convex optimization tools as-is on the function FAF_{A}, even if we’re close to an optimum. However, the non-convexity was shown for FAF_{A} 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 w0\mathbf{w}_{0} close enough to an optimum, then we can explicitly construct a simple convex set, such that

The set includes an optimal point of FAF_{A}.

The function FAF_{A} is O(1)\mathcal{O}(1)-smooth and λ\lambda-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 w0\mathbf{w}_{0}, and then switch to a convex optimization algorithm designed to handle functions with a finite sum structure (such as FAF_{A}). Since the runtime of such algorithms scale better than VR-PCA, in terms of the dependence on λ\lambda, we can hope for an overall runtime improvement.

Unfortunately, this has a catch: To make it work, we need to have w0\mathbf{w}_{0} very close to the optimum – in fact, we require ∥v1−w0∥≤O(λ)\|\mathbf{v}_{1}-\mathbf{w}_{0}\|\leq\mathcal{O}(\lambda), and we show (in Theorem 5) that such a dependence on the eigengap λ\lambda cannot be avoided (perhaps up to a small polynomial factor). The issue is that the runtime to get such a w0\mathbf{w}_{0}, using stochastic-based approaches we are aware of, would scale at least quadratically with 1/λ1/\lambda, 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 w0\mathbf{w}_{0} (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 ϵ\epsilon-optimal solution for λ\lambda-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 ϵ\epsilon-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 ϵ\epsilon is extremely small (exponentially small in n,1/λn,1/\lambda). Therefore, our construction is mostly of theoretical interest. However, it still shows that asymptotically, as ϵ→0\epsilon\rightarrow 0, 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 w0\mathbf{w}_{0}, define the hyperplane tangent to w0\mathbf{w}_{0},

as well as a Euclidean ball of radius rr centered at w0\mathbf{w}_{0}:

The convex set we use, given such a w0\mathbf{w}_{0}, is simply the intersection of the two, Hw0∩Bw0(r)H_{\mathbf{w}_{0}}\cap B_{\mathbf{w}_{0}}(r), where rr is a sufficiently small number (see Figure 2).

The following theorem shows that if w0\mathbf{w}_{0} is O(λ)\mathcal{O}(\lambda)-close to an optimal point (a leading eigenvector v1\mathbf{v}_{1} of AA), and we choose the radius of Bw0(r)B_{w_{0}}(r) appropriately, then Hw0∩Bw0(r)H_{\mathbf{w}_{0}}\cap B_{\mathbf{w}_{0}}(r) contains an optimal point, and the function FAF_{A} is indeed λ\lambda-strongly convex and smooth on that set. For simplicity, we will assume that AA is scaled to have spectral norm of 11, but the result can be easily generalized.

For any positive semidefinite AA with spectral norm 11, eigengap λ\lambda and a leading eigenvector v1\mathbf{v}_{1}, and any unit vector w0\mathbf{w}_{0} such that ∥w0−v1∥≤λ44\|\mathbf{w}_{0}-\mathbf{v}_{1}\|\leq\frac{\lambda}{44}, the function FA(w)F_{A}(\mathbf{w}) is 2020-smooth and λ\lambda-strongly convex on the convex set Hw0∩Bw0(λ22)H_{\mathbf{w}_{0}}\cap B_{\mathbf{w}_{0}}\left(\frac{\lambda}{22}\right), which contains a global optimum of FAF_{A}.

The proof of the theorem appears in Subsection 6.3. Finally, we show below that a polynomial dependence on the eigengap λ\lambda is unavoidable, in the sense that the convexity property is lost if w0\mathbf{w}_{0} is significantly further away from v1\mathbf{v}_{1}.

For any λ,ϵ∈(0,12)\lambda,\epsilon\in\left(0,\frac{1}{2}\right), there exists a positive semidefinite matrix AA with spectral norm 11, eigengap λ\lambda, and leading eigenvector v1\mathbf{v}_{1}, as well as a unit vector w0\mathbf{w}_{0} for which ∥v1−w0∥≤2(1+ϵ)λ)\|\mathbf{v}_{1}-\mathbf{w}_{0}\|\leq\sqrt{2(1+\epsilon)\lambda)}, such that FAF_{A} is not convex in any neighborhood of w0\mathbf{w}_{0} on Hw0H_{\mathbf{w}_{0}}.

for which v1=(1,0,0)\mathbf{v}_{1}=(1,0,0), and take

where p=(1+ϵ)λp=\sqrt{(1+\epsilon)\lambda} (which ensures ∥v1−w0∥2=2p2=2(1+ϵ)λ\|\mathbf{v}_{1}-\mathbf{w}_{0}\|^{2}=\sqrt{2p^{2}}=\sqrt{2(1+\epsilon)\lambda}). Consider the ray {(1−p2,t,p):t≥0}\{(\sqrt{1-p^{2}},t,p):t\geq 0\}, and note that it starts from w0\mathbf{w}_{0} and lies in Hw0H_{\mathbf{w}_{0}}. The function FAF_{A} along that ray (considering it as a function of tt) is of the form

The second derivative with respect to tt equals

where we plugged in the definition of pp. This is a negative quantity for any t<13t<\frac{1}{\sqrt{3}}. Therefore, the function FAF_{A} is strictly concave (and not convex) along the ray we have defined and close enough to w0\mathbf{w}_{0}, and therefore isn’t convex in any neighborhood of w0\mathbf{w}_{0} on Hw0H_{\mathbf{w}_{0}}. ∎

Proofs

Although the proof structure generally mimics the proof of Theorem 1 in for the k=1k=1 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 B,C,D⪰0B,C,D\succeq 0, it holds that Tr⁡(BC)≥Tr⁡(B(C−D))\operatorname{Tr}(BC)\geq\operatorname{Tr}(B(C-D)) and Tr⁡(BC)≥Tr⁡((B−D)C)\operatorname{Tr}(BC)\geq\operatorname{Tr}((B-D)C).

It is enough to prove that for any positive semidefinite matrices E,GE,G, it holds that Tr⁡(EG)≥0\operatorname{Tr}(EG)\geq 0. The lemma follows by taking either E=B,G=DE=B,G=D (in which case, Tr⁡(BC)=Tr⁡(B(C−D))+Tr⁡(BD)≥Tr⁡(B(C−D))\operatorname{Tr}(BC)=\operatorname{Tr}(B(C-D))+\operatorname{Tr}(BD)\geq\operatorname{Tr}(B(C-D))), or E=D,G=CE=D,G=C (in which case, Tr⁡(BC)=Tr⁡((B−D)C)+Tr⁡(DC)≥Tr⁡((B−D)C)\operatorname{Tr}(BC)=\operatorname{Tr}((B-D)C)+\operatorname{Tr}(DC)\geq\operatorname{Tr}((B-D)C)).

Any positive semidefinite matrix MM can be written as the product M1/2M1/2M^{1/2}M^{1/2} for some symmetric matrix M1/2M^{1/2} (known as the matrix square root of MM). Therefore,

We begin by proving the one-dimensional case, where B,CB,C are scalars b≥0,c>0b\geq 0,c>0. The inequality then becomes bc−1≥b(2−c)bc^{-1}\geq b(2-c), which is equivalent to 1≥c(2−c)1\geq c(2-c), or upon rearranging, (c−1)2≥0(c-1)^{2}\geq 0, which trivially holds.

Turning to the general case, we note that by Lemma 2, it is enough to prove that C−1−(2I−C)⪰0C^{-1}-(2I-C)\succeq 0. To prove this, we make a couple of observations. The positive definite matrix CC (like any positive definite matrix) has a singular value decomposition which can be written as USU⊤USU^{\top}, where UU is an orthogonal matrix, and SS is a diagonal matrix with positive entries. Its inverse is US−1U⊤US^{-1}U^{\top}, and 2I−C=2I−USU⊤=U(2I−S)U⊤2I-C=2I-USU^{\top}=U(2I-S)U^{\top}. Therefore,

To show this matrix is positive semidefinite, it is enough to show that each diagonal entry of S−1−(2I−S)S^{-1}-(2I-S) is non-negative. But this reduces to the one-dimensional result we already proved, when b=1b=1 and c>0c>0 is any diagonal entry in SS. Therefore, C−1−(2I−C)⪰0C^{-1}-(2I-C)\succeq 0, from which the result follows. ∎

The first inequality is immediate from Cauchy-Shwartz. As to the second inequality, letting ci\mathbf{c}_{i} denote the ii-th column of CC, and ∥⋅∥2\|\cdot\|_{2} the Euclidean norm for vectors,

Let B1,B2,Z1,Z2B_{1},B_{2},Z_{1},Z_{2} be k×kk\times k square matrices, where B1,B2B_{1},B_{2} are fixed and Z1,Z2Z_{1},Z_{2} are stochastic and zero-mean (i.e. their expectation is the all-zeros matrix). Furthermore, suppose that for some fixed α,γ,δ>0\alpha,\gamma,\delta>0, it holds with probability 11 that

For all ν∈\nu\in, B2+νZ2⪰δIB_{2}+\nu Z_{2}\succeq\delta I.

max⁡{∥Z1∥F,∥Z2∥F}≤α\max\{\|Z_{1}\|_{F},\|Z_{2}\|_{F}\}\leq\alpha.

Since B2+νZ2B_{2}+\nu Z_{2} is positive definite, it is always invertible, hence f(ν)f(\nu) is indeed well-defined. Moreover, it can be differentiated with respect to ν\nu, and we have

Again differentiating with respect to ν\nu, we have

Using Lemma 4 and the triangle inequality, this is at most

Applying a Taylor expansion to f(⋅)f(\cdot) around ν=0\nu=0, with a Lagrangian remainder term, and substituting the values for f′(ν),f′′(ν)f^{\prime}(\nu),f^{\prime\prime}(\nu), we can lower bound f(1)f(1) as follows:

Taking expectation over Z1,Z2Z_{1},Z_{2}, and recalling they are zero-mean, we get that

Let U1,…,UkU_{1},\ldots,U_{k} and R1,R2R_{1},R_{2} be positive semidefinite matrices, such that R2−R1⪰0R_{2}-R_{1}\succeq 0, and define the function

over all (x1…xk)∈[α,β]d(x_{1}\ldots x_{k})\in[\alpha,\beta]^{d} for some β≥α≥0\beta\geq\alpha\geq 0. Then  min⁡(x1…xk)∈[α,β]df(x)=f(α,…,α)~{}\min_{(x_{1}\ldots x_{k})\in[\alpha,\beta]^{d}}f(\mathbf{x})=f(\alpha,\ldots,\alpha).

Taking a partial derivative of ff with respect to some xjx_{j}, 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, ∂∂xjf(x)≥0\frac{\partial}{\partial x_{j}}f(\mathbf{x})\geq 0, which implies that the function is minimized when each xjx_{j} takes its smallest possible value, i.e. α\alpha. ∎

Let BB be a k×kk\times k matrix with minimal singular value δ\delta. Then

so it remains to prove 1−∥B⊤B∥F2∥B∥F2≥δ2k(k−∥B∥F2)1-\frac{\|B^{\top}B\|_{F}^{2}}{\|B\|_{F}^{2}}\geq\frac{\delta^{2}}{k}\left(k-\|B\|_{F}^{2}\right). Let σ1,…,σk\sigma_{1},\ldots,\sigma_{k} denote the vector of singular values of BB. The singular values of B⊤BB^{\top}B are σ12,…,σk2\sigma_{1}^{2},\ldots,\sigma_{k}^{2}, 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 σi∈[δ,1]\sigma_{i}\in[\delta,1] for all ii. This holds since

For any d×kd\times k matrices C,DC,D with orthonormal columns, let

be the nearest orthonormal-columns matrix to CC in the column space of DD (where BB is a k×kk\times k matrix). Then the matrix BB minimizing the above equals B=VU⊤B=VU^{\top}, where C⊤D=USV⊤C^{\top}D=USV^{\top} is the SVD decomposition of C⊤DC^{\top}D, and it holds that

Since DD has orthonormal columns, we have D⊤D=ID^{\top}D=I, so the definition of BB is equivalent to

This is the orthogonal Procrustes problem (see e.g. ), and the solution is easily shown to be B=VU⊤B=VU^{\top} where USV⊤USV^{\top} is the SVD decomposition of C⊤DC^{\top}D. In this case, and using the fact that ∥C∥F2=∥D∥F2=k\|C\|_{F}^{2}=\|D\|_{F}^{2}=k (as C,DC,D have orthonormal columns), we have that ∥C−DC∥F2\|C-D_{C}\|_{F}^{2} equals

Since the trace function is similarity-invariant, this equals 2k−Tr⁡(S)2k-\operatorname{Tr}(S). Let s1…,sks_{1}\ldots,s_{k} be the diagonal elements of SS, and note that they can be at most 11 (since they are the singular values of C⊤DC^{\top}D, and both CC and DD 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 Wt,Wt′W_{t},W^{\prime}_{t} be as defined in Algorithm 2, where we assume η<13\eta<\frac{1}{3}. Then for any d×kd\times k matrix VkV_{k} with orthonormal columns, it holds that

Letting st,st−1\mathbf{s}_{t},\mathbf{s}_{t-1} denote the vectors of singular values of Vk⊤WtV_{k}^{\top}W_{t} and Vk⊤Wt−1V_{k}^{\top}W_{t-1}, and noting that they are both in k^{k} (as Vk,Wt−1,WtV_{k},W_{t-1},W_{t} all have orthonormal columns), the left hand side of the inequality in the lemma statement equals

where ∥⋅∥∞\|\cdot\|_{\infty} is the infinity norm. By Weyl’s matrix perturbation theoremUsing its version for singular values, which implies that the singular values of matrices BB and B+EB+E are different by at most ∥E∥sp\|E\|_{sp}. , this is upper bounded by

Recalling the relationship between WtW_{t} and Wt−1W_{t-1} 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 xi\mathbf{x}_{i} by r\sqrt{r}, and multiply η\eta by rr. Since max⁡i∥xi∥2≤r\max_{i}\|\mathbf{x}_{i}\|^{2}\leq r, this corresponds to running the algorithm with step-size ηr\eta r rather than η\eta, on a re-scaled dataset of points with squared norm at most 11, and with an eigengap of λ/r\lambda/r instead of λ\lambda. Therefore, we can simply analyze the algorithm assuming that max⁡i∥xi∥2≤1\max_{i}\|\mathbf{x}_{i}\|^{2}\leq 1, and in the end plug in λ/r\lambda/r instead of λ\lambda, and ηr\eta r instead of η\eta, to get a result which holds for data with squared norm at most rr.

Part I: Establishing a Stochastic Recurrence Relation

We begin by focusing on a single iteration tt of the algorithm, and analyze how ∥Vk⊤Wt∥F2\|V_{k}^{\top}W_{t}\|_{F}^{2} (which measures the similarity between the column spaces of VkV_{k} and WtW_{t}) evolves during that iteration. The key result we need is Lemma 10 below, which is specialized for our algorithm in Lemma 11.

Let AA be a d×dd\times d symmetric matrix with all eigenvalues s1≥s2≥…≥sds_{1}\geq s_{2}\geq\ldots\geq s_{d} in $,andsupposethat, and suppose thats_{k}-s_{k+1}\geq\lambdaforsomefor some\lambda>0$.

Let NN be a d×kd\times k zero-mean random matrix such that ∥N∥F≤σNF\|N\|_{F}\leq\sigma^{F}_{N} and ∥N∥sp≤σNsp\|N\|_{sp}\leq\sigma^{sp}_{N} with probability 11, and define

Let WW be a d×kd\times k matrix with orthonormal columns, and define

for some η∈[0,14max⁡{1,σNF}]\eta\in\left[0,\frac{1}{4\max\{1,\sigma^{F}_{N}\}}\right].

If Vk=[v1,v2…,vk]V_{k}=[\mathbf{v}_{1},\mathbf{v}_{2}\ldots,\mathbf{v}_{k}] is the d×kd\times k matrix of AA’s first kk eigenvectors, then the following holds:

If ∥Vk⊤W∥F2≥k−12\|V_{k}^{\top}W\|_{F}^{2}\geq k-\frac{1}{2}, then

Using the fact that Tr⁡(BCD)=Tr⁡(CDB)\operatorname{Tr}(BCD)=\operatorname{Tr}(CDB) for any matrices B,C,DB,C,D, we have

Z1,Z2Z_{1},Z_{2} are zero mean: This holds since they are linear in NN, and NN is assumed to be zero-mean.

B2+νZ2⪰38IB_{2}+\nu Z_{2}\succeq\frac{3}{8}I for all ν∈\nu\in: Recalling the definition of B2,Z2B_{2},Z_{2}, and the facts that A⪰0A\succeq 0, N⊤N⪰0N^{\top}N\succeq 0 (by construction), and W⊤W=IW^{\top}W=I, we have that B2⪰IB_{2}\succeq I. Moreover, the spectral norm of Z2Z_{2} is at most

which by the assumption on η\eta is at most 214(1+14)=582\frac{1}{4}\left(1+\frac{1}{4}\right)=\frac{5}{8}. This implies that the smallest singular value of B2+νZ2B_{2}+\nu Z_{2} is at least 1−ν(5/8)≥3/81-\nu(5/8)\geq 3/8.

max⁡{∥Z1∥F,∥Z2∥F}≤52ησNF\max\{\|Z_{1}\|_{F},\|Z_{2}\|_{F}\}\leq\frac{5}{2}\eta\sigma^{F}_{N}: By definition of Z1,Z2Z_{1},Z_{2}, and using Lemma 4, the Frobenius norm of these two matrices is at most

which by the assumption on η\eta is at most 2ησNF(1+14)=52ησNF2\eta\sigma^{F}_{N}\left(1+\frac{1}{4}\right)=\frac{5}{2}\eta\sigma^{F}_{N}.

∥B1+ηZ1∥sp≤(14σNsp+2)2\|B_{1}+\eta Z_{1}\|_{sp}\leq\left(\frac{1}{4}\sigma^{sp}_{N}+2\right)^{2}: Using the definition of B1,Z1B_{1},Z_{1} and the assumption η≤14\eta\leq\frac{1}{4},

Applying Lemma 5 and plugging back to Eq. (11), we get

We now turn to lower bound Tr⁡(B1B2−1)\operatorname{Tr}\left(B_{1}B_{2}^{-1}\right), by first re-writing B1,B2B_{1},B_{2} in a different form. For i=1,…,di=1,\ldots,d, let

where vi\mathbf{v}_{i} is the eigenvector of AA corresponding to the eigenvalue sis_{i}. Note that each UiU_{i} is positive semidefinite, and ∑i=1dUi=W⊤W=I\sum_{i=1}^{d}U_{i}=W^{\top}W=I. We have

Plugging Eq. (13) and Eq. (14) back into Eq. (12), we get

Recalling that s1≥s2≥…≥sks_{1}\geq s_{2}\geq\ldots\geq s_{k} and letting α=(1+ηsk)2,β=(1+ηs1)2\alpha=(1+\eta s_{k})^{2},\beta=(1+\eta s_{1})^{2}, the trace term can be lower bounded by

Applying Lemma 6 (noting that as required by the lemma, ∑i=k+1d(1+ηsi)2Ui+η2N⊤N−η2N⊤VkVk⊤N=∑i=k+1d(1+ηsi)2Ui+η2N⊤(I−VkVk⊤)N⪰0\sum_{i=k+1}^{d}(1+\eta s_{i})^{2}U_{i}+\eta^{2}N^{\top}N-\eta^{2}N^{\top}V_{k}V_{k}^{\top}N=\sum_{i=k+1}^{d}(1+\eta s_{i})^{2}U_{i}+\eta^{2}N^{\top}\left(I-V_{k}V_{k}^{\top}\right)N\succeq 0), we can lower bound the above by

Using Lemma 2, this can be lower bounded by

Recalling that I=∑i=1dUi=∑i=1kUi+∑i=k+1dUiI=\sum_{i=1}^{d}U_{i}=\sum_{i=1}^{k}U_{i}+\sum_{i=k+1}^{d}U_{i}, this can be simplified to

Since Ui⪰0U_{i}\succeq 0, then using Lemma 3, we can lower bound the expression above by shrinking each of the (2−(1+ηsi1+ηsk)2)\left(2-\left(\frac{1+\eta s_{i}}{1+\eta s_{k}}\right)^{2}\right) terms. In particular, since si≤sk−λs_{i}\leq s_{k}-\lambda for each i≥k+1i\geq k+1,

which by the assumption that η≤1/4\eta\leq 1/4 and sk≤s1≤1s_{k}\leq s_{1}\leq 1, is at least 1+45ηλ1+\frac{4}{5}\eta\lambda. Plugging this back into Eq. (16), and recalling that ∑i=1dUi=I\sum_{i=1}^{d}U_{i}=I, 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 UiU_{i} and the fact that Tr⁡(B⊤B)=∥B∥F2\operatorname{Tr}(B^{\top}B)=\|B\|_{F}^{2}) as

Applying Lemma 7, and letting δ\delta denote the minimal singular value of Vk⊤WV_{k}^{\top}W, this is lower bounded by

Taking the first argument of the max term in Eq. (17), we get

Subtracting 11 from both sides and simplifying, we get

Suppose that ∥Vk⊤W∥F2≥k−12\|V_{k}^{\top}W\|_{F}^{2}\geq k-\frac{1}{2}. Taking the second argument of the max term in Eq. (17), we get

Subtracting both sides from kk, , we get

Since k≥1k\geq 1, we can lower bound the (k−12)\left(k-\frac{1}{2}\right) term by k2\frac{k}{2}. Moreover, the condition k−∥Vk⊤W∥F2≤12k-\|V_{k}^{\top}W\|_{F}^{2}\leq\frac{1}{2} implies that the singular values σ1,…,σk\sigma_{1},\ldots,\sigma_{k} of Vk⊤WV_{k}^{\top}W satisfy k−∑i=1kσi2≤12k-\sum_{i=1}^{k}\sigma_{i}^{2}\leq\frac{1}{2}. But each σi\sigma_{i} is in $(as(asV_{k},Whaveorthonormalcolumns),sonohave orthonormal columns), so no\sigma_{i}canbelessthancan be less than\frac{1}{2}.Thisimpliesthat. This implies that\delta\geq\frac{1}{2}.Pluggingthelowerbounds. Plugging the lower boundsk-\frac{1}{2}\geq\frac{k}{2}andand\delta\geq\frac{1}{2}$ into the above, we get

Let A,WtA,W_{t} be as defined in Algorithm 2, and suppose that η∈[0,123k]\eta\in\left[0,\frac{1}{23\sqrt{k}}\right]. Then the following holds for some positive numerical constants c1,c2,c3c_{1},c_{2},c_{3}:

If ∥Vk⊤Wt∥F2≥k−12\|V_{k}^{\top}W_{t}\|_{F}^{2}\geq k-\frac{1}{2}, then

so we may take σNsp=4\sigma^{sp}_{N}=4. As to the Frobenius norm, using Lemma 4 and a similar calculation, we have

to be the nearest orthonormal-columns matrix to WtW_{t} in the column space of VkV_{k}, and

Plugging σNsp\sigma^{sp}_{N} and (σNF)2(\sigma^{F}_{N})^{2} into the rNr_{N} as defined in Lemma 10, and picking any η∈[0,123k]\eta\in[0,\frac{1}{23\sqrt{k}}] (which satisfies the condition in Lemma 10 that η∈[0,14max⁡{1,σNF}]\eta\in\left[0,\frac{1}{4\max\{1,\sigma^{F}_{N}\}}\right], since 4max⁡{1,σnF}≤4max⁡{1,16∗2k}<23k4\max\{1,\sigma^{F}_{n}\}\leq 4\max\{1,\sqrt{16*2k}\}<23\sqrt{k}), we get

This implies that rN≤36800kr_{N}\leq 36800k always, which by application of Lemma 10, gives the first part of our lemma. As to the second part, assuming ∥Vk⊤Wt∥F2≥k−12\|V_{k}^{\top}W_{t}\|_{F}^{2}\geq k-\frac{1}{2} 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 η=αλ\eta=\alpha\lambda, where α\alpha is a sufficiently small constant to be chosen later. Also, let

Then Lemma 11 tells us that if α\alpha is a sufficiently small constant, bt≤12b_{t}\leq\frac{1}{2}, then

for some numerical constants c,c′c,c^{\prime}.

Let BB be the event that bt≤12b_{t}\leq\frac{1}{2} for all t=0,1,2,…,mt=0,1,2,\ldots,m. Then for certain positive numerical constants c1,c2,c3c_{1},c_{2},c_{3}, if α≤c1\alpha\leq c_{1}, then

where the expectation is over the randomness in the current epoch.

Note that the first equality holds, since conditioned on WtW_{t}, bt+1b_{t+1} is independent of b1,…,btb_{1},\ldots,b_{t}, so the event BB is equivalent to just requiring bt+1≤1/2b_{t+1}\leq 1/2.

Taking expectation over WtW_{t} (conditioned on BB), we get that

We now turn to prove that the event BB assumed in Lemma 12 indeed holds with high probability:

The following holds for certain positive numerical constants c1,c2,c3c_{1},c_{2},c_{3}: If α≤c1\alpha\leq c_{1}, then for any β∈(0,1)\beta\in(0,1) and mm, if

then it holds with probability at least 1−β1-\beta that

∣bt+1−bt∣|b_{t+1}-b_{t}| is bounded by c3′kαλc^{\prime}_{3}k\alpha\lambda for some constant c3′c^{\prime}_{3}: Applying Lemma 9, and assuming that α\alpha is at most some sufficiently small constant c1c_{1} (e.g. α≤112\alpha\leq\frac{1}{12}, so η=αλ≤112\eta=\alpha\lambda\leq\frac{1}{12}),

Armed with these facts, and using the maximal version of the Hoeffding-Azuma inequality , it follows that with probability at least 1−β1-\beta, it holds simultaneously for all t=1,…,mt=1,\ldots,m (and for t=0t=0 by assumption) that

Combining Lemma 12 and Lemma 13, and using Markov’s inequality, we get the following corollary:

Let confidence parameters β,γ∈(0,1)\beta,\gamma\in(0,1) be fixed. Suppose that m,αm,\alpha are chosen such that α≤c1\alpha\leq c_{1} and

where c1,c2,c3c_{1},c_{2},c_{3} are certain positive numerical constants. Then with probability at least 1−(β+γ)1-(\beta+\gamma), it holds that

for some positive numerical constants c,c′c,c^{\prime}.

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 1−(β+γ)1-(\beta+\gamma) that

Using the inequality (1−(1/x))ax≤exp⁡(−a)(1-(1/x))^{ax}\leq\exp(-a), which holds for any x>1x>1 and any aa, and taking x=1/(cαλ2)x=1/(c\alpha\lambda^{2}) and a=3log⁡(1/γ)a=3\log(1/\gamma), we can upper bound the above by

Using a confidence parameter δ\delta, we pick β=γ=δ2\beta=\gamma=\frac{\delta}{2}, which ensures that the accuracy bound above holds with probability at least

for suitable positive constants c,c′,c′′c,c^{\prime},c^{\prime\prime}.

To get the theorem statement, recall that the analysis we performed pertains to data whose squared norm is bounded by 11. By the reduction discussed at the beginning of the proof, we can apply it to data with squared norm at most rr, by replacing λ\lambda with λ/r\lambda/r, and η\eta with ηr\eta r, 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 r=max⁡i∥xi∥2r=\max_{i}\|\mathbf{x}_{i}\|^{2} is at most 11, and then transform the bound to a bound for general rr (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 k=1k=1):

Let A,wtA,\mathbf{w}_{t} be as defined in Algorithm 1, and suppose that η∈[0,123]\eta\in\left[0,\frac{1}{23}\right]. Then

for some positive numerical constants c,c′c,c^{\prime}.

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 b0=1−⟨v1,w0⟩2b_{0}=1-\langle\mathbf{v}_{1},\mathbf{w}_{0}\rangle^{2} is assumed fixed, whereas b1,b2,…b_{1},b_{2},\ldots are random variables based on the sampling process. Lemma 11 tells us that if η\eta is sufficiently small, and bt≤1−ξb_{t}\leq 1-\xi for some ξ∈(0,1)\xi\in(0,1), then

for some numerical constants c,c′c,c^{\prime}.

Let BB be the event that bt≤1−ξb_{t}\leq 1-\xi for all t=0,1,…,Tt=0,1,\ldots,T. Then for certain positive numerical constants c1,c2,c3c_{1},c_{2},c_{3}, if η≤c1λ\eta\leq c_{1}\lambda, then

Using Eq. (21), we have for any btb_{t} satisfying event BB that

Taking expectation over btb_{t} (conditioned on BB), we get that

We now turn to prove that the event BB assumed in Lemma 12 indeed holds with high probability:

The following holds for certain positive numerical constants c1,c2,c3c_{1},c_{2},c_{3}: If η≤c1λ\eta\leq c_{1}\lambda, then for any β∈(0,1)\beta\in(0,1), if

then it holds with probability at least 1−β1-\beta that

To prove the lemma, we analyze the stochastic process b1,b2,…,bTb_{1},b_{2},\ldots,b_{T}, and use a concentration of measure argument. First, we collect the following facts:

b0≤1−ξb_{0}\leq 1-\xi: This directly follows from the assumption stated in the lemma.

∣bt+1−bt∣|b_{t+1}-b_{t}| is bounded by cηc\eta for some constant cc: Applying Lemma 9 for the case k=1k=1, and assuming η≤1/12\eta\leq 1/12,

Armed with these facts, and using the maximal version of the Hoeffding-Azuma inequality , it follows that with probability at least 1−β1-\beta, it holds simultaneously for all t=0,1,…,Tt=0,1,\ldots,T that

for some constants c2,c3c_{2},c_{3}. If the expression is indeed less than 1−ξ1-\xi, then we get that bt≤1−ξb_{t}\leq 1-\xi for all tt, from which the lemma follows. ∎

Combining Lemma 16 and Lemma 17, and using Markov’s inequality, we get the following corollary:

Let confidence parameters β,γ∈(0,1)\beta,\gamma\in(0,1) be fixed. Then for some positive numerical constants c1,c2,c3,c,c′c_{1},c_{2},c_{3},c,c^{\prime}, if η≤c1λ\eta\leq c_{1}\lambda and

then with probability at least 1−(β+γ)1-(\beta+\gamma), it holds that

We are now ready to prove our theorem. By Lemma 18, for any β,γ∈(0,12)\beta,\gamma\in\left(0,\frac{1}{2}\right) and any

we get with probability at least 1−(β+γ)1-(\beta+\gamma) that

Using the inequality (1−(1/x))ax≤exp⁡(−a)(1-(1/x))^{ax}\leq\exp(-a), which holds for any x>1x>1 and any aa, and taking x=1/(cηλξ)x=1/(c\eta\lambda\xi) and a=3log⁡(1/γ)a=3\log(1/\gamma), we can upper bound the above by

and since we assume γ<12\gamma<\frac{1}{2}, this is at most 12\frac{1}{2}. Overall, we got that with probability at least 1−β−γ1-\beta-\gamma, bT≤12b_{T}\leq\frac{1}{2}, and therefore 1−⟨v1,wT⟩2≤121-\langle\mathbf{v}_{1},\mathbf{w}_{T}\rangle^{2}\leq\frac{1}{2} as required.

It remains to show that the parameter choices in Eq. (23) can indeed be satisfied. First, we fix ξ=12ζ\xi=\frac{1}{2}\zeta (where we recall that 0<ζ≤⟨v1,w0⟩20<\zeta\leq\langle\mathbf{v}_{1},\mathbf{w}_{0}\rangle^{2}), which trivially ensures that b0=1−⟨v1,w0⟩2b_{0}=1-\langle\mathbf{v}_{1},\mathbf{w}_{0}\rangle^{2} is at most 1−2ξ1-2\xi. Moreover, suppose we pick β=γ\beta=\gamma in (0,exp⁡(−1))(0,\exp(-1)), and η,T\eta,T so that

where c∗,c∗′c_{*},c^{\prime}_{*} are sufficiently small constants so that the bounds on η,T\eta,T 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 TT and η\eta, and using the assumptions γ=β≤exp⁡(−1)\gamma=\beta\leq\exp(-1) and ξ≤1\xi\leq 1, we have

which is less than 1−ξ1-\xi if we pick c∗c_{*} sufficiently small compared to c∗′c^{\prime}_{*}.

To summarize, we get that for any γ∈(0,exp⁡(−1))\gamma\in(0,\exp(-1)), by picking η\eta as in Eq. (24), we have that after TT iterations (where TT is specified in Eq. (24)), with probability at least 1−2γ1-2\gamma, we get wT\mathbf{w}_{T} such that 1−⟨v1,wT⟩≤121-\langle\mathbf{v}_{1},\mathbf{w}_{T}\rangle\leq\frac{1}{2}. Substituting δ=2γ\delta=2\gamma and ζ=2ξ\zeta=2\xi, we get that if

(for some universal constant c1c_{1}), then with probability at least 1−δ1-\delta, after

stochastic iterations, we get a satisfactory point wT\mathbf{w}_{T}.

As discussed at the beginning of the proof, this analysis is valid assuming r=max⁡i∥xi∥2≤1r=\max_{i}\|\mathbf{x}_{i}\|^{2}\leq 1. By the reduction discussed at the beginning of Subsection 6.1.2, we can get an analysis for any rr by substituting λ→λ/r\lambda\rightarrow\lambda/r and η→ηr\eta\rightarrow\eta r. This means that we should pick η\eta satisfying

3 Proof of Theorem 4

We first prove the following two auxiliary lemmas:

If AA is a symmetric matrix, then the gradient of the function F(w)=−w⊤Aw∥w∥2F(\mathbf{w})=-\frac{\mathbf{w}^{\top}A\mathbf{w}}{\|\mathbf{w}\|^{2}} at some w\mathbf{w} equals

where B⊥=B+B⊤B^{\bot}=B+B^{\top} (i.e., a matrix BB plus its transpose).

By the product and chain rules (using the fact that 1∥w∥2\frac{1}{\|\mathbf{w}\|^{2}} is a composition of w↦∥w∥2\mathbf{w}\mapsto\|\mathbf{w}\|^{2} and z↦1zz\mapsto\frac{1}{z}), the gradient of F(w)=−1∥w∥2(w⊤Aw)F(\mathbf{w})=-\frac{1}{\|\mathbf{w}\|^{2}}\left(\mathbf{w}^{\top}A\mathbf{w}\right) equals

giving the gradient bound in the lemma statement after a few simplifications.

Differentiating the vector-valued Eq. (25) with respect to w\mathbf{w} (using the product and chain rules, and the fact that 1∥w∥4\frac{1}{\|\mathbf{w}\|^{4}} is a composition of w↦∥w∥2\mathbf{w}\mapsto\|\mathbf{w}\|^{2}, z↦z2z\mapsto z^{2}, and z↦1zz\mapsto\frac{1}{z}), we get that the Hessian of FF equals

which can be verified to equal the expression in the lemma statement (using the fact that A,ww⊤A,\mathbf{w}\mathbf{w}^{\top} and II are all symmetric matrices, hence equal their transpose). ∎

Let w0,v1\mathbf{w}_{0},\mathbf{v}_{1} be two unit vectors such that ∥w0−v1∥≤ϵ<12\|\mathbf{w}_{0}-\mathbf{v}_{1}\|\leq\epsilon<\frac{1}{2} (which implies ⟨w0,v1⟩>0\langle\mathbf{w}_{0},\mathbf{v}_{1}\rangle>0). Let v1′\mathbf{v}^{\prime}_{1} be the intersection of the ray {av1:a≥0}\{a\mathbf{v}_{1}:a\geq 0\} with the hyperplane Hw0={w:⟨w,w0⟩=1}H_{\mathbf{w}_{0}}=\{\mathbf{w}:\langle\mathbf{w},\mathbf{w}_{0}\rangle=1\}. Then ∥v1′−w0∥≤54ϵ\|\mathbf{v}^{\prime}_{1}-\mathbf{w}_{0}\|\leq\frac{5}{4}\epsilon.

See Figure 2 in the main text for a graphical illustration.

Letting v1′=av\mathbf{v}^{\prime}_{1}=a\mathbf{v}, aa must satisfy ⟨av1,w0⟩=1\langle a\mathbf{v}_{1},\mathbf{w}_{0}\rangle=1. Since v1,w0\mathbf{v}_{1},\mathbf{w}_{0} are unit vectors, this implies

and since ∥v1−w0∥≤ϵ\|\mathbf{v}_{1}-\mathbf{w}_{0}\|\leq\epsilon, this means that

and since ϵ<12\epsilon<\frac{1}{2}, this is at most 54ϵ\frac{5}{4}\epsilon. ∎

We now turn to prove the theorem. Let ∇2(w)\nabla^{2}(\mathbf{w}) denote the Hessian at some point w\mathbf{w}. To show smoothness and strong convexity as stated in the theorem, it is enough to fix some unit w0\mathbf{w}_{0} which is ϵ\epsilon-close to the leading eigenvector v1\mathbf{v}_{1} (where ϵ\epsilon is assumed to be sufficiently small), and show that for any point w\mathbf{w} on Hw0H_{\mathbf{w}_{0}} which is O(ϵ)\mathcal{O}(\epsilon) close to w0\mathbf{w}_{0}, and any direction g\mathbf{g} along Hw0H_{\mathbf{w}_{0}} (i.e. any unit g\mathbf{g} such that ⟨g,w0⟩=0\langle\mathbf{g},\mathbf{w}_{0}\rangle=0), it holds that g⊤∇2(w)g∈[λ,20]\mathbf{g}^{\top}\nabla^{2}(\mathbf{w})\mathbf{g}\in[\lambda,20]. This implies that the second derivative in an O(ϵ)\mathcal{O}(\epsilon) neighborhood of w0\mathbf{w}_{0} on Hw0H_{\mathbf{w}_{0}} is always in [λ,20][\lambda,20], hence the function is both λ\lambda-strongly convex in that neighborhood.

More formally, letting ϵ∈(0,1)\epsilon\in(0,1) be a small parameter to be chosen later, consider any w0\mathbf{w}_{0} such that

Our goal is to show that for an appropriate ϵ\epsilon, we have g⊤∇2(w)g∈[λ,20]\mathbf{g}^{\top}\nabla^{2}(\mathbf{w})\mathbf{g}\in[\lambda,20]. Moreover, by Lemma 20, the neighborhood set Hw0∩Bw0(2ϵ)H_{\mathbf{w}_{0}}\cap B_{\mathbf{w}_{0}}(2\epsilon) would also contain a point av1a\mathbf{v}_{1} for some aa, which is a global optimum of FF due to its scale-invariance. This would establish the theorem.

The easier part is to show the upper bound on g⊤∇2(w)g\mathbf{g}^{\top}\nabla^{2}(\mathbf{w})\mathbf{g}. Since g\mathbf{g} is a unit vector, it is enough to bound the spectral norm of ∇2(w)\nabla^{2}(\mathbf{w}), which equals

Since the spectral norm of AA is 11, and ∥w∥2≥1\|\mathbf{w}\|^{2}\geq 1 (as w\mathbf{w} lies on a hyperplane Hw0H_{\mathbf{w}_{0}} tangent to a unit vector w0\mathbf{w}_{0}), it is easy to verify that this is at most 2(1+4)(1+1)=202(1+4)(1+1)=20 as required.

We now turn to lower bound g⊤∇2(w)g\mathbf{g}^{\top}\nabla^{2}(\mathbf{w})\mathbf{g}, which by Lemma 19 equals

Since g⊤B⊥g=g⊤Bg+g⊤B⊤g=2g⊤Bg\mathbf{g}^{\top}B^{\bot}\mathbf{g}=\mathbf{g}^{\top}B\mathbf{g}+\mathbf{g}^{\top}B^{\top}\mathbf{g}=2\mathbf{g}^{\top}B\mathbf{g}, the above equals

Using the fact that w=w0+(w−w0)\mathbf{w}=\mathbf{w}_{0}+(\mathbf{w}-\mathbf{w}_{0}), and ⟨g,w0⟩=0\langle\mathbf{g},\mathbf{w}_{0}\rangle=0, we get that ⟨g,w⟩=⟨g,w−w0⟩\langle\mathbf{g},\mathbf{w}\rangle=\langle\mathbf{g},\mathbf{w}-\mathbf{w}_{0}\rangle. Moreover, since AA is positive semidefinite and has spectral norm of 11, F(w)=−w⊤Aw∥w∥2∈F(\mathbf{w})=-\frac{\mathbf{w}^{\top}A\mathbf{w}}{\|\mathbf{w}\|^{2}}\in. Expanding Eq. (26) and plugging these in, we get

Since ∥g∥=1\|\mathbf{g}\|=1, ∥A∥sp=1\|A\|_{sp}=1, ∥w−w0∥≤2ϵ\|\mathbf{w}-\mathbf{w}_{0}\|\leq 2\epsilon, and ∥w∥2=∥w0∥2+∥w−w0∥2\|\mathbf{w}\|^{2}=\|\mathbf{w}_{0}\|^{2}+\|\mathbf{w}-\mathbf{w}_{0}\|^{2} is between 11 and 1+4ϵ21+4\epsilon^{2}, this is at least

Let us now analyze −F(w)-F(\mathbf{w}) and g⊤Ag\mathbf{g}^{\top}A\mathbf{g} more carefully. The idea will be to show that since we are close to the optimum, −F(w)-F(\mathbf{w}) is very close to 11, and g\mathbf{g} (which is orthogonal to the near-optimal w0\mathbf{w}_{0}) is such that g⊤Ag\mathbf{g}^{\top}A\mathbf{g} is strictly smaller than 11. This would give us a positive lower bound on Eq. (27).

By the triangle inequality and the assumptions ∥w0−v1∥≤ϵ\|\mathbf{w}_{0}-\mathbf{v}_{1}\|\leq\epsilon, ∥w−w0∥≤2ϵ\|\mathbf{w}-\mathbf{w}_{0}\|\leq 2\epsilon, we have ∥w−v1∥≤3ϵ\|\mathbf{w}-\mathbf{v}_{1}\|\leq 3\epsilon. Also, we claim that F(⋅)F(\cdot) is 44-Lipschitz outside the unit Euclidean ball (since the gradient of FF at any point with norm ≥1\geq 1, according to Lemma 19, has norm at most 44). Therefore, ∣F(w)+1∣=∣F(w)−F(v1)∣≤4∥w−v1∥≤12ϵ|F(\mathbf{w})+1|=|F(\mathbf{w})-F(\mathbf{v}_{1})|\leq 4\|\mathbf{w}-\mathbf{v}_{1}\|\leq 12\epsilon, so overall,

Since ⟨w0,g⟩=0\langle\mathbf{w}_{0},\mathbf{g}\rangle=0, and ∥w0−v1∥≤ϵ\|\mathbf{w}_{0}-\mathbf{v}_{1}\|\leq\epsilon, it follows that

Letting v1,…,vd\mathbf{v}_{1},\ldots,\mathbf{v}_{d} and 1=s1>s2≥..≥sd≥01=s_{1}>s_{2}\geq..\geq s_{d}\geq 0 be the eigenvectors and eigenvalues of AA in decreasing order (and recalling that s2≤s1−λ=1−λs_{2}\leq s_{1}-\lambda=1-\lambda for some eigengap λ>0\lambda>0), we get

Plugging Eq. (28) and Eq. (29) back into Eq. (27), we get a lower bound of

Using the fact that 1+z2≤1+z\sqrt{1+z^{2}}\leq 1+z, this can be loosely lower bounded by

Recalling that ∥w∥2=∥w0∥2+∥w−w0∥2\|\mathbf{w}\|^{2}=\|\mathbf{w}_{0}\|^{2}+\|\mathbf{w}-\mathbf{w}_{0}\|^{2} is at most 1+4ϵ21+4\epsilon^{2}, and picking ϵ\epsilon sufficiently small compared to λ\lambda, (say ϵ=λ/44\epsilon=\lambda/44), we get that the above is at least λ\lambda, which implies the required strong convexity condition.

To summarize, by picking ϵ=λ/44\epsilon=\lambda/44, we have shown that the function F(w)F(\mathbf{w}) is λ\lambda-strongly convex and 2020-smooth in a neighborhood of size 2ϵ=λ222\epsilon=\frac{\lambda}{22} around w0\mathbf{w}_{0} on the hyperplane Hw0H_{\mathbf{w}_{0}}, provided that ∥w0−v1∥≤ϵ=λ44\|\mathbf{w}_{0}-\mathbf{v}_{1}\|\leq\epsilon=\frac{\lambda}{44}. By Lemma 20, we are guaranteed that this neighborhood contains v1\mathbf{v}_{1} up to some rescaling (which is immaterial for our scale-invariant function FF), hence by optimizing FF 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.

References