Tensor decompositions for learning latent variable models
Anima Anandkumar, Rong Ge, Daniel Hsu, Sham M. Kakade, Matus Telgarsky
Introduction
The method of moments is a classical parameter estimation technique (Pearson, 1894) from statistics which has proved invaluable in a number of application domains. The basic paradigm is simple and intuitive: (i) compute certain statistics of the data—often empirical moments such as means and correlations—and (ii) find model parameters that give rise to (nearly) the same corresponding population quantities. In a number of cases, the method of moments leads to consistent estimators which can be efficiently computed; this is especially relevant in the context of latent variable models, where standard maximum likelihood approaches are typically computationally prohibitive, and heuristic methods can be unreliable and difficult to validate with high-dimensional data. Furthermore, the method of moments can be viewed as complementary to the maximum likelihood approach; simply taking a single step of Newton-Raphson on the likelihood function starting from the moment based estimator (Le Cam, 1986) often leads to the best of both worlds: a computationally efficient estimator that is (asymptotically) statistically optimal.
The primary difficulty in learning latent variable models is that the latent (hidden) state of the data is not directly observed; rather only observed variables correlated with the hidden state are observed. As such, it is not evident the method of moments should fare any better than maximum likelihood in terms of computational performance: matching the model parameters to the observed moments may involve solving computationally intractable systems of multivariate polynomial equations. Fortunately, for many classes of latent variable models, there is rich structure in low-order moments (typically second- and third-order) which allow for this inverse moment problem to be solved efficiently (Cattell, 1944; Cardoso, 1991; Chang, 1996; Mossel and Roch, 2006; Hsu et al., 2012b; Anandkumar et al., 2012c, a; Hsu and Kakade, 2013). What is more is that these decomposition problems are often amenable to simple and efficient iterative methods, such as gradient descent and the power iteration method.
In this work, we observe that a number of important and well-studied latent variable models—including Gaussian mixture models, hidden Markov models, and Latent Dirichlet allocation—share a certain structure in their low-order moments, and this permits certain tensor decomposition approaches to parameter estimation. In particular, this decomposition can be viewed as a natural generalization of the singular value decomposition for matrices.
While much of this (or similar) structure was implicit in several previous works (Chang, 1996; Mossel and Roch, 2006; Hsu et al., 2012b; Anandkumar et al., 2012c, a; Hsu and Kakade, 2013), here we make the decomposition explicit under a unified framework. Specifically, we express the observable moments as sums of rank-one terms, and reduce the parameter estimation task to the problem of extracting a symmetric orthogonal decomposition of a symmetric tensor derived from these observable moments. The problem can then be solved by a variety of approaches, including fixed-point and variational methods.
One approach for obtaining the orthogonal decomposition is the tensor power method of Lathauwer et al. (2000, Remark 3). We provide a convergence analysis of this method for orthogonally decomposable symmetric tensors, as well as a detailed perturbation analysis for a robust (and a computationally tractable) variant (Theorem 5.1). This perturbation analysis can be viewed as an analogue of Wedin’s perturbation theorem for singular vectors of matrices (Wedin, 1972), providing a bound on the error of the recovered decomposition in terms of the operator norm of the tensor perturbation. This analysis is subtle in at least two ways. First, unlike for matrices (where every matrix has a singular value decomposition), an orthogonal decomposition need not exist for the perturbed tensor. Our robust variant uses random restarts and deflation to extract an approximate decomposition in a computationally tractable manner. Second, the analysis of the deflation steps is non-trivial; a naïve argument would entail error accumulation in each deflation step, which we show can in fact be avoided. When this method is applied for parameter estimation in latent variable models previously discussed, improved sample complexity bounds (over previous work) can be obtained using this perturbation analysis.
Finally, we also address computational issues that arise when applying the tensor decomposition approaches to estimating latent variable models. Specifically, we show that the basic operations of simple iterative approaches (such as the tensor power method) can be efficiently executed in time linear in the dimension of the observations and the size of the training data. For instance, in a topic modeling application, the proposed methods require time linear in the number of words in the vocabulary and in the number of non-zero entries of the term-document matrix. The combination of this computational efficiency and the robustness of the tensor decomposition techniques makes the overall framework a promising approach to parameter estimation for latent variable models.
2 Related Work
The connection between tensor decompositions and latent variable models has a long history across many scientific and mathematical disciplines. We review some of the key works that are most closely related to ours.
The role of tensor decompositions in the context of latent variable models dates back to early uses in psychometrics (Cattell, 1944). These ideas later gained popularity in chemometrics, and more recently in numerous science and engineering disciplines, including neuroscience, phylogenetics, signal processing, data mining, and computer vision. A thorough survey of these techniques and applications is given by Kolda and Bader (2009). Below, we discuss a few specific connections to two applications in machine learning and statistics, independent component analysis and latent variable models (between which there is also significant overlap).
Tensor decompositions have been used in signal processing and computational neuroscience for blind source separation and independent component analysis (ICA) (Comon and Jutten, 2010). Here, statistically independent non-Gaussian sources are linearly mixed in the observed signal, and the goal is to recover the mixing matrix (and ultimately, the original source signals). A typical solution is to locate projections of the observed signals that correspond to local extrema of the so-called “contrast functions” which distinguish Gaussian variables from non-Gaussian variables. This method can be effectively implemented using fast descent algorithms (Hyvarinen, 1999). When using the excess kurtosis (i.e., fourth-order cumulant) as the contrast function, this method reduces to a generalization of the power method for symmetric tensors (Lathauwer et al., 2000; Zhang and Golub, 2001; Kofidis and Regalia, 2002). This case is particularly important, since all local extrema of the kurtosis objective correspond to the true sources (under the assumed statistical model) (Delfosse and Loubaton, 1995); the descent methods can therefore be rigorously analyzed, and their computational and statistical complexity can be bounded (Frieze et al., 1996; Nguyen and Regev, 2009; Arora et al., 2012b).
Higher-order tensor decompositions have also been used to develop estimators for commonly used mixture models, hidden Markov models, and other related latent variable models, often using the the algebraic procedure of R. Jennrich (as reported in the article of Harshman, 1970), which is based on a simultaneous diagonalization of different ways of flattening a tensor to matrices. Jennrich’s procedure was employed for parameter estimation of discrete Markov models by Chang (1996) via pair-wise and triple-wise probability tables; and it was later used for other latent variable models such as hidden Markov models (HMMs), latent trees, Gaussian mixture models, and topic models such as latent Dirichlet allocation (LDA) by many others (Mossel and Roch, 2006; Hsu et al., 2012b; Anandkumar et al., 2012c, a; Hsu and Kakade, 2013). In these contexts, it is often also possible to establish strong identifiability results, without giving an explicit estimators, by invoking the non-constructive identifiability argument of Kruskal (1977)—see the article by Allman et al. (2009) for several examples.
Related simultaneous diagonalization approaches have also been used for blind source separation and ICA (as discussed above), and a number of efficient algorithms have been developed for this problem (Bunse-Gerstner et al., 1993; Cardoso and Souloumiac, 1993; Cardoso, 1994; Cardoso and Comon, 1996; Corless et al., 1997; Ziehe et al., 2004). A rather different technique that uses tensor flattening and matrix eigenvalue decomposition has been developed by Cardoso (1991) and later by De Lathauwer et al. (2007). A significant advantage of this technique is that it can be used to estimate overcomplete mixtures, where the number of sources is larger than the observed dimension.
The relevance of tensor analysis to latent variable modeling has been long recognized in the field of algebraic statistics (Pachter and Sturmfels, 2005), and many works characterize the algebraic varieties corresponding to the moments of various classes of latent variable models (Drton et al., 2007; Sturmfels and Zwiernik, 2013). These works typically do not address computational or finite sample issues, but rather are concerned with basic questions of identifiability.
The specific tensor structure considered in the present work is the symmetric orthogonal decomposition. This decomposition expresses a tensor as a linear combination of simple tensor forms; each form is the tensor product of a vector (i.e., a rank- tensor), and the collection of vectors form an orthonormal basis. An important property of tensors with such decompositions is that they have eigenvectors corresponding to these basis vectors. Although the concepts of eigenvalues and eigenvectors of tensors is generally significantly more complicated than their matrix counterpart—both algebraically (Qi, 2005; Cartwright and Sturmfels, 2013; Lim, 2005) and computationally (Hillar and Lim, 2013; Kofidis and Regalia, 2002)—the special symmetric orthogonal structure we consider permits simple algorithms to efficiently and stably recover the desired decomposition. In particular, a generalization of the matrix power method to symmetric tensors, introduced by Lathauwer et al. (2000, Remark 3) and analyzed by Kofidis and Regalia (2002), provides such a decomposition. This is in fact implied by the characterization of Zhang and Golub (2001), which shows that iteratively obtaining the best rank- approximation of such orthogonally decomposable tensors also yields the exact decomposition. We note that in general, obtaining such approximations for general (symmetric) tensors is NP-hard (Hillar and Lim, 2013).
2.2 Latent Variable Models
This work focuses on the particular application of tensor decomposition methods to estimating latent variable models, a significant departure from many previous approaches in the machine learning and statistics literature. By far the most popular heuristic for parameter estimation for such models is the Expectation-Maximization (EM) algorithm (Dempster et al., 1977; Redner and Walker, 1984). Although EM has a number of merits, it may suffer from slow convergence and poor quality local optima (Redner and Walker, 1984), requiring practitioners to employ many additional heuristics to obtain good solutions. For some models such as latent trees (Roch, 2006) and topic models (Arora et al., 2012a), maximum likelihood estimation is NP-hard, which suggests that other estimation approaches may be more attractive. More recently, algorithms from theoretical computer science and machine learning have addressed computational and sample complexity issues related to estimating certain latent variable models such as Gaussian mixture models and HMMs (Dasgupta, 1999; Arora and Kannan, 2005; Dasgupta and Schulman, 2007; Vempala and Wang, 2004; Kannan et al., 2008; Achlioptas and McSherry, 2005; Chaudhuri and Rao, 2008; Brubaker and Vempala, 2008; Kalai et al., 2010; Belkin and Sinha, 2010; Moitra and Valiant, 2010; Hsu and Kakade, 2013; Chang, 1996; Mossel and Roch, 2006; Hsu et al., 2012b; Anandkumar et al., 2012c; Arora et al., 2012a; Anandkumar et al., 2012a). See the works by Anandkumar et al. (2012c) and Hsu and Kakade (2013) for a discussion of these methods, together with the computational and statistical hardness barriers that they face. The present work reviews a broad range of latent variables where a mild non-degeneracy condition implies the symmetric orthogonal decomposition structure in the tensors of low-order observable moments.
Notably, another class of methods, based on subspace identification (Overschee and Moor, 1996) and observable operator models/multiplicity automata (Schützenberger, 1961; Jaeger, 2000; Littman et al., 2001), have been proposed for a number of latent variable models. These methods were successfully developed for HMMs by Hsu et al. (2012b), and subsequently generalized and extended for a number of related sequential and tree Markov models models (Siddiqi et al., 2010; Bailly, 2011; Boots et al., 2010; Parikh et al., 2011; Rodu et al., 2013; Balle et al., 2012; Balle and Mohri, 2012), as well as certain classes of parse tree models (Luque et al., 2012; Cohen et al., 2012; Dhillon et al., 2012). These methods use low-order moments to learn an “operator” representation of the distribution, which can be used for density estimation and belief state updates. While finite sample bounds can be given to establish the learnability of these models (Hsu et al., 2012b), the algorithms do not actually give parameter estimates (e.g., of the emission or transition matrices in the case of HMMs).
3 Organization
The rest of the paper is organized as follows. Section 2 reviews some basic definitions of tensors. Section 3 provides examples of a number of latent variable models which, after appropriate manipulations of their low order moments, share a certain natural tensor structure. Section 4 reduces the problem of parameter estimation to that of extracting a certain (symmetric orthogonal) decomposition of a tensor. We then provide a detailed analysis of a robust tensor power method and establish an analogue of Wedin’s perturbation theorem for the singular vectors of matrices. The discussion in Section 6 addresses a number of practical concerns that arise when dealing with moment matrices and tensors.
Preliminaries
Note that if is a matrix (), then
where is the identity matrix. As a final example of this notation, observe
The notion of tensor (symmetric) rank is considerably more delicate than matrix (symmetric) rank. For instance, it is not clear a priori that the symmetric rank of a tensor should even be finite (Comon et al., 2008). In addition, removal of the best rank- approximation of a (general) tensor may increase the tensor rank of the residual (Stegeman and Comon, 2010).
Throughout, we use to denote the Euclidean norm of a vector , and to denote the spectral (operator) norm of a matrix. We also use to denote the operator norm of a tensor, which we define later.
Tensor Structure in Latent Variable Models
In this section, we give several examples of latent variable models whose low-order moments can be written as symmetric tensors of low symmetric rank; some of these examples can be deduced using the techniques developed in the text by McCullagh (1987). The basic form is demonstrated in Theorem 3.1 for the first example, and the general pattern will emerge from subsequent examples.
One advantage of this encoding of words is that the (cross) moments of these random vectors correspond to joint probabilities over words. For instance, observe that
The second advantage of the vector encoding of words is that the conditional expectation of given is simply , the vector of word probabilities for topic :
(where is the -th entry in the vector ). Because the words are conditionally independent given the topic, we can use this same property with conditional cross moments, say, of and :
This and similar calculations lead one to the following theorem.
As we will see in Section 4.3, the structure of and revealed in Theorem 3.1 implies that the topic vectors can be estimated by computing a certain symmetric tensor decomposition. Moreover, due to exchangeability, all triples (resp., pairs) of words in a document—and not just the first three (resp., two) words—can be used in forming (resp., ); see Section 6.1.
2 Beyond Raw Moments
In the single topic model above, the raw (cross) moments of the observed words directly yield the desired symmetric tensor structure. In some other models, the raw moments do not explicitly have this form. Here, we show that the desired tensor structure can be found through various manipulations of different moments.
We now consider a mixture of Gaussian distributions with spherical covariances. We start with the simpler case where all of the covariances are identical; this probabilistic model is closely related to the (non-probabilistic) -means clustering problem (MacQueen, 1967).
2.2 Spherical Gaussian Mixtures: Differing Covariances
2.3 Independent Component Analysis (ICA)
Let denote the -th column of the mixing matrix .
where is the fourth-order tensor with
Note that corresponds to the excess kurtosis, a measure of non-Gaussianity as if is a standard normal random variable. Furthermore, note that is not identifiable if is a multivariate Gaussian.
We may derive forms similar to that of and from Theorem 3.1 using by observing that
2.4 Latent Dirichlet Allocation (LDA)
The parameter (the sum of the “pseudo-counts”) characterizes the concentration of the distribution. As , the distribution degenerates to a single topic model (i.e., the limiting density has, with probability , exactly one entry of being and the rest are ). At the other extreme, if for some scalar , then as , the distribution of becomes peaked around the uniform vector (furthermore, the distribution behaves like a product distribution). We are typically interested in the case where is small (e.g., a constant independent of ), whereupon typically has only a few large entries. This corresponds to the setting where the documents are mainly comprised of just a few topics.
Note that needs to be known to form and from the raw moments. This, however, is a much weaker than assuming that the entire distribution of is known (i.e., knowledge of the whole parameter vector ).
3 Multi-View Models
We first note the form for the raw (cross) moments.
The cross moments do not possess a symmetric tensor form when the conditional distributions are different. Nevertheless, the moments can be “symmetrized” via a simple linear transformation of and (roughly speaking, this relates and to ); this leads to an expression from which the conditional means of (i.e., ) can be recovered. For simplicity, we assume ; the general case (with ) is easily handled using low-rank singular value decompositions.
Assume that are linearly independent for each . Define
We now discuss three examples (taken mostly from Anandkumar et al., 2012c) where the above observations can be applied. The first two concern mixtures of product distributions, and the last one is the time-homogeneous hidden Markov model.
For a mixture of product distributions, any partitioning of the dimensions into three groups creates three (possibly asymmetric) “views” which are conditionally independent once the mixture component is selected. However, recall that Theorem 3.6 requires that for each view, the conditional means be linearly independent. In general, this may not be achievable; consider, for instance, the case for each . Such cases, where the component means are very aligned with the coordinate basis, are precluded by the incoherence condition.
Define to be the largest diagonal entry of the orthogonal projector to the range of , and assume has rank . The coherence lies between and ; it is largest when the range of is spanned by the coordinate axes, and it is when the range is spanned by a subset of the Hadamard basis of cardinality . The incoherence condition requires, for some , . Essentially, this condition ensures that the non-degeneracy of the component means is not isolated in just a few of the dimensions. Operationally, it implies the following.
for some . With probability at least , a random partitioning of the dimensions into three groups (for each , independently pick uniformly at random and put in group ) has the following property. For each and , let be the entries of put into group , and let . Then for each , has full column rank, and the -th largest singular value of is at least times that of .
Therefore, three asymmetric views can be created by randomly partitioning the observed random vector into , , and , such that the resulting component means for each view satisfy the conditions of Theorem 3.6.
3.2 Spherical Gaussian Mixtures, Revisited
Consider again the case of spherical Gaussian mixtures (cf. Section 3.2). As we shall see in Section 4.3, the previous techniques (based on Theorem 3.2 and Theorem 3.3) lead to estimation procedures when the dimension of is or greater (and when the component means are linearly independent). We now show that when the dimension is slightly larger, say greater than , a different (and simpler) technique based on the multi-view structure can be used to extract the relevant structure.
3.3 Hidden Markov Models
Define , where is the second hidden state in the Markov chain. Then
are conditionally independent given ;
the distribution of is given by the vector ;
Note the matrix of conditional means of has full column rank, for each , provided that: (i) has full column rank, (ii) is invertible, and (iii) and have positive entries.
Orthogonal Tensor Decompositions
We now show how recovering the ’s in our aforementioned problems reduces to the problem of finding a certain orthogonal tensor decomposition of a symmetric tensor. We start by reviewing the spectral decomposition of symmetric matrices, and then discuss a generalization to the higher-order tensor case. Finally, we show how orthogonal tensor decompositions can be used for estimating the latent variable models from the previous section.
Such a decomposition is guaranteed to exist for every symmetric matrix.
Recovery of the ’s and ’s can be viewed at least two ways. First, each is fixed under the mapping , up to a scaling factor :
as for all by orthogonality. The ’s are not necessarily the only such fixed points. For instance, with the multiplicity , then any linear combination of and is similarly fixed under . However, in this case, the decomposition in (1) is not unique, as is equal to for any pair of orthonormal vectors, and spanning the same subspace as and . Nevertheless, the decomposition is unique when are distinct, whereupon the ’s are the only directions fixed under up to non-trivial scaling.
The second view of recovery is via the variational characterization of the eigenvalues. Assume ; the case of repeated eigenvalues again leads to similar non-uniqueness as discussed above. Then the Rayleigh quotient
is maximized over non-zero vectors by . Furthermore, for any , the maximizer of the Rayleigh quotient, subject to being orthogonal to , is . Another way of obtaining this second statement is to consider the deflated Rayleigh quotient
and observe that is the maximizer.
Efficient algorithms for finding these matrix decompositions are well studied (Golub and van Loan, 1996, Section 8.2.3), and iterative power methods are one effective class of algorithms.
We remark that in our multilinear tensor notation, we may write the maps and as
2 The Tensor Case
Decomposing general tensors is a delicate issue; tensors may not even have unique decompositions. Fortunately, the orthogonal tensors that arise in the aforementioned models have a structure which permits a unique decomposition under a mild non-degeneracy condition. We focus our attention to the case , i.e., a third order tensor; the ideas extend to general with minor modifications.
Note that since we are focusing on odd-order tensors (), we have added the requirement that the be positive. This convention can be followed without loss of generality since whenever is odd. Also, it should be noted that orthogonal decompositions do not necessarily exist for every symmetric tensor.
In analogy to the matrix setting, we consider two ways to view this decomposition: a fixed-point characterization and a variational characterization. Related characterizations based on optimal rank- approximations are given by Zhang and Golub (2001).
For a tensor , consider the vector-valued map
which is the third-order generalization of (2). This can be explicitly written as
Observe that (5) is not a linear map, which is a key difference compared to the matrix case.
(To simplify the discussion, we assume throughout that eigenvectors have unit norm; otherwise, for scaling reasons, we replace the above equation with .) This concept was originally introduced by Lim (2005) and Qi (2005). For orthogonally decomposable tensors ,
By the orthogonality of the , it is clear that for all . Therefore each is an eigenvector/eigenvalue pair.
There are a number of subtle differences compared to the matrix case that arise as a result of the non-linearity of (5). First, even with the multiplicity , a linear combination may not be an eigenvector. In particular,
may not be a multiple of . This indicates that the issue of repeated eigenvalues does not have the same status as in the matrix case. Second, even if all the eigenvalues are distinct, it turns out that the ’s are not the only eigenvectors. For example, set . Then,
so is an eigenvector. More generally, for any subset , the vector
starting from converges to . Note that the map (6) rescales the output to have unit Euclidean norm. Robust eigenvectors are also called attracting fixed points of (6) (see, e.g., Kolda and Mayo, 2011).
The following theorem implies that if has an orthogonal decomposition as given in (4), then the set of robust eigenvectors of are precisely the set , implying that the orthogonal decomposition is unique. (For even order tensors, the uniqueness is true up to sign-flips of the .)
Let have an orthogonal decomposition as given in (4).
The set of robust eigenvectors of is equal to .
The proof of Theorem 4.1 is given in Appendix A.1, and follows readily from simple orthogonality considerations. Note that every in the orthogonal tensor decomposition is robust, whereas for a symmetric matrix , for almost all initial points, the map converges only to an eigenvector corresponding to the largest magnitude eigenvalue. Also, since the tensor order is odd, the signs of the robust eigenvectors are fixed, as each is mapped to under (6).
2.2 Variational Characterization
We now discuss a variational characterization of the orthogonal decomposition. The generalized Rayleigh quotient (Zhang and Golub, 2001) for a third-order tensor is
Let have an orthogonal decomposition as given in (4), and consider the optimization problem
The stationary points are eigenvectors of .
A stationary point is an isolated local maximizer if and only if for some .
The proof of Theorem 4.2 is given in Appendix A.2. It is similar to local optimality analysis for ICA methods using fourth-order cumulants (e.g., Delfosse and Loubaton, 1995; Frieze et al., 1996).
Again, we see similar distinctions to the matrix case. In the matrix case, the only local maximizers of the Rayleigh quotient are the eigenvectors with the largest eigenvalue (and these maximizers take on the globally optimal value). For the case of orthogonal tensor forms, the robust eigenvectors are precisely the isolated local maximizers.
An important implication of the two characterizations is that, for orthogonally decomposable tensors , (i) the local maximizers of the objective function correspond precisely to the vectors in the decomposition, and (ii) these local maximizers can be reliably identified using a simple fixed-point iteration (i.e., the tensor analogue of the matrix power method). Moreover, a second-derivative test based on can be employed to test for local optimality and rule out other stationary points.
3 Estimation via Orthogonal Tensor Decompositions
We now demonstrate how the moment tensors obtained for various latent variable models in Section 3 can be reduced to an orthogonal form. For concreteness, we take the specific form from the exchangeable single topic model (Theorem 3.1):
(The more general case allows the weights in to differ in , but for simplicity we keep them the same in the following discussion.) We now show how to reduce these forms to an orthogonally decomposable tensor from which the and can be recovered. See Appendix D for a discussion as to how previous approaches (Mossel and Roch, 2006; Anandkumar et al., 2012c, a; Hsu and Kakade, 2013) achieved this decomposition through a certain simultaneous diagonalization method.
Throughout, we assume the following non-degeneracy condition.
Observe that Condition 4.1 implies that is positive semidefinite and has rank . This is often a mild condition in applications. When this condition is not met, learning is conjectured to be generally hard for both computational (Mossel and Roch, 2006) and information-theoretic reasons (Moitra and Valiant, 2010). As discussed by Hsu et al. (2012b) and Hsu and Kakade (2013), when the non-degeneracy condition does not hold, it is often possible to combine multiple observations using tensor products to increase the rank of the relevant matrices. Indeed, this observation has been rigorously formulated in very recent works of Bhaskara et al. (2014) and Anderson et al. (2014) using the framework of smoothed analysis (Spielman and Teng, 2009).
As the following theorem shows, the orthogonal decomposition of can be obtained by identifying its robust eigenvectors, upon which the original parameters and can be recovered. For simplicity, we only state the result in terms of robust eigenvector/eigenvalue pairs; one may also easily state everything in variational form using Theorem 4.2.
Assume Condition 4.1 and take as defined above.
The theorem follows by combining the above discussion with the robust eigenvector characterization of Theorem 4.1. Recall that we have taken as convention that eigenvectors have unit norm, so the are exactly determined from the robust eigenvector/eigenvalue pairs of (together with the pseudoinverse of ); in particular, the scale of each is correctly identified (along with the corresponding ). Relative to previous works on moment-based estimators for latent variable models (e.g., Anandkumar et al., 2012c, a; Hsu and Kakade, 2013), Theorem 4.3 emphasizes the role of the special tensor structure, which in turn makes transparent the applicability of methods for orthogonal tensor decomposition.
3.2 Local Maximizers of (Cross Moment) Skewness
The variational characterization provides an interesting perspective on the robust eigenvectors for these latent variable models. Consider the exchangeable single topic models (Theorem 3.1), and the objective function
In this case, every local maximizer satisfies for some . The objective function can be interpreted as the (cross moment) skewness of the random vectors along direction .
Tensor Power Method
In this section, we consider the tensor power method of Lathauwer et al. (2000, Remark 3) for orthogonal tensor decomposition. We first state a simple convergence analysis for an orthogonally decomposable tensor .
When only an approximation to an orthogonally decomposable tensor is available (e.g., when empirical moments are used to estimate population moments), an orthogonal decomposition need not exist for this perturbed tensor (unlike for the case of matrices), and a more robust approach is required to extract the approximate decomposition. Here, we propose such a variant in Algorithm 1 and provide a detailed perturbation analysis. We note that alternative approaches such as simultaneous diagonalization can also be employed (see Appendix D).
The following lemma establishes the quadratic convergence of the tensor power method—i.e., repeated iteration of (6)—for extracting a single component of the orthogonal decomposition. Note that the initial vector determines which robust eigenvector will be the convergent point. Computation of subsequent eigenvectors can be computed with deflation, i.e., by subtracting appropriate terms from .
That is, repeated iteration of (6) starting from converges to at a quadratic rate.
To obtain all eigenvectors, we may simply proceed iteratively using deflation, executing the power method on after having obtained robust eigenvector / eigenvalue pairs .
Proof Let be the sequence given by and for . Let for all . It is easy to check that (i) , and (ii) . (Indeed, .) Then
Since , we have and hence as required.
2 Perturbation Analysis of a Robust Tensor Power Method
Now we consider the case where we have an approximation to an orthogonally decomposable tensor . Here, a more robust approach is required to extract an approximate decomposition. We propose such an algorithm in Algorithm 1, and provide a detailed perturbation analysis. For simplicity, we assume the tensor is of size as per the reduction from Section 4.3. In some applications, it may be preferable to work directly with a tensor of rank (as in Lemma 5.1); our results apply in that setting with little modification.
In our latent variable model applications, is the tensor formed by using empirical moments, while is the orthogonally decomposable tensor derived from the population moments for the given model. In the context of parameter estimation (as in Section 4.3), must account for any error amplification throughout the reduction, such as in the whitening step (see, e.g., Hsu and Kakade, 2013, for such an analysis).
The following theorem is similar to Wedin’s perturbation theorem for singular vectors of matrices (Wedin, 1972) in that it bounds the error of the (approximate) decomposition returned by Algorithm 1 on input in terms of the size of the perturbation, provided that the perturbation is small enough.
(Note that the condition on holds with .) Suppose that Algorithm 1 is iteratively called times, where the input tensor is in the first call, and in each subsequent call, the input tensor is the deflated tensor returned by the previous call. Let be the sequence of estimated eigenvector/eigenvalue pairs returned in these calls. With probability at least , there exists a permutation on such that
The proof of Theorem 5.1 is given in Appendix B.
One important difference from Wedin’s theorem is that this is an algorithm dependent perturbation analysis, specific to Algorithm 1 (since the perturbed tensor need not have an orthogonal decomposition). Furthermore, note that Algorithm 1 uses multiple restarts to ensure (approximate) convergence—the intuition is that by restarting at multiple points, we eventually start at a point in which the initial contraction towards some eigenvector dominates the error in our tensor. The proof shows that we find such a point with high probability within trials. It should be noted that for large , the required bound on is very close to linear in .
In general, it is possible, when run on a general symmetric tensor (e.g., ), for the tensor power method to exhibit oscillatory behavior (Kofidis and Regalia, 2002, Example 1). This is not in conflict with Theorem 5.1, which effectively bounds the amplitude of these oscillations; in particular, if is a tensor built from empirical moments, the error term (and thus the amplitude of the oscillations) can be driven down by drawing more samples. The practical value of addressing these oscillations and perhaps stabilizing the algorithm is an interesting direction for future research (Kolda and Mayo, 2011).
A final consideration is that for specific applications, it may be possible to use domain knowledge to choose better initialization points. For instance, in the topic modeling applications (cf. Section 3.1), the eigenvectors are related to the topic word distributions, and many documents may be primarily composed of words from just single topic. Therefore, good initialization points can be derived from these single-topic documents themselves, as these points would already be close to one of the eigenvectors.
Discussion
In this section, we discuss some practical and application-oriented issues related to the tensor decomposition approach to learning latent variable models.
A number of practical concerns arise when dealing with moment matrices and tensors. Below, we address two issues that are especially pertinent to topic modeling applications (Anandkumar et al., 2012c, a) or other settings where the observations are sparse.
It can be checked that this quantity is equal to
where the sum is over all ordered word triples in the document. A similar expression is easily derived for the contribution of the document to the empirical second-order moment matrix:
Note that the word count vector is generally a sparse vector, so this representation allows for efficient multiplication by the moment matrices and tensors in time linear in the size of the document corpus (i.e., the number of non-zero entries in the term-document matrix).
1.2 Dimensionality Reduction
Another serious concern regarding the use of tensor forms of moments is the need to operate on multidimensional arrays with values (it is typically not exactly due to symmetry). When is large (e.g., when it is the size of the vocabulary in natural language applications), even storing a third-order tensor in memory can be prohibitive. Sparsity is one factor that alleviates this problem. Another approach is to use efficient linear dimensionality reduction. When this is combined with efficient techniques for matrix and tensor multiplication that avoid explicitly constructing the moment matrices and tensors (such as the procedure described above), it is possible to avoid any computational scaling more than linear in the dimension and the training sample size.
2 Computational Complexity
It is worth noting that the running times differ by roughly a factor of , which can be accounted for by the random restarts. This gap can potentially be alleviated or removed by using a more clever method for initialization. Moreover, using special structure in the problem (as discussed above) can also improve the running time of the tensor power method.
3 Sample Complexity Bounds
Previous work on using linear algebraic methods for estimating latent variable models crucially rely on matrix perturbation analysis for deriving sample complexity bounds (Mossel and Roch, 2006; Hsu et al., 2012b; Anandkumar et al., 2012c, a; Hsu and Kakade, 2013). The learning algorithms in these works are plug-in estimators that use empirical moments in place of the population moments, and then follow algebraic manipulations that result in the desired parameter estimates. As long as these manipulations can tolerate small perturbations of the population moments, a sample complexity bound can be obtained by exploiting the convergence of the empirical moments to the population moments via the law of large numbers. As discussed in Appendix D, these approaches do not directly lead to practical algorithms due to a certain amplification of the error (a polynomial factor of , which is observed in practice).
Using the perturbation analysis for the tensor power method, improved sample complexity bounds can be obtained for all of the examples discussed in Section 3. The underlying analysis remains the same as in previous works (e.g., Anandkumar et al., 2012a; Hsu and Kakade, 2013), the main difference being the accuracy of the orthogonal tensor decomposition obtained via the tensor power method. Relative to the previously cited works, the sample complexity bound will be considerably improved in its dependence on the rank parameter , as Theorem 5.1 implies that the tensor estimation error (e.g., error in estimating from Section 4.3) is not amplified by any factor explicitly depending on (there is a requirement that the error be smaller than some factor depending on , but this only contributes to a lower-order term in the sample complexity bound). See Appendix D for further discussion regarding the stability of the techniques from these previous works.
4 Other Perspectives
The tensor power method is simply one approach for extracting the orthogonal decomposition needed in parameter estimation. The characterizations from Section 4.2 suggest that a number of fixed point and variational techniques may be possible (and Appendix D provides yet another perspective based on simultaneous diagonalization). One important consideration is that the model is often misspecified, and therefore approaches with more robust guarantees (e.g., for convergence) are desirable. Our own experience with the tensor power method (as applied to exchangeable topic modeling) is that while model misspecification does indeed affect convergence, the results can be very reasonable even after just a dozen or so iterations (Anandkumar et al., 2012a). Nevertheless, robustness is likely more important in other applications, and thus the stabilization approaches (Kofidis and Regalia, 2002; Regalia and Kofidis, 2003; Erdogan, 2009; Kolda and Mayo, 2011) may be advantageous.
We thank Boaz Barak, Dean Foster, Jon Kelner, and Greg Valiant for helpful discussions. We are also grateful to Hanzhang Hu, Drew Bagnell, and Martial Hebert for alerting us of an issue with Theorem 4.2 and suggesting a simple fix. This work was completed while DH was a postdoctoral researcher at Microsoft Research New England, and partly while AA, RG, and MT were visiting the same lab. AA is supported in part by the NSF Award CCF-1219234, AFOSR Award FA9550-10-1-0310 and the ARO Award W911NF-12-1-0404.
A Fixed-Point and Variational Characterizations of Orthogonal Tensor Decompositions
We give detailed proofs of Theorems 4.1 and 4.2 in this section for completeness.
Let have an orthogonal decomposition as given in (4).
The set of robust eigenvectors of is .
We now prove the second claim. First, we show that every is a robust eigenvector. Pick any , and note that for a sufficiently small ball around , we have that for all in this ball, is strictly greater than for . Thus by Lemma 5.1, is a robust eigenvector. Now we show that the are the only robust eigenvectors. Suppose there exists some robust eigenvector not equal to for any . Then there exists a positive measure set around such that all points in this set converge to under repeated iteration of (6). This contradicts the first claim.
A.2 Proof of Theorem 4.2
Let have an orthogonal decomposition as given in (4), and consider the optimization problem
The stationary points are eigenvectors of .
A stationary point is an isolated local maximizer if and only if for some .
Now we characterize the isolated local maximizers. Observe that if and for , then . Therefore for any satisfies . So such a cannot be a local maximizer. Moreover, if and for , then for a small enough satisfies and . Therefore a local maximizer must have for some , and whenever .
The point is an isolated local maximum if the above quantity is strictly negative for all unit vectors orthogonal to . We now consider three cases depending on the cardinality of and the sign of .
Case 1: and . This means for some (as implies ). In this case,
Case 2: and . Since , we may pick a strict non-empty subset and set
Since , for small enough , the RHS is strictly greater than . This implies that is not an isolated local maximizer.
for sufficiently small . Thus is not an isolated local maximizer.
From these exhaustive cases, we conclude that a stationary point is an isolated local maximizer if and only if for some .
We are grateful to Hanzhang Hu, Drew Bagnell, and Martial Hebert for alerting us of an issue with our original statement of Theorem 4.2 and its proof, and for suggesting a simple fix. The original statement used the optimization constraint (rather than ), but the characterization of the decomposition with this constraint is then only given by isolated local maximizers with the additional constraint that —that is, there can be isolated local maximizers with that are not vectors in the decomposition. The suggested fix of Hu, Bagnell, and Herbert is to relax to , which eliminates isolated local maximizers with ; this way, the characterization of the decomposition is simply the isolated local maximizers under the relaxed constraint.
B Analysis of Robust Power Method
In this section, we prove Theorem 5.1. The proof is structured as follows. In Appendix B.1, we show that with high probability, at least one out of random vectors will be a good initializer for the tensor power iterations. An initializer is good if its projection onto an eigenvector is noticeably larger than its projection onto other eigenvectors. We then analyze in Appendix B.2 the convergence behavior of the tensor power iterations. Relative to the proof of Lemma 5.1, this analysis is complicated by the tensor perturbation. We show that there is an initial slow convergence phase (linear rate rather than quadratic), but as soon as the projection of the iterate onto an eigenvector is large enough, it enters the quadratic convergence regime until the perturbation dominates. Finally, we show how errors accrue due to deflation in Appendix B.3, which is rather subtle and different from deflation with matrix eigendecompositions. This is because when some initial set of eigenvectors and eigenvalues are accurately recovered, the additional errors due to deflation are effectively only lower-order terms. These three pieces are assembled in Appendix B.4 to complete the proof of Theorem 5.1.
There exists an absolute constant such that if positive integer satisfies
It suffices to show that with probability at least , there is a column such that
Since is a -Lipschitz function of independent random variables, it follows that
Observe that the cumulative distribution function of is given by , where is the standard Gaussian CDF. Since , it follows that . It can be checked that
for some absolute constant . Also, let .
Now for each , let . Again, since is a -Lipschitz function of independent random variables, it follows that
Since is independent of for all , it follows that the previous two displayed inequalities also hold with replaced by .
Therefore we conclude with a union bound that with probability at least ,
Since satisfies (10) by assumption, in this event, the -th random vector is -separated.
B.2 Tensor Power Iterations
where is an orthonormal basis, and, without loss of generality,
for all . Combining (17) and (18) gives
Moreover, by the triangle inequality and Hölder’s inequality,
In terms of , , , and , this reads
where the last inequality follows from Proposition B.1.
and .
If , then r_{i,t+1}\geq|r_{i,t}|\bigl{(}1+\frac{\gamma_{t}}{2}\bigr{)}.
If , then .
.
If , then R_{t+1}\geq R_{t}\bigl{(}1+\frac{\gamma_{t}}{3}\bigr{)}, , and .
Proof Consider two (overlapping) cases depending on .
Case 1: . By (15) from Proposition B.2,
where the last inequality uses the assumption . This proves the first claim.
Case 2: . We split into two sub-cases. Suppose . Then, by (15),
Now suppose instead . Then
Observe that if , then for all , and hence . Otherwise we have . This proves the third claim.
If , then we may apply the inequality (20) from the second sub-case of Case 2 above to get
Finally, for the last claim, if , then by (16) from Proposition B.2 and the assumption ,
This in turn implies that via Proposition B.1, and thus .
Assume and . Pick any such that
If , then .
If , then .
Now consider the following cases depending on .
Case 1: . In this case, we have
by (21) (with ) and the condition on . Combining this with (16) from Proposition B.2 gives
Case 2: . In this case, we have
by (21) (with ) and the conditions on and . If , then (16) implies
If instead , then (16) implies
Proof Assume without loss of generality that . We consider three phases: (i) iterations before the first time such that (using ), (ii) the subsequent iterations before the first time such that (where will be defined below), and finally (iii) the remaining iterations.
and hence the preconditions on and of Lemma B.2 hold for . For all satisfying the preconditions, Lemma B.2 implies that and , so the next iteration also satisfies the preconditions. Hence by induction, the preconditions hold for all iterations in . Moreover, for all , we have
iterations in . As soon as , we have that in the next iteration,
and all the while is growing at a linear rate (given in Lemma B.2, claim 5). Therefore, there are at most an additional
iterations in over that counted in (22). Therefore, by combining the counts in (22) and (23), we have that the number of iterations in the first phase satisfies
We now analyze the second phase, i.e., the iterates in . Define
Therefore the total number of iterations before is
After (for ), we have
we also replace and with and , which we set to
Therefore, the preconditions of Lemma B.3 are satisfied for the initial iteration in this final phase, and by the same arguments as before, the preconditions hold for all subsequent iterations . Initially, we have , and by Lemma B.3, we have that increases at a quadratic rate in this final phase until . So the number of iterations before can be bounded as
Once , we have
Since by Proposition B.2, we have . Therefore we can conclude that
B.3 Deflation
for all , then for any unit vector ,
Proof For any unit vector and , the error term
lives in ; this space is the same as , where
is the projection of onto the subspace orthogonal to . Since , it follows that
(the inequality follows from the assumption , which in turn implies ). By the Pythagorean theorem and the above inequality for ,
Later, we will also need the following bound, which is easily derived from the above inequalities and the triangle inequality:
We now express in terms of the coordinate system defined by and , depicted below. Define
(Note that the part of living in is irrelevant for analyzing .) We have
The overall error can also be expressed in terms of the and :
where the first inequality uses the fact and the triangle inequality, and the second inequality uses the orthonormality of the and the triangle inequality.
and therefore (via )
The second term, , is bounded similarly:
Therefore, using the inequality from (25) and again ,
B.4 Proof of the Main Theorem
(Note that the condition on holds with .) Suppose that Algorithm 1 is iteratively called times, where the input tensor is in the first call, and in each subsequent call, the input tensor is the deflated tensor returned by the previous call. Let be the sequence of estimated eigenvector/eigenvalue pairs returned in these calls. With probability at least , there exists a permutation on such that
Proof We prove by induction that for each (corresponding to the -th call to Algorithm 1), with probability at least , there exists a permutation on such that the following assertions hold.
For all , and .
We actually take as the base case, so we can ignore the first assertion, and just observe that for ,
Now fix some , and assume as the inductive hypothesis that, with probability at least , there exists a permutation such that two assertions above hold for (call this ). The -th call to Algorithm 1 takes as input
which is intended to be an approximation to
By Lemma B.1, with conditional probability at least given , at least one of for is -separated relative to , where , (for ; call this ; note that the application of Lemma B.1 determines ). Therefore . It remains to show that ; so henceforth we condition on .
On the other hand, by the triangle inequality,
where . Therefore
Squaring both sides and using the fact that for any ,
This means that is -separated relative to . Also, observe that
Since and , the first assertion of the inductive hypothesis is satisfied, as we can modify the permutation by swapping and without affecting the values of (recall ).
To prove that (27) holds, pick any unit vector such that there exists with . We have, via the second bound on in (28) and the corresponding assumed bound ,
From the last induction step (), it is also clear from (29) that (in ). This completes the proof of the theorem.
C Variant of Robust Power Method that uses a Stopping Condition
In this section we analyze a variant of Algorithm 1 that uses a stopping condition. The variant is described in Algorithm 2. The key difference is that the inner for-loop is repeated until a stopping condition is satisfied (rather than explicitly times). The stopping condition ensures that the power iteration is converging to an eigenvector, and it will be satisfied within random restarts with high probability. The condition depends on one new quantity, , which should be set to (i.e., the first call to Algorithm 2 uses , the second call uses , and so on).
For a matrix , we use to denote its Frobenius norm. For a third-order tensor , we use .
Combining these bounds on gives
which in turn implies (for )
Now we prove the final claim. This is done by (i) showing that has a large projection onto , (ii) using an SVD perturbation argument to show that is close to , and (iii) concluding that has a large projection onto .
so we may apply Wedin’s theorem to obtain
It remains to show that is large. Indeed, by the triangle inequality, Cauchy-Schwarz, and the above inequalities on and ,
so , meaning . Therefore . This proves the final claim.
To the conclusion of Lemma B.4, it can be added that the stopping condition (31) is satisfied by .
Proof Without loss of generality, assume . By the triangle inequality and Cauchy-Schwarz,
Using the definition of the tensor Frobenius norm, we have
Combining this with the above inequality implies
Therefore the stopping condition (31) is satisfied.
C.2 Sketch of Analysis of Algorithm 2
The analysis of Algorithm 2 is very similar to the proof of Theorem 5.1 for Algorithm 1, so here we just sketch the essential differences.
First, the guarantee afforded to Algorithm 2 is somewhat different than Theorem 5.1. Specifically, it is of the following form: (i) under appropriate conditions, upon termination, the algorithm returns an accurate decomposition, and (ii) the algorithm terminates after random restarts with high probability.
The conditions on and are the same (but for possibly different universal constants ). In Lemma C.1 and Lemma C.2, there is reference to a condition on the Frobenius norm of , but we may use the inequality so that the condition is subsumed by the condition.
Now we outline the differences relative to the proof of Theorem 5.1. The basic structure of the induction argument is the same. In the induction step, we argue that (i) if the stopping condition is satisfied, then by Lemma C.1 (with and ), we have a vector such that, for some ,
;
is -separated relative to ;
and (ii) the stopping condition is satisfied within random restarts (via Lemma B.1 and Lemma C.2) with high probability. We now invoke Lemma B.4 to argue that executing another power iterations starting from gives a vector that satisfies
The main difference here, relative to the proof of Theorem 5.1, is that we use (rather than ), but this ultimately leads to the same guarantee after taking into consideration the condition . The remainder of the analysis is essentially the same as the proof of Theorem 5.1.
D Simultaneous Diagonalization for Tensor Decomposition
As discussed in the introduction, another standard approach to certain tensor decomposition problems is to simultaneously diagonalize a collection of similar matrices obtained from the given tensor. We now examine this approach in the context of our latent variable models, where
Let and , so
Thus, the problem of determining the can be cast as a simultaneous diagonalization problem: find a matrix such that and (for all ) are diagonal. It is easy to see that if the are linearly independent, then the solution is unique up to permutation and rescaling of the columns.
With exact moments, a simple approach is as follows. Assume for simplicity that , and define
It should be noted, however, that the use of a single random choice of is quite restrictive, and it is easy to see that a simultaneous diagonalization of for several choices of can be beneficial. While the uniqueness of the eigendecomposition of is only guaranteed when the diagonal entries of are distinct, the simultaneous diagonalization of for vectors is unique as long as the columns of
are distinct (i.e., for each pair of column indices , there exists a row index such that the -th and -th entries are distinct). This is a much weaker requirement for uniqueness, and therefore may translate to an improved perturbation analysis. In fact, using the techniques discussed in Section 4.3, we may even reduce the problem to an orthogonal simultaneous diagonalization, which may be easier to obtain. Furthermore, a number of robust numerical methods for (approximately) simultaneously diagonalizing collections of matrices have been proposed and used successfully in the literature (e.g., Bunse-Gerstner et al., 1993; Cardoso and Souloumiac, 1993; Cardoso, 1994; Cardoso and Comon, 1996; Ziehe et al., 2004). Another alternative and a more stable approach compared to full diagonalization is a Schur-like method which finds a unitary matrix which simultaneously triangularizes the respective matrices (Corless et al., 1997). It is an interesting open question whether these techniques can yield similar improved learnability results and also enjoy the attractive computational properties of the tensor power method.