A statistical model for tensor PCA
Andrea Montanari, Emile Richard
Introduction
Given a data matrix , Principal Component Analysis (PCA) can be regarded as a ‘denoising’ technique that replaces by its closest rank-one approximation. This optimization problem can be solved efficiently, and its statistical properties are well-understood. The generalization of PCA to tensors is motivated by problems in which it is important to exploit higher order moments, or data elements are naturally given more than two indices. Examples include topic modeling [AGH+12], video processing, collaborative filtering in presence of temporal/context information, community detection [AGHK13], spectral hypergraph theory and hyper-graph matching [DBKP09]. Further, finding a rank-one approximation to a tensor is a bottleneck for tensor-valued optimization algorithms using conditional gradient type of schemes. While tensor factorization is NP-hard [HL13], this does not necessarily imply intractability for natural statistical models. Over the last ten years, it was repeatedly observed that either convex optimization or greedy methods yield optimal solutions to statistical problems that are intractable from a worst case perspective (well-known examples include sparse regression [DE03, Tro04, CT07] and low-rank matrix completion [CR09, KMO10]).
In order to investigate the fundamental tradeoffs between computational resources and statistical power in tensor PCA, we consider the simplest possible model where this arises, whereby an unknown unit vector is to be inferred from noisy multilinear measurements. Namely, for each unordered -uple , we measure
with Gaussian noise (see below for a precise definition) and wish to reconstruct . In tensor notation, the observation model reads (see the end of this section for notations)
This is analogous to the so called ‘spiked covariance model’ used to study matrix PCA in high dimensions [JL09].
It is immediate to see that maximum-likelihood estimator is given by a solution of the following problem
Solving it exactly is –in general– NP hard [HL13].
Assuming unbounded computational resources, we can solve the Tensor PCA optimization problem and hence implement the maximum likelihood estimator . We use recent results in probability theory to show that this approach is successful for (here is a constant given explicitly below, with ). In particular, above this thresholdNote that, for even, can only be recovered modulo sign. For the sake of simplicity, we assume here that this ambiguity is correctly resolved. we have, with high probability,
We use an information-theoretic argument to show that no approach can do significantly better, namely no procedure can estimate accurately for (for a universal constant).
A heuristics argument suggests that the necessary and sufficient condition for tensor unfolding to succeed is indeed (which is below the rigorous bound by a factor for odd). We can indeed confirm this conjecture for even and under an asymmetric noise model. Numerical simulations confirm the conjecture for .
We then consider a simple tensor power iteration method, that proceeds by repeatedly applying the tensor to a vector. We prove that, initializing this iteration uniformly at random, it converges very rapidly to an accurate estimate provided . A heuristic argument suggests that the correct necessary and sufficient threshold is given by . In other words, power iteration is substantially less powerful than unfolding.
Motivated by the last observation, we consider a ‘warm-start’ power iteration algorithm, in which we initialize power iteration with the output of tensor unfolding. This approach appears to have the same threshold signal-to-noise ratio as simple unfolding, but significantly better accuracy above that threshold.
We also study a number of variations on this, with improved unfolding methods.
Finally we consider an approximate message passing (AMP) algorithm [DMM09, BM11]. Such algorithms proved effective in compressed sensing and several other estimation problems. We show that the behavior of AMP is qualitatively similar to the one of naive power iteration. In particular, AMP fails for any bounded as .
Given the above computational complexity barrier, it is natural to study weaker version of the original problem. Here we assume that extra information about is available. This can be provided by additional measurements or by approximately solving a related problem, for instance a matrix PCA problem as in [AGH+12]. We model this additional information as (with an independent Gaussian noise vector), and incorporate it in the initial condition of AMP algorithm. We characterize exactly the threshold value above which AMP converges to an accurate estimator.
The thresholds for various classes of algorithms are summarized below.
We will conclude the paper with some insights that we believe provide useful guidance for tensor factorization heuristics. We illustrate these insights through simulations.
Throughout the paper, proofs will be deferred to the Appendices.
We define the Frobenius (Euclidean) norm of a tensor by , and its operator norm by
For a permutation , we will denote by the tensor with permuted indices . We call the tensor symmetric if, for any permutation , . It is proved [Wat90] that, for symmetric tensors, the value of problem Tensor PCA coincides with up to a sign. More precisely, for symmetric tensors we have the equivalent representation
where , and is a vector with in probability as . We further have,
with . Finally notice that, for even, in Spiked Tensor Model, the vector can always be recovered up to a sign flip. This suggest the use of the loss function
Ideal estimation
In this section we consider the problem of estimating under the Spiked Tensor Model, when no constraint is imposed on the complexity of the estimator. Our first result is a lower bound on the loss of any estimator.
In order to establish a matching upper bound on the loss, we consider the maximum likelihood estimator , obtained by solving the Tensor PCA problem. As in the case of matrix denoising, we expect the properties of this estimator to depend on signal to noise ratio , and on the ‘norm’ of the noise (i.e. on the value of the optimization problem Tensor PCA in the case ). For the matrix case , this coincides with the largest eigenvalue of . Classical random matrix theory shows that –in this case– concentrates tightly around [Gem80, DS01a, BS10].
It turns out that tight results for follow immediately from a technically sophisticated analysis of the stationary points of random Morse functions by Auffinger, Ben Arous and Cerny [ABAC13]. (See Appendix B.1 for further background.)
There exists a sequence of real numbers , such that
Further concentrates tightly around its expectation. Namely, for any
Finally for large .
An explicit expression for the quantity is given in Appendix B (which also contains a proof, that uses [ABAC13]). Evaluating this expression for small values of , we get the following explicit values, that we also compare with the large- asymptotics . (It is not hard to increase the number of digits in these evaluations, using the expressions in Appendix.)
For instance, this table indicates that a large order- Gaussian tensor should have , while a large order tensor has . As a simple consequence of Lemma 2.1, we establish an upper bound on the error incurred by the maximum likelihood estimator, see Section B.2 for a proof.
Let be the sequence of real numbers introduced above. Letting denote the maximum likelihood estimator (i.e. the solution of Tensor PCA), we have for large enough, and all
with probability at least .
The following upper bound on the value of the problem Tensor PCA is proved using Sudakov-Fernique inequality. While it is looser than Lemma 2.1 (corresponding to the case ), we expect it to become sharp for a suitably large constant. We refer to Appendix B.3 for its proof.
The most striking prediction from statistical physics is that the function has an exponential number of local maxima on the unit sphere [CS95]. Furthermore, there exists such that, for each the number of local maxima with value is . In [ABAC13] rigorous evidence is developed to this support picture.
In the Spiked Tensor Model these local maxima translate into undesired local maxima of . It is natural to guess that these local maxima affect local iterative algorithms, and that these do not converge to a good estimate of unless they are initialized within thee ‘basin of attraction’ of . The analysis in the next sections confirms this intuition.
Tensor Unfolding
A simple and popular heuristics to obtain tractable estimators of consists in constructing a suitable matrix with the entries of , and performing principal component analysis on this matrix. Since the number of distinct entries of is of order , the resulting matrix has dimension . This operation is variously referred as matricization, unfolding, flattening. While the details of this construction can vary, we do not expect them to affect qualitatively our results, that we summarize for the sake of convenience:
The best way to unfold amounts to form a matrix as square as possible.
Setting (in particular for ), the unfolding approach succeeds when is larger than . This is to be compared with that is sufficient for the maximum likelihood estimator (see previous section).
Based on heuristic arguments, we believe that the tight threshold is (i.e. that is both necessary and sufficient –modulo constants).
A sharper analysis is possible when the symmetric noise tensor in our Spiked Tensor Model is replaced by non-symmetric Gaussian noise, and is even. In particular, we can confirm the above conjecture in this case. (As mentioned, we expect similar results to hold more generally.)
In this case, if , then the estimator from unfolding is essentially orthogonal to the signal . On the other hand, if , we construct an estimator with .
We achieves the remarkable behavior at the last point by a recursive unfolding method. In a nutshell we perform principal component analysis on , construct a matrix out of the principal vector, and then perform again principal component analysis.
Standard convex relaxations of low-rank tensor estimation problem compute factorizations of [TSHK11, LMWY13, MHG13, RPP13]. Not all unfoldings (choices of ) are equivalent. It is natural to expect that this approach will be successful only if the signal-to-noise ratio exceeds the operator norm of the unfolded noise . The next lemma suggests that the latter is minimal when is ‘as square as possible’ . A similar phenomenon was observed in a different context in [MHG13].
For any integer we have, for some universal constant ,
For all large enough, both bounds are minimized for . Further
is a Lipschitz function of the Gaussian vector with modulus at most . Hence the same holds for , and the claim follows from Gaussian concentration of measure.
For the upper bound in Eq. (21), note that
Let us recall the following standard result derived directly from Wedin perturbation Theorem [Wed72], and stated in the context of the spiked model.
Note is the only singular value of , while the second singular value of is at most . Wedin Theorem states that, for all , we have
In particular for . Hence the claim (26) follows from
Letting denote the top right singular vector of , we have the following, for some universal constant , and .
If then, with probability at least , we have
where , . We know by Lemma 3.1 that with the claimed probability. The loss upper bound (29) follows immediately from this upper bound and Wedin’s theorem Eq. (26). ∎
2 Asymmetric noise and recursive unfolding
A technical complication in analyzing the random matrix lies in the fact that its entries are not independent, because the noise tensor is assumed to be symmetric. In the next theorem we consider the case of non-symmetric noise and even . This allows us to leverage upon known results in random matrix theory [Pau07, FP09, BGN12] to obtain: Asymptotically sharp estimates on the critical signal-to-noise ratio; A lower bound on the loss below the critical signal-to-noise ratio. Namely, we consider observations
In other words is a good estimate of if and only if is larger than .
we then let to be the left principal vector of . We refer to this algorithmIn practice int might be more effective to use a balanced matricization at the second step. For instance if is a power of two one could construct a square matricization and repeat the same process. For analysis purposes, we prefer the version described here. as to recursive unfolding.
Let be distributed according to the non-symmetric model (31) with even, define . and let be the estimate obtained by two-steps recursive unfolding.
If then, almost surely
For the sake of simplicity, we assume . The limit along other sequences follows from a standard subsequence argument.
It follows from the invariance of the noise distribution in Eq. (31) that
where . It follows from Eq. (33), together with the almost sure limits and that (almost surely)
Using the definition (34), we then have (recall that )
Since is bounded away from zero as , Wedin’s theorem implies , and therefore the claim (35). ∎
We conjecture that the weaker condition is indeed sufficient also for our original symmetric noise model model, both for even and for odd.
Power Iteration
Iterating over (multi-) linear maps induced by a (tensor) matrix is a standard method for finding leading eigenpairs, see [KM11] and references therein for tensor-related results. In this section we will consider a simple power iteration, and then its possible uses in conjunction with tensor unfolding. Finally, we will compare our analysis with results available in the literature.
Approximate Message Passing (AMP) provides a different iterative strategy and will be discussed in Section 5. While the qualitative behavior is the same as for naive power iteration, a sharper asymptotic analysis is possible for AMP.
The simplest iterative approach is defined by the following recursion
The following result establishes convergence criteria for this iteration, first for generic noise and then for standard normal noise (using Lemma 2.1).
Then for all , the power iteration estimator satisfies
If is a standard normal noise tensor, then conditions (41), (41) are satisfied with high probability provided
We next discuss two aspects of this result: The requirement of a positive correlation between initialization and ground truth ; Possible scenarios under which the assumptions of Theorem 6 are satisfied.
Notice that we require a positive correlation of the initialization with the ground truth . The underlying reason is that, if is small, then remains small at all subsequent iterations. In order to clarify this point, it is instructive to compute the distribution of for standard Gaussian noise . We let
Using Eq. (9) and the fact that is independent of , we get
where , and is a vector with in probability as . In particular
In particular only if , or, equivalently, . This suggest that the condition in Eq. (45) is not too far from being tight (in the sense that the exponent can at best replaced by ).
In general we cannot assume that an initialization satisfying the conditions of Theorem 6. Hence, unlike for ordinary matrix factorization, power iteration is not a practical solution to the tensor principal component problem. There are however circumstances under which a sufficiently good initialization exists.
If is a uniformly random vector on the unit sphere, then is approximately normal with mean zero and variance . For instance with probability roughly .
Comparing this with condition (42), we obtain that a random initialization succeed with positive probability if
For standard Gaussian noise, this amounts to requiring . The above heuristic analysis suggests that the correct condition should be .
Additional information might be available about the vector . This information can be used for initiating the power iteration. In the next section we consider the special case in which tensor unfolding is used for initializing power iteration.
2 Comparison with Tensor Unfolding
It is instructive to compare the result of the previous section with the ones for tensor unfolding, cf. Section 3. Summarizing, for standard Gaussian noise
Tensor unfolding is guaranteed to succeed provided , with . We conjecture that a necessary and sufficient condition is in fact (e.g. for order tensors).
Power iteration, with random initialization requires . Our heuristic calculation suggests that a necessary and sufficient condition is in fact (e.g. for order tensors)..
In other words, tensor unfolding is successful under a signal-to-noise ratio that is order of magnitudes smaller than power iteration. This suggests the following warm start procedure: Compute a first estimate of using tensor unfolding; Use this as initialization for the power iteration, hence setting . We will explore this approach numerically in Section 6.
3 Related work
As mentioned above, power iteration is a natural approach to tensor factorization and was studied in several earlier papers. Most recently, interest within machine learning was spurred by [AGH+12].
Our Theorem 6 is analogous to the main result of [AGH+12] although incomparable:
In [AGH+12] the ‘signal’ part of the tensor is assumed to have an orthogonal decomposition with bounded away from zero. Here, the signal part has rank one (equivalently, all the ’s but one vanish).
In [AGH+12] only the case of third order tensors () is considered. We characterize power iteration for general .
We establish convergence in a number of iterations that is independent of the dimensions . In [AGH+12] the number of iterations is bounded by a polynomial in .
We evaluate our bounds in the case of Gaussian noise. This allows a comparison with other methods, such as tensor unfolding.
Asymptotics via Approximate Message Passing
Approximate message passing (AMP) algorithms [DMM09, BM11] proved successful in several high-dimensional estimation problems including compressed sensing, low rank matrix reconstruction, and phase retrieval [FRVB11, KRFU12, SC11, SR12]. An appealing feature of this class of algorithms is that their high-dimensional limit can be characterized exactly through a technique known as ‘state evolution.’ Here we develop an AMP algorithm for tensor data, and its state evolution analysis focusing on the fixed , limit. Proofs follows the approach of [BM11] and will be presented in a journal publication.
(Note that, unlike in power iteration, we normalize ‘before’ multiplying it by . This choice is equivalent but yields slightly simpler expression.)
Our main conclusion is that the behavior of AMP is qualitatively similar to the one of power iteration. However, we can establish stronger results in two respects:
We can prove that, unless side information is provided about the signal , the AMP estimates remains essentially orthogonal to , for any fixed number of iterations. This corresponds to a converse to Theorem 6.
Since state evolution is asymptotically exact, we can prove sharp phase transition results with explicit characterization of their locations.
We assume that the additional information takes the form of a noisy observation , where . Our next results summarizes the state evolution analysis. Its proof is deferred to a journal publication.
where is proportional to , and is perpendicular. Then is uniformly random, conditional on its norm. Further, almost surely
where is given recursively by letting and, for (we refer to this as to state evolution):
Note that state evolution coincides with the equation that we derived for the first iteration of power iteration, cf. Eq. (48) (apart from the different scaling). It is important to notice that for subsequent iterations , state evolution (53) does not correctly describe naive power iteration. The reason is that depends on , and hence the same argument does not apply. The AMP iteration differ from naive power iteration because of the ‘memory term’, . As shown in [BM11], this memory term approximately cancels dependencies. As a consequence, the resulting algorithm obeys state evolution.
The following result characterizes the minimum required additional information to allow AMP to escape from those undesired local optima. We will say that converges almost surely to a desired local optimum if, almost surely,
Consider the Tensor PCA problem with and
Then AMP converges almost surely to a desired local optimum if and only if where is the largest solution of ,
In the special case , and , assuming , AMP tends to a desired local optimum. Numerically is enough for AMP to achieve if .
As a final remark, we note that the methods of [MR14] can be used to show that, under the assumptions of Theorem 7, for a sufficiently large constant, AMP asymptotically solves the optimization problem Tensor PCA. Formally, we have, almost surely,
Numerical experiments
Let us emphasize two practical suggestions that arise from our work:
Tensor unfolding is superior to tensor power iteration under our spiked model. For instance, for , we expect tensor power iteration to require and unfolding to require .
For smaller values of , iterative methods (tensor power iteration or approximate message passing) only produce a good estimate if the initialization has a scalar product with the ground truth that is bounded away from zero.
As a consequence of the above, side information about the unknown vector can greatly improve performances.
A special case, we will study the behavior of warm start algorithms that first perform a singular value decomposition of , and then apply an iterative method (tensor power iteration or approximate message passing).
In this section we will illustrate these suggestions through numerical simulations.
Section 6.1 describes a refinement of tensor unfolding that provides a tighter relaxation. Section 6.2 compares different algorithms. Finally, Section 6.3 provides additional illustration of how side information can dramatically simplify the estimation problem.
This optimization problem is NP hard, since it includes copositive programming as a special case. However [DMR14] provides rigorous and empirical evidence that problems of this type can be solved efficiently by a projected power iteration, under statistical model dor .
2 Comparison of different algorithms
In Fig. 1 we compare different algorithms on data generated following Spiked Tensor Model with , and and for a range of values of . The plots represent measured values of the absolute correlation versus , averaged over samples (except for , where we used samples).
The main findings are consistent with the theory developed above:
Tensor power iteration (with random initialization) performs poorly with respect to other approaches that use some form of tensor unfolding. The gap widens as the dimension increases.
PSD-constrained principal component analysis (described in the last section) is slightly superior to plain unfolding.
All algorithms based on initial unfolding have essentially the same threshold. Above that threshold, those that process the singular component (either by recursive unfolding or by tensor power iteration) have superior performances over simpler one-step algorithms.
In addition, we noted that the two iterative algorithms (Power Iteration and AMP) show very close behaviors in our experiments.
In Figure 2 we compare the scaling with of the threshold signal-to-noise ratio for different type of algorithms. Our heuristic arguments suggest that tensor power iteration with random initialization will work for , while unfolding only requires (our theorems guarantee this for, respectively, and ). We plot the average correlation versus (respectively) and . The curve superposition confirms that our prediction captures the correct behavior already for of the order of .
3 The value of side information
The analysis in previous sections suggest to use the leading eigenvector of as the initial point of AMP algorithm for tensor PCA on . We performed the experiments on randomly generated instances with and report in Figure 3 the mean values of with confidence intervals.
Random matrix theory predicts [FP09]. Thus we can set and apply the theory of the previous section. In particular, Proposition 5.1 implies
and otherwise Simultaneous PCA appears vastly superior to simple PCA. Our theory captures this difference quantitatively already for .
Acknowledgements
This work was partially supported by the NSF grant CCF-1319979 and the grants AFOSR/DARPA FA9550-12-1-0411 and FA9550-13-1-0036.
Appendix A Information theoretic bound: Proof of Theorem 1
where for indices , we have with . Let denote the Kullback-Leiber divergence where is the law of conditional on .
We are now in position to prove Theorem 1. Let denote the class of estimators with unit norm:
(Here denotes the -dimensional volume, and the ball of radius centered at .)
Let denote an -packing with cardinality . Let be uniformly distributed in the set . For an estimator , we define . Consider the error event . By definition of , the event implies . By Markov inequality we have:
By Fano’s inequality [CT12] we have that:
where , and in the second inequality we used [HV94]
Using Eq. (59) and Lemma A.1, in Eq. (61), we get
Appendix B Maximum likelihood: Proof Theorem 2
While the function is obviously non-convex, it turns out that –for random data – it is dramatically so. Namely, it has an exponential number of local maximum, whose value is –typically– only a fraction of the value of the global maximum.
where, for
Further, for , .
The function is monotone decreasing for , and non-negative if and only if for some (strictly positive for ). In Figure 4, we plot for . Informally, this means that the function has exponentially many local maxima with value for any . To leading exponential order, the number of such maxima is given by .
The value can be determined as the unique solution to the equation . It is immediately to do this numerically, obtaining the values in Section 2.
The last result implies that the global maximum of is (asymptotically) at least . Indeed the global maximum is necessarily a local maximum as well. The next result implies that indeed the global maximum converges to .
Let denote the unique non-negative root of the equation , for . Then
In order to derive the large- asymptotics of , we rewrite Eq. (69) in terms of the variable . We get , where
Further . The claimed asymptotics follows by showing that the only solution of in this interval obeys . This in turns can be showed by using the bounds
and showing that the solution of for large is .
Finally, the norm concentrates tightly around its expectation.
is a Lipschitz function with Lipschitz modulus (with respect to Euclidean norm) of the Gaussian vector (tensor) . Hence is Lipchitz continuous with the same modulus. The claim follows from Gaussian isoperimetry [Led01]. ∎
Note that to make the connection with the notations used in [ABAC13], one has to use the proper scaling (is the objective function considered in [ABAC13]).
The upper bound on the tensor operator norm obtained from Sudakov-Fernique inequality is not tight. In fact taking in Lemma 2.2 gives the loose upper bound . Except in the case of random matrices (), this is loose roughly by a factor .
B.2 Proof of Theorem 2
By optimality of , we have
Using which holds for , and rescaling , we get with probability at least for all large enough.
B.3 Proof of Lemma 2.2
Since is uniformly continuous on bounded intervals , it is sufficient to prove
for all , and an eventually different sequence . By triangular inequality and using ,
Next we have almost surely by the strong law of large numbers, and whence by Borel-Cantelli. ∎
The function is a Lipschitz continuous function with Lipschitz constant of the standard Gaussian tensor (namely ). Hence, by Gaussian isoperimetry, we have
Further we claim that is uniformly continuous for . In order to prove this, let
where . We have, for , and by letting and denote the perpendicular components of and , we have for some constant
where Eq. (88) was obtained by exploiting the symmetry of the tensor and Eq. (89) was derived using the norm of the vector . Using Eq. (86) over a grid , and the factThis follows from Lemma 2.1 and triangular inequality, or from a standard -net argument. that for some constant with probability , we have for all and some constant
In particular, by Borel-Cantelli we have, almost surely,
In order to upper bound , we apply Sudakov-Fernique inequality for non-centered Gaussian processes [Vit00, Theorem 1] to the two processes , indexed by defined as follows:
where and satisfies uniformly over , by Lemma B.4. We finally conclude that
Concentration around the expectation follows by Gaussian isoperimetry as in the proof of Lemma 2.1. ∎
Appendix C Power Iteration: Proof of Theorem 6
Let and . Let , be the two solutions of
We will show below that our assumptions imply . Further implies .
We will prove the first inequality by induction. It is true at by assumption. Assume it is true at . Then using Eq. (101).
Hence we can divide the two inequalities above obtaining which implies
To conclude the proof of Eq. (43), we notice that, for
where we recall that , are the two solutions of in the interval $[e^{-1/(k-1)},1]g_{k}(x)g_{k}(x)\geq e^{-1}(1-x)$. This implies
i.e. as long as , which is implied by .
For the second inequality, note that, in the interval , we have increasing with . This implies
as long as , which follows, again, by our assumptions.
Finally, conditions (44), (45) follow directly by applying Lemma 2.1.
Appendix D Approximate Message Passing: Proof of Theorem 7
Let us recall the state evolution recursion (53)
The fixed point equation has two strictly positive solutions .
The smallest fixed point is given by as in the statement.
The largest fixed point satisfies .
The behavior of the function is illustrated in Fig. 5.
Now, the function is continuously differentiable and strictly positive in the interval , with . Further, simple calculus shows it has a unique stationary point (a maximum) at with . This implies that, for , Eq. (111) has two fixed points thus implying points 1 and 2 above (the latter immediately follows from inverting the re-parametrization).
where the second inequality follows since . By state evolution (Proposition 5.1), together with the fact that , we have