Decomposing Overcomplete 3rd Order Tensors using Sum-of-Squares Algorithms
Rong Ge, Tengyu Ma
Introduction
Low rank tensors — similar to low rank matrices — are widely used in many applications. The rank of tensor is defined as the minimum number such that can be written as the sum of rank-1 tensors. This agrees with the definition of matrix rank. However, most of the corresponding tensor problems are much harder: for computing the rank of the tensor (as well as many related problems) is NP-hard [Hås90, HL09]. Tensor rank is also not as well-behaved as matrix rank (see for example the survey [Com14]).
Unlike matrices, low rank tensor decompositions are often unique [Kru77], which is important in many applications. In special cases (especially when rank is less than dimension ) tensor decomposition can be efficiently computed. Such specialized tensor decompositions have been the key algorithmic ideas in many recent algorithms for learning latent variable models, including mixture of Gaussians, Independent Component Analysis, Hidden Markov Model and Latent Dirichlet Allocation (see [AGH+14]). In many cases tensor decomposition can be viewed as reinterpreting previous spectral learning results [Cha96, MR06, AFH+13, AHK12]. This new interpretation has also inspired many new works (e.g. [AGHK13, BCMV14, GHK15]).
A common limitation in early tensor decomposition algorithms is that they only work for the undercomplete case when rank is at most the dimension . Although there are some attempts to decompose tensors in the overcomplete case () [DLCC07, BCMV14, ABG+13], all these works require 4-th or higher order tensors. In many machine learning applications, the number of samples required to accurately estimate a 4-th order tensor is too large. In practice algorithms based on 3rd order tensor are much more preferable. Therefore we are interested in the key question: are there any efficient algorithms for overcomplete 3rd order tensor decomposition?
In the worst case setting, overcomplete 3rd order tensors are not well-understood. Kruskal [Kru77] showed the tensor decomposition is unique when the rank and the components are in general position, but there is no efficient algorithm known for finding this decomposition. Constructing an explicit 3rd order tensor with rank will give nontrivial circuit complexity lowerbounds [Str73], while the best known rank bound for an explicit 3rd order matrix is only [AFT11].
For many of the learning applications, it is natural to consider the average case problem where the components of the tensor are chosen according to a random distribution. In this case [AGJ14] give a polynomial time algorithm that can find the true components when for any constant (however the runtime depends exponentially on ).
This paper also considers this average case setting and gives a quasi-polynomial algorithm for decomposing the tensor when can be as large as . The main idea of the algorithm is based on sum-of-squares (SoS) SDP hierarchy ([Par00, Las01], see Section 2 and the recent survey [BS14]). The main difficulty in handling overcomplete 3rd order tensors is that there is no natural unfolding (i.e. mapping to a matrix) that can certify the rank of the tensor. We can unfold a 4-th order tensor into a matrix of size where . However, unfolding 3rd order tensor will result in a very unbalanced matrix of dimension that cannot have rank more than . Intuitively, the power of SoS-based algorithm is that it can provide higher-order “pseudo-moments” that will allow us to use nontrivial unfoldings.
In particular, the key component of the proof is a way of certifying injective norm (see Section 2) of random tensors, which is closely related to the problem of certifying the 2-to-4 norm of random matrices[BBH+12]. Recently, there has been an increasing number of applications of SoS hierarchy to learning problems. [BKS14] give algorithms for finding the sparsest vectors in a subspace, which is closely related to many learning problems. [BKS15] give a new algorithm for dictionary learning that can handle nearly linear sparsity, and also an algorithm for robust tensor decomposition.However their result requires a tensor of high order. [BM15] studies a related problem of tensor prediction, also using ideas of SoS hierarchies.
In this paper we give a quasi-polynomial time algorithm for decomposing third-order tensors when the rank is almost as large as and the components of the tensor is chosen randomly. More concretely, we define to be a distribution of third order tensors of the following form:
For tensors in distribution our algorithm can recover the decomposition as long as .
Given a tensor sampled from distribution , when there is an algorithm that runs in time and with high probability returns a decomposition that is -close to the true decomposition.
Our result easily generalizes to many other distributions for (including a uniform random vector in unit sphere or a spherical Gaussian).
The algorithm does not output a very accurate solution (the accuracy can be improved to with an exponential dependency on ). However it is known that alternating minimization algorithms can refine the decomposition once we have a nice initial point[AGJ14]:
Given a tensor from distribution (), and an initial solution that is -close to the true decomposition, then for any (that may depend on ) there is an algorithm that runs in time that with high probability finds a refined decomposition that is -close to the true decomposition.
Combining the two results we have an algorithm that runs in time that recovers a decomposition that is component-wise -close to the true decomposition.
Given a tensor sampled from distribution , when for any there is an algorithm that runs in time and with high probability returns a decomposition that is -close to the true decomposition.
The main idea in proving Theorem 1.1 is the observation that when the tensor is generated randomly from , the true components are close to the maximizers of the multilinear form . The maximum value of on unit vectors is known as the injective norm of the tensor. Computing or even approximating the injective norm is known to be hard [Gur03, HM13]. A key component of our approach is a sum-of-square algorithm (see Section 2 for preliminaries about sum-of-square algorithms) that certifies that the injective norm of a random tensor from is small.
For a tensor in distribution , when with high probability the injective norm of is bounded by . Further, this can be certified in polynomial time.
The rest of this paper is organized as follows: In Section 2 we introduce tensor notations and SoS hierarchies. Then we describe the main idea of the proof which relates tensor decomposition to the injective norm of tensor (Section 3). In Section 4 we give a polynomial time algorithm for certifying the injective norm of a random 3rd order tensor. Using this as a key tool in Section 5 we present the quasi-polynomial time algorithm that can decompose randomly generated tensors when .
Preliminaries
Tensors
There is a bijection between 3rd order symmetric tensors and homogeneous degree 3 polynomials. In particular, for a tensor we define its corresponding polynomial . It is easy to verify that if then .
The injective norm is defined to be the maximum value of the corresponding polynomial on the unit sphere, that is:
It is not hard to prove when , and the tensor is chosen from the distribution , with high probability , and in fact the value is only close to if is close to one of the components . We will give a (SoS) proof of this fact in Section 5
Sum-of-Square Algorithms and Proofs
Here we will only briefly introduce the notations and key concepts that are used in this paper, for more detailed discussions and references about SoS proofs we refer readers to [BS14] (especially Section 2).
Sum-of-squares proof system is a proof system for polynomial equalities and inequalities. Given a set of constraints , and a degree bound , we say there is a degree SoS proof for if can be written as a sum of squares of polynomials modulo , as defined formally below.
For a set of constraints , and an integer , we write
Note that the constraints set can be easily generalized to a set of inequalities by adding auxiliary variables. For example, constraint can be implemented as where is an auxiliary variable.
Many well-known inequalities can be proved using a low degree SoS proof, among them the most useful and important one is Cauchy-Schwarz inequality, which can be proved via degree-2 sum of squares. Another one is that . This is pretty useful when is a random matrix where we can use random matrix theory to bound the spectral norm of .
In order to turn an SoS arguments into an algorithm, we often consider the pseudo-expectation. Just as we have expectations for real distributions, we think of pseudo-expectation as expectations for pseudo-distributions that cannot be distinguished from true expectations using low degree polynomials. Pseudo-expectation can be viewed as a dual of SoS refutations.
The relationship between pseudo-expectations and SoS refutations can be summarized in the following informal lemma:
For a set of constraints , either there is an SoS refutation of degree that refutes , or there is a degree pseudo-expectation that satisfies . Such a refutation/pseudo-expectation can be found in time.
Relating Tensor Decompositions and Injective Norm
In this section we introduce the main idea of our proof. Given a tensor from distribution , we first make some observations about its corresponding polynomial .
When , we know . Here conditioned on , the second term is a sum of independent random variables (). By the distribution we know these variables have mean 0 and absolute value around . Standard concentration bounds show when with high probability .
On the other hand, suppose is a random vector in the unit sphere, then is again a sum of random variables. By concentration bounds we know for any particular , when with high probability . This can actually be generalized to all vectors that do not have large correlation with ’s using -net arguments.
For a random tensor , when with high probability for . Further when is close to the vector is close to one of the components ’s.
Later we will give a SoS proof for this observation. Based on this observation, if we want to find a component, then it suffices to find a vector such that is close to . Using the idea of pseudo-expectations, we can do this in two steps:
Certifying Injective Norm
In this section, we give Algorithm 1 based on SoS hierarchy that certifies the injective norm of random tensor. In particular, we will prove Theorem 1.3 which we restate in more details here.
For random tensor , we hope to show that with high probability, the tensor norm is less than can be proved via SoS.
With high probability over the randomness of the tensor , for ,
That is, when , the objective value of the convex program in Algorithm 1 is less than with high probability for random tensor.
Now we need to prove Theorem 4.2. We first use Cauchy-Schwarz inequality to transform LHS of (3) to a degree-4 polynomial, which would then correspond to 4th order tensors and enable non-trivial unfoldings.
This is a direct application of Cauchy-Schwarz inequality:
Expanding this quantity, and using the fact that , we get
With high probability over the randomness of ’s,
The harder part of the proof is to deal with the second term on the RHS of (4). The naive idea would be to let and view as a degree-2 polynomial of ,
Here is an by random matrix that depends on ’s. Suppose has spectral norm less than , then we have , and by replacing we obtain . However, in our case the matrix have spectral norm much larger than .
Our key insight is that we could have different ways to unfold into a degree-2 polynomial. In particular, we use the following way of unfolding:
where is the by matrix that encodes the coefficients of ,
It turns out that still have the property that . The matrix has much better spectral norm bound, which leads us to the bound for .
When , the matrix has spectral norm at most and as a direct consequence,
First we give an informal and suboptimal bound for intuition. Let be the matrix whose -column is (viewed as an dimensional vector). Then can be written as . Note that can also be written as where is the Kronecker product of two matrices, so we have . Then we can bound the norm of by , where we used the incoherence of ’s, that is, . This will only be when .
Intuitively, this proof is not tight because we ignored potential cancellation caused by the randomness of . Note that have expectation 0, but we treated them all as positive . If we assume that ’s are independent , then would be a sum of PSD matrices with random weights and we can apply more standard matrix concentration bounds to make sure cancellations happen.
However, are of course not independent and our key idea is to decouple the randomness of .
(Sketch) We first replace the vectors ’s with where is a random variable. This is OK because the distribution of and are the same. Now we first sample the ’s, conditioned on the samples (where only ’s are still random). Now since the vectors ’s are all fixed, the correlation between different terms only depends on scalar variables , and we never use the term (because ).
By a result of [PMS95], in this case we can decouple the product . In particular, in order to prove concentration properties for , it suffices to prove concentration for a different matrix . Here is an independent copy of ’s. In this way we have decoupled the randomness in and , and the rest of the Lemma can follow from careful matrix concentration analysis. ∎
We give the full proof of Lemma 3 in Appendix A.2.
Quasi-polynomial Time Algorithm for Tensor Decomposition
In this section we give a quasi-polynomial time algorithm for decomposing random 3rd order tensors in distribution . In particular, we prove Theorem 1.1 which we restate with more details below:
A key component of our algorithm is a way of sampling pseudo-distributions given in [BKS15]:
The main intuition is to use Cauchy-Schwarz and Hölder inequalities (like what we used in Claim 1) to raise the power in the sum (we start with and hope to get to ). When the degree is high enough we can afford to do an averaging argument and lose a factor of to go from the sum to a individual vector, because . The detailed proof is given in Appendix B.1.
(sketch) We prove Theorem 5.1 by induction. Suppose already contains a set of vectors ’s, where for each there is a corresponding that satisfies . We would like to show with high probability in the next iteration, the algorithm finds a new component that is different from all the previously found ’s.
In order to do that, we need to show the following:
The SDP in Step 3 of Algorithm 2 is feasible and gives a valid pseudo-expectation.
For any valid pseudo-expectation, with high probability we get an unit vector that satisfies , and is far from all the previously found ’s.
For any unit vector such that , there must be a component such that .
The details in this proof can be found in Appendix B.2.
Conclusion
In this paper we give the first algorithm that can decompose an overcomplete 3rd order tensor when the rank is almost that matches the bounds for even order tensors. Our argument is based on a special unfolding of the tensor and a decoupling argument for matrix concentration. We feel such techniques can be useful in other settings.
Tensor decompositions are widely applied in machine learning for learning latent variable models. Although the SoS based algorithm have poor dependency on the accuracy , in the case of tensor decomposition we can actually use SoS as an initialization algorithm. We hope such ideas can help solving more problems in machine learning.
We thank Anima Anandkumar, Boaz Barak, Johnathan Kelner, David Steurer, Venkatesan Guruswami for helpful discussions at various stages of this work.
References
Appendix A Omitted Proofs in Section 4
With high probability over the randomness of ’s,
Recall [BBH+12] showed that when ,
Here in order to improve this bound, we consider the square of the LHS of (6) and apply Cauchy-Schwarz (similar to Claim 1),
We will bound the first term of (11) by . We simply let and let be the matrix whose th row is . Then has the property that . Therefore it suffices to prove that or equivalently .
Consider the matrix . It is a by matrix with diagonal entries 1 and off diagonal entries of the form . By the incoherence of ’s, we have . Then by Gershgorin disk theorem, we have . It follows that . Therefore,
For the second term of (11), we apply Cauchy-Schwarz again:
Note that the matrix has spectral norm bound , and therefore
Then using Equation 10, and the equation above, we have
Then by 13 and 14 and Lemma 13, we have that
Hence, combining equation (15), (12) and (11) we have that
Using Lemma 13 again, we complete the proof of Lemma 6.
A.2 Proof of Lemma 3
When , the matrix has spectral norm at most and as a direct consequence,
As suggested in the proof sketch, we first use a simple symmetrization which allows us to focus on the randomness of signs of . For simplicity of notation, let . Let be uniform random vector and define as
We claim that has the same distribution as , since has the same distribution as . Then from now on we condition on the event that ’s have incoherence property and low spectral norm, that is, , , and we will only focus on the randomness of . Ideally we want to write as a sum of independent random matrices so that we can apply matrix Bernstein inequality. However, now the random coefficients are , and they are not independent with each other.
A key observation here is that the sum is only over the indices with , therefore we can use Theorem 1 of [PMS95] (restated as Theorem C.1 in the end) to decouple the correlation first.
Theorem C.1 basically says that to study the concentration of a sum of the form , it is up to constant factor similar to the concentration of the sum where is an independent copy of . Applying the theorem to our situation, we have that there exists absolute constant such that
and are independently uniform over .
Now it suffices to bound the norm of . We proceed by rewriting as
We study the properties of first.
Recall that . In the definition 18 of , the index is fixed and we take sum over . Therefore it will be convenient to write as where is the Kronecker product between matrices. Then can be written as
We apply the Matrix Bernstein inequality (Theorem C.2) on the right factor. Matrix Bernstein bound requires spectral norm bound for individual matrices, and a variance bound.
For the spectral norm of individual matrices, we check that (by incoherence). For variance we know
where we used the spectral norm of and the fact that .
Therefore by Matrix Bernstein’s inequality (Theorem C.2) we have that whp, over the randomness of ,
Using the fact that for two matrices and , if and is PSD, then (see Claim 3), it follows that
Finally we use union bound and conclude with high probability this is true for any . ∎
Using (17), we get that whp, . Since and has the same distribution, we conclude that whp, . ∎
We complete the proof by providing the following claim about Kronecker products.
If and is psd, then .
Therefore . ∎
A.3 Main Theorem for Certifying Injective Norm
Appendix B Omitted Proof in Section 5
First we will show that for a valid pseudo-expectation, the sum of and are also bounded. This actually follows directly from the proof of Lemma 2 and 3.
for .
For proving the lower bounds in (20), we first pseudo-expectation on equation 15, we have that
Then taking pseudo-expectation over equation (16), we obtain that
Note that by equation (22) and Cauchy-Schwarz, we have
Combining the two equations above, we obtain that
By equation (2.5) of [BKS15], we the following SoS version of Holder inequality. For any integer and ,
Let , we have
By Lemma 2, we have that with high probability over randomness of ’s, , and it follows that
By picking , we have . Taking and combining equation (23) and (24), we have that
Applying pseudo-expectation on both hands, we obtain,
Note that by Cauchy-Schwarz and equation (20), we have
Combining the two equations above, we obtain that for ,
Therefore by averaging argument, there exists such that
Lemma 4 follows directly from the two lemmas above.
B.2 Proof of Theorem 5.1
In this section we prove the main theorem in Section 5.
We first prove that with high probability for all . This is easy because . Conditioned on , the values are sub-Gaussian random variables with mean 0 and variance , so by standard concentration bounds we know with high probability . We can then take the union bound and conclude for all .
For any valid pseudo-expectation in Step 3, with high probability we get an unit vector that satisfies , and is far from all the previously found ’s.
Taking pseudo-expectations over both sides, we have that
where we’ve used the constraint and induction hypothesis .
Now applying Theorem 5.2 we get a vector that is has inner-product with . Therefore . Here is the multilinear form for the tensor, and note that this step of the proof does not need to be SoS because we already have the vector from Theorem 5.2. ∎
For any unit vector such that , there must be a component such that .
Finally, the runtime of Line 3 in Algorithm 2 is , and the run-time of line 4 is also . Therefore the total runtime is .
Appendix C Matrix Concentrations
In this section we introduce theorems used to prove matrix concentrations. First we need the following lemma for decoupling the randomness in the sum.
Let , are independent random variables on a measurable space over , where and has the same distribution for . Let be a family of functions taking to a Banach space . Then there exists absolute constant , such that for all , ,
We also need the Matrix Bernstein’s Inequality:
Consider a finite sequence of independent, random symmetric matrices with dimension . Assume that each random matrix satisfies
Appendix D Sum-of-Square Proofs
In this section we state some lemmas that can be proved by low-degree SoS proofs. Most of these lemmas can be found in [BS14] and [BKS14] but we still give the proofs here for completeness.
[SoS proof for Cauchy-Schwarz] Cauchy-Schwarz inequality can be proved by degree-2 sum of squares proofs,
For any vector , , we have that for even number ,
Note that it suffices to prove it for one dimensional vector . We prove by induction. For , it just follows Cauchy-Schwarz. Suppose it is true for case, we have
Combing the two equations above we obtain the desired result. ∎
Suppose is matrix with spectral norm , then
Assume without loss of generality, and suppose has singular decomposition where . Let and . Then
For a nonnegative real number and a set of polynomial and positive integer , if a polynomial satisfy , then for .
By a simple manipulation of algebra, we have that