Learning mixtures of spherical Gaussians: moment methods and spectral decompositions
Daniel Hsu, Sham M. Kakade
Introduction
The Gaussian mixture model (Pearson, 1894; Titterington et al., 1985) is one of the most well-studied and widely-used models in applied statistics and machine learning. An important special case of this model (the primary focus of this work) restricts the Gaussian components to have spherical covariance matrices; this probabilistic model is closely related to the (non-probabilistic) -means clustering problem (MacQueen, 1967).
where is the discrete random variable with for , and is a random vector whose conditional distribution given (for some ) is the multivariate Gaussian with mean zero and covariance .
The estimation task is to accurately recover the model parameters (component means, variances, and mixing weights) from independent copies of .
This work gives a procedure for efficiently and exactly recovering the parameters using a simple spectral decomposition of low-order moments of , under the following condition.
The component means span a -dimensional subspace (i.e., the matrix has column rank ), and the vector has strictly positive entries.
The proposed estimator is based on a spectral decomposition technique (Chang, 1996; Mossel and Roch, 2006; Anandkumar et al., 2012b), and is easily stated in terms of exact population moments of the observed . With finite samples, one can use a plug-in estimator based on empirical moments of in place of exact moments. These empirical moments converge to the exact moments at a rate of , where is the sample size. As discussed in Section 3, sample complexity bounds for accurate parameter estimation can be derived using matrix perturbation arguments (Anandkumar et al., 2012b). Since only low-order moments are required by the plug-in estimator, the sample complexity is polynomial in the relevant parameters of the estimation problem.
The first estimators for the Gaussian mixture models were based on the method-of-moments, as introduced by Pearson (1894) (see also Lindsay and Basak, 1993, and the references therein). Roughly speaking, these estimators are based on finding parameters under which the Gaussian mixture distribution has moments approximately matching the observed empirical moments. Finding these parameters typically involves solving systems of multivariate polynomial equations, which is typically computationally challenging. Besides this, the order of the moments of some of the early moment-based estimators were either growing with the dimension or the number of components , which is undesirable because the empirical estimates of such high-order moments may only be reliable when the sample size is exponential in or . Both the computational and sample complexity issues have been addressed in recent years, at least under various restrictions. For instance, several distance-based estimators require that the component means be well-separated in Euclidean space, by at least some large factor times the directional standard deviation of the individual component distributions (Dasgupta, 1999; Arora and Kannan, 2001; Dasgupta and Schulman, 2007; Vempala and Wang, 2002; Chaudhuri and Rao, 2008), but otherwise have polynomial computational and sample complexity. Some recent moment-based estimators avoid the minimum separation condition of distance-based estimators by requiring either computational or data resources exponential in the number of mixing components (but not the dimension ) (Belkin and Sinha, 2010; Kalai et al., 2010; Moitra and Valiant, 2010) or by making a non-degenerate multi-view assumption (Anandkumar et al., 2012b).
By contrast, the moment-based estimator described in this work does not require a minimum separation condition, exponential computational or data resources, or non-degenerate multiple views. Instead, it relies only on the non-degeneracy condition discussed above together with a spherical noise condition. The non-degeneracy condition is much weaker than an explicit minimum separation condition because the parameters can be arbitrarily close to being degenerate, as long as the sample size grows polynomially with a natural quantity measuring this closeness to degeneracy (akin to a condition number). Like other moment-based estimators, the proposed estimator is based on solving multivariate polynomial equations, although these solutions can be found efficiently because the problems are cast as eigenvalue decompositions of symmetric matrices, which are efficient to compute.
Recent work of Moitra and Valiant (2010) demonstrates an information-theoretic barrier to estimation for general Gaussian mixture models. More precisely, they construct a pair of one-dimensional mixtures of Gaussians (with separated component means) such that the statistical distance between the two mixture distributions is exponentially small in the number of components. This implies that in the worst case, the sample size required to obtain accurate parameter estimates must grow exponentially with the number of components, even when the component distributions are non-negligibly separated. A consequence of the present work is that natural non-degeneracy conditions preclude these worst case scenarios. The non-degeneracy condition in this work is similar to one used for bypassing computational (cryptographic) barriers to estimation for hidden Markov models (Chang, 1996; Mossel and Roch, 2006; Hsu et al., 2012a; Anandkumar et al., 2012b).
Finally, it is interesting to note that similar algebraic techniques have been developed for certain models in independent component analysis (ICA) (Comon, 1994; Cardoso and Comon, 1996; Hyvärinen and Oja, 2000; Comon and Jutten, 2010; Arora et al., 2012) and other closely related problems (Frieze et al., 1996; Nguyen and Regev, 2009). In contrast to the ICA setting, handling non-spherical Gaussian noise for mixture models appears to be a more delicate issue. These connections and open problems are further discussed in Section 3.
Moment-based estimation
This section describes a method-of-moments estimator for the spherical Gaussian mixture model.
The following theorem is the main structural result that relates the model parameters to observable moments.
We note that in the special case where (i.e., the mixture components share a common spherical covariance matrix), the average variance is simply , and has a simpler form:
There is no need to refer to the eigenvectors of the covariance matrix or .
Since the vectors for are linearly dependent (), the positive semidefinite matrix has rank . Thus, the smallest eigenvalues are exactly , while all other eigenvalues are strictly larger than . The strict separation of eigenvalues implies that every eigenvector corresponding to is in the null space of ; thus for all .
Now we can express , , and in terms of the parameters , , and . First,
Finally, for , we first observe that
is diagonalizable (where † denotes the Moore-Penrose pseudoinverse); its non-zero eigenvalue / eigenvector pairs satisfy and for some permutation on and signs . The , , and are recovered (up to permutation) with
where .
An efficiently computable plug-in estimator can be derived from Theorem 2. We state one such algorithm (called LearnGMM) in Appendix C; for simplicity, we restrict to the case where the components share the same common spherical covariance, i.e., . The following theorem provides a sample complexity bound for accurate estimation of the component means. Since only low-order moments are used, the sample complexity is polynomial in the relevant parameters of the estimation problem (in particular, the dimension and the number of mixing components ). It is worth noting that the polynomial is quadratic in the inverse accuracy parameter ; this owes to the fact that the empirical moments converge to the population moments at the usual rate as per the central limit theorem.
There exists a polynomial such that the following holds. Let be the matrix defined in Theorem 2, and be its -th largest singular value (for ). Let and . Pick any . Suppose the sample size satisfies
Then with probability at least over the random sample and the internal randomness of the algorithm, there exists a permutation on such that the returned by LearnGMM satisfy
The proof of Theorem 3 is given in Appendix C. It is also easy to obtain accuracy guarantees for estimating and . The role of Condition 1 enters by observing that if either or , as . The sample complexity bound then becomes trivial in this case, as the bound grows with and . Finally, we also note that LearnGMM is just one (easy to state) way to obtain an efficient algorithm based on the structure in Theorem 1. It is also possible to use, for instance, simultaneous diagonalization techniques (Bunse-Gerstner et al., 1993) or orthogonal tensor decompositions (Anandkumar et al., 2012a) to extract the parameters from (estimates of) and ; these alternative methods are more robust to sampling error, and are therefore recommended for practical implementation.
Discussion
Spectral decomposition approaches for ICA.
In contrast to this ICA model, the spherical Gaussian mixture model is one where would take values in , and the covariance of (given ) is spherical.
is diagonalizable; the eigenvalues are and each have geometric multiplicity one, and the corresponding eigenvectors are (up to scaling and permutation).
Again, choosing and as random unit vectors ensures the distinctness assumption is satisfied almost surely, and a finite sample analysis can be given using standard matrix perturbation techniques (Anandkumar et al., 2012b). A number of related deterministic algorithms based on algebraic techniques are discussed in the text of Comon and Jutten (2010). Recent work of Arora et al. (2012) provides a finite sample complexity analysis for an efficient estimator based on local search.
Non-degeneracy.
The non-degeneracy assumption (Condition 1) is quite natural, and its has the virtue of permitting tractable and consistent estimators. Although previous work has typically tied it with additional assumptions, this work shows that they are largely unnecessary.
One drawback of Condition 1 is that it prevents the straightforward application of these techniques to certain problem domains (e.g., automatic speech recognition (ASR), where the number of mixture components is typically enormous, but the dimension of observations is relatively small; alternatively, the span of the means has dimension ). To compensate, one may require multiple views, which are granted by a number of models, including hidden Markov models used in ASR (Hsu et al., 2012a; Anandkumar et al., 2012b), and combining these views in a tensor product fashion (Allman et al., 2009). This increases the complexity of the estimator, but that may be inevitable as estimation for certain non-singular models is conjectured to be computationally intractable (Mossel and Roch, 2006).
Acknowledgements
We thank Dean Foster and Anima Anandkumar for helpful insights. We also thank Rong Ge and Sanjeev Arora for discussions regarding their recent work on ICA.
References
Appendix A Connection to independent component analysis
By assumption, the diagonal entries of are distinct, and therefore
is diagonalizable, and every eigenvalue has geometric multiplicity one. ∎
Appendix B Incoherence and random rotations
Anandkumar et al. (2012b) show that if has rank and also satisfies a mild incoherence condition, then a random partitioning guarantees that each has rank , and lower-bounds the -th largest singular value of each by that of . The condition is similar to the spreading condition of Chaudhuri and Rao (2008).
Define to be the largest diagonal entry of the ortho-projector to the range of . When has rank , we have ; it is maximized when and minimized when the range is spanned by a subset of the Hadamard basis of cardinality . Roughly speaking, if the matrix of conditional means has low coherence, then its full-rank property is witnessed by many partitions of ; this is made formal in the following lemma.
Assume has rank and that 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 , the matrix obtained by selecting the rows of in group has full column rank, and the -th largest singular value of is at least times that of .
Take from Lemma 2 and from Lemma 1 to be constants. Then the incoherence condition of Lemma 1 is satsified provided that for some positive constant .
Appendix C Learning algorithm and finite sample analysis
In this section, we state and analyze a learning algorithm based on the estimator from Theorem 2, which assumed availability of exact moments of . The proposed algorithm only uses a finite sample to estimate moments, and also explicitly deals with the eigenvalue separation condition assumed in Theorem 2 via internal randomization.
C.2 Algorithm
The proposed algorithm, called LearnGMM, is described in Figure 1. The algorithm essentially implements the decomposition strategy in Theorem 2 using plug-in moments. To simplify the analysis, we split our sample (say, initially of size ) in two: we use the first half for empirical moments ( and ) used in constructing , , , and ; and we use the second half for empirical moments ( and used in constructing . Observe that this ensures is independent of .
Let be i.i.d. copies of , and write . Let be an independent copy of . Furthermore, define the following moments and empirical moments:
So represents the first half of the sample, and represents the second half of the sample.
C.3 Structure of the moments
We first recall the basic structure of the moments , , and as established in Theorem 2; for simplicity, we restrict to the special case where .
C.4 Concentration behavior of empirical quantities
In this subsection, we prove concentration properties of empirical quantities based on ; clearly the same properties hold for .
Let and for . Also, define the following (empirical) conditional moments:
Pick any . With probability at least ,
The first inequality follows from Bernstein’s inequality and a union bound. The second inequality follows from a simple application of McDiarmid’s inequality (see Hsu et al., 2012a, Proposition 19). ∎
First-order moments: with probability at least ,
Second-order moments: with probability at least ,
Third-order moments: with probability at least ,
First-order moments. Observe that is distributed as the sum of independent random variables, each with one degree of freedom. Thus, Lemma 18 and union bounds imply
Second-order moments. Since , it follows by the triangle and Cauchy-Schwarz inequalities that
A tail bound for the first term follows from Lemma 19, combined with a union bound:
Third-order moments. It can be checked that
Therefore, by the triangle and Cauchy-Schwarz inequalities,
A tail bound for the first term is given by Lemma 21, combined with a union bound:
The other terms are handled as per above. ∎
We just show the third claimed inequalitiy, as the others are similar. Write as shorthand and . Then
where the first and second steps use the triangle inequality, and the second step uses Hölder’s inequality. ∎
The covariance matrix can be written as , and the empirical covariance matrix can be written as . Recall that the estimate of , denoted by , is given by the -th largest eigenvalue of the empirical covariance matrix ; and that the estimate of , denoted by , is the best rank- approximation to . Of course, the singular values of a positive semi-definite matrix are the same as its eigenvalues; in particular, .
.
.
Using Weyl’s inequality (Stewart and Sun, 1990, Theorem 4.11, p. 204), we obtain . The first claim then follows by observing that as per Theorem 1.
For the second claim, observe that as has rank . Therefore , again using Weyl’s inequality. Since is the best rank- approximation to , it follows that . Therefore . ∎
Recall that the estimate of , denoted by , is given by .
Let and . Then
Observe that by the triangle inequality, and . Furthermore, by Lemma 7, we have . Therefore the claim follows. ∎
C.6 Properties of projection and whitening operators
Define .
Assume . Then
.
.
.
.
By the assumptions that and is symmetric positive definite, we have
by Weyl’s inequality. Therefore is symmetric positive definite, and
Recall that .
Define . Assume . Then
is symmetric positive definite, , and is orthogonal.
.
, , , .
By Lemma 9 (first and third claims), the matrices and are symmetric positive definite. Therefore
Since , it follows from the third equation above that is orthogonal. Thus the first claim is established.
where the last inequality follows from Lemma 9 (first claim).
To show the third claim, we first bound as
where the second inequality follows from the first claim. This implies that every eigenvalue of is contained in the interval of radius around . Because for all , the same is true of the eigenvalues of :
where the vectors are orthonormal. Furthermore, the eigenvectors of are and the corresponding eigenvalues are .
The structure of follows from Lemma 3, and the orthogonality of follows from Lemma 10 (first claim). The eigendecomposition of is then readily seen from the structure of . ∎
Assume . Then
By Lemma 11, for some orthonormal vectors , so . By Lemma 10 (first and third claims), and . Therefore
Thus we can bound using the triangle inequality and the above bound:
C.7 Eigendecomposition analysis
where the probability is taken with respect to the distribution of .
By Lemma 17, with probability at least ,
Now fix any . By Lemma 10 (first claim), is orthogonal, so . Similarly, for any , . Therefore . ∎
Pick any . If , then with probability at least , the trial satisfies
For each , the eigenvalues of of (arranged in non-increasing order) satisfy
where the second inequality follows from Weyl’s inequality. Similarly,
By Lemma 11, the eigenvalues of are for . Thus, by Lemma 13, the probability that some has is at least . In this event, (2) implies that trial has , and hence . ∎
We now just consider the trial retained by the algorithm. Let be the eigenvector/eigenvalue pairs of , and let be the eigenvector/eigenvalue pairs of .
Assume the probability event in Lemma 14 holds, and also assume that . Then there exists a permutation on and signs such that, for all ,
To simplify notation, assume the eigenvalues of and are already sorted in non-increasing order. Observe that for all ,
where the second-to-last inequality follows by the assumption and by Weyl’s inequality. Therefore, the interval of radius surronding each eigenvalue of contains only one eigenvalue of . By the Davis-Kahan theorem (Stewart and Sun, 1990, Theorem 3.4, p. 250), we have that
Therefore, for ,
The bound follows simply from Weyl’s inequality. ∎
C.8 Overall error analysis
Assume the probability event of Lemma 14 holds, and also assume that , , and . Then there exists a permutation on such that
To simplify notation, we assume throughout that the permutation from Lemma 15 is the identity permutation. Let . We first bound . This quantity can be split into two parts: the part in the range of , and the rest. The part in the range of is bounded as
where the third inequality follows from Lemma 9 and Lemma 15. To bound the second term in the last step, recall that (using Lemma 10 to guarantee the positive definiteness of ), so we may write as
where the last inequality uses Lemma 9 and Lemma 10. Thus
Now consider the part not in the range of . This is simply bounded as
using Lemma 9. Therefore, overall, we have
Since the actual estimate of is , we need to show that is approximately . Indeed,
where the last inequality uses Lemma 10 and Lemma 15. Therefore
where the fourth inequality uses Lemma 15. We thus conclude that
We can now prove Theorem 3, stated below with the explicit polynomial sample complexity bound (up to constants).
There exists a constant such that the following holds. Let . Pick any . Suppose the sample size satisfies
(as defined in Lemma 13). Then with probability at least over the random sample and the internal randomness of the algorithm, there exists a permutation on such that
Throughout, will represent absolute positive constants. First, observe that the sample size bound
and Lemma 4 ensure that (where is defined in Lemma 6). Therefore, from Lemma 5 and Lemma 6 (together with union bounds), with probability at least ,
Now condition on the above event and take as given. By Lemma 10,
Therefore, Lemma 5 and Lemma 6 imply that with probability at least ,
Using the inequalities (6), (7), and (4) with (5) gives
Since , the inequality from Lemma 14 holds with probability at least over the internal randomness of the algorithm. Therefore, using (4) and (8) with Lemma 16 gives in this event:
for all , for some permutation on . ∎
Appendix D Probability tail inequalities
We recall and derive some probability tail inequalities used in the analysis.
Let be i.i.d. random variables, each with one degree of freedom. Then for any ,
Let be i.i.d. random variables. Then for any ,
We use Markov’s inequality via the -th moment to derive the tail inequality. Pick some even integer , and observe that
By the independence of the ’s, a term in the summation is zero if any index is selected an odd number of times (i.e., is odd, for any ). Therefore the summation can be written as
The bound is at most for and . ∎
which implies . This proves that