Fast spectral algorithms from sum-of-squares proofs: tensor decomposition and planted sparse vectors
Samuel B. Hopkins, Tselil Schramm, Jonathan Shi, David Steurer
Introduction
The sum-of-squares (SoS) method (also known as the Lasserre hierarchy) [Sho87, Par00, Nes00, Las01] is a powerful, semidefinite-programming based meta-algorithm that applies to a wide-range of optimization problems. The method has been studied extensively for moderate-size polynomial optimization problems that arise for example in control theory and in the context of approximation algorithms for combinatorial optimization problems, especially constraint satisfaction and graph partitioning (see e.g. the survey [BS14]). For the latter, the SoS method captures and generalizes the best known approximation algorithms based on linear programming (LP), semidefinite programming (SDP), or spectral methods, and it is in many cases the most promising approach to obtain algorithms with better guarantees—especially in the context of Khot’s Unique Games Conjecture [BBH+12].
A sequence of recent works applies the sum-of-squares method to basic problems that arise in unsupervised machine learning: in particular, recovering sparse vectors in linear subspaces and decomposing tensors in a robust way [BKS14, BKS15, HSS15, BM15, GM15]. For a wide range of parameters of these problems, SoS achieves significantly stronger guarantees than other methods, in polynomial or quasi-polynomial time.
In this work, we introduce spectral algorithms for planted sparse vector, tensor decomposition, and tensor principal components analysis (PCA) that exploit the same high-degree information as the corresponding sum-of-squares algorithms without relying on semidefinite programming, and achieve the same (or close to the same) guarantees. The resulting algorithms are quite simple (a couple of lines of matlab code) and have considerably faster running times—quasi-linear or close to linear in the input size.
A surprising implication of our work is that for some problems, spectral algorithms can exploit information from larger values of the parameter without spending time . For example, one of our algorithms runs in nearly-linear time in the input size, even though it uses properties that the sum-of-squares method can only use for degree parameter . (In particular, the guarantees that the algorithm achieves are strictly stronger than the guarantees that SoS achieves for values of .)
The initial successes of SoS in the machine learning setting gave hope that techniques developed in the theory of approximation algorithms, specifically the techniques of hierarchies of convex relaxations and rounding convex relaxations, could broadly impact the practice of machine learning. This hope was dampened by the fact that in general, algorithms that rely on solving large semidefinite programs are too slow to be practical for the large-scale problems that arise in machine learning. Our work brings this hope back into focus by demonstrating for the first time that with some care SoS algorithms can be made practical for large-scale problems.
In the following subsections we describe each of the problems that we consider, the prior best-known guarantee via the SoS hierarchy, and our results.
Several kinds of algorithms have been proposed for this problem based on linear programming (LP), basic semidefinite programming (SDP), sum-of-squares, and non-convex gradient descent (alternating directions method).
An inherent limitation of simpler convex methods (LP and basic SDP) [SWW12, dGJL04] is that they require the relative sparsity of the planted vector to be polynomial in the subspace dimension (less than non-zero coordinates).
Sum-of-squares and non-convex methods do not share this limitation. They can recover planted vectors with constant relative sparsity even if the subspace has polynomial dimension (up to dimension for sum-of-squares [BKS14] and up to for non-convex methods [QSW14]).
Our algorithm runs in nearly linear time in the input size, and matches the best-known guarantees up to a polylogarithmic factor in the subspace dimension [BKS14].
We give a technical overview of the proof in Section 2, and a full proof in Section 4.
Previous work also showed how to recover the planted sparse vector exactly. The task of going from an approximate solution to an exact one is a special case of standard compressed sensing (see e.g. [BKS14]).
2 Overcomplete tensor decomposition
Tensors naturally represent multilinear relationships in data. Algorithms for tensor decompositions have long been studied as a tool for data analysis across a wide-range of disciplines (see the early work of Harshman [Har70] and the survey [KB09]). While the problem is NP-hard in the worst-case [Hås90, HL13], algorithms for special cases of tensor decomposition have recently led to new provable algorithmic results for several unsupervised learning problems [AGH+14, BCMV14, GVX14, AGHK14] including independent component analysis, learning mixtures of Gaussians [GHK15], Latent Dirichlet topic modeling [AFH+15] and dictionary learning [BKS15]. Some previous learning algorithms can also be reinterpreted in terms of tensor decomposition [Cha96, MR06, NR09].
A key algorithmic challenge for tensor decompositions is overcompleteness, when the number of components is larger than their dimension (i.e., the components are linearly dependent). Most algorithms that work in this regime require tensors of order or higher [LCC07, BCMV14]. For example, the FOOBI algorithm of [LCC07] can recover up to components given an order- tensor in dimension under mild algebraic independence assumptions for the components—satisfied with high probability by random components. For overcomplete -tensors, which arise in many applications of tensor decompositions, such a result remains elusive.
where are random unit or Gaussian vectors, the goal is to approximately recover the components .
Given sampled as above, find a unit vector that has correlation with one of the vectors .
Given sampled as above, find a set of unit vectors such that for every .
We give a technical overview of the proof in Section 2, and a full proof in Section 5.
We remark that the above algorithm only requires access to the input tensor with some fixed inverse polynomial accuracy because each of its four steps amplifies errors by at most a polynomial factor (see Algorithm 5.17). In this sense, the algorithm is robust.
3 Tensor principal component analysis
For this problem, our improvements over the previous results are more modest—we achieve signal-to-noise guarantees matching [HSS15], but with an algorithm that runs in linear time rather than near-linear time (time rather than , for an input of size ).
There is an algorithm which solves the tensor principal component analysis problem with accuracy whenever the signal-to-noise ratio satisfies . Furthermore, the algorithm runs in time .
Though for tensor PCA our improvement over previous work is modest, we include the results here as this problem is a pedagogically poignant illustration of our techniques. We give a technical overview of the proof in Section 2, and a full proof in Section 6.
4 Related work
Foremost, this work builds upon the SoS algorithms of [BKS14, BKS15, GM15, HSS15]. In each of these previous works, a machine learning decision problem is solved using an SDP relaxation for SoS. In these works, the SDP value is large in the yes case and small in the no case, and the SDP value can be bounded using the spectrum of a specific matrix. This was implicit in [BKS14, BKS15], and in [HSS15] it was used to obtain a fast algorithm as well. In our work, we design spectral algorithms which use smaller matrices, inspired by the SoS certificates in previous works, to solve these machine-learning problems much faster, with almost matching guarantees.
A key idea in our work is that given a large matrix with information encoded in the matrix’s spectral gap, one can often efficiently “compress” the matrix to a much smaller one without losing that information. This is particularly true for problems with planted solutions. In this way, we are able to improve running time by replacing an -sized SDP with an eigenvector computation for an matrix, for some .
The idea of speeding up LP and SDP hierarchies for specific problems has been investigated in a series of previous works [dlVK07, BRS11, GS12], which shows that with respect to local analyses of the sum-of-squares algorithm it is sometimes possible to improve the running time from to . However, the scopes and strategies of these works are completely different from ours. First, the notion of local analysis from these works does not apply to the problems considered here. Second, these works employ the ellipsoid method with a separation oracle inspired by rounding algorithms, whereas we reduce the problem to an ordinary eigenvector computation.
It would also be interesting to see if our methods can be used to speed up some of the other recent successful applications of SoS to machine-learning type problems, such as [BM15], or the application of [BKS14] to tensor decomposition with components that are well-separated (rather than random). Finally, we would be remiss not to mention that SoS lower bounds exist for several of these problems, specifically for tensor principal components analysis, tensor prediction, and sparse PCA [HSS15, BM15, MW15]. The lower bounds in the SoS framework are a good indication that we cannot expect spectral algorithms achieving better guarantees.
Techniques
Our approach for faster algorithms based on SoS algorithms is to construct specific matrices (polynomials) in this affine linear space, then compute their top eigenvectors. By designing our matrices carefully, we ensure that our algorithms have access to the same higher degree information that the sum-of-squares algorithm can access, and this information affords an advantage over the basic spectral methods for these problems. At the same time, our algorithms avoid searching for the best polynomial and matrix representation, which gives us faster running times since we avoid semidefinite programming. This approach is well suited to average-case problems where we avoid the problem of adversarial choice of input; in particular it is applicable to machine learning problems where noise and inputs are assumed to be random.
A serious limitation of the above approach is that the representation of a degree- polynomial requires size roughly . Hence, even avoiding the use of semidefinite programming, improving upon running time requires additional ideas.
In each of the problems that we consider, we have a large matrix (suggested by a SoS algorithm) with a “signal” planted in some amount of “noise”. We show that in some situations, this large matrix can be compressed significantly without loss in the signal by applying partial trace operations. In these situations, the partial trace yields a smaller matrix with the same signal-to-noise ratio as the large matrix suggested by the SoS algorithm, even in situations when lower degree sum-of-squares approaches are known to fail.
If is a Wigner matrix (e.g. a symmetric matrix with iid entries), then both , and the above condition is indeed met. In our average case/machine learning settings the “noise” component is not as simple as with a Wigner matrix. Nonetheless, we are able to ensure that the noise displays a similar behavior under partial trace operations. In some cases, this requires additional algorithmic steps, such as random projection in the case of tensor decomposition, or centering the matrix eigenvalue distribution in the case of the planted sparse vector.
It is an interesting question if there are general theorems describing the behavior of spectral norms under partial trace operations. In the current work, we compute the partial traces explicitly and estimate their norms directly. Indeed, our analyses boil down to concentrations bounds for special matrix polynomials. A general theory for the concentration of matrix polynomials is a notorious open problem (see [MW13]).
Partial trace operations have previously been applied for rounding SoS relaxations. Specifically, the operation of reweighing and conditioning, used in rounding algorithms for sum-of-squares such as [BRS11, RT12, BKS14, BKS15, LR15], corresponds to applying a partial trace operation to the moments matrix returned by the sum-of-squares relaxation.
We now give a technical overview of our algorithmic approach for each problem, and some broad strokes of the analysis for each case. Our most substantial improvements in runtime are for the planted sparse vector and overcomplete tensor decomposition problems (Section 2.1 and Section 2.2 respectively). Our algorithm for tensor PCA is the simplest application of our techniques, and it may be instructive to skip ahead and read about tensor PCA first (Section 2.3).
1 Planted sparse vector in random linear subspace
It follows that in order to distinguish between a random subspace with a planted sparse vector (yes case) and a completely random subspace (no case), it is enough to compute the second-largest eigenvalue of a -by- matrix (representing the -norm polynomial over the subspace as above). This decision version of the problem, while strictly speaking easier than the search version above, is at the heart of the matter: one can show that the large eigenvalue for the yes case corresponds to an eigenvector which encodes the coefficients of the sparse planted vector in the basis.
The partial trace of our matrix is easy to compute directly,
In the yes case (random subspace with planted sparse vector), a direct computation shows that
Hence, a natural approach to distinguish between the yes case and no case (completely random subspace) is to upper bound the spectral norm of in the no case.
For linear sparsity , this inequality is true so long as , which is somewhat worse than the bound bound on the dimension that we are aiming for.
Recall that for a symmetric matrix . As discussed above, the partial trace approach works best when the noise behaves as the tensor of two Wigner matrices, in that there are cancellations when the eigenvalues of the noise are summed. In our case, the noise terms do not have this property, as in fact . Thus, in order to improve the dimension bound, we will center the eigenvalue distribution of the noise part of the matrix. This will cause it to behave more like a Wigner matrix, in that the spectral norm of the noise will not increase after a partial trace. Consider the partial trace of a matrix of the form
for some constant . The partial trace of this matrix is
We choose the constant such that our matrix has expectation in the no case, when the subspace is completely random. In the yes case, the Rayleigh quotient of at simply shifts as compared to , and we have (see Lemma 4.5 and sublemmas). On the other hand, in the no case, this centering operation causes significant cancellations in the eigenvalues of the partial trace matrix (instead of just shifting the eigenvalues). In the no case, has spectral norm for (using standard matrix concentration bounds; again see Lemma 4.5 and sublemmas). Therefore, the spectral norm of the matrix allows us to distinguish between the yes and no case as long as , which is satisfied as long as and . We give the full formal argument in Section 4.
2 Overcomplete tensor decomposition
The starting point of our algorithm is the polynomial . It turns out that for the (approximate) maximizers of this polynomial are close to the components , in the sense that if and only if . Indeed, Ge and Ma [GM15] show that the sum-of-squares method already captures this fact at degree 12, which implies a quasipolynomial time algorithm for this tensor decomposition problem via a general rounding result of Barak, Kelner, and Steurer [BKS15].
The simplest approach to this problem is to consider the tensor representation of the polynomial , and flatten it, hoping the singular vectors of the flattening are correlated with the . However, this approach is doomed to failure for two reasons: firstly, the simple flattenings of are matrices, and since the collide in the column space, so that it is impossible to determine . Secondly, even for , because the are random vectors, their norms concentrate very closely about . This makes it difficult to distinguish any one particular even when the span is computable.
Of course, we do not have access to the higher-order tensor . Instead, we can obtain a noisy version of this tensor. Our approach considers the following matrix representation of the polynomial ,
To explain how the above algorithm is a speedup of SoS, we give an overview of the SoS algorithm of [GM15, BKS15]. There, the degree- SoS SDP program is used to obtain an order- tensor (or a pseudodistribution). Informally speaking, we can understand as a proxy for , so that , where is a noise tensor. While the precise form of is unclear, we know that must obey a set of constraints imposed by the SoS hierarchy at degree . For a formal discussion of pseudodistributions, see [BKS15].
Our subquadratic-time algorithm can be viewed as a low-degree, spectral analogue of the [BKS15] SoS algorithm. However, rather than relying on an SDP to produce an object close to , we manufacture one ourselves by taking the Kronecker square of our input tensor. We explicitly know the form of the deviation of from , unlike in [BKS15], where the deviation of the SDP certificate from is poorly understood. We are thus able to control this deviation (or “noise”) in a less computationally intensive way, by cleverly designing a partial trace operation which decreases the spectral norm of the deviation. Since the tensor handled by the algorithm is much smaller—order rather than order —this provides the desired speedup.
3 Tensor principal component analysis
A previous application of SoS techniques to this problem discussed several SoS or spectral algorithms, including one that runs in quasi-linear time [HSS15]. Here we apply the partial trace method to a subquadratic spectral SoS algorithm discussed in [HSS15] to achieve nearly the same signal-to-noise guarantee in only linear time.
Specifically, let be the th slice of , so that is the quadratic form . Then there is a SoS proof that is bounded by , where is the degree-4 polynomial . The polynomial has a convenient matrix representation: : since this matrix is a sum of iid random matrices , it is easy to show that this matrix spectrally concentrates to its expectation. So with high probability one can show that the eigenvalues of are at most (except for a single spurious eigenvector), and it follows that degree- SoS solves tensor PCA so long as .
This leads the authors to consider a slight modification of , given by , where is the th slice of . Like , the function also contains information about , and the SoS bound on the noise term in carries over as an analogous bound on the noise in . In particular, expanding and ignoring some negligible cross-terms yields
In this work we speed this up to a linear time algorithm via the partial trace approach. As we have seen, the heart of the matter is to show that taking the partial trace of does not increase the spectral noise. That is, we require that
Notice that the are essentially Wigner matrices, and so it is roughly true that , and the situation is very similar to our toy example of the application of partial traces in Section 2.
Heuristically, because and are random matrices, we expect that their eigenvalues are all of roughly the same magnitude. This means that their spectral norm should be close to their Frobenius norm divided by the square root of the dimension, since for a matrix with eigenvalues , . By estimating the sum of the squared entries, we expect that the Frobenious norm of is less than that of by a factor of after the partial trace, while the dimension decreases by a factor of , and so assuming that the eigenvalues are all of the same order, a typical eigenvalue should remain unchanged. We formalize these heuristic calculations using standard matrix concentration arguments in Section 6.
Preliminaries
For a vectors space , we may denote by the space of linear operators from to . The space orthogonal to a vector is denoted .
For a matrix , we use to denote its inverse or its Moore-Penrose pseudoinverse; which one it is will be clear from context. For PSD, we write for the unique PSD matrix with .
Planted sparse vector in random linear subspace
In this section we give a nearly-linear-time algorithm to recover a sparse vector planted in a random subspace.
The leverage scores are clearly computable in time . In the course of proving correctness of the algorithm we will show that has constant spectral gap, so by a standard analysis matrix-vector multiplies suffice to recover its top eigenvector. A single matrix-vector multiply requires computing for each (in time ) and summing (in time ). Finally, computing requires summing vectors of dimension , again taking time .
The following theorem expresses correctness of the algorithm.
When , for any sparsity , w.ov.p. the top eigenvector of has .
where is the first standard basis vector and .
The second ingredient we need is that the algorithm is robust to exchanging this good basis for an arbitrary orthogonal basis.
Last, we will need the following fact, which follows from standard concentration. The proof is in Section B.
By Lemma 4.5 and Lemma 4.6, we can write the matrix as
We have assumed that , and so since is an almost-rank-one matrix (Lemma A.3), the top eigenvector of has , so that by column-orthogonality of .
We now prove Lemma 4.5. We decompose the matrix in question into a contribution from and the rest: explicitly, the decomposition is . This first lemma handles the contribution from .
where w.ov.p..
We first show an operator-norm bound on the principal submatrix using the truncated matrix Bernstein inequality Proposition A.7. First, the expected operator norm of each summand is bounded:
The operator norms are bounded by constant-degree polynomials in Gaussian variables, so Lemma A.8 applies to truncate their tails in preparation for application of a Bernstein bound. We just have to calculate the variance of the sum, which is at most
for appropriate choice of . Hence, by triangle inequality, w.ov.p..
We have already bounded . At the same time, . By Lemma A.1, then,
w.ov.p.. A final application of triangle inquality gives the lemma. ∎
Our second lemma controls the contribution from the random part of the leverage scores.
Like in the proof of Lemma 4.8, decomposes into a convenient block structure; we will bound each block separately.
The termwise operator norms are bounded by constant-degree polynomials in Gaussian variables, so Lemma A.8 applies to truncate the tails of the summands in preparation for a Bernstein bound. We just have to compute the variance of the sum, which is small because we have centered the coefficients:
for appropriate choice of .
We turn to the other blocks from (4.3). The upper-left block contains just the scalar . By standard concentration each term is bounded: w.ov.p.,
It remains just to address the block . Each term in the sum has expected operator norm at most
and once again the since the summands’ operator norms are bounded by constant-degree polynomials of Gaussian variables Lemma A.8 applies to truncate their tails in preparation to apply a Bernstein bound. The variance of the sum is at most , again by Fact A.6. Finally, Lemma A.8 and Proposition A.7 apply to give that w.ov.p.
for appropriate choice of . Putting it all together gives the lemma. ∎
We decompose and use Lemma 4.8 and Lemma 4.9.
Since , we get , completing the proof. ∎
2 Closeness of input basis and good basis
We turn now to the proof of Lemma 4.6. We recall the setting. We have two matrices: , which the algorithm computes, and , which is induced by a basis for the subspace which reveals the underlying randomness and which we prefer for the analysis. differs from by a rotation and a basis orthogonalization step (the good basis is only almost orthogonal). The rotation is easily handled. The following lemma gives the critical fact about the orthogonalization step: orthogonalizing does not change the leverage scores too much. Strictly speaking the good basis does not have leverage scores since it is not orthogonal, but we can still talk about the norms of the rows of the matrix whose columns are the basis vectors.
The proof again uses standard concentration and matrix inversion formulas, and can be found in Section B. We are ready to prove Lemma 4.6.
Conjugating by and multiplying by does not change the operator norm, so that this is equivalent to
Finally, substituting , and using the fact that is a rotation, it will be enough to show
The first of these we observe has bounded operator norm w.ov.p.:
using in the last step Lemma 4.8 and standard concentration to bound (Lemma 4.7). Thus, by triangle inequality applied to (4.4), we get
using Lemma 4.5 in the last step. For appropriate choice of , this is at most . ∎
Overcomplete tensor decomposition
In this section, we give a polynomial-time algorithm for the following problem when :
We give an algorithm that solves this problem, so long as the overcompleteness of the input tensor is bounded such that .
However, instead of , we have only . Unfortunately, running the same algorithm on the latter input will not succeed. To see why, consider the extra terms . Since , it is straightforward to see that . Since the rank of is clearly , even if we are lucky and all the eigenvalues have similar magnitudes, still a typical eigenvalue will be , swallowing the term.
suggesting our algorithm will succed when , which is to say .
The following theorem, which formalizes the intuition above, is at the heart of our tensor decomposition algorithm.
The rest of this section is organized as follows. In Section 5.1 we prove Theorem 5.3 using two core facts: the Gaussian vector is closer to some than to any other with good probability, and the noise term is bounded in spectral norm. In Section 5.2 we prove the first of these two facts, and in Section 5.3 we prove the second. In Section 5.4, we give the full details of our tensor decomposition algorithm, then prove Theorem 5.2 using Theorem 5.3. Finally, Section C contains proofs of elementary or long-winded lemmas we use along the way.
Using these two propositions we will conclude that the top eigenvector of is likely to be correlated with one of the vectors . We also need two simple concentration bounds; we defer the proof to the appendix.
As a last technical tool we will need a simple claim about the fourth moment matrix of the multivariate Gaussian:
Finally, we give a bound on the spectral gap. We note that the second eigenvector has , and therefore
Thus, using our above bound on and the concentration bounds we have already applied for , , and , we have that
We conclude that the above events also imply that . ∎
2 Spectral gap for diagonal terms: proof of Proposition 5.4
We now prove that the signal matrix, when preconditioned by , has a noticeable spectral gap:
In [GM15, Lemma 5] a similar lemma to this one is proved in the context of the SoS proof system. However, since Ge and Ma leverage the full power of the SoS algorithm their proof goes via a spectral bound on a different (but related) matrix. Since our algorithm avoids solving an SDP we need a bound on this matrix in particular.
The proof of Lemma 5.9 proceeds by standard spectral concentration for tall matrices with independent columns (here the columns are ). The arc of the proof is straightforward but it involves some bookkeeping; we have deferred it to Section C.0.2.
We also need the following lemma on the concentration of some scalar random variables involving ; the proof is straightforward by finding the eigenbasis of and applying standard concentration, and it is deferred to the appendix.
Putting together (5.3) and (5.5) with our bounds on and and recalling the conditions on (5.2), we have shown that
We now turn to proving that with reasonable probability, is closer to some than all others.
To avoid proliferation of indices, without loss of generality fix . We begin by expanding the expression ,
with overwhelming probability for all and choices of ; this follows from a Bersntein bound, given in Lemma 5.6.
Let be the event that for some to be chosen later. We note that is distributed as a standard gaussian, and that is independent of . Thus, we can use standard tail estimates on univariate Gaussians (Lemma A.4) to conclude that
Now, we must obtain an estimate for the probability that all other inner products with are small. Let be the event that for all and for some to be chosen later. We will show that conditioned on , occurs with probability . Define to be the component of parallel to , let be the component of orthogonal to , and similarly let be the components of orthogonal to . Because is independent of , even conditioned on we may apply the standard tail bound for univariate Gaussians (Lemma A.4), concluding that for all ,
On the other hand, let be the components of the parallel to . We compute the projection of onto . With overwhelming probability,
3 Bound for cross terms: proof of Proposition 5.5
The proof will use two iterations of Matrix Rademacher bounds. The first step will be to employ a classical decoupling inequality that has previously been used in a tensor decomposition context [GM15].
Let be independent iid sequences of random signs. Let be a family of matrices. There is a universal constant so that for every ,
Once the simplified cross terms are decoupled, we can use a matrix Rademacher bound on one set of signs.
Consider a finite sequence of fixed Hermitian matrices. Let be a sequence of independent sign variables. Let . Then for every ,
Let be independent signs in . Let and be Hermetian matrices. Then w.ov.p.,
We use a matrix Rademacher bound and standard manipulations:
so that now we need to bound . By Corollary 5.15,
Letting and be independent uniformly random signs, by Theorem 5.13, it will be enough to bound the spectral norm after replacing the second and third occurrences of for and . To this end, we define
We use a matrix Rademacher bound for the left-hand matrix,
For the right-hand matrix, we use the fact that the summands are PSD to conclude that
using the same concentration facts as earlier.
Finally, by triangle inequality and all our bounds thus far, w.ov.p.
4 Full algorithm and proof of Theorem 5.2
In this subsection we give the full details of our tensor decomposition algorithm. As discussed above, the algorithm proceeds by constructing a random matrix from the input tensor, then computing and post-processing its top eigenvector.
Theorem 5.3 gets us most of the way to the correctness of Algorithm 5.17, proving that the top eigenvector of the matrix is correlated with some with reasonable probability. We need a few more ingredients to prove Theorem 5.2. First, we need to show a bound on the runtime of Algorithm 5.17.
To run the algorithm, we only require access to power iteration using the matrix . We first give a fast implementation for power iteration with the matrix , and handle the multiplications with separately.
We show that the matrix-vector multiply can be computed as a flattening of the following product:
So we have that is a flattening of the product , which we will compute as a proxy for computing via direct multiplication.
Performing the update a total of times is sufficient for convergence, as we have that with reasonable probability, the spectral gap , as a result of applying Theorem 5.3 with the choice of .
Finally, checking the value of requires operations, and we do so a constant number of times, once for each of the signings of the top 2 left (or right) singular vectors of . ∎
Furthermore, for any , there are among the top singular vectors of with
If for some , then are amongst the top singular vectors.
Since here , we can choose and check only the top singular vectors.
Next, we must show how to choose the threshold so that a big enough value is ensures that is close to a tensor component. The proof is at the end of this section. (A very similar fact appears in [GM15]. We need a somewhat different parameterization here, but we reuse many of their results in the proof.)
We start with the first claim. By [GM15, Lemma 2, (proof of) Lemma 8, Theorem 4.2], the following inequalities all hold w.ov.p..
Together with (5.8) this concludes the of the first claim.
We remark that Algorithm 5.17 may be used in conjunction with a local search algorithm to obtain much greater guarantees on the accuracy of the recovered vectors. Previous progress on the tensor decomposition problem has produced iterative algorithms that provide local convergence guarantees given a good enough initialization, but which leave the question of how to initialize the procedure up to future work, or up to the specifics of an implementation. In this context, our contribution can be seen as a general method of obtaining good initializations for these local iterative procedures.
In particular, Anandkumar et al. [AGJ15] give an algorithm that combines tensor power iteration and a form of coordinate descent, which when initialized with the output of Algorithm 5.17, achieves a linear convergence rate to the true decomposition within polynomial time.
then there exists a procedure which with overwhelming probability over and for any , recovers a set of vectors such that
in time .
Theorem 1 of Anandkumar et al. is stated for random asymmetric tensors, but the adaptation to symmetric tensors is stated in equations (14) and (27) in the same paper.
The theorem of Anandkumar et al. allows for a perturbation tensor , which is just the zero tensor in our setting. Additionally, the weight ratios specifying the weight of each rank-one component in the input tensor are . Lastly, the initialization conditions are given in terms of the distance between the intialization vectors and the true vectors , which is related to our measure of closeness by the equation .
The linear convergence guarantee is stated in Lemma 12 of Anandkumar et al.
We repeatedly invoke Algorithm 5.17 until we obtain a full set of vectors as characterized by Theorem 5.2. Apply Theorem 5.21 to the recovered set of vectors until the desired accuracy is obtained. ∎
Tensor principal component analysis
The Tensor PCA problem in the spiked tensor model is similar to the setting of tensor decomposition, but here the goal is to recover a single large component with all smaller components of the tensor regarded as random noise.
Using the partial trace method, we give the first linear-time algorithm for this problem that recovers for signal-to-noise ratio . In addition, the algorithm requires only auxiliary space (compared to the input size of ) and uses only one non-adaptive pass over the input.
This spiked tensor model (for general order- tensors) was introduced by Montanari and Richard [RM14], who also obtained the first algorithms to solve the model with provable statistical guarantees. Subsequently, the SoS approach was applied to the model to improve the signal-to-noise ratio required for odd-order tensors [HSS15]; for -tensors reducing the requirement from to .
Using the linear-algebraic objects involved in the analysis of the SoS relaxation, the previous work has also described algorithms with guarantees similar to those of the SoS SDP relaxation, while requiring only nearly subquadratic or linear time [HSS15].
The algorithm here improves on the previous results by use of the partial trace method, simplifying the analysis and improving the runtime by a factor of .
2 Linear-time algorithm
When has iid standard Gaussian entries and for some constant , Algorithm 6.2 recovers with with high probability over .
Algorithm 6.2 can be implemented in linear time and sublinear space.
These theorems are proved by routine matrix concentration results, showing that in the partial trace matrix, the signal dominates the noise.
To implement the algorithm in linear time it is enough to show that this (sublinear-sized) matrix has constant spectral gap; then a standard application of the matrix power method computes the top eigenvector.
For any , with high probability over , the following occur:
Applying Lemma 6.5 and the triangle inequality, we see that
and note that to construct the right-hand side it is enough to examine each entry of just times and perform additions. At no point do we need to store more than matrix entries at the same time. ∎
Acknowledgements
We would like to thank Rong Ge for very helpful discussions. We also thank Jonah Brown Cohen, Pasin Manurangsi and Aviad Rubinstein for helpful comments in the preparation of this manuscript.
References
Appendix A Additional preliminaries
Here we provide some lemmas in linear algebra.
This first lemma is closely related to the sos Cauchy-Schwarz from [BKS14], and the proof is essentially the same.
In applications, we will have as a single block of a larger block matrix containing also the blocks and .
To see this, just note that the right-hand side minus the left is exactly
The lemma follows now be applying this inequality to
Let be real random matrices. Then
where the nontrivial inequalities follow from Cauchy-Schwarz for expectations, vectors and scalars, respectively. ∎
The followng lemma allows to argue about the top eigenvector of matrices with spectral gap.
Then, .
We lower bound the quadratic form of evaluated at by
At the same time, this quadratic form evaluated at is upper bounded by . It follows that as desired.
Furthermore, for any , there are among the top singular vectors of with
If for some , then are amongst the top singular vectors.
Let . Let be the th singular value, left and right (unit) singular vectors of respectively.
Furthermore, we observe that , and that therefore . We thus have that,
where to obtain the last inequality we have used Cauchy-Schwarz and our bound on . We may thus conclude that
where we have used the fact that the left singular values of are orthonormal. The argument is symmetric in the .
where we have applied Cauchy-Schwarz and the orthonormality of the . In particular,
On the other hand, let be the set of for which . By substitution,
where we have used the fact that the right singular vectors are orthonormal. The last two inequalities imply that . Letting , it follows from subtraction that
so that . Finally,
so that . Thus, one of the top right singular vectors has correlation . The same proof holds for the .
Furthermore, if for some , and , then by (A.1) it must be that , as cannot have square correlation larger than with more than one left singular vector. Taking guarantees this. The conclusion follows. ∎
A.2 Concentration tools
We require a number of tools from the literature on concentration of measure.
We need the some concentration bounds for certain polynomials of Gaussian random variables.
The following lemma gives standard bounds on the tails of a standard gaussian variable—somewhat more precisely than other bounds in this paper. Though there are ample sources, we repeat the proof here for reference.
Let . Then for ,
To show the first statement, we apply an integration trick,
where in the third step we have used the fact that for . For the second statement, we integrate by parts and repeat the trick,
The following is a small modification of Theorem 6.7 from [Jan97] which follows from Remark 6.8 in the same.
In our concentration results, we will need to calculate the expectations of multivariate Gaussian polynomials, many of which share a common form. Below we give an expression for these expectations.
Let be a -dimensional vector with independent identically distributed gaussian entries with variance . Let be a fixed unit vector. Then setting , and setting , we have
A.2.2 For matrix-valued random variables
On several occasions we will need to apply a Matrix-Bernstein-like theorem to a sum of matrices with an unfortunate tail. To this end, we prove a “truncated Matrix Bernstein Inequality.” Our proof uses an standard matrix Bernstein inequality as a black box. The study of inequalities of this variety—on tails of sums of independent matrix-valued random variables— was initiated by Ahlswede and Winter [AW02]. The excellent survey of Tropp [Tro12] provides many results of this kind.
In applications of the following the operator norms of the summands have well-behaved tails and so the truncation is a routine formality. Two corollaries following the proposition and its proof capture truncation for all the matrices we encounter in the present work.
Furthermore, suppose that for each ,
Then for , we have
Define . We claim that
Now we are ready to apply the non-commutative Bernstein’s inequality to . We have
Putting everything together and setting ,
The following lemma helps achieve the assumptions of Proposition A.7 easily for a useful class of thin-tailed random matrices.
where is a universal constant. Taking gives us (A.4).
We now address (A.5). To this end, let and be the probability density function and cumulative density function of , respectively. We apply Jensen’s inequality and instead bound
Evaluating at for a sufficiently large polynomial in the log gives us
Appendix B Concentration bounds for planted sparse vector in random linear subspace
Let . The matrix in question has a nice block structure:
By [Ver10, Corollary 5.50] applied to the subgaussian vectors , w.ov.p.
These are proved easily via the identity and similar. ∎
We conclude that with overwhelming probability ,
Let . By Sherman–Morrison,
Let be a block matrix where one of the diagonal blocks is the identity; that is,
for some matrix and vector . Let be a vector which decomposes as where for the first standard basis vector.
By the formula for block matrix inverses,
The result follows by Sherman-Morrison applied to and the definition of . ∎
where the first two use Cauchy-Schwarz and the last follows from the first two.
We turn now to the expansion of offered by Lemma B.3,
Addressing (B.1) first, by the above estimates and Lemma B.2 applied to ,
w.ov.p.. For (B.2), we pull out the important factor of and separate from : w.ov.p.,
where the last inequality follows from our estimates above and Cauchy-Schwarz.
Appendix C Concentration bounds for overcomplete tensor decomposition
We require some facts about the concentration of certain scalar-and matrix-valued random variables, which generally follow from standard concentration arguments. We present proofs here for completeness.
The first lemma captures standard facts about random Gaussians.
Inner products are all :
We start with Item 1. Consider the quantity . We calculate the expectation,
Since this is a degree-4 square polynomial in the entries of and , we may apply Lemma A.5 to conclude that
Applying this fact with and taking a union bound over pairs gives us the desired result.
Next is Item 2. Consider the quantity . We will apply Lemma A.5 in order to obtain a tail bound for the value of the polynomial . We have
and now applying Lemma A.5 with the square root of this expectation, we have
This gives both bounds for a single . The result now follows from taking a union bound over all .
and taking the conclusion follows. ∎
We also use the fact that the covariance matrix of a sum of sufficiently many gaussian outer products concentrates about its expectation.
We apply a truncated matrix bernstein inequality. For convenience, and let be a single summand. To begin, we calculate the first and second moments of the summands,
The proof proceeds by truncated matrix Bernstein, since the summands are independent for fixed . For this we need to compute the variance:
The norm of each term in the sum is bounded by a constant-degree polynomial of Gaussians. Straightforward calculations show that in expectation each term is in norm; w.ov.p. this is . So Lemma A.5 applies to establish the hypothesis of truncated Bernstein Proposition A.7. In turn, Proposition A.7 yields that w.ov.p.
We will derive Fact C.4 as a corollary of a more general claim about rotationally symmetric distributions.
Now we can prove some concentration claims we deferred:
And one direction of the second item, using Fact C.4 and Fact C.1 (the other direction is similar):
C.0.2 Proof of Lemma 5.9
To prove Lemma 5.9 we will begin by reducing to the case via the following.
It will be convenient to reduce concentration for matrices involving to analogous matrices where the vectors are replaced by isotropic vectors of constant norm. The following lemma shows how to do this.
We need the following bound on the deviation from expectation of a tall matrix with independent columns.
We are now prepared to handle the case of via spectral concentration for matrices with independent columns, Theorem C.9.
Appendix D Concentration bounds for tensor principal component analysis
For convenience, we restate Lemma 6.5 here.
For any , with high probability over , the following occur:
For notational convenience, let be distributed like a generic . By a union bound, we have both of the following:
The other matrices are easier. First of all, we note that the matrix has independent standard Gaussian entries, so it is standard that with high probability . Second, we have
The random variable is a centered Gaussian with variance , and since is a unit vector, is also a centered Gaussian with variance . So with high probability we get
by standard estimates. This completes the proof. ∎