Uniqueness of Tensor Decompositions with Applications to Polynomial Identifiability

Aditya Bhaskara, Moses Charikar, Aravindan Vijayaraghavan

Introduction

Statisticians have long studied the identifiability of probabilistic models [Tei61, Tei67, TC82], i.e. whether the parameters of a model can be learned from data generated by the model. A central question in unsupervised learning [Gha04] is the efficient computation of such latent model parameters from observed data. A necessary step towards efficient (polynomial time) learning is to show that the parameters are indeed identifiable after observing polynomially many samples. The method of moments approach, pioneered by Pearson [Pea94], infers model parameters from empirical moments such as means, pairwise and other higher order correlations. In general, very high order moments may be needed for this approach to succeed and the unreliability of empirical estimates of these moments leads to exponential sample complexity [MV10, BS10, GLPR12].

An exciting sequence of recent work [MR06, AHK12, HK12, AGH+12] has met with considerable success in cases where the underlying models satisfy a certain non-degeneracy condition (that we will explain later). Informally, the condition requires that the dimension (nn) of the observations is at least as large as the number of possible values (RR) for the hidden variable and that certain model parameters are in general position. The moments are naturally represented by tensors (high dimensional analogs of matrices) and low rank decompositions of such tensors can be used to deduce the parameters of the underlying model. Under suitable non-degeneracy assumptions, the required tensor decompositions can be computed efficiently using an iterative procedure akin to power iteration for computing matrix eigenvalues. One focus of our work is developing tensor decomposition techniques that apply in more general settings where these non-degeneracy assumptions are violated, i.e. nn is much smaller than RR. Such settings do arise in many cases of practical interest such as in applications of hidden Markov models to speech recognition and image classification, where the dimension (nn) of the feature space is typically much smaller than the number of values (RR) for the hidden variable. For instance, the (effective) feature space corresponds to just the low-frequency components in the fourier spectrum in speech, or the local neighborhood of a pixel in images. These are typically low dimensional than the number of words or image classes.

In fact, the connection of tensor decompositions to learning probabilistic models has been made earlier in the algebraic statistics literature. In a series of papers, identifiability of several latent variable models was established [AMR09, APRS11, RS12] via low rank decomposition of certain moment tensors. A fundamental result of Kruskal [Kru77] on uniqueness of tensor decompositions plays a crucial role in ensuring that the model parameters are correctly identified by this procedure. Note that this assumes access to an infinite number of samples and does not give any information on the number of samples needed to learn the model parameters within specified error bounds. Kruskal’s theorem by itself is not useful for establishing any such sample complexity bounds since it only guarantees uniqueness for low rank decompositions of the actual moment tensors. It does not say anything about the decomposition of empirical moment tensors which are approximations of these. In order to understand how large a sample size is needed, one would need a robust uniqueness guarantee of this form: if the empirical moment tensor T′T^{\prime} is close to the moment tensor TT, then a low rank decomposition of T′T^{\prime} is (term by term) close to a low rank decomposition of TT.

Our main technical contribution in this work is establishing such a robust version of Kruskal’s classic uniqueness theorem for tensor decompositions. This provides a uniqueness guarantee that is directly applicable for establishing polynomial identifiability in a host of applications [AMR09] where Kruskal’s theorem was used to prove identifiability assuming access to exact moment tensors. Since polynomially many samples from the distribution (typically) yield an approximation to these tensors up to 1/poly(n)1/\text{poly}(n) error, our robust version of Kruskal’s theorem establishes polynomial identifiability in all such applications. To the best of our knowledge, no such robust version of Kruskal’s theorem is known in the literature. Given the importance of this theorem in the tensor literature, we expect that this robust version will have applications beyond the settings we explore in this work. Our robust uniqueness theorem is accompanied by new algorithms to find low rank tensor decompositions.

A tensor is a multidimensional array – a generalization of vectors and matrices e.g. an n1×n2×n3n_{1}\times n_{2}\times n_{3} tensor is a 3-tensor which is an element in Rn1×n2×n3R^{n_{1}\times n_{2}\times n_{3}}. Low rank tensor decompositions (analogs of SVD for matrices) have been studied intensively as methods for extracting structure in data. These originated in work of Hitchcock [Hit27] and Cattell [Cat44]. They were studied in the 60’s and 70’s in the psychometrics literature and since the 80’s, in the chemometrics literature. The notion of tensor rank also plays an important role in algebraic complexity, and is closely connected to the exponent of matrix multiplication. More recently, tensor decompositions have found applications in signal processing, numerical linear algebra, computer vision, numerical analysis, data mining, graph analysis, neuroscience and more.

Carroll and Chang [CC70] introduced CANDECOMP (canonical decomposition) and independently, Harshman [Har70] introduced PARAFAC (parallel factors). CANDECOMP/PARAFAC is now referred to as CP decomposition [Kie00]. It expresses a tensor as a sum of rank-one tensors where each rank-one tensor is the outer product of column vectors. The rank of a tensor is the minimum number of terms required for such a decomposition. While the definition of tensor rank is analogous to that of matrix rank, their properties are quite different. In fact, computing the rank of a tensor is NP-hard [Hås90] and in fact several other problems associated with low rank approximation of tensors are NP-hard as well [HL13].

For matrices, a fundamental result of Eckart and Young [EY36] shows that the best rank-kk approximation consists of the leading kk terms of the SVD. This is not the case for CP decomposition of tensors – the best rank one approximation may not be a factor in the best rank two approximation. In fact, the best rank kk-approximation may not exist. For example, certain tensors of rank-three can be arbitrarily well approximated by a sequence of rank-two tensors [Knu, Paa00, DSL08, Lan12]. In fact, the set of tensors of a certain size that do not have a best rank-kk approximation has positive volume [DSL08]. To overcome this problem, the concept of border rank was introduced and studied in the algebraic complexity community. This is defined to be the minimum number of rank-one tensors that are sufficient to approximate the given tensor with arbitrarily small error. In fact, the complexity of matrix multiplication is exactly captured by the border rank of the associated tensor [KB09, Lan12].

An important property of higher order tensors is that (under certain conditions) their minimum rank decompositions are unique upto trivial scaling and permutation. This is in contrast to matrix decompositions. Note that the SVD of a matrix is unique (assuming distinct singular values) only because we impose additional orthogonality constraints.

A classic result of Kruskal [Kru77] gives a sufficient condition for uniqueness of the CP decomposition of a 3-tensor. Suppose that a 3-tensor TT has the following decomposition:

Let the Kruskal rank or K-rank kAk_{A} of matrix AA (formed by column vectors ArA_{r}) be the maximum value of kk such that any kk columns of AA are linearly independent. kBk_{B} and kCk_{C} are similarly defined. Kruskal’s result says that a sufficient condition for the uniqueness of the decomposition (1) is

We give a robust version of of Kruskal’s uniqueness theorem for decomposition of 3-tensors. To this end, we need a natural robust analogue of Kruskal rank: we say that K-rankτ(A)≥k\text{K-rank}_{\tau}(A)\geq k if every submatrix of AA formed by kk of its columns has minimum singular value at least 1/τ1/\tau. A matrix is called bounded if its column vectors have bounded length. Finally, we measure closeness between two tensors or two matrices by the Frobenius norm of their difference. Please see Section 2 for precise definitions.

Our first result shows that any tensor with bounded decomposition that satisfies the robust Kruskal condition has a unique decomposition upto small error (formal statement in Section 2):

Informal Theorem. If any order 33 tensor TT has a bounded rank RR decomposition [A B C][A~{}B~{}C], where the robust K-rankτ\text{K-rank}_{\tau} kA,kB,kCk_{A},k_{B},k_{C} satisfy kA+kB+kC≥2R+2k_{A}+k_{B}+k_{C}\geq 2R+2, then any decomposition [A′ B′ C′][A^{\prime}~{}B^{\prime}~{}C^{\prime}] that is ε\varepsilon-close to TT has A′,B′,C′A^{\prime},B^{\prime},C^{\prime} being individually ε′\varepsilon^{\prime}-close to A,BA,B and CC respectively when ε<ε′⋅poly(R,n,τ)\varepsilon<\varepsilon^{\prime}\cdot\text{poly}(R,n,\tau).

A similar theorem (see Theorem 2.7) also holds for higher order tensors and the analogous robust Kruskal rank condition is exactly (3) where kU(j)k_{{U}^{(j)}} corresponds to the robust Kruskal rank of U(j){U}^{(j)}. Note that when all the U(j){U}^{(j)} have the same rank, the robust Kruskal condition becomes weaker for higher order tensors.

Why is it non-trivial to obtain a robust version from existing proofs? Kruskal’s theorem gives conditions under which the components of a tensor decomposition can be identified uniquely. However the proofs that we are aware of strongly use inductive lemmas which prove that subsets of the components of one decomposition have to necessarily belong in any other potential decomposition, and use them to conclude that any two decompositions are in fact the same. When working with representations that are only nearly equal, these inductive arguments typically accumulate errors in each step, thereby requiring the initial error to be exponentially small in order to reach the desired conclusion. Such a result would not be of any value for establishing polynomial sample complexity bounds, since the sample size would need to be exponentially large for the empirical moment tensors to approximate the true moment tensor within such a low error. We overcome this issue by using arguments that are purely combinatorial whenever possible, and carefully avoiding a loss at each step.

Since finding low-rank decomposition of tensors is of great practical interest, it is natural to study algorithms for this problem. While this and many related problems are NP-hard in general [HL13], we give an algorithm which given an approximation to a tensor, finds an approximate low-rank decomposition in time exponential only in the rank (and not the dimensions of the tensor).

Informal Theorem. Given a tensor with a bounded, rank RR decomposition up to an error ε\varepsilon, we can find a rank RR approximation with error O(ε)O(\varepsilon) in time exp⁡(R2log⁡(n/ε))poly(n)\exp(R^{2}\log(n/\varepsilon))\text{poly}(n).

This can be viewed as a tensor analog of low-rank approximation, which is very well-studied for matrices. Note that our algorithm does not require the promised decomposition to have additional well-conditioned properties. If we additionally have such guarantees (for e.g., that the sum of K-rank of the components is high), then Theorem 2.7 implies that the algorithm finds this particular decomposition (up to a small error).

2 Latent Variable Models

We now describe some of the latent variable models that our results are applicable to. We will formally state the identifiability and algorithmic results we obtain for each of these in Section 5.

Multi-view models are very expressive, and capture many well-studied models like Topic Models [AHK12], Hidden Markov Models (HMMs) [MR06, AMR09, AHK12], random graph mixtures [AMR09], and the techniques developed for this class have also been applied to phylogenetic tree models [Cha96, MR06] and certain tree mixtures [AHHK12].

Exchangeable (single) Topic Model

Hidden Markov Models

As mentioned previously, in many important applications of HMMs, nn is much smaller than RR. e.g. in image classification, the commonly used SIFT features [Low99] are 128 dimensional, while the number of image classes is much larger, e.g. 256 classes in the Caltech-256 dataset [GHP07] and several thousands in the case of ImageNet [DDS+09]. Similarly, in speech recognition, the features of an audio signal are typically based on mel-frequency cepstral coefficients (MFCCs) or an encoding called perceptual linear prediction (PLP) that incorporates psychoacoustic constraints [GY08], e.g. these are used to obtain a 39 dimensional feature vector in the popular HTK toolkit for building HMMs for speech recognition [YEG+02, WGPY97]. On the other hand, the number of states in these HMMs is much larger. Further, in some other applications, even when the feature vectors lie in a large dimensional space (n≫Rn\gg R), the set of relevant features or the effective feature space could be a space of much smaller dimension (k<Rk<R), that is unknown to us.

Mixtures of Spherical Gaussians

Informal Theorem. For a multi-view model with RR topics or distributions, such that each of the parameter matrices M(j){M}^{(j)} has robust K-rank of at least δR\delta R for some constant δ\delta, we can learn these parameters upto error ε\varepsilon with high probability using polyδ(n,R)\text{poly}_{\delta}(n,R) samples. Further, these parameters can be approximately computed in time exp⁡δ(R2log⁡(n/ε))poly(n)\exp_{\delta}\left(R^{2}\log(n/\varepsilon)\right)\text{poly}(n) time.

Polynomial identifiability was not known previously for these models in the settings that we consider. Moreover, except for the well studied setting of mixtures of Gaussians, no provably good algorithms were known (even with running time exp⁡(poly(R))\exp(\text{poly}(R))).

For mixtures of Gaussians, our results shed more light on polynomial identifiability: the algorithm of [AGH+12, HK13] shows how to identify mixtures of (spherical) Gaussians efficiently when we have RR Gaussians in dd dimensions, when the means satisfy certain well-conditioned properties (which in particular requires d≥Rd\geq R). When d=2d=2, Moitra and Valiant [MV10] rule out polynomial identifiability by giving two distributions for which we require exponentially many samples to distinguish one from the other. Thus it is natural to ask what happens in between, when d<Rd<R, but is not too small. Our results imply that a mixture of RR Gaussians of known variance in a δR\delta R dimensional space (any δ>0\delta>0) can be identified with polynomially many samples.

3 Overview of Techniques

The main technical contribution of our paper is the Robust Uniqueness theorem for Tensor decompositions. Our proof broadly follows the outline of Kruskal’s original proof [Kru77]: It proceeds by establishing a certain Permutation lemma, which gives necessary conditions to conclude that the columns of two matrices are permutations of each other (up to scaling). Given two decompositions [A B C][A~{}B~{}C] and [A′ B′ C′][A^{\prime}~{}B^{\prime}~{}C^{\prime}] for the same tensor, it is shown that A,A′A,A^{\prime} satisfy the conditions of the lemma, and thus are permutations of each other. Finally, it is shown that the three permutations for A,BA,B and CC (respectively) are identical. To prove the robust uniqueness theorem, the key ingredient is a robust version of the permutation lemma.

The first step in our argument is to prove that if AA, BB, CC are “well-conditioned” (i.e., satisfy the K-rank conditions of the theorem), then any other “bounded” decomposition which is ε\varepsilon-close is also well-conditioned. This step is crucial to our argument, while an analogous step was not explicitly needed for the proofs of exact uniqueness theorem.Note that the uniqueness theorem, in hindsight, establishes that the other decomposition is also well-conditioned. Besides, this statement is interesting in its own right: it implies, for instance, that there cannot be a smaller rank (bounded) decomposition.

The second and most technical step is to prove the robust permutation lemma. The (robust) Permutation lemma needs to establish that for every column of C′C^{\prime}, there is some column of CC close to it. Kruskal’s proof [Kru77] roughly uses downward induction to establish the following claim: for every set of i≤i\leq K-rank columns of C′C^{\prime}, there are at least as many columns of CC that are in the span of the chosen vectors. The downward induction infers this by considering intersections of columns close to i+1i+1 dimensional spaces.

The natural analogue of this approach would be to consider columns of CC which are ε\varepsilon-close to the spans of subsets of columns of C′C^{\prime}. However, the inductive step involves considering combinations and intersections of the different spans that arise, and such arguments do not seem very tolerant to noise. In particular, we lose a factor of τn\tau n in each iteration, i.e., if the statement was true for i+1i+1 with error εi+1\varepsilon_{i+1}, it will be true for ii with error εi=τn⋅εi+1\varepsilon_{i}=\tau n\cdot\varepsilon_{i+1}. Since kk steps of downward induction need to be unrolled, we recover a robust permutation lemma only when the error <1/(τn)k<1/(\tau n)^{k} to start with, which is exponentially small since kk is typically Θ(n)\Theta(n).

We overcome this issue by showing a different, more tricky inductive statement, whereby we do not lose any error in the recursion. This is described in Section 3.3. To carry forth this argument we crucially rely on the fact that C′C^{\prime} is also “well-conditioned” and other observations.

At a high level, our algorithm for finding a rank RR approximation proceeds by finding a small (O(R)O(R)) dimensional space and then exhaustively searching, which takes time exp⁡(R2log⁡n)poly(n)\exp(R^{2}\log n)\text{poly}(n). Note that a naive exhaustive search using an ε\varepsilon-net in the entire nn dimensional space would incur a run time of exp⁡(Rn)poly(n)\exp(Rn)\text{poly}(n), which is much worse if n≫Rn\gg R.

Suppose the best rank RR approximation to an input tensor has error ε\varepsilon. We first find an RR-dimensional space for each of the (three) dimensions, so that there is an O(ε)O(\varepsilon)-close rank RR decomposition that comprises vectors only from the corresponding RR-dimensional spaces. We note that the spaces we find need not correspond to the span of the components in the optimum decomposition, but they suffice to obtain an O(ε)O(\varepsilon) approximation. Another feature of the algorithm is that it does not assume that the tensor has an approximate “well conditioned” decomposition, and assumes only boundedness.

4 Related Work

While our applications to learning latent variable models are inspired by the works of [AHK12, AGH+12], our results are significantly different, particularly from a tensor decomposition perspective. Anandkumar et al [AGH+12] give algorithms for tensors which have a symmetric orthogonal decomposition, i.e. a decomposition of the form ∑r=1RAr⊗Ar⊗Ar\sum_{r=1}^{R}A_{r}\otimes A_{r}\otimes A_{r} where the vectors ArA_{r} are orthogonal. In general, a rank-RR tensor may not have any orthogonal decomposition. Note that any tensor in n×n×nn\times n\times n dimensions, which has rank R>nR>n can not have an orthogonal decomposition. While this is one source of intractability for general tensor decompositions [HK12], we crucially use such tensors of rank R>nR>n to give polynomial identifiability beyond the non-degenerate range (R≤nR\leq n).

For various latent variable models, in the non-degenerate setting (where the number of mixtures/ topics RR is larger than the dimension of the space nn), Anandkumar et al [AGH+12] use order 33 tensors given by the third moment tensor to identify the hidden parameters. In these tensors, each rank-11 component corresponds to a hidden parameter, like one of the means. While these parameters may not be orthogonal, a certain “whitening” transform of the space [AHK12, HK12] produces a new instance in which these means are now orthogonal. For this they crucially rely on two assumptions:

The n×Rn\times R matrix of the means has rank ≥R\geq R (and well conditioned). This of course needs R≤nR\leq n.

The algorithm has access to the second moment tensorThis is certainly a valid assumption when learning latent variable models. This assumption will not hold in the case of the general problem of tensor decompositions.

Finally, in the context of learning latent variable models, we go beyond the non-degeneracy barrier and get polynomial identifiability even when n=δR<Rn=\delta R<R. One interesting aspect of our results is that we use successively higher O(1)O(1)-moments to handle larger values of RR (hidden topics/ mixtures). This smooth tradeoffNote that the RthR^{th} moment is sufficient to identify the parameters typically [BS10, MV10, FSO06]. is in contrast to the works of [AHK12, HK12, AGH+12], where they seem to get no additional advantage out of higher moments (larger than 33). Further, even when using third moments, [AHK12, HK12, AGH+12] only obtain polynomial identifiability when R≤nR\leq n, whereas we obtain polynomial identifiability till R=3n/2−1R=3n/2-1. On the other hand, since we argue about identifiability directly through uniqueness theorems for tensors, it allows us to handle larger values of RR.

We also mention work on PAC learning of mixtures of kk product distributions (see e.g. [FOS05, FSO06]) that typically run in exp⁡(k)poly(n)\exp(k)\text{poly}(n) time and produce a distribution that is statistically close to the underlying distribution – however they do not recover the actual mixture components themselves.

Some preliminaries and our results

We start with basic notation on tensors which we will use throughout the paper. We then state our results formally in these terms, and place them in context. In the process, we will see some intriguing properties of tensors (relevant to our results) which distinguish them from matrices.

where we use the notation ArA_{r} to denote the rrth column vector of matrix AA.

Third order tensors (or 33-tensors) play a central role in understanding properties of tensors in general (as in many other areas of mathematics, the jump in complexity occurs most dramatically when we go from two to three dimensions, in this case from matrices to 33-tensors). For 33-tensors, we will often write the decomposition as [A B C][A~{}B~{}C], where A,B,CA,B,C have dimensions nA,nB,nCn_{A},n_{B},n_{C} respectively.

We will sometimes write this as T1=εT2T_{1}=_{\varepsilon}T_{2}.

An n×Rn\times R matrix AA is said to be ρ\rho-bounded if each of the columns has length at most ρ\rho, for some parameter ρ\rho.

We next define the notion of Kruskal rank, and its robust counterpart.

Let AA be an n×Rn\times R matrix. The K-rank (or Kruskal rank) of AA is the largest kk for which every set of kk columns of AA are linearly independent.

Let τ\tau be a parameter. The τ\tau-robust k-rank is denoted by K-rankτ(A)\text{K-rank}_{\tau}(A), and is the largest kk for which every n×kn\times k sub-matrix A∣SA_{|S} of AA has σk(A∣S)≥1/τ\sigma_{k}(A_{|S})\geq 1/\tau.

Note that we only have a lower bound on the (kkth) smallest singular value of AA, and not for example the condition number σmax⁡/σk\sigma_{\max}/\sigma_{k}. This is because we will usually deal with matrices that are also ρ\rho-bounded, so such a bound will automatically hold, but our definition makes the notation a little cleaner. We also note that this is somewhat in the spirit of (but much weaker than) the Restricted Isometry Property (RIP) [CT05] from the Compressed Sensing literature.

Another simple linear algebra definition we use is the following

To avoid complications due to scaling, we will assume that our tensors are scaled such that all the τA,τB,…,\tau_{A},\tau_{B},\dots, are ≥1\geq 1 and ≤poly(n)\leq\text{poly}(n). So also, our upper bounds on lengths ρA,ρB,…\rho_{A},\rho_{B},\dots are all assumed to be between 11 and some poly(n)\text{poly}(n). This helps simplify the statements of our lemmas.

We will, in many places, encounter statements such as “if Q1≤εQ_{1}\leq\varepsilon, then Q2≤(3n2γ)⋅εQ_{2}\leq(3n^{2}\gamma)\cdot\varepsilon”, with polynomials ϑ\vartheta (in this case 3n2γ3n^{2}\gamma) involving the variables n,R,kA,kB,kC,τ,ρ,…n,R,k_{A},k_{B},k_{C},\tau,\rho,\dots. In order to keep track of these, we use the notation ϑ1,ϑ2,…\vartheta_{1},\vartheta_{2},\dots. Sometimes, to refer to a polynomial introduced in Lemma 3.11, for instance, we use ϑ3.11\vartheta_{3.11}. Unless specifically mentioned, they will be polynomials in the parameters mentioned above, so we do not mention them each time.

2 Our Results

We are now ready to formally state the results in our work. The first is a robust version of the uniqueness of decomposition for 33-tensors.

Suppose a rank-RR tensor T=[A B C]T=[A~{}B~{}C] is (ρA,ρB,ρC)(\rho_{A},\rho_{B},\rho_{C})-bounded, with K-rankτA(A)=kA,K-rankτB(B)=kB,K-rankτC(C)=kC\text{K-rank}_{\tau_{A}}(A)=k_{A},\text{K-rank}_{\tau_{B}}(B)=k_{B},\text{K-rank}_{\tau_{C}}(C)=k_{C} satisfying kA+kB+kC≥2R+2k_{A}+k_{B}+k_{C}\geq 2R+2. Then for every 0<ε′<10<\varepsilon^{\prime}<1, there exists

for some polynomial ϑ\refthm:unique3\vartheta_{\ref{thm:unique3}} such that for any other (ρA′,ρB′,ρC′)(\rho^{\prime}_{A},\rho^{\prime}_{B},\rho^{\prime}_{C})-bounded decomposition [A′ B′ C′][A^{\prime}~{}B^{\prime}~{}C^{\prime}] of rank RR that is ε\varepsilon-close to [A B C][A~{}B~{}C], there exists an (R×RR\times R) permutation matrix Π\Pi and diagonal matrices ΛA,ΛB,ΛC\Lambda_{A},\Lambda_{B},\Lambda_{C} such that

We remark that in order to prove the theorem, we did not make any assumptions about the Kruskal ranks of A′,B′,C′A^{\prime},B^{\prime},C^{\prime}. We simply assumed that they are bounded. This is an interesting feature of our proof, and is formalized in Lemma 3.4. Another observation: though we assumed that the decomposition [A′ B′ C′][A^{\prime}~{}B^{\prime}~{}C^{\prime}] is rank RR, we really need only an upper bound. This is because we can append zeroes and apply the theorem.

Our next result is a higher dimensional analogue of the above.

Since finding a small rank decomposition of a tensor is of great practical interest as we have seen, it is natural to ask if it is possible to compute it efficiently. We can prove:

Suppose TT is a 33-tensor which has an (unknown) ρ\rho-bounded representation [A B C][A~{}B~{}C], where A,B,CA,B,C have dimensions nA×R,nB×Rn_{A}\times R,n_{B}\times R and nC×Rn_{C}\times R respectively, for some parameter ρ\rho. Then, given a tensor T′T^{\prime} which is ε\varepsilon-close to TT, we can find a rank-RR tensor T′′T^{\prime\prime} (along with its decomposition) which is 5ε5\varepsilon close to TT in time poly(nA,nB,nC)⋅exp⁡(R2log⁡(Rρ/ε))\text{poly}(n_{A},n_{B},n_{C})\cdot\exp(R^{2}\log(R\rho/\varepsilon)).

We can view the above as an approximation algorithm for the low-rank approximation problem for tensors. We will expound on this viewpoint in Section 4. We also note that although our algorithm is quite simple, it has a running time better than simply trying to guess the 3R3R vectors in the decomposition. The latter typically takes time exp⁡(R(nA+nB+nC))\exp(R(n_{A}+n_{B}+n_{C})), which could be much worse than our bound for small values of RR (which is when the low rank approximation problem is typically interesting).

As we mentioned before, the algorithm does not need the promised decomposition [A B C][A~{}B~{}C] to have large K-rank . However, if we are guaranteed that it has additional well-conditioned properties (for e.g., the sum of K-rank of A,B,CA,B,C is ≥2R+2\geq 2R+2), then Theorem 2.7 guarantees that the algorithm finds this particular decomposition (up to a small error).

Also, the algorithm extends naturally to higher dimensional tensors: we state this version in Section 4, Theorem 4.5.

Finally, we show how the above results on tensor decompositions can be used to learn latent variable models with polynomial samples, hence showing polynomial identifiability under some weak conditions involving the K-rank of the matrices. We first show polynomial identifiability for the Multi-view mixture model, which captures various latent variable models that are used commonly.

For each mixture r∈[R]r\in[R], the mixture weight wr>γw_{r}>\gamma.

Polynomial identifiability of the Multi-view mixture model also leads to polynomial identifiability of other latent variable models like topic models and HMMs. The following corollary shows that Hidden Markov models can be learned from polynomial many samples by observing constant number of consecutive time steps under mild conditions involving the K-rank (the constant depends on the exact K-rank condition). Please refer to section 5 to see the implications for other latent variable and mixture models like topic models, mixtures of gaussians etc.

Corollary 5.5 (Polynomial Identifiability of Hidden Markov models). The following statement holds for any constant δ>0\delta>0. Suppose we are given a Hidden Markov model with parameters as follows :

The stationary distribution {wr}r∈[R]\{w_{r}\}_{r\in[R]} has ∀r∈[R] wr>γ1\forall r\in[R]~{}w_{r}>\gamma_{1},

The observation matrix MM has K-rankτ(M)≥k≥δR\text{K-rank}_{\tau}(M)\geq k\geq\delta R,

The transition matrix PP has minimum singular value σR(P)≥γ2\sigma_{R}(P)\geq\gamma_{2},

Further, this algorithm runs in time nOδ(R2log⁡(1ηγ1))(n⋅τγ1γ2)Oδ(1)n^{O_{\delta}(R^{2}\log(\frac{1}{\eta\gamma_{1}}))}\left(n\cdot\frac{\tau}{\gamma_{1}\gamma_{2}}\right)^{O_{\delta}(1)} time.

Note that the above results shows polynomial identifiability (for constant δ>0\delta>0), and additionally gives an algorithm which takes time nOδ(R2)poly(n,τ,R)n^{O_{\delta}(R^{2})}\text{poly}(n,\tau,R) for inverse polynomial error. To the best of our knowledge such algorithmic results with only a polynomial dependence on nn were not known for learning HMMs and topic models.

3 Auxiliary lemmas

In our proofs we will require several simple (mostly elementary linear algebra) lemmas. The Section A is a medley of such lemmas. Most of the proofs are reasonably straightforward, and thus we place them in the Appendix.

Uniqueness of Tensor Decompositions

First we consider third order tensors and prove Theorem 2.6 (Sections 3.1 and 3.2). Our proof broadly follows along the lines of Kruskal’s original proof of the uniqueness theorem [Kru77]. The key ingredient, which is a robust version of the so-called permutation lemma is presented in Section 3.3, since it seems interesting its own right. Finally we will see how to reduce the case of higher order tensors, i.e. Theorem 2.7, to that of third order tensors (Section 3.4).

The proof of Theorem 2.6 broadly has two parts. First, we prove that if [A,B,C]=[A′,B′,C′][A,B,C]=[A^{\prime},B^{\prime},C^{\prime}], then AA is a permutation of A′A^{\prime}, BB of B′B^{\prime}, and CC of C′C^{\prime}. Second, we prove that the permutations in the (three) different “modes” (or dimensions) are indeed equal. Let us begin by describing a lemma which is key to the first step.

This is the core of Kruskal’s argument for the uniqueness of tensor decompositions. Given two matrices XX and YY, how does one conclude that the columns are permutations of each other? Kruskal gives a very clever sufficient condition, involving looking at test vectors ww, and considering the number of non-zero entries of wTXw^{T}X and wTYw^{T}Y. The intuition is that if XX and YY are indeed permutations, these numbers are precisely equal for all ww.

Kruskal proves that if this sufficient condition holds, then XX and YY must have columns which are permutations of each other, up to scaling. More precisely, suppose X,YX,Y are n×Rn\times R matrices of rank kk. Let nz(x)nz(x) denote the number of non-zero entries in a vector xx. The lemma then states that if for all ww, we have

then the matrices XX and YY have columns which are permutations of each other up to a scaling. That is, there exists an R×RR\times R permutation matrix Π\Pi, and a diagonal matrix Λ\Lambda s.t. Y=XΠΛY=X\Pi\Lambda.

We prove a robust version of this lemma, stated as follows (recall the definition of nzε(.)nz_{\varepsilon}(.), Section 2)

Suppose X,YX,Y are ρ\rho-bounded n×Rn\times R matrices such that K-rankτ(X)\text{K-rank}_{\tau}(X) and K-rankτ(Y)\text{K-rank}_{\tau}(Y) are ≥k\geq k, for some integer k≥2k\geq 2. Further, suppose that for ε<1/ϑ\reflem:permutation−poly\varepsilon<1/\vartheta_{\ref{lem:permutation-poly}}, the matrices satisfy:

then there exists an R×RR\times R permutation matrix Π\Pi, and a diagonal matrix Λ\Lambda s.t. XX and YY satisfy ∥X−YΠΛ∥F<ϑ\reflem:permutation−poly⋅ε\left\|X-Y\Pi\Lambda\right\|_{F}<\vartheta_{\ref{lem:permutation-poly}}\cdot\varepsilon. In fact, we can pick ϑ\reflem:permutation−poly:=(nR2)ϑ\reflem:key−intersection\vartheta_{\ref{lem:permutation-poly}}:=(nR^{2})\vartheta_{\ref{lem:key-intersection}}.

In the remainder of this section, we will prove that A′A^{\prime} is a permutation of AA, B′B^{\prime} of BB and C′C^{\prime} of CC. We do this by assuming Lemma 3.1 for now (it will be proved in Section 3.3) and proving that if [A B C]=ε[A′ B′ C′][A~{}B~{}C]=_{\varepsilon}[A^{\prime}~{}B^{\prime}~{}C^{\prime}], then the conditions of the lemma hold for C′,CC^{\prime},C as X,YX,Y in the statement respectively. We can repeat this argument with A,BA,B to obtain the conclusion.

We now state the key technical lemma which allows us to verify that the hypotheses of Lemma 3.1 hold. It says for any kC−1k_{C}-1 vectors of C′C^{\prime} there are at least as many columns of CC which are close to the span of the chosen columns from C′C^{\prime}.

Suppose A,B,C,A′,B′,C′A,B,C,A^{\prime},B^{\prime},C^{\prime} satisfy the conditions of Theorem 2.6, and suppose [A B C]=ε[A′ B′ C′][A~{}B~{}C]=_{\varepsilon}[A^{\prime}~{}B^{\prime}~{}C^{\prime}]. Then for any unit vector xx, we have

for ε′′=ϑ\reflem:perm:conditions⋅(ε+ε′)\varepsilon^{\prime\prime}=\vartheta_{\ref{lem:perm:conditions}}\cdot(\varepsilon+\varepsilon^{\prime}), where ϑ\reflem:perm:conditions:=4R3(τAτBτC)2ρAρBρC(ρA′ρB′ρC′)2\vartheta_{\ref{lem:perm:conditions}}:=4R^{3}(\tau_{A}\tau_{B}\tau_{C})^{2}\rho_{A}\rho_{B}\rho_{C}(\rho^{\prime}_{A}\rho^{\prime}_{B}\rho^{\prime}_{C})^{2}.

This lemma, together with its corollary Lemma 3.4 will imply the conditions of the permutation lemma. Lemma 3.4 lets us conclude that K-rankτϑ(C′)≥K-rankτ(C)\text{K-rank}_{\tau\vartheta}(C^{\prime})\geq\text{K-rank}_{\tau}(C) for some error polynomial ϑ\vartheta, which is essential in our proof of the permutation lemma. It also has other implications, as we will see. While the proof of the robust permutation lemma (Lemma 3.1) will directly apply this Lemma with ε′=0\varepsilon^{\prime}=0, we will need the ε′>0\varepsilon^{\prime}>0 case for establishing Lemma 3.4.

W.l.o.g., we may assume that kA≥kBk_{A}\geq k_{B} (the proof for kA<kBk_{A}<k_{B} will follow along the same lines). For convenience, let us define α\alpha to be the vector xTCx^{T}C, and β\beta the vector xTC′x^{T}C^{\prime}. Let tt be the number of entries of β\beta of magnitude >ε′>\varepsilon^{\prime}. The assumption of the lemma implies that t≤R−kC+1t\leq R-k_{C}+1. Now from (9), we have

where ZZ is an error matrix satisfying ∥Z∥F≤ε\left\|Z\right\|_{F}\leq\varepsilon. Now, since the RHS has at most tt terms with ∣βi∣>ε′|\beta_{i}|>\varepsilon^{\prime}, we have that σt+1\sigma_{t+1} of the LHS is at most RρA′ρB′ε′+εR\rho_{A}^{\prime}\rho_{B}^{\prime}\varepsilon^{\prime}+\varepsilon. Using the value of tt, we obtain

We will now show that if xTCx^{T}C has too many co-ordinates which are larger than ε′′\varepsilon^{\prime\prime} then we will contradict (11). One tricky case we need to handle is the following: while each of these non-negligible co-ordinates of xTCx^{T}C will give rise to a large rank-11 term, they can be canceled out by combinations of the rank-11 terms corresponding to entries of xTCx^{T}C which are slightly smaller than ε′′\varepsilon^{\prime\prime}. Hence, we will also set a smaller threshold δ\delta and first handle the case when there are many co-ordinates in xTCx^{T}C which are larger than δ\delta. δ\delta is chosen so that the terms with (xTC)i<δ(x^{T}C)_{i}<\delta can not cancel out any of the large terms ((xTC)i≥ε′′(x^{T}C)_{i}\geq\varepsilon^{\prime\prime}).

Define S1={i:∣(xTC)i∣>ε′′}S_{1}=\{i:|(x^{T}C)_{i}|>\varepsilon^{\prime\prime}\} and S2={i:∣(xTC)i∣>δ}S_{2}=\{i:|(x^{T}C)_{i}|>\delta\}, where δ=ε′′/ϑ\delta=\varepsilon^{\prime\prime}/\vartheta for some error polynomial ϑ=2R2ρAρBρCρA′ρB′ρC′τAτBτC\vartheta=2R^{2}\rho_{A}\rho_{B}\rho_{C}\rho_{A}^{\prime}\rho_{B}^{\prime}\rho_{C}^{\prime}\tau_{A}\tau_{B}\tau_{C} (which is always >1>1). Thus we have S1⊆S2S_{1}\subseteq S_{2}. We consider two cases.

In this case we will give a lower bound on σR−kC+2(M)\sigma_{R-k_{C}+2}(M), which gives a contradiction to (11). The intuition is roughly that A,BA,B have kA,kBk_{A},k_{B} large singular values, and thus the product should have enough large ones as well. To formalize this, we use the following well-known fact about singular values of products, which is proved by considering the variational characterization of singular values:

Thus we only need to show the two inequalities above. The latter is easy, because by the hypothesis we have 2R+2−kB−kC≤kA2R+2-k_{B}-k_{C}\leq k_{A}, and we know that σkA(A)≥1/τA\sigma_{k_{A}}(A)\geq 1/\tau_{A}, by the definition of K-rankτA(A)\text{K-rank}_{\tau_{A}}(A). Thus it remains to prove the second inequality. To see this, let J⊂S2J\subset S_{2} of size kBk_{B}. Let BJTB^{T}_{J} and QJQ_{J} be the submatrices of BTB^{T} and QQ restricted to rows of JJ. Thus we have QJ=diag(α)JBJTQ_{J}=\text{diag}(\alpha)_{J}B^{T}_{J}. Because of the Kruskal condition, every kBk_{B} sized sub matrix of BB is well-conditioned, and thus σkB(BJ)=σkB(BJT)≥1/τB\sigma_{k_{B}}(B_{J})=\sigma_{k_{B}}(B^{T}_{J})\geq 1/\tau_{B}.

Finally, since QQ is essentially QJQ_{J} along with additional rows, we have στB(Q)≥στB(QJ)≥δ/τB\sigma_{\tau_{B}}(Q)\geq\sigma_{\tau_{B}}(Q_{J})\geq\delta/\tau_{B}. From the argument earlier, we obtain a contradiction in this case.

Roughly, by defining S1,S2S_{1},S_{2}, we have divided the coefficients αi\alpha_{i} into large (≥ε′′\geq\varepsilon^{\prime\prime}), small, and tiny (<δ<\delta). In this case, we have that the number of large and small terms together (in MM, see Eq. (10)) is at most kBk_{B}. For contradiction, we can assume the number of large ones is ≥t+1\geq t+1, since we are done otherwise. The aim is to now prove that this implies a lower bound on σt+1(M)\sigma_{t+1}(M), which gives a contradiction to Eq. (11).

Now let us define M′=∑i∈S2αi(Ai⊗Bi)M^{\prime}=\sum_{i\in S_{2}}\alpha_{i}(A_{i}\otimes B_{i}). Thus MM and M′M^{\prime} are equal up to tiny terms. Further, let Π\Pi be the matrix which projects a vector onto the span of {Bi′ : ∣βi∣≥ε′}\{B_{i}^{\prime}~{}:~{}|\beta_{i}|\geq\varepsilon^{\prime}\}, i.e., the span of the columns of B′B^{\prime} which correspond to ∣βi∣≥ε′|\beta_{i}|\geq\varepsilon^{\prime}. Because there are at most tt such βi\beta_{i}, this is a space of dimension ≤t\leq t. Thus we can rewrite Eq. (10) as

where we assumed w.l.o.g. that ∣βi∣≥ε′|\beta_{i}|\geq\varepsilon^{\prime} for i∈[t]i\in[t], and ErrErr is an error matrix of Frobenius norm at most ε+R(ρAρBδ+ρA′ρB′ε′)≤ε+(RρAρBρA′ρB′)(δ+ε′)\varepsilon+R(\rho_{A}\rho_{B}\delta+\rho_{A}^{\prime}\rho_{B}^{\prime}\varepsilon^{\prime})\leq\varepsilon+(R\rho_{A}\rho_{B}\rho_{A}^{\prime}\rho_{B}^{\prime})(\delta+\varepsilon^{\prime}).

Now because ∣S1∣≥t+1|S_{1}|\geq t+1, and K-rankτB(B)≥kB≥t+1\text{K-rank}_{\tau_{B}}(B)\geq k_{B}\geq t+1, there must be one vector among the BiB_{i}, i∈S1i\in S_{1}, which has a reasonably large projection orthogonal to the span above, i.e., which satisfies

Let us pick a unit vector yy along Bi−ΠBiB_{i}-\Pi B_{i}. Consider the equality (13) and multiply by yy on both sides. We obtain

Thus we have a combination of the AiA_{i}’s, with at least one coefficient being >ε′′/(RτB)>\varepsilon^{\prime\prime}/(R\tau_{B}), having a magnitude at most ∥(Err)y∥2<ϑ1(δ+ε′+ε)\left\|(Err)y\right\|_{2}<\vartheta_{1}(\delta+\varepsilon^{\prime}+\varepsilon), where ϑ1\vartheta_{1} was specified above. Now kA≥kB≥∣S2∣k_{A}\geq k_{B}\geq|S_{2}|. So, we obtain a contradiction by Lemma A.1 since:

The last inequality follows because ϑ=2R2ρAρBρCρA′ρB′ρC′τAτBτC\vartheta=2R^{2}\rho_{A}\rho_{B}\rho_{C}\rho_{A}^{\prime}\rho_{B}^{\prime}\rho_{C}^{\prime}\tau_{A}\tau_{B}\tau_{C}. This completes the proof in this case, hence concluding the proof of the lemma. ∎

The next lemma uses the above to conclude that K-rankϑτ(C′)≥K-rankτ(C)\text{K-rank}_{\vartheta\tau}(C^{\prime})\geq\text{K-rank}_{\tau}(C), for some polynomial ϑ\vartheta.

Let A,B,C,A′,B′,C′A,B,C,A^{\prime},B^{\prime},C^{\prime} be as in the setting of Theorem 2.6. Suppose [A B C]=ε[A′ B′ C′][A~{}B~{}C]=_{\varepsilon}[A^{\prime}~{}B^{\prime}~{}C^{\prime}], with

Then A′,B′,C′A^{\prime},B^{\prime},C^{\prime} have K-rankτ′\text{K-rank}_{\tau^{\prime}} to be at least kA,kB,kCk_{A},k_{B},k_{C} respectively, where τ′:=ϑ\reflem:conditioned\tau^{\prime}:=\vartheta_{\ref{lem:conditioned}}.

The lemma implies that if TT has a well-conditioned decomposition which satisfies the Kruskal conditions, then any other bounded decomposition which is a sufficiently good approximation should also be reasonably well-conditioned. Further, it says that the decomposition [A′ B′ C′][A^{\prime}~{}B^{\prime}~{}C^{\prime}] can not be of rank <R<R. Otherwise, we could add some zero-columns to each of A′,B′,C′A^{\prime},B^{\prime},C^{\prime} and apply this lemma to conclude K-rank of A′A^{\prime} is ≥2\geq 2, a contradiction if there exists a zero column.

By symmetry, let us just show this for matrix C′C^{\prime} (dimensions n×Rn\times R), and let k=kCk=k_{C} for convenience. We need to show that every nn-by-kk submatrix of C′C^{\prime} has minimum singular value ≥δ=1/τC′\geq\delta=1/\tau^{\prime}_{C}.

For contradiction let CS′C^{\prime}_{S} be the submatrix corresponding to the columns in SS (∣S∣=k|S|=k), such that σk(CS′)<δ\sigma_{k}(C^{\prime}_{S})<\delta. Let us consider a left singular vector zz which corresponds to σk(CS′)\sigma_{k}(C^{\prime}_{S}), and suppose zz is normalized to be unit length. Then we have

Thus ∣⟨z,Ci′⟩∣<δ|\left\langle z,C^{\prime}_{i}\right\rangle|<\delta for all i∈Si\in S, so we have nzδ(zTC′)≤n−knz_{\delta}(z^{T}C^{\prime})\leq n-k. Now from Lemma 3.2, we have

Let JJ denote the set of indices in zTCz^{T}C which are <ε1<\varepsilon_{1} in magnitude (by the above, we have ∣J∣≥k|J|\geq k). Thus we have ∥zCJ∥2<Rε1\left\|zC_{J}\right\|_{2}<R\varepsilon_{1}, which leads to a contradiction if we have K-rank1/(Rε1)(C)≥k\text{K-rank}_{1/(R\varepsilon_{1})}(C)\geq k.

Since this is true for our choice of parameters, the claim follows. ∎

Once we have the lemmas above, let us check that the conditions of the robust permutation lemma hold with C′,CC^{\prime},C taking the roles of X,YX,Y in Lemma 3.1, and k=kCk=k_{C}, and τ=ϑ\reflem:conditioned⋅τC\tau=\vartheta_{\ref{lem:conditioned}}\cdot\tau_{C}. From Lemma 3.4, it follows that K-rankτ(C)\text{K-rank}_{\tau}(C) and K-rankτ(C′)\text{K-rank}_{\tau}(C^{\prime}) are both ≥k\geq k, and setting ε′=0\varepsilon^{\prime}=0 in Lemma 3.2, the other condition of Lemma 3.1 holds. Thus we can conclude that there exists a permutation matrix ΠC\Pi_{C} and a diagonal matrix of scalars ΛC\Lambda_{C} such that ∥C′−CΠCΛC∥F\left\|C^{\prime}-C\Pi_{C}\Lambda_{C}\right\|_{F} is small. We will see the quantitative details in what follows.

2 Wrapping up the proof

We are now ready to complete the robust Kruskal’s theorem. From what we saw above, the main part that remains is to prove that the permutations in the various dimensions are equal.

Suppose we are given an ε′<1\varepsilon^{\prime}<1 as in the statement of the theorem. For a moment, suppose ε\varepsilon is small enough, and A,B,C,A′,B′,C′A,B,C,A^{\prime},B^{\prime},C^{\prime} satisfying the conditions of the theorem produce tensors which are ε\varepsilon-close.

From the hypothesis, note that kA,kB,kC≥2k_{A},k_{B},k_{C}\geq 2 (since kA,kB,kC≤Rk_{A},k_{B},k_{C}\leq R, and kA+kB+kC≥2R+2k_{A}+k_{B}+k_{C}\geq 2R+2). Thus from the Lemmas 3.4 and 3.2 (setting ε′=0\varepsilon^{\prime}=0), we obtain that C,C′C,C^{\prime} satisfy the hypothesis of the Robust permutation lemma (Lemma 3.1) with C′,CC^{\prime},C set to X,YX,Y respectively, and the parameters

Hence, we apply Lemma 3.1 to AA,BB and CC, and get that there exists permutation matrices ΠA\Pi_{A}, ΠB\Pi_{B} and ΠC\Pi_{C} and scalar matrix ΛA,ΛB,ΛC\Lambda_{A},\Lambda_{B},\Lambda_{C} such that for ε2=ϑ\reflem:permutation−polyϑ\reflem:perm:conditions⋅ε\varepsilon_{2}=\vartheta_{\ref{lem:permutation-poly}}\vartheta_{\ref{lem:perm:conditions}}\cdot\varepsilon,

We now need to prove that these three permutations are in fact identical, and that the scalings multiply to the identity (up to small error).

Let us assume for contradiction that ΠA≠ΠB\Pi_{A}\neq\Pi_{B}. We will use an index where the permutations disagree to obtain a contradiction to the assumptions on the K-rank .

For notational convenience, let πA:[R]→[R]\pi_{A}:[R]\rightarrow[R] correspond to the permutation given by ΠA\Pi_{A}, with πA(r)\pi_{A}(r) being the column that Ar′A^{\prime}_{r} maps to. Permutation πB:[R]→[R]\pi_{B}:[R]\rightarrow[R] similarly corresponds to ΠB\Pi_{B}. Using (14) for AA we have

By a similar argument, and using triangle inequality ( along with ε2≤1≤ρB′\varepsilon_{2}\leq 1\leq\rho^{\prime}_{B}) we get

Let us take linear combinations given by unit vectors vv and ww, of the given tensor T=[A B C]T=[A~{}B~{}C] along the first and second dimensions. By combining the above inequality along with the fact that the two decompositions are ε\varepsilon-close i.e. ∥∑r∈[R]Ar⊗Br⊗Cr−Ar′⊗Br′⊗Cr′∥F≤ε\left\|\sum_{r\in[R]}A_{r}\otimes B_{r}\otimes C_{r}-A^{\prime}_{r}\otimes B^{\prime}_{r}\otimes C^{\prime}_{r}\right\|_{F}\leq\varepsilon, we have

Note that the ε\varepsilon term above is negligible compared to the second term involving ε2\varepsilon_{2}. We know that πA≠πB\pi_{A}\neq\pi_{B}, so there exist s≠t∈[R]s\neq t\in[R] such that r∗=πA(s)=πB(t)r^{*}=\pi_{A}(s)=\pi_{B}(t). We will now use this r∗r^{*} to pick vv and ww carefully so that the vector Z′Z^{\prime} is negligible while ZZ is large. We partition [R][R] into V,WV,W with ∣V∣=kA−1|V|=k_{A}-1 and ∣W∣≤kB−1|W|\leq k_{B}-1, so that πA(t)∈V\pi_{A}(t)\in V and πB(s)∈W\pi_{B}(s)\in W and for each r∈[R]−{s,t}r\in[R]-\{s,t\}, either πA(r)∈V\pi_{A}(r)\in V or πB(r)∈W\pi_{B}(r)\in W. Such a partitioning is possible since R≤kA+kB−2R\leq k_{A}+k_{B}-2.

Let V=span⁡(V){\cal{V}}=\operatorname{span}(V) and W=span⁡(W){\cal{W}}=\operatorname{span}(W). We know that r∗=πA(s)∉Sr^{*}=\pi_{A}(s)\notin S and r∗=πA(t)∉Tr^{*}=\pi_{A}(t)\notin T. Hence, pick vv as unit vector along ΠV⊥Ar∗\Pi^{\perp}_{\cal{V}}A_{r^{*}} and ww as unit vector along ΠW⊥Br∗\Pi^{\perp}_{\cal{W}}B_{r^{*}}. By this choice, we ensure that Z′=0Z^{\prime}=0 (since v⊥Vv\perp{\cal{V}} and w⊥Ww\perp{\cal{W}}).

However, K-rankτA(A)≥kA\text{K-rank}_{\tau_{A}}(A)\geq k_{A} and K-rankτB(B)≥kB\text{K-rank}_{\tau_{B}}(B)\geq k_{B}, so ⟨v,Ar∗⟩⟨w,Br∗⟩≥1/τAτB\left\langle v,A_{r^{*}}\right\rangle\left\langle w,B_{r^{*}}\right\rangle\geq 1/\tau_{A}\tau_{B} (by Lemma A.2). Further, ∣V∣=kA−1|V|=k_{A}-1 implies that at most R−kA+1≤kC−1R-k_{A}+1\leq k_{C}-1 terms of ZZ is non-zero.

Further, ∣βr∗∣≥(τAτB)−1|\beta_{r^{*}}|\geq(\tau_{A}\tau_{B})^{-1}, and since K-rankτC(C)=kC≥R−∣V∣+1\text{K-rank}_{\tau_{C}}(C)=k_{C}\geq R-|V|+1, we have a contradiction if ε3<(τAτBτC)−1\varepsilon_{3}<(\tau_{A}\tau_{B}\tau_{C})^{-1} due to Lemma A.2. This will be true for our choice of parameters. Hence ΠA=ΠB\Pi_{A}=\Pi_{B}, and similarly ΠA=ΠC\Pi_{A}=\Pi_{C}. Let us denote Π=ΠA=ΠB=ΠC\Pi=\Pi_{A}=\Pi_{B}=\Pi_{C}. In the remainder, we assume Π\Pi is the identity, since this is without loss of generality.

To show ΛAΛBΛC=ε′IR\Lambda_{A}\Lambda_{B}\Lambda_{C}=_{\varepsilon^{\prime}}I_{R}:

Let us denote βi=λA(i)λB(i)λC(i)\beta_{i}=\lambda_{A}(i)\lambda_{B}(i)\lambda_{C}(i). From (14) and triangle inequality, we have as before

Combining this with the fact that the decompositions are ε\varepsilon-close we get

By taking linear combinations given by unit vectors x,yx,y along the first two dimensions (i.e. xAxA and yByB) we have

We will show each βr\beta_{r} is negligible. Since R+2≤kA+kBR+2\leq k_{A}+k_{B}, let S,W⊆[R]−{r}S,W\subseteq[R]-\{r\} be disjoint sets of indices not containing rr, such that ∣S∣=kA−1|S|=k_{A}-1 and ∣W∣≤kB−1|W|\leq k_{B}-1. Let S=span⁡({Aj:j∈S}){\cal{S}}=\operatorname{span}(\{A_{j}:j\in S\}) and W=span⁡({Bj:j∈W}){\cal{W}}=\operatorname{span}(\{B_{j}:j\in W\}). Let xx and yy be unit vectors along ΠS⊥Ar\Pi^{\perp}_{\cal{S}}A_{r} and ΠW⊥Br\Pi^{\perp}_{\cal{W}}B_{r} respectively.

Since K-rankτA(A)≥kA\text{K-rank}_{\tau_{A}}(A)\geq k_{A} and K-rankτB(B)≥kB\text{K-rank}_{\tau_{B}}(B)\geq k_{B}, we have that ∥ΠS⊥Ar∥≥1/τA\left\|\Pi^{\perp}_{\cal{S}}A_{r}\right\|\geq 1/\tau_{A} (similarly for BrB_{r}). Hence, from Lemma A.2

Thus, ∥ΛAΛBΛC−I∥≤ε4τAτBτC≤ε′\left\|\Lambda_{A}\Lambda_{B}\Lambda_{C}-I\right\|\leq\varepsilon_{4}\tau_{A}\tau_{B}\tau_{C}\leq\varepsilon^{\prime} (our choice of ε\varepsilon will ensure this). This implies the theorem.

Let us now set the ε\varepsilon for the above to hold (note that ϑ\reflem:permutation−poly\vartheta_{\ref{lem:permutation-poly}} involves a τ\tau term which depends on ϑ\reflem:conditioned\vartheta_{\ref{lem:conditioned}})

which can easily be seen to be of the form in the statement of the theorem. This completes the proof. ∎

3 A Robust Permutation Lemma

Let us now prove the robust version of the permutation lemma (Lemma 3.1). Recall that K-rankτ(X)\text{K-rank}_{\tau}(X) and K-rankτ(Y)\text{K-rank}_{\tau}(Y) are ≥k\geq k, and that the matrices X,YX,Y are n×Rn\times R.

Kruskal’s proof of the permutation lemma proceeds by induction. Roughly, he considers the span of some set of ii columns of XX (for i<ki<k), and proves that there exist at least ii columns of YY which lie in this span. The hypothesis of his lemma implies this for i=k−1i=k-1, and the proof proceeds by downward induction. Note that i=1i=1 implies for every column of XX, there is at least one column of YY in its span. Since no two columns of XX are parallel, and the number of columns is equal in X,YX,Y, there must be precisely one column, and this completes the proof.

A natural way to mimic this proof is to say: for each set of ii columns in XX, there exist a set of at least ii columns in YY which are εi\varepsilon_{i} close to the span of the chosen columns in XX. The difficulty with this is that we lose a factor of τn\tau n in each iteration, i.e., if the statement was true for i+1i+1 with error εi+1\varepsilon_{i+1}, it will be true for ii with error εi=τn⋅εi+1\varepsilon_{i}=\tau n\cdot\varepsilon_{i+1}. This means that to obtain a small error at the end, we should have started off with error <1/(τn)k<1/(\tau n)^{k}, which is exponentially small. Thus we need a more tricky inductive statement and additional observations (including Lemma 3.4) to overcome this issue.

We start by introducing some notation. If VV is a matrix and SS a subset of the columns, we denote by span⁡(VS)\operatorname{span}(V_{S}) the span of the columns of VV indexed by SS. The next two lemmas are crucial to the analysis.

W.l.o.g., let us suppose B={1,…,q}B=\{1,\dots,q\}. Also, let xjx_{j} denote the jjth column of XX. From the hypothesis, we can write:

where ui∈span⁡(XA)u_{i}\in\operatorname{span}(X_{A}) and ziz_{i} are the error vectors, which by hypothesis satisfy ∥zi∥2<ε\left\|z_{i}\right\|_{2}<\varepsilon. We will use the fact that ∣A∣+∣B∣≤k|A|+|B|\leq k to conclude that each αij\alpha_{ij} is tiny. This then implies the desired conclusion.

By equating the first and iith equations (i≥2i\geq 2), we obtain

Thus we have a combination of the vectors xix_{i} being equal to zi−z1z_{i}-z_{1}, which by hypothesis is small: ∥zi−z1∥2≤2ε\left\|z_{i}-z_{1}\right\|_{2}\leq 2\varepsilon. Now the key is to observe that the coefficient of xix_{i} is precisely α1i\alpha_{1i}, because it is zero in the iith equation. Thus by Lemma A.1 (since K-rankτ(X)≥k\text{K-rank}_{\tau}(X)\geq k), we have that ∣α1i∣≤2τε|\alpha_{1i}|\leq 2\tau\varepsilon.

Since we have this for all ii, we can use the first equation to conclude that

The last inequality is because q<nq<n, and this completes the proof. ∎

A counting argument lies at the core of the inductive proof. We present it in terms of sunflower set systems, since it allows for a clean presentation.

A set system F{\cal{F}} is said to be a “sunflower on [R][R] with core T∗T^{*}” if F⊆2[R]{\cal{F}}\subseteq 2^{[R]}, and for any F1,F2∈FF_{1},F_{2}\in\cal{F}, we have F1∩F2∈T∗F_{1}\cap F_{2}\in T^{*}.

Let {T1,T2,…,Tq}\{T_{1},T_{2},\dots,T_{q}\}, q≥2q\geq 2, be a sunflower on [R][R] with core T∗T^{*}, and suppose ∣T1∣+∣T2∣+⋯+∣Tq∣≥R+(q−1)θ|T_{1}|+|T_{2}|+\dots+|T_{q}|\geq R+(q-1)\theta, for some θ\theta. Then we have ∣T∗∣≥θ|T^{*}|\geq\theta, and furthermore, equality occurs iff T∗⊆TiT^{*}\subseteq T_{i} for all 1≤i≤q1\leq i\leq q.

The proof is by a counting argument. By the sunflower structure, each TiT_{i} has some intersection with T∗T^{*}, and some elements which do not belong to Ti′T_{i^{\prime}} for any i′≠ii^{\prime}\neq i. Call the number of elements of the latter kind tit_{i}. Then we must have

Now since all Ti⊆[R]T_{i}\subseteq[R], we have

as desired. For equality to occur, we must have equality in each of the places above, in particular, we must have ∣Ti∩T∗∣=∣T∗∣|T_{i}\cap T^{*}|=|T^{*}| for all ii, which implies T∗⊆TiT^{*}\subseteq T_{i} for all ii. ∎

Finally, we introduce a bit more notation before getting to the proof. For S⊆[R]S\subseteq[R] of size (k−1)(k-1), we define TST_{S} to be the set of indices corresponding to columns of YY which are ε1\varepsilon_{1}-close to span⁡(XS)\operatorname{span}(X_{S}), where ε1:=(nR)ε\varepsilon_{1}:=(nR)\varepsilon, and ε\varepsilon is as defined in the statement of Lemma 3.1. For smaller sets SS, we define:

With the above lemmas in place, we can prove Lemma 3.1.

We first prove the following claim by induction:

Claim. For every S⊆[R]S\subseteq[R] of size ≤(k−1)\leq(k-1), we have ∣TS∣=∣S∣|T_{S}|=|S|.

We do this by downward induction on ∣S∣|S|. For ∣S∣=k−1|S|=k-1, the hypothesis of the theorem implies that ∣TS∣≥k−1|T_{S}|\geq k-1. To see this, let VV be the (n−k+1)(n-k+1) dimensional space orthogonal to the span of XSX_{S}, and let tt be the number of columns of YY which have a projection >ε1>\varepsilon_{1} onto VV. From Lemma A.3 (applied to the projections to VV), there is a unit vector w∈Vw\in V with dot-product of magnitude >ε1/Rn=ε>\varepsilon_{1}/Rn=\varepsilon with each of the tt columns. From the hypothesis, since w∈Vw\in V (  ⟹  nz(wTX)≤R−k+1\implies nz(w^{T}X)\leq R-k+1), we have t≤R−k+1t\leq R-k+1. Thus at least (k−1)(k-1) of the columns are ε1\varepsilon_{1}-close to span⁡(XS)\operatorname{span}(X_{S}). Now since K-rankτ(Y)≥k\text{K-rank}_{\tau}(Y)\geq k, it follows that kk columns of YY cannot be ε1\varepsilon_{1}-close the (k−1)(k-1)-dimensional space span⁡(XS)\operatorname{span}(X_{S}) (Lemma A.2). Thus ∣TS∣=k−1|T_{S}|=k-1.

Now consider some SS of size ∣S∣≤k−2|S|\leq k-2. W.l.o.g., we may suppose it is {R−∣S∣+1,…,R}\{R-|S|+1,\dots,R\}. Let WiW_{i} denote TS∪{i}T_{S\cup\{i\}}, for 1≤i≤R−∣S∣1\leq i\leq R-|S|, and let us write q=R−∣S∣q=R-|S|. By the inductive hypothesis, ∣Wi∣≥∣S∣+1|W_{i}|\geq|S|+1 for all ii.

Let us define T∗T^{*} to be the set of indices of the columns of YY which are ε1⋅ϑ\reflem:key−intersection\varepsilon_{1}\cdot\vartheta_{\ref{lem:key-intersection}}-close to span⁡(XS)\operatorname{span}(X_{S}). We claim that Wi∩Wj⊆T∗W_{i}\cap W_{j}\subseteq T^{*} for any i≠ji\neq j. This can be seen as follows: first note that Wi∩WjW_{i}\cap W_{j} is contained in the intersection of TS′T_{S^{\prime}}, where the intersection is over S′S^{\prime} such that ∣S′∣=k−1|S^{\prime}|=k-1, and S′S^{\prime} contains either ii or jj. Now consider any k−∣S∣k-|S| element set BB which contains both i,ji,j (note ∣S∣≤k−2|S|\leq k-2). The intersection above includes sets which contain SS along with all of BB except the rrth element (indexed arbitrarily), for each rr. Thus by Lemma 3.5, we have that Wi∩Wj⊆T∗W_{i}\cap W_{j}\subseteq T^{*}.

Thus the sets {W1,…,Wq}\{W_{1},\dots,W_{q}\} form a sunflower family with core T∗T^{*}. Further, we can check that the condition of Lemma 3.7 holds with θ=∣S∣\theta=|S|: since ∣Wj∣≥∣S∣+1|W_{j}|\geq|S|+1 by the inductive hypothesis, it suffices to verify that

But now, note that T∗T^{*} is defined as the columns of YY which are ε1⋅ϑ\reflem:key−intersection\varepsilon_{1}\cdot\vartheta_{\ref{lem:key-intersection}}-close to span⁡(XS)\operatorname{span}(X_{S}), and thus ∣T∗∣≤∣S∣|T^{*}|\leq|S| (by Lemma A.2), and thus we have ∣T∗∣=∣S∣|T^{*}|=|S|. Now we have equality in Lemma 3.7, and so the ‘furthermore’ part of the lemma implies that T∗⊆WiT^{*}\subseteq W_{i} for all ii.

Thus we have TS=⋂iWi=T∗T_{S}=\bigcap_{i}W_{i}=T^{*} (the first equality follows from the definition of TST_{S}), thus completing the proof of the claim, by induction.

Once we have the claim, the theorem follows by applying to singleton sets. Let S={i}S=\{i\}. Now if yy is a column of YY which is in span⁡(XS′)\operatorname{span}(X_{S^{\prime}}) for all (k−1)(k-1) element subsets S′S^{\prime} (of [R][R]) which contain ii, by Lemma 3.5, we have yy being ε1⋅ϑ\reflem:key−intersection\varepsilon_{1}\cdot\vartheta_{\ref{lem:key-intersection}}-close to span⁡(X{i})\operatorname{span}(X_{\{i\}}), which implies ∥y−αxi∥2≤ε1⋅ϑ\reflem:key−intersection\left\|y-\alpha x_{i}\right\|_{2}\leq\varepsilon_{1}\cdot\vartheta_{\ref{lem:key-intersection}}. Since this is true for each column ii, and since k≥2k\geq 2 the lemma follows. ∎

4 Uniqueness Theorem for Higher Order Tensors

Given two matrices AA (size n1×Rn_{1}\times R) and BB (size n2×Rn_{2}\times R), the (n1n2)×R(n_{1}n_{2})\times R matrix M=A⊙BM=A\odot B constructed with the ithi^{th} column equal to Mi=Ai⊗BiM_{i}=A_{i}\otimes B_{i} (viewed as a vector) is the Khatri-Rao product.

Lemma A.4 in the appendix relates the K-rank of A⊙BA\odot B with kA=K-rankτ1(A)k_{A}=\text{K-rank}_{\tau_{1}}(A) and kB=K-rankτ2(B)k_{B}=\text{K-rank}_{\tau_{2}}(B). It shows that K-rankτ1τ2ϑ(A⊙B)=min⁡{kA+kB−1,R}\text{K-rank}_{\tau_{1}\tau_{2}\vartheta}(A\odot B)=\min\{k_{A}+k_{B}-1,R\}, for some ϑ\vartheta. This turns out to be crucial to the proof of uniqueness in the general case, which we present now.

Since we know that the two representations are close in Frobenius norm, we have

This completes the proof of the theorem. ∎

We show a similar result for symmetric tensors, which shows robust uniqueness upto permutations (and no scaling) which will be useful in applications to mixture models (Section 5).

there exists an R×RR\times R permutation matrix Π\Pi such that

The mild intricacy here is that applying Theorem 2.7 gives a bunch of scalar matrices whose product is close to the identity, while we want each of the matrices to be so. This turns out to be easy to argue – see Section A.1.

Computing Tensor Decompositions

For matrices, the theory of low rank approximation is well understood, and they are captured using singular values. In contrast, the tensor analog of the problem is in general ill-posed: for instance, there exist rank-3 tensors with arbitrarily good rank 22 approximations [Lan12]. For instance if u,vu,v are orthogonal vectors, we have

where ∥N∥F≤O(ε)\left\|{\cal{N}}\right\|_{F}\leq O(\varepsilon), while it is known that the LHS has rank 33. However note that the rank-2 representation with error ε\varepsilon uses vectors of length 1/ε1/\varepsilon, and such cancellations, in a sense are responsible for the ill-posedness.

Hence in order to make the problem well-posed, we will impose a boundedness assumption.

Suppose we are given a parameter RR and an m×n×pm\times n\times p tensor TT which can be written as

such that ai′,bi′,ci′a_{i}^{\prime},b_{i}^{\prime},c_{i}^{\prime} are vectors with norm at most ρ\rho, and ∥N′∥F≤O(1)⋅ε\left\|{\cal{N}}^{\prime}\right\|_{F}\leq O(1)\cdot\varepsilon.

We note that if the decomposition into [A B C][A~{}B~{}C] above satisfies the conditions of Theorem 2.6, then solving the ρ\rho-bounded low-rank approximation problem would allow us to recover A,B,CA,B,C up to a small error. The algorithmic result we prove is the following (restated version of Theorem 2.8).

The ρ\rho-bounded low-rank approximation problem can be solved in time poly(n)⋅exp⁡(R2log⁡(Rρ/ε))\text{poly}(n)\cdot\exp(R^{2}\log(R\rho/\varepsilon)).

In fact, the O(1)O(1) term in the error bound N′≤O(1)⋅ε{\cal{N}}^{\prime}\leq O(1)\cdot\varepsilon will just be 55. Our algorithm is extremely simple conceptually: we identify three RR-dimensional spaces by computing appropriate SVDs, and prove that for the purpose of obtaining an approximation with O(ε)O(\varepsilon) error, it suffices to look for ai,bi,cia_{i},b_{i},c_{i} in these spaces. We then find the approximate decomposition by a brute force search using an epsilon-net. Note that the algorithm has a polynomial running time for constant RR, which is typically when the low rank approximation problem is interesting.

In what follows, let MAM_{A} denote the m×npm\times np matrix whose columns are the so-called j,kj,kth modes of the tensor TT, i.e., the mm dimensional vector of TijkT_{ijk} values obtained by fixing j,kj,k and varying ii. Similarly, we define MB (n×mp)M_{B}~{}(n\times mp) and MC (p×mn)M_{C}~{}(p\times mn). Also, we denote by AA the m×Rm\times R matrix with columns being aia_{i}. Similarly define B (n×R),C (p×R)B~{}(n\times R),C~{}(p\times R).

The outline of the proof is as follows: we first observe that the matrices MA,MB,MCM_{A},M_{B},M_{C} are all approximately rank RR. We then let VA,VBV_{A},V_{B} and VCV_{C} be the span of the top RR singular vectors of MA,MBM_{A},M_{B} and MCM_{C} respectively, and show that it suffices to search for ai,bia_{i},b_{i}, and cic_{i} in these spans. We note that we do not (and in fact cannot, as simple examples show) obtain the true span of the aia_{i}, bib_{i} and cic_{i}’s in general. Our proof carefully gets around this point. We then construct an ε\varepsilon-net for VA,VB,VCV_{A},V_{B},V_{C}, and try out all possible RR-tuples. This gives the roughly exp⁡(R2)\exp(R^{2}) running time claimed in the Theorem.

We now make formal claims following the outline above.

Because the top RR singular vectors give the best possible rank-RR approximation of a matrix for every RR, for any RR-dimensional subspace SS, if ΠS\Pi_{S} is the projection matrix onto SS, we have

Picking SS to be the span of the vectors {a1,…,aR}\{a_{1},\dots,a_{R}\}, we obtain

The first inequality above is because the j,kj,kth mode of the tensor ∑iai⊗bi⊗ci\sum_{i}a_{i}\otimes b_{i}\otimes c_{i} is a vector in the span of {a1,…,aR}\{a_{1},\dots,a_{R}\}, in particular, it is equal to ∑ibi(j)ci(k)ai\sum_{i}b_{i}(j)c_{i}(k)a_{i}, where bi(j)b_{i}(j) denotes the jjth coordinate of bib_{i}.

Next, we will show that looking for ai,bi,cia_{i},b_{i},c_{i} in the spaces VA,VB,VCV_{A},V_{B},V_{C} is sufficient. The natural choices are ΠAai,ΠBbi,ΠCci\Pi_{A}a_{i},\Pi_{B}b_{i},\Pi_{C}c_{i}, and we show that this choice in fact gives a good approximation. For convenience let a~i:=ΠAai\widetilde{a}_{i}:=\Pi_{A}a_{i}, and ai⊥:=ai−a~ia^{\perp}_{i}:=a_{i}-\widetilde{a}_{i}.

For T,VA,a~i,…T,V_{A},\widetilde{a}_{i},\dots as defined above, we have

The proof is by a hybrid argument. We write

We now bound each of the terms in the parentheses, and then appeal to triangle inequality (for the Frobenius norm). Now, the first term is easy:

One way to bound the second term is as follows. Note that:

Now let us denote the two terms in the parenthesis on the RHS by G,HG,H – these are tensors which we view as mnpmnp dimensional vectors. We have ∥G+H∥2≤ε\left\|G+H\right\|_{2}\leq\varepsilon, because the Frobenius norm of the LHS is precisely ∥MB−ΠBMB∥F≤ε\left\|M_{B}-\Pi_{B}M_{B}\right\|_{F}\leq\varepsilon. Furthermore, ⟨G,H⟩=0\langle G,H\rangle=0, because ⟨a~i,aj⊥⟩=0\langle\widetilde{a}_{i},a^{\perp}_{j}\rangle=0 for any i,ji,j (one vector lies in the span VAV_{A} and the other orthogonal to it). Thus we have ∥G∥2≤ε\left\|G\right\|_{2}\leq\varepsilon (since in this case ∥G+H∥22=∥G∥22+∥H∥22\left\|G+H\right\|_{2}^{2}=\left\|G\right\|_{2}^{2}+\left\|H\right\|_{2}^{2}).

A very similar proof lets us conclude that the Frobenius norm of the third term is also ≤ε\leq\varepsilon. This completes the proof of the claim, by our earlier observation. ∎

The claim above shows that there exist vectors a~i,b~i,c~i\widetilde{a}_{i},\widetilde{b}_{i},\widetilde{c}_{i} of length at most ρ\rho in VA,VB,VCV_{A},V_{B},V_{C} resp., which give a rank-RR approximation with error at most 4ε4\varepsilon. Now, we form an ε/(Rρ2)\varepsilon/(R\rho^{2})-net over the ball of radius ρ\rho in each of the spaces VA,VB,VCV_{A},V_{B},V_{C}. Since these spaces have dimension RR, the nets have size

Thus let us try all possible candidates for a~i,b~i,c~i\widetilde{a}_{i},\widetilde{b}_{i},\widetilde{c}_{i} from these nets. Suppose we have a^i,b^i,c^i\widehat{a}_{i},\widehat{b}_{i},\widehat{c}_{i} being vectors which are ε/(6Rρ2)\varepsilon/(6R\rho^{2})-close to a~i,b~i,c~i\widetilde{a}_{i},\widetilde{b}_{i},\widetilde{c}_{i} respectively, it is easy to see that

Now by a hybrid argument exactly as above, and using the fact that all the vectors involved are ≤ρ\leq\rho in length, we obtain that the LHS above is at most ε\varepsilon.

Thus the algorithm finds vectors such that the error is at most 5ε5\varepsilon. The running time depends on the time taken to try all possible candidates for 3R3R vectors, and evaluating the tensor for each. Thus it is poly(m,n,p)⋅exp⁡(O(R2)log⁡(Rρ/ε))\text{poly}(m,n,p)\cdot\exp(O(R^{2})\log(R\rho/\varepsilon)). ∎

Polynomial Identifiability of Latent Variable and Mixture Models

We now show how our robust uniqueness theorems for tensor decompositions can be used for learning latent variable models, with polynomial sample complexity bounds.

An instance of a hidden variable model of size mm with hidden variables set Υ\Upsilon is said to be polynomial identifiable if there is an algorithm that given any η>0\eta>0, uses only N≤poly(m,1/η)N\leq\text{poly}(m,1/\eta) samples and finds with probability 1−o(1)1-o(1) estimates of the hidden variables Υ′\Upsilon^{\prime} such that ∥Υ′−Υ∥∞<η\left\|\Upsilon^{\prime}-\Upsilon\right\|_{\infty}<\eta.

While practitioners typically use Expectation-Maximization (EM) methods to learn the parameters, a good alternative in the case of mixture models is using the method of moments approach ( starting from the work by Pearson [Pea94] for univariate gaussians ), which tries to identify the parameters by estimating higher order moments. However, one drawback is that the number of moments required is typically as large as the number of mixtures RR (or parameters), resulting in a sample complexity that is exponential in RR [MV10, BS10, FOS05, FSO06].

In a recent exciting line of work [MR06, AHK12, HK12, AFH+12, AGH+12], it is shown that poly(R,n)\text{poly}(R,n) samples suffice for identifiability in a special case called the non-singular or non-degenerate case i.e. when the matrix MM has full rank (rank = RR)For polynomial identifiability, σR≥1/poly(n)\sigma_{R}\geq 1/\text{poly}(n). for many of these models. Their algorithms for this case proceed by reducing the problem of finding the latent variables (the means and weights) to the problem of decomposing Symmetric Orthogonal Tensors of order 33, which are known to be solvable in poly(n,R)\text{poly}(n,R) time using power-iteration type methods [KR01, ZG01, AGH+12].

However, their approach crucially relies on these non-degeneracy conditions, and are not robust: even in the case when these RR-means reside in a (R−1)(R-1)-dimensional space, these algorithms fail, and the best known sample complexity bounds in many of these settings are exp⁡(R)poly(n)\exp(R)\text{poly}(n). In many settings like speech recognition and image classification, the dimension of the feature space nn is typically much smaller than RR, the number of topics or clusters. For instance, the (effective) feature space corresponds to just the low-frequency components in the fourier spectrum for speech, or the local neighborhood of a pixel in images (SIFT features [Low99]). These are typically much smaller than the different kinds of objects or patterns (topics) that are possible. Further, in other settings, the set of relevant features (the effective feature space) could be a space of much smaller dimension (k<Rk<R) that is unknown to us even when the feature vectors are actually represented in a large dimensional space (n≫Rn\gg R).

The latent variable hh is a discrete random variable having domain [R][R], so that Pr⁡[h=r]=wr,∀r∈[R]\Pr\left[h=r\right]=w_{r},\forall r\in[R].

Denote by M(j){M}^{(j)}, the n×Rn\times R matrix with the means {μr(j)}r∈[R]\{{\mu}^{(j)}_{r}\}_{r\in[R]} comprising its columns i.e.

The entries (domain) of x(j){x}^{(j)} are bounded by cmaxc_{max} i.e. ∥x(j)∥∞≤cmax\left\|{x}^{(j)}\right\|_{\infty}\leq c_{max}. in general, we can also allow them to be continuous distributions like multivariate gaussians.

The following lemma shows how to obtain a higher order tensor (to apply our results from previous sections) in terms of the hidden parameters that we need to recover. It follows easily because of conditional independence.

In our usual representation of tensor decompositions,

Recall that K-rankτ(M)\text{K-rank}_{\tau}(M) corresponds to the minimum number kk such that every n×kn\times k submatrix M′M^{\prime} of MM has σk(M′)>1/τ\sigma_{k}(M^{\prime})>1/\tau. Intuitively this says that, no set of kk vectors from μr∈[R]\mu_{r\in[R]} all lie close to a k−1k-1 dimensional space.

When k≡K-rankτ(M)≥Rk\equiv\text{K-rank}_{\tau}(M)\geq R for each of these matrices (the non-degenerate or non-singular setting), Anandkumar et al. [AHK12] give a polynomial time algorithm to learn the hidden variables using only poly(R,τ,n)\text{poly}(R,\tau,n) samples (hence polynomial identifiability). However, their algorithm fails even when k=R−1k=R-1. We now how to achieve polynomial identifiability even when k=δRk=\delta R for any constant δ>0\delta>0.

For each mixture r∈[R]r\in[R], the mixture weight wr>γw_{r}>\gamma.

Note that the condition (a)(a) in the theorem about the mixing weights wr>γw_{r}>\gamma is required to recover all the parameters, since we need poly(1/wr)\text{poly}(1/w_{r}) samples before we see a sample from mixture rr. However, by setting γ≪ε′\gamma\ll\varepsilon^{\prime}, the above algorithm can still be used to recover the mixtures components of weight larger than ε′\varepsilon^{\prime}.

While these results give new polynomial sample complexity guarantees when n<Rn<R, they are interesting even when the dimension of the space n≫Rn\gg R. A natural setting where this arises is when many of the vectors lie in a unknown space of much smaller dimension (kk-dims), while the whole space has high dimension.

The theorem also holds when for different jj, the K-rankτ(M(j))\text{K-rank}_{\tau}({M}^{(j)}) have bounds kjk_{j} which are potentially different, and satisfy the same condition as in Theorem 2.7.

for some scalar matrices Λj\Lambda_{j} (on RR-dims) such that

Note that the entries in the diagonal matrices Λj\Lambda_{j} (the scalings) may be negative. We first transform the vectors so that each of the entries in Λj\Lambda_{j} are non-negative (this is possible since the product of Λj\Lambda_{j} is close to the identity matrix, which only has non-negative entries).

2 Exchangeable (single) Topic Model

3 Hidden Markov Models

The HMM model described above is shown in Fig. 2.

The following statement holds for any constant δ>0\delta>0. Suppose we are given a Hidden Markov model as described above, with parameters satisfying :

The stationary distribution {wr}r∈[R]\{w_{r}\}_{r\in[R]} has ∀r∈[R] wr>γ1\forall r\in[R]~{}w_{r}>\gamma_{1},

The observation matrix MM has K-rankτ(M)≥k≥δR\text{K-rank}_{\tau}(M)\geq k\geq\delta R,

The transition matrix PP has minimum singular value σR(P)≥γ2\sigma_{R}(P)\geq\gamma_{2},

Further, this algorithm runs in time nOδ(R2log⁡(1ηγ1))(n⋅τγ1γ2)Oδ(1)n^{O_{\delta}(R^{2}\log(\frac{1}{\eta\gamma_{1}}))}\left(n\cdot\frac{\tau}{\gamma_{1}\gamma_{2}}\right)^{O_{\delta}(1)} time.

Precisely the same argument lets us conclude that K-rankτ′(A)≥R\text{K-rank}_{\tau^{\prime}}(A)\geq R, for the τ′=τqγ2q2(qk)q/2\tau^{\prime}=\tau^{q}\gamma_{2}^{q^{2}}(qk)^{q/2}. Now since K-rankτ(B)≥2\text{K-rank}_{\tau}(B)\geq 2, we have that the conditions of Theorem 2.6 hold. Now using the arguments of Theorem 2.9 (here, we use Theorem 2.6 instead of Theorem 2.7), we get matrices A′,B′,C′A^{\prime},B^{\prime},C^{\prime} and weights w′w^{\prime} such that

for some δ=poly(1/η,… )\delta=\text{poly}(1/\eta,\dots). Note that M=BM=B. We now need to argue that we can obtain a good estimate P′P^{\prime} for PP, from A′,B′,C′A^{\prime},B^{\prime},C^{\prime}. This is done in [AMR09] by a trick which is similar in spirit to Lemma A.5. It uses the property that the matrix CC above is full rank (in fact well conditioned, as we saw above), and the fact that the columns of MM are all probability distributions.

Let D=C(q−1)D=C^{(q-1)}, as defined above. Hence, C=(D⊙M)PC=(D\odot M)P. Now note that all the columns of MM represent probability distributions, so they add up to 11. Thus given D⊙MD\odot M, we can combine (simply add) appropriate rows together to get DD. Thus by performing this procedure (adding rows) on CC, we obtain DPDP. Now, if we had performed the entire procedure by replacing qq with (q−1)(q-1) (we should ensure that (q−1)k≥R(q-1)k\geq R for the Kruskal rank condition to hold), we would obtain the matrix DD. Now knowing DD and DPDP, we can recover the matrix PP, since DD is well-conditioned. ∎

Remark: Allman et al. [AMR09] show identifiability under weaker conditions than Corollary 5.5 when they have infinite samples. This is because they prove their results for generic values of the parameters M,PM,P (this formally means their results hold for all M,PM,P except a set of measure zero, but they do not give an explicit characterization). Our bounds are weaker, but hold whenever the K-rankτ(M)≥δn\text{K-rank}_{\tau}(M)\geq\delta n condition holds. Further, the main advantage is that our result is robust to noise: the case when we only have finite samples.

4 Mixtures of Spherical Gaussians

Suppose we have a mixture of gaussians given by D{\cal{D}}, with hidden parameters {wr}r∈[R]\{w_{r}\}_{r\in[R]} and MM (in particular, we assume we know σ\sigma)As will be clear, it suffices to know it up to an inverse polynomial error, so from an algorithmic viewpoint, we can “try all possible” values.. Suppose also that ∀r∈[R] wr>γ\forall r\in[R]~{}w_{r}>\gamma, and K-rankτ(M)=k\text{K-rank}_{\tau}(M)=k for some k≥δRk\geq\delta R.

Then there is a algorithm that given any η>0\eta>0 and σ\sigma, uses N=ϑ\refthm:gaussians(1/δ)(1η,R,n,τ,1/γ)N={\vartheta_{\ref{thm:gaussians}}}^{(1/\delta)}\left(\frac{1}{\eta},R,n,\tau,1/\gamma\right) samples drawn from D{\cal{D}}, and finds with high probability M′M^{\prime} and {wr′}r∈[R]\{w^{\prime}_{r}\}_{r\in[R]} such that

Further, this algorithm runs in time nOδ(R2)(nτγ)Oδ(1)n^{O_{\delta}(R^{2})}\left(\frac{n\tau}{\gamma}\right)^{O_{\delta}(1)} time.

Remark: Note that the previous proof worked even when the gaussians are not spherical: they just need to have the same known covariance matrix Σ\Sigma.

From (5.7) and triangle inequality, we see that

Now, substituting the values for α1,α2\alpha_{1},\alpha_{2}, we see that

The following Corollary establishes polynomial identifiability for mixtures of uniform spherical gaussians under milder conditions than [HK12] (in particular, the means need not be in general position). The difference now is that we do not assume we know σ\sigma.

Suppose we have a mixture D{\cal{D}} of RR-gaussians in nn-dimensions with n≥Rn\geq R, with hidden parameters {wr}r∈[R]\{w_{r}\}_{r\in[R]}, MM and σ\sigma. Suppose ∀r∈[R] wr>γ\forall r\in[R]~{}w_{r}>\gamma, and that K-rankτ(M)=k\text{K-rank}_{\tau}(M)=k for some k≥δRk\geq\delta R.

Then there is a algorithm that given any η>0\eta>0, uses N=ϑ\refthm:MM1/δ(1η,R,n,τ,1/γ)N=\vartheta_{\ref{thm:MM}}^{1/\delta}\left(\frac{1}{\eta},R,n,\tau,1/\gamma\right) samples drawn from D{\cal{D}}, and finds with high probability σ′\sigma^{\prime}, M′M^{\prime} and {wr′}r∈[R]\{w^{\prime}_{r}\}_{r\in[R]} such that

Further, this algorithm runs in time nOδ(R2)(nτγ)Oδ(1)n^{O_{\delta}(R^{2})}\left(\frac{n\tau}{\gamma}\right)^{O_{\delta}(1)} time.

We first obtain σ\sigma to inverse polynomial accuracy, using an elegant trick of [HK13], and then apply Theorem 5.6 to identify the parameters MM and weights {wr}r∈[R]\{w_{r}\}_{r\in[R]}.

Discussion and Open Problems

The most natural open problem arising from our work is that of computing approximate small rank decompositions efficiently. While the problem is NP hard in general, we suspect that well conditioned assumptions regarding robust Kruskal ranks being sufficiently large, as in the uniqueness theorem (Theorem 2.6) for decompositions of 33-tensors for instance, could help. In particular,

Suppose TT is a 33-tensor, that is promised to have a rank RR decomposition [A B C][A~{}B~{}C], with kA=K-rankτ(A)k_{A}=\text{K-rank}_{\tau}(A) (similarly kBk_{B} and kCk_{C}) satisfying kA+kB+kC≥2R+2k_{A}+k_{B}+k_{C}\geq 2R+2. Can we find the decomposition A,B,CA,B,C (up to a specified error ε\varepsilon) in time polynomial in n,Rn,R and 1/ε1/\varepsilon?

In the special case that the decomposition [A B C][A~{}B~{}C] is known to be orthogonal (i.e., the columns of A,B,CA,B,C are mutually orthogonal), which in particular implies n≥Rn\geq R, then iterative methods like power iteration [AGH+12], and “alternating least squares” (ALS) [CLdA09] This is the method of choice in practice for computing tensor decompositions. converge in polynomial time.

A result in the spirit of finding weaker sufficient conditions for uniqueness was by Chiantini and Ottaviani [CO12], who use ideas from algebraic geometry (in particular a notion called weak defectivity), to prove that generic n×n×nn\times n\times n tensors of rank k≤n2/16k\leq n^{2}/16 have a unique decomposition (here the word ‘generic’ is meant to mean all except a measure zero set of rank kk tensors, which they characterize in terms of weak defectivity). Note that this is much stronger than the bound obtained by Kruskal’s theorem, which is roughly 3n/23n/2. It is also roughly the best one can hope for, since every 33-tensor has rank at most n2n^{2} (and a random tensor has rank ≥n2/2\geq n^{2}/2). It would be very interesting to prove robust versions of their results, as it would imply identifiability for a much larger range of parameters in the models we consider.

A third question is that of certifying that a given decomposition is unique. Kruskal’s rank condition, while elegant, is not known to be verifiable in polynomial time. Given an n×Rn\times R matrix, certifying that every kk columns are linearly independent is known to be NP-hard [Kha95, TP12]. Even the average case version i.e. when the matrix is random with independent gaussian entries, has received much attention as it is related to certifying the Restricted Isometry Property (RIP), which plays a key role in compressed sensing [CT05, KZ11]. It is thus an fascinating open question to find uniqueness (and robust uniqueness) theorems which involve parameters that can be computed efficiently.

From the perspective of learning latent variable models, it would be very interesting to obtain efficient learning algorithms with polynomial running times for the settings considered in Section 5. Recall that we give algorithms which need only polynomial samples (in the dimension nn, and number of mixtures RR), when the parameters satisfy the robust Kruskal conditions. Note that an affirmative answer to Question 6.1 (and its higher order analogue) would already imply such efficient learning algorithms. Finally, we believe that our approach can be extended to learning the parameters of general mixtures of gaussians [MV10, BS10], mixtures of product distributions [FOS05], and more generally to a broader class of parameter learning problems.

Acknowledgements

We thank Ravi Kannan for valuable discussions about the algorithmic results in this work, and Daniel Hsu for helpful pointers to the literature. The third author would also like to thank Siddharth Gopal for some useful pointers about HMM models in speech and image recognition.

References

Appendix A A Medley of Auxiliary Lemmas

We now list some of the (primarily linear algebra) lemmas we used in our proofs. They range in difficulty from trivial to ‘straightforward’, but we include them for completeness.

from which the lemma follows by setting yy to be the vector of αi\alpha_{i}. ∎

If S=span⁡(S){\cal{S}}=\operatorname{span}(S), where SS is a set of at most k−1k-1 column vectors of AA, then each unit vector in S{\cal{S}} has a small representation in terms of the columns denoted by SS:

If S=span⁡(S){\cal{S}}=\operatorname{span}(S) where SS is any subset of k−1k-1 column vectors SS of AA, the other columns are far from the span S{\cal{S}}:

We now present the simple proofs of the three parts of the lemma.

The first part simply follows because from change of basis. Let MM be the n×nn\times n matrix, where the first ∣S∣|S| columns of MM correspond to SS and the rest of the n−∣S∣n-|S| columns being unit vectors orthogonal to S{\cal{S}}. Since A∣SA_{|S} is well-conditioned, then λmax⁡(M)≤(ρ+1)n\lambda_{\max}(M)\leq(\rho+1)\sqrt{n} and λmin⁡(M)≥1/max⁡τ,1\lambda_{\min}(M)\geq 1/\max{\tau,1}. The change of basis matrix is exactly M−1M^{-1}: hence z=(M)−1vz=(M)^{-1}v. Thus, λmin⁡(M−1)≤∥z∥≤λmax⁡(M−1)=1/λmin⁡(M)≤max⁡{1,τ}\lambda_{\min}(M^{-1})\leq\left\|z\right\|\leq\lambda_{\max}(M^{-1})=1/\lambda_{\min}(M)\leq\max\{1,\tau\}.

Let S={1,…,k−1}S=\{1,\dots,k-1\} and j=kj=k without loss of generality. Let v=∑i∈SziAiv=\sum_{i\in S}z_{i}A_{i} be a vector ε\varepsilon-close to AkA_{k}. Let M′M^{\prime} be the n×kn\times k matrix restricted to first kk columns: i.e. M′=A∣S∪{j}M^{\prime}=A|_{S\cup\{j\}}. Hence, the vector z=(z1,…,zk−1,−1)z=(z_{1},\dots,z_{k-1},-1) has square length 1+∑izi21+\sum_{i}z_{i}^{2}, and ∥M′z∥=ε\left\|M^{\prime}z\right\|=\varepsilon. Thus,

Hence, ∥∑i∈SαiAi∥≤∥∑i∈SαiΠS⊥Ai∥≤(∑i∈S∣αi∣)ε≤∣S∣ε\left\|\sum_{i\in S}\alpha_{i}A_{i}\right\|\leq\left\|\sum_{i\in S}\alpha_{i}\Pi^{\perp}_{{\cal{S}}}A_{i}\right\|\leq(\sum_{i\in S}\left|\alpha_{i}\right|)\varepsilon\leq\sqrt{|S|}\varepsilon (where the last inequality follows from Cauchy-Schwarz inequality). But these set of αi\alpha_{i} contradict the fact that the minimum singular value of any nn-by-kk submatrix of AA is at least 1/τ1/\tau.

The proof is by a somewhat standard probabilistic argument.

Thus by a union bound, with probability at least 1/21/2, we have

has K-rank(τ1τ2kA+kB)(M)≥min⁡{k1+k2−1,R}\text{K-rank}_{(\tau_{1}\tau_{2}\sqrt{k_{A}+k_{B}})}(M)\geq\min\{k_{1}+k_{2}-1,R\}.

Let τ=τ1τ2kA+kB\tau=\tau_{1}\tau_{2}\sqrt{k_{A}+k_{B}}. Suppose for contradiction MM has K-rankτ(M)<k=kA+kB−1≤R\text{K-rank}_{\tau}(M)<k=k_{A}+k_{B}-1\leq R (otherwise we are done). Without loss of generality let the sub-matrix M′M^{\prime} of size (n1n2)×k(n_{1}n_{2})\times k, formed by the first kk columns of MM have λk(M)<1/τ\lambda_{k}(M)<1/\tau. Note that for a vector z∈RnRz\in R^{nR}, ∥z∥2=∥Z∥F\left\|z\right\|_{2}=\left\|Z\right\|_{F} where ZZ is the natural n×Rn\times R matrix representing zz. Hence

Clearly ∃i∗∈[k]\exists i^{*}\in[k] s.t ∣αi∣≥1/k|\alpha_{i}|\geq 1/\sqrt{k} : let i∗=ki^{*}=k without loss of generality. Let S=span⁡({A1,A3,…AkA−1}){\cal{S}}=\operatorname{span}(\{A_{1},A_{3},\dots A_{k_{A}-1}\}), and pick x=ΠS⊥Ak/∥ΠS⊥Ak∥x=\Pi_{{\cal{S}}}^{\perp}A_{k}/\left\|\Pi_{{\cal{S}}}^{\perp}A_{k}\right\| (it exists because K-rankτ(M)<R\text{K-rank}_{\tau}(M)<R). Pre-multiplying the expression in (A) by xx, we get

But ∣βk∣≥1/(kτ1)|\beta_{k}|\geq 1/(\sqrt{k}\tau_{1}) (by Lemma A.2), and there are only k−kA+1≤kBk-k_{A}+1\leq k_{B} terms in the expression. Again, by Lemma A.2 applied to these (at most) kBk_{B} columns of BB, we get that 1/ε<τ1τ2k1/\varepsilon<\tau_{1}\tau_{2}\sqrt{k}, which establishes the lemma. ∎

Remark. Note that the bound of the lemma is tight in general. For instance, if AA is an n×2nn\times 2n matrix s.t. the first nn columns correspond to one orthonormal basis, and the next nn columns to another (and the two bases are random, say). Then K-rank10(A)=n\text{K-rank}_{10}(A)=n, but for any τ\tau, we have K-rankτ(A⊙A)=2n−1\text{K-rank}_{\tau}(A\odot A)=2n-1, since the first nn terms and the next nn terms of A⊙AA\odot A add up to the same vector (as a matrix, it is the identity).

This implies that ∣1−α1α2∣<δ/Lmin⁡2|1-\alpha_{1}\alpha_{2}|<\delta/L_{\min}^{2} as required.

Now, let us assume β1>δ\beta_{1}>\sqrt{\delta}. This at once implies that β2<δ\beta_{2}<\sqrt{\delta}. Also

Now, using (33), we see that β1<δ\beta_{1}<\sqrt{\delta}. ∎

First we have ∥v−λu∥1≤ε/4\left\|v-\lambda u\right\|_{1}\leq\varepsilon/4 by Cauchy-Schwartz. Hence, by triangle inequality, ∣λ∣∥u∥1≤1+ε/2|\lambda|\left\|u\right\|_{1}\leq 1+\varepsilon/2. Since ∥u∥1=1\left\|u\right\|_{1}=1, we get λ≤1+ε/2\lambda\leq 1+\varepsilon/2. Similarly λ≥1−ε/2\lambda\geq 1-\varepsilon/2.

Finally, ∥v−u∥2≤∥v−λu∥2+∣λ−1∣∥u∥2≤ε\left\|v-u\right\|_{2}\leq\left\|v-\lambda u\right\|_{2}+\left|\lambda-1\right|\left\|u\right\|_{2}\leq\varepsilon (since λ≥0\lambda\geq 0). Hence, the lemma follows. ∎

Applying Theorem 2.7 with ε′<η(2ρτR)−1\varepsilon^{\prime}<\eta(2\rho\tau\sqrt{R})^{-1}, to obtain a permutation matrix Π\Pi and scalar matrices Λj\Lambda_{j} such that

Since Π\Pi is a permutation matrix and UU has columns of length at least 1/τ1/\tau, we get that

Hence, substituting (A.1) in the last inequality, it is easy to see that ∀i∈[n],∣λj(i)−1∣<2ε′τ\forall i\in[n],\left|\lambda_{j}(i)-1\right|<2\varepsilon^{\prime}\tau. But since each column of AA is ρ\rho-bounded, this shows that ∥A′−AΠ∥F<2ε′τρR≤η\left\|A^{\prime}-A\Pi\right\|_{F}<2\varepsilon^{\prime}\tau\rho\sqrt{R}\leq\eta, as required. ∎

Appendix B Properties of Tensors

Consider a 33-tensor TT of rank RR represented by [A B C][A~{}B~{}C] where these three matrices are of size n×Rn\times R.

We now show a necessary condition in terms of the n2n^{2} dimensional vectors Ar⊗BrA_{r}\otimes B_{r} from the decomposition.

Suppose for a subset S⊂[R]S\subset[R], there exist {αr}\{\alpha_{r}\} with ∥α∥=1\left\|\alpha\right\|=1.

then there exists multiple rank-RR decompositions for TT

Consider any fixed non-zero vector uu (it can be also chosen to be not close to any of the other vectors in SS). This is because ∑r∈SAr⊗Br⊗u=∑r∈Sαr(Ar⊗Br)⊗u=0\sum_{r\in S}A_{r}\otimes B_{r}\otimes u=\sum_{r\in S}\alpha_{r}(A_{r}\otimes B_{r})\otimes u=0. Hence, T=∑r∈SAr⊗Br⊗(Cr+αru)+∑r′∈[R]∖SAr′⊗Br′⊗Cr′.T=\sum_{r\in S}A_{r}\otimes B_{r}\otimes(C_{r}+\alpha_{r}u)+\sum_{r^{\prime}\in[R]\setminus S}A_{r^{\prime}}\otimes B_{r^{\prime}}\otimes C_{r^{\prime}}. ∎

The above example showed that one necessary condition is that the A⊙BA\odot B should be full rank RR (and well-conditioned). These examples are ruled out when the Kruskal ranks of AA and BB are such that kA+kB≥Rk_{A}+k_{B}\geq R by Lemma A.4.

Appendix C Sampling Error Estimates for Higher Moment Tensors

We first bound the ∥⋅∥∞\|\cdot\|_{\infty} norm of the difference of tensors i.e. we show that