# hierarchical_methods_of_moments__d3f9ccd0.pdf Hierarchical Methods of Moments Matteo Ruffini Universitat Politècnica de Catalunya Guillaume Rabusseau Mc Gill University Borja Balle Amazon Research Spectral methods of moments provide a powerful tool for learning the parameters of latent variable models. Despite their theoretical appeal, the applicability of these methods to real data is still limited due to a lack of robustness to model misspecification. In this paper we present a hierarchical approach to methods of moments to circumvent such limitations. Our method is based on replacing the tensor decomposition step used in previous algorithms with approximate joint diagonalization. Experiments on topic modeling show that our method outperforms previous tensor decomposition methods in terms of speed and model quality. 1 Introduction Unsupervised learning of latent variable models is a fundamental machine learning problem. Algorithms for learning a variety of latent variable models, including topic models, hidden Markov models, and mixture models are routinely used in practical applications for solving tasks ranging from representation learning to exploratory data analysis. For practitioners faced with the problem of training a latent variable model, the decades-old Expectation-Maximization (EM) algorithm [1] is still the tool of choice. Despite its theoretical limitations, EM owes its appeal to (i) the robustness of the maximum-likelihood principle to model misspecification, and (ii) the need, in most cases, to tune a single parameter: the dimension of the latent variables. On the other hand, method of moments (Mo M) algorithms for learning latent variable models via efficient tensor factorization algorithms have been proposed in the last few years [2 9]. Compared to EM, moment-based algorithms provide a stronger theoretical foundation for learning latent variable models. In particular, it is known that in the realizable setting the output of a Mo M algorithm will converge to the parameters of the true model as the amount of training data increases. Furthermore, Mo M algorithms only make a single pass over the training data, are highly parallelizable, and always terminate in polynomial time. However, despite their apparent advantages over EM, the adoption of Mo M algorithms in practical applications is still limited. Empirical studies indicate that initializing EM with the output of a Mo M algorithm can improve the convergence speed of EM by several orders of magnitude, yielding a very efficient strategy to accurately learn latent variable models [8 10]. In the case of relatively simple models this approach can be backed by intricate theoretical analyses [11]. Nonetheless, these strategies are not widely deployed in practice either. The main reason why Mo M algorithms are not adopted by practitioners is their lack of robustness to model misspecification. Even when combined with EM, Mo M algorithms fail to provide an initial estimate for the parameters of a model leading to fast convergence when the learning problem is too far from the realizable setting. For example, this happens when the number of the latent variables used in a Mo M algorithm is too small to accurately represent the training data. In contrast, the model mruffini@cs.upc.edu guillaume.rabusseau@mail.mcgill.ca pigem@amazon.co.uk 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA. obtained by standalone EM in this case is reasonable and desirable: when asked for a small number of latent variables EM yields a model which is easy to interpret and can be useful for data visualization and exploration. For example, an important application of low-dimensional learning can be found in mixture models, where latent class assignments provided by a simple model can be used to split the training data into disjoint datasets to which EM is applied recursively to produce a hierarchical clustering [12, 13]. The tree produced by such clusterings procedure provides a useful aid in data exploration and visualization even if the models learned at each branching point do not accurately represent the training data. In this paper we develop a hierarchical method of moments that produces meaningful results even in misspecified settings. Our approach is different from previous attemps to design Mo M algorithms for misspecified models. Instead of looking for convex relaxations of existing Mo M algorithms like in [14 16] or analyzing the behavior of a Mo M algorithm with a misspecified number of latent states like in [17, 18], we generalize well-known simultaneous diagonalization approaches to tensor decomposition by phrasing the problem as a non-convex optimization problem. Despite its non-convexity, the hierarchical nature of our method allows for a fast accurate solution based on low-dimensional grid search. We test our method on synthetic and real-world datasets on the topic modeling task, showcasing the advantages of our approach and obtaining meaningful results. 2 Moments, Tensors, and Latent Variable Models This section starts by recalling the basic ideas behind methods of moments for learning latent variable models via tensor decompositions. Then we review existing tensor decomposition algorithms and discuss the effect of model misspecification on the output of such algorithms. For simplicity we consider first a single topic model with k topics over a vocabulary with d words. A single topic model defines a generative process for text documents where first a topic Y 2 [k] is drawn from some discrete distribution P[Y = i] = !i, and then each word Xt 2 [d], 1 t T, in a document of length T is independently drawn from some distribution P[Xt = j|Y = i] = µi,j over words conditioned on the document topic. The model is completely specified by the vector of topic proportions ! 2 Rk and the word distributions µi 2 Rd for each topic i 2 [k]. We collect the word distributions of the model as the columns of a matrix M = [µ1 µk] 2 Rd k. It is convenient to represent the words in a document using one-hot encodings so that Xt 2 Rd is an indicator vector. With this notation, the conditional expectation of any word in a document drawn from topic i is E[Xt|Y = i] = µi, and the random vector X = PT t=1 Xt is conditionally distributed as a multinomial random variable, with parameters µi and T. Integrating over topics drawn from ! we obtain the first moment of the distribution over words M1 = E[Xt] = P i !iµi = M!. Generalizing this argument to pairs and triples of distinct words in a document yields the matrix of second order moments and the tensor of third order moments of a single topic model: M2 = E[Xs Xt] = !iµi µi 2 Rd d , (1) M3 = E[Xr Xs Xt] = !iµi µi µi 2 Rd d d , (2) where denotes the tensor (Kronecker) product between vectors. By defining the matrix = diag(!) one also obtains the expression M2 = M M >. A method of moments for learning single topic models proceeds by (i) using a collection of n documents to compute empirical estimates ˆ M1, ˆ M2, ˆ M3 of the moments, and (ii) using matrix and tensor decomposition methods to (approximately) factor these empirical moments and extract the model parameters from their decompositions. From the algorithmic point of view, the appeal of this scheme resides in the fact that step (i) requires a single pass over the data which can be trivially parallelized using map-reduce primitives, while step (ii) only requires linear algebra operations whose running time is independent of n. The specifics of step (ii) will be discussed in Section 2.1. Estimating moments ˆ Mm from data with the property that E[ ˆ Mm] = Mm for m 2 {1, 2, 3} is the essential requirement for step (i). In the case of single topic models, and more generally multi-view models, such estimations are straightforward. For example, a simple consistent estimator takes a collection of documents {x(i)}n i=1 and computes ˆ M3 = (1/n) Pn 3 using the first three words from each document. More data-efficient estimators for datasets containing long documents can be found in the literature [19]. For more complex models the method sketched above requires some modifications. Specifically, it is often necessary to correct the statistics directly observable from data in order to obtain vectors/matrices/tensors whose expectation over a training dataset exhibits precisely the relation with the parameters ! and M described above. For example, this is the case for Latent Dirichlet Allocation and mixtures of spherical Gaussians [4, 6]. For models with temporal dependence between observations, e.g. hidden Markov models, the method requires a spectral projection of observables to obtain moments behaving in a multi-view-like fashion [3, 20]. Nonetheless, methods of moments for these models and many others always reduces to the factorization of a matrix and tensor of the form M2 and M3 given above. 2.1 Existing Tensor Decomposition Algorithms Mathematically speaking, methods of moments attempt to solve the polynomial equations in ! and M arising from plugging the empirical estimates ˆ Mm into the expressions for their expectations given above. Several approaches have been proposed to solve these non-linear systems of equations. A popular method for tensor decomposition is Alternating Least Squares (ALS) [21]. Starting from a random initialization of the factors composing a tensor, ALS iteratively fixes two of the three factors, and updates the remaining one by solving an overdetermined linear least squares problem. ALS is easy to implement and to understand, but is known to be prone to local minima, needing several random restarts to yield meaningful results. These limitations fostered the research for methods with guarantees, that, in the unperturbed setting, optimally decompose a tensor like the one in Eq. (2). We now briefly analyze some of these methods. The tensor power method (TPM) [2] starts with a whitening step where, given the SVD M2 = USU >, the whitening matrix E = US1/2 2 Rd k is used to transform M3 into a symmetric orthogonally decomposable tensor !i E µi E µi E µi 2 Rk k k (3) The weights !i and vectors µi are then recovered from T using a tensor power method and inverting the whitening step. The same whitening matrix is used in [3, 4], where the authors observe that the whitened slices of M3 are simultaneously diagonalized by the Moore-Penrose pseudoinverse of M 1/2. Indeed, since M2 = M M > = EE>, there exists a unique orthonormal matrix O 2 Rk k such that M 1/2 = EO. Writing M3,r 2 Rd d for the rth slice of M3 across its second mode and mr for the rth row of M, it follows that M3,r = M 1/2diag(mr) 1/2M > = EOdiag(mr)O>E> . Thus, the problem can be reduced to searching for the common diagonalizer O of the whitened slices of M3 defined as Hr = E M3,r E > = Odiag(mr)O> . (4) In the noiseless settings it is sufficient to diagonalize any of the slices M3,r. However, one can also recover O as the eigenvectors of a random linear combination of the various Hr which is more robust to noise [3]. Lastly, the method proposed in [22] consists in directly performing simultaneous diagonalization of random linear combinations of slices of M3 without any whitening step. This method, which in practice is slower than the others (see Section 4.1), under an incoherence assumption on the vectors µi, can robustly recover the weights !i and vectors µi from the tensor M3, even when it is not orthogonally decomposable. 2.2 The Misspecified Setting The methods listed in the previous section have been analyzed in the case where the algorithm only has access to noisy estimates of the moments. However, such analyses assume that the data was generated by a model from the hypothesis class, that the matrix M has rank k, and that this rank is known to the algorithm. In practice the dimension k of the latent variable can be cross-validated, but in many cases this is not enough: data may come from a model outside the class, or from a model with a very large true k. Besides, the moment estimates might be too noisy to provide reliabe estimates for large number of latent variables. It is thus frequent to use these algorithms to estimate l < k latent variables. However, existing algorithms are not robust in this setting, as they have not been designed to work in this regime, and there is no theoretical explanation of what their outputs will be. The methods relying on a whitening step [2 4], will perform the whitening using the matrix E l obtained from the low-rank SVD truncated at rank l: M2 Ul Sl U > l . TPM will use El to whiten the tensor M3 to a tensor Tl 2 Rl l l. However, when k > l, Tl may not admit a symmetric orthogonal decomposition 4. Consequently, it is not clear what TPM will return in this case and there are no guarantees it will even converge. The methods from [3, 4] will compute the matrices Hl,r = E l for r 2 [d] that may not be jointly diagonalizable, and in this case there is no theoretical justification of what what the result of these algorithms will be. Similarly, the simultaneous diagonalization method proposed in [22] produces a matrix that nearly diagonalizes the slices of M3, but no analysis is given for this setting. 3 Simultaneous Diagonalization Based on Whitening and Optimization This section presents the main contribution of the paper: a simultaneous diagonalization algorithms based on whitening and optimization we call SIDIWO (Simultaneous Diagonalization based on Whitening and Optimization). When asked to produce l = k components in the noiseless setting, SIDIWO will return the same output as any of the methods discussed in Section 2.1. However, in contrast with those methods, SIDIWO will provide useful results with a clear interpretation even in a misspecified setting (l < k). 3.1 SIDIWO in the Realizable Setting To derive our SIDIWO algorithm we first observe that in the noiseless setting and when l = k, the pair (M, !) returned by all methods described in Section 2.1 is the solution of the optimization problem given in the following lemma5. Lemma 3.1 Let M3,r be the r-th slice across the second mode of the tensor M3 from (2) with parameters (M, !). Suppose rank(M) = k and let = diag(!). Then the matrix (M 1/2) is the unique optimum (up to column rescaling) of the optimization problem (DM3,r D>)2 where Dk = {D : D = (EOk) for some Ok s.t. Ok O> k = Ik} and E is the whitening matrix defined in Section 2.1. Remark 1 (The role of the constraint) Consider the cost function of Problem (5): in an unconstrained setting, there may be several matrices minimizing that cost. A trivial example is the zero matrix. A less trivial example is when the rows of D belong to the orthogonal complement of the column space of the matrix M. The constraint D = (EOk) for some orthonormal matrix Ok first excludes the zero matrix from the set of feasible solutions, and second guarantees that all feasible solutions lay in the space generated by the columns of M. Problem (5) opens a new perspective on using simultaneous diagonalization to learn the parameters of a latent variable model. In fact, one could recover the pair (M, !) from the relation M 1/2 = D by first finding the optimal D and then individually retrieving M and ! by solving a linear system using the vector M1. This approach, outlined in Algorithm 1, is an alternative to the ones presented in the literature up to now (even though in the noiseless, realizable setting, it will provide the same 4See the supplementary material for an example corroborating this statement. 5The proofs of all the results are provided in the supplementary material. Algorithm 1 SIDIWO: Simultaneous Diagonalization based on Whitening and Optimization Require: M1, M2, M3, the number of latent states l 1: Compute a SVD of M2 truncated at the l-th singular vector: M2 Ul Sl U > 2: Define the matrix El = Ul S1/2 l 2 Rd l. 3: Find the matrix D 2 Dl optimizing Problem (5). 4: Find ( M, !) solving M !> = M1 5: return ( M, !) results). Similarly to existing methods, this approach requires to know the number of latent states. We will however see in the next section that Algorithm 1 provides meaningful results even when a misspecified number of latent states l < k is used. 3.2 The Misspecified Setting Algorithm 1 requires as inputs the low order moments M1, M2, M3 along with the desired number of latent states l to recover. If l = k, it will return the exact model parameters (M, !); we will now see that it will also provide meaningful results when l < k. In this setting, Algorithm 1 returns a pair ( M, !) 2 Rd l Rl such that the matrix D = ( M 1/2) is optimal for the optimization problem (DM3,r D>)2 Analyzing the space of feasible solutions (Theorem 3.1) and the optimization function (Theorem 3.2), we will obtain theoretical guarantees on what SIDIWO returns when l < k, showing that the trivial solutions are not feasible, and that, in the space of feasible solutions, SIDIWO s optima will approximate the true model parameters according to an intuitive geometric interpretation. Remarks on the constraints. The first step consists in analyzing the space of feasible solutions Dl when l < k. The observations outlined in Remark 1 still hold in this setting: the zero solution and the matrices laying in the orthonormal complement of M are not feasible. Furthermore, the following theorem shows that other undesirable solutions will be avoided. Theorem 3.1 Let D 2 Dl with rows d1, ..., dl, and let Ir,s denote the r s identity matrix. The following facts hold under the hypotheses of Lemma 3.1: 1. For any row di, there exists at least one column of M such that hdi, µji 6= 0. 2. The columns of any M satisfying M 1/2 = D are a linear combination of those of M, laying in the best-fit l-dimensional subspace of the space spanned by the columns of M. 3. Let be any permutation of {1, ..., d}, and let M and be obtained by permuting the columns of M and according to . If hµi, µji 6= 0 for any i, j, then ((M 1/2 )Ik,l) /2 Dl, and similarly Il,k(M 1/2 The second point of Theorem 3.1 states that the feasible solutions will lay in the best l-dimensional subspace approximating the one spanned by the columns of M. This has two interesting consequences: if the columns of M are not orthogonal, point 3 guarantees that M cannot simply be a sub-block of the original M, but rather a non-trivial linear combination of its columns laying in the best l-dimensional subspace approximating its column space. In the single topic model case with k topics, when asked to recover l < k topics, Algorithm 1 will not return a subset of the original k topics, but a matrix M whose columns gather the original topics via a non trivial linear combination: the original topics will all be represented in the columns of M with different weights. When the columns of M are orthogonal, this space coincides with the space of the l columns of M associated with the l largest !i; in this setting, the matrix (M 1/2 )Ik,l (for some permutation ) is a feasible solution and minimizes Problem (6). Thus, Algorithm 1 will recover the top l topics. Interpreting the optima. Let M be such that D = ( M 1/2) 2 Dl is a minimizer of Problem (6). In order to better understand the relation between M and the original matrix M, we will show that the cost function of Problem (6) can be written in an equivalent form, that unveils a geometric interpretation. Theorem 3.2 Let d1, ..., dl denote the rows of D 2 Dl and introduce the following optimization problem hdi, µhihdj, µhi!hvh (7) where VM = {v 2 Rk : v = >M, where k k2 1}. Then this problem is equivalent to (6). First, observe that the cost function in Equation (7) prefers D s such that the vectors ui = [hdi, µ1p!1i, ..., hdi, µkp!ki], i 2 [l], have disjoint support. This is a consequence of the supv2VM , and requires that, for each j, the entries hdi, µjp!ji are close zero for at least all but one of the various di. Consequently, each center will be almost orthogonal to all but one row of the optimal D; however the number of centers is greater than the number of rows of D, so the same row di may be nonorthogonal to various centers. For illustration, consider the single topic model: a solution D to Problem (7) would have rows that should be as orthogonal as possible to some topics and as aligned as possible to the others; in other words, for a given topic j, the optimization problem is trying to set hdi, µjp!ji = 0 for all but one of the various di. Consequently, each column of the output M of Algorithm 1 should be in essence aligned with some of the topics and orthogonal to the others. It is worth mentioning that the constraint set Dl forbids the trivial solutions such as the zero matrix, the pseudo-inverse of any subset of l columns of M 1/2, and any subset of l rows of (M 1/2) (which all have an objective value of 0). We remark that Theorem 3.2 doesn t require the matrix M to be full rank k: we only need it to have at least rank greater or equal to l, in order to guarantee that the constraint set Dl is well defined. An optimal solution when l = 2. While Problem (5) can be solved in general using an extension of the Jacobi technique [23, 24], we provide a simple and efficient method for the case l = 2. This method will then be used to perform hierarchical topic modeling in Section 4. When l = 2, Equation (6) can be solved optimally with few simple steps; in fact, the following theorem shows that solving (6) is equivalent to minimizing a continuous function on the compact one-dimensional set I = [ 1, 1], which can easily be done by griding I. Using this in Step 3 of Algorithm 1, one can efficiently compute an arbitrarily good approximation of the optimal matrix D 2 D2. Theorem 3.3 Consider the continuous function F(x) = c1x4 + c2x3p 1 x2 + c4x2 + c5, where the coefficients c1, ..., c5 are functions of the entries of M2 and M3. Let a be the minimizer of F on [ 1, 1], and consider the matrix Then, the matrix D = (E2Oa) is a minimizer of Problem (6) when l = 2. 4 Case Study: Hierarchical Topic Modeling In this section, we show how SIDIWO can be used to efficiently recover hierarchical representations of latent variable models. Given a latent variable model with k states, our method allows to recover a pair ( M, !) from estimate of the moments M1, M2 and M3, where the l columns of M offer a synthetic representation of the k original centers. We will refer to these l vectors as pseudo-centers: each pseudo-center is representative of a group of the original centers. Consider the case l = 2. A dataset C of n samples can be split into two smaller subsets according to their similarity to the two pseudo-centers. Formally, this assignment is done using Maximum A Posteriori (MAP) to find the pseudo-center giving maximum conditional likelihood to each sample. The splitting procedure can Figure 1: Figure 1a provides a visualization of the topics used to generate the sample. Figure 1b represents the hierarchy recovered with the proposed method. Table 1c reports the average and standard deviation over 10 runs of the clustering accuracy for the various methods, along with average running times. be iterated recursively to obtain a divisive binary tree, leading to a hierarchical clustering algorithm. While this hierarchical clustering method can be applied to any latent variable model that can be learned with the tensor method of moments (e.g. Latent Dirichlet Allocation), we present it here for the single topic model for the sake of simplicity. We consider a corpus C of n texts encoded as in Section 2 and we split C into two smaller corpora according to their similarity to the two pseudo-centers in two steps: project the pseudo-centers on the simplex to obtain discrete probability distributions (using for example the method described in [25]), and use MAP assignment to assign each text x to a pseudo-center. This process is summarized in Algorithm 2. Once the corpus C has been split into two subsets C1 and C2, each of these subsets may Algorithm 2 Splitting a corpus into two parts Require: A corpus of texts C = (x(1), ..., x(n)). 1: Estimate M1, M2 and M3. 2: Recover l = 2 pseudo-center with Algorithm 1 . 3: Project the Pseudo-center to the simplex 4: for i 2 [n] do 5: Assign the text x(i) to the cluster Cluster(i) = arg maxj P[X = x(i)|Y = j, !, M], where P[X|Y = j, !, M] is the multinomial distr. associated to the j-th projected pseudo-center. 6: end for 7: return The cluster assignments Cluster. still contain the full set of topics but the topic distribution will differ in the two: topics similar to the first pseudo-center will be predominant in the first subset, the others in the second. By recursively iterating this process, we obtain a binary tree where topic distributions in the nodes with higher depth are expected to be more concentrated on fewer topics. In the next sections, we assess the validity of this approach on both synthetic and real-world data6. 4.1 Experiment on Synthetic Data In order to test the ability of SIDIWO to recover latent structures in data, we generate a dataset distributed as a single topic model (with a vocabulary of 100 words) whose 8 topics have an intrinsic hierarchical structure depicted in Figure 1a. In this figure, topics are on the x-axis, words on the y-axis, and green (resp. red) points represents high (resp low) probability. We see for example that the first 4 topics are concentrated over the 1st half of the vocabulary, and that topics 1 and 2 have high probability on the 1st and 3rd fourth of the words while for the other two it is on the 1st and 4th. 6The experiments in this section have been performed in Python 2.7, using numpy [26] library for linear algebra operations, with the exception of the implementation of the method from [22], for which we used the author s Matlab implementation: https://github.com/kuleshov/tensor-factorization. All the experiments were run on a Mac Book Pro with an Intel Core i5 processor. The implementation of the described algorithms can be found a this link: https://github.com/mruffini/Hierarchical-Methods-of-Moments. Figure 2: Experiment on the NIPS dataset. We generate 400 samples according to this model and we iteratively run Algorithm 2 to create a hierarchical binary tree with 8 leafs. We expect leafs to contain samples from a unique topic and internal nodes to gather similar topics. Results are displayed in Figure 1b where each chart represents a node of the tree (child nodes lay below their parent) and contains the heatmap of the samples clustered in that node (x-axis corresponds to samples and y-axis to words, red points are infrequent words and clear points frequent ones). The results are as expected: each leaf contains samples from one of the topics and internal nodes group similar topics together. We compare the clustering accuracy of SIDIWO with other methods using the Adjusted Rand Index [27] of the partition of the data obtained at the leafs w.r.t the one obtained using the true topics; comparisons are with the flat clustering on k = 8 topics with TPM, the method from [3] (SVD), the one from [22] (Rand. Proj.) and ALS from [21], where ALS is applied to decompose a whitened 8 8 8 tensor T, calculated as in Equation (3). We repeat the experiment 10 times with different random samples and we report the average results in Table 1c; SIDIWO always recovers the original topic almost perfectly, unlike competing methods. One intuition for this improvement is that each split in the divisive clustering helps remove noise in the moments. 4.2 Experiment on NIPS Conference Papers 1987-2015 We consider the full set of NIPS papers accepted between 1987 and 2015 , containing n = 11, 463 papers [28]. We assume that the papers are distributed according to a single topic model, we keep the d = 3000 most frequent words as vocabulary and we iteratively run Algorithm 2 to create a binary tree of depth 4. The resulting tree is shown in Figure 2 where each node contains the most relevant words of the cluster, where the relevance [29] of a word w 2 Cnode C is defined by r(w, Cnode) = λ log P[w|Cnode] + (1 λ) log P[w|Cnode] where the weight parameter is set to λ = 0.7 and P[w|Cnode] (resp. P[w|C]) is the empirical frequency of w in Cnode (resp. in C). The leafs clustering and the whole hierarchy have a neat interpretation. Looking at the leaves, we can easily hypothesize the dominant topics for the 8 clusters. From left to right we have: [image processing, probabilistic models], [neuroscience, neural networks], [kernel methods, algorithms], [online optimization, reinforcement learning]. Also, each node of the lower levels gathers meaningful keywords, confirming the ability of the method to hierarchically find meaningful topics. The running time for this experiment was 59 seconds. 4.3 Experiment on Wikipedia Mathematics Pages We consider a subset of the full Wikipedia corpus, containing all articles (n = 809 texts) from the following math-related categories: linear algebra, ring theory, stochastic processes and optimization. Figure 3: Experiment on the Wikipedia Mathematics Pages dataset. We remove a set of 895 stop-words, keep a vocabulary of d = 3000 words and run SIDIWO to perform hierarchical topic modeling (using the same methodology as in the previous section). The resulting hierarchical clustering is shown in Figure 3 where we see that each leaf is characterized by one of the dominant topics: [ring theory, linear algebra], [stochastic processes, optimization] (from left to right). It is interesting to observe that the first level of the clustering has separated pure mathematical topics from applied ones. The running time for this experiment was 6 seconds. 5 Conclusions and future works We proposed a novel spectral algorithm (SIDIWO) that generalizes recent method of moments algorithms relying on tensor decomposition. While previous algorithms lack robustness to model misspecification, SIDIWO provides meaningful results even in misspecified settings. Moreover, SIDIWO can be used to perform hierarchical method of moments estimation for latent variable models. In particular, we showed through hierarchical topic modeling experiments on synthetic and real data that SIDIWO provides meaningful results while being very computationally efficient. A natural future work is to investigate the capability of the proposed hierarchical method to learn overcomplete latent variable models, a task that has received significant attention in recent literature [30, 31]. We are also interested in comparing the learning performance of SIDIWO the with those of other existing methods of moments in the realizable setting. On the applications side, we are interested in applying the methods developed in this paper to the healthcare analytics field, for instance to perform hierarchical clustering of patients using electronic healthcare records or more complex genetic data. Acknowledgments Guillaume Rabusseau acknowledges support of an IVADO postdoctoral fellowship. Borja Balle completed this work while at Lancaster University. [1] Arthur P. Dempster, Nan M. Laird, and Donald B. Rubin. Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society. Series B (methodological), pages 1 38, 1977. [2] Animashree Anandkumar, Rong Ge, Daniel Hsu, Sham M Kakade, and Matus Telgarsky. Tensor decom- positions for learning latent variable models. Journal of Machine Learning Research, 15(1):2773 2832, 2014. [3] Animashree Anandkumar, Daniel Hsu, and Sham M Kakade. A method of moments for mixture models and hidden Markov models. In COLT, volume 1, page 4, 2012. [4] Animashree Anandkumar, Yi-kai Liu, Daniel J Hsu, Dean P Foster, and Sham M Kakade. A spectral algorithm for Latent Dirichlet Allocation. In NIPS, pages 917 925, 2012. [5] Prateek Jain and Sewoong Oh. Learning mixtures of discrete product distributions using spectral decompo- sitions. In COLT, pages 824 856, 2014. [6] Daniel Hsu and Sham M Kakade. Learning mixtures of spherical Gaussians: moment methods and spectral decompositions. In ITCS, pages 11 20. ACM, 2013. [7] Le Song, Eric P Xing, and Ankur P Parikh. A spectral algorithm for latent tree graphical models. In ICML, pages 1065 1072, 2011. [8] Borja Balle, William L Hamilton, and Joelle Pineau. Methods of moments for learning stochastic languages: Unified presentation and empirical comparison. In ICML, pages 1386 1394, 2014. [9] Arun T Chaganty and Percy Liang. Spectral experts for estimating mixtures of linear regressions. In ICML, pages 1040 1048, 2013. [10] Raphael Bailly. Quadratic weighted automata: Spectral algorithm and likelihood maximization. Journal of Machine Learning Research, 20:147 162, 2011. [11] Yuchen Zhang, Xi Chen, Denny Zhou, and Michael I Jordan. Spectral methods meet EM: A provably optimal algorithm for crowdsourcing. In NIPS, pages 1260 1268, 2014. [12] Michael Steinbach, George Karypis, Vipin Kumar, et al. A comparison of document clustering techniques. In KDD workshop on text mining, volume 400, pages 525 526. Boston, 2000. [13] Sergio M Savaresi and Daniel L Boley. On the performance of bisecting K-means and PDDP. In SDM, pages 1 14. SIAM, 2001. [14] Borja Balle, Ariadna Quattoni, and Xavier Carreras. Local loss optimization in operator models: a new insight into spectral learning. In ICML, pages 1819 1826, 2012. [15] Borja Balle and Mehryar Mohri. Spectral learning of general weighted automata via constrained matrix completion. In NIPS, pages 2159 2167, 2012. [16] Ariadna Quattoni, Borja Balle, Xavier Carreras, and Amir Globerson. Spectral regularization for max- margin sequence tagging. In ICML, pages 1710 1718, 2014. [17] Alex Kulesza, N Raj Rao, and Satinder Singh. Low-rank spectral learning. In Artificial Intelligence and Statistics, pages 522 530, 2014. [18] Alex Kulesza, Nan Jiang, and Satinder Singh. Low-rank spectral learning with weighted loss functions. In Artificial Intelligence and Statistics, pages 517 525, 2015. [19] Matteo Ruffini, Marta Casanellas, and Ricard Gavaldà. A new spectral method for latent variable models. ar Xiv preprint ar Xiv:1612.03409, 2016. [20] Daniel Hsu, Sham M Kakade, and Tong Zhang. A spectral algorithm for learning hidden Markov models. Journal of Computer and System Sciences, 78(5):1460 1480, 2012. [21] Tamara G Kolda and Brett W Bader. Tensor decompositions and applications. SIAM review, 51(3):455 500, [22] Volodymyr Kuleshov, Arun Chaganty, and Percy Liang. Tensor factorization via matrix factorization. In AISTATS, pages 507 516, 2015. [23] Jean-Francois Cardoso and Antoine Souloumiac. Jacobi angles for simultaneous diagonalization. SIAM journal on matrix analysis and applications, 17(1):161 164, 1996. [24] Angelika Bunse-Gerstner, Ralph Byers, and Volker Mehrmann. Numerical methods for simultaneous diagonalization. SIAM journal on matrix analysis and applications, 14(4):927 949, 1993. [25] John Duchi, Shai Shalev-Shwartz, Yoram Singer, and Tushar Chandra. Efficient projections onto the l 1-ball for learning in high dimensions. In ICML, pages 272 279, 2008. [26] Stefan Van Der Walt, S Chris Colbert, and Gael Varoquaux. The numpy array: a structure for efficient numerical computation. Computing in Science & Engineering, 13(2):22 30, 2011. [27] Lawrence Hubert and Phipps Arabie. Comparing partitions. Journal of classification, 2(1):193 218, 1985. [28] Valerio Perrone, Paul A Jenkins, Dario Spano, and Yee Whye Teh. Poisson random fields for dynamic feature models. ar Xiv preprint ar Xiv:1611.07460, 2016. [29] Carson Sievert and Kenneth E Shirley. Ldavis: A method for visualizing and interpreting topics. In ACL workshop on interactive language learning, visualization, and interfaces, 2014. [30] Animashree Anandkumar, Rong Ge, and Majid Janzamin. Learning overcomplete latent variable models through tensor methods. In COLT, pages 36 112, 2015. [31] Animashree Anandkumar, Rong Ge, and Majid Janzamin. Analyzing tensor power method dynamics in overcomplete regime. Journal of Machine Learning Research, 18(22):1 40, 2017. [32] Elina Mihaylova Robeva. Decomposing Matrices, Tensors, and Images. Ph D thesis, University of California, Berkeley, 2016.