Analysis of a Generalized Expectation-Maximization Algorithm for Gaussian Mixture Models: A Control Systems Perspective
Sarthak Chatterjee, Orlando Romero, S\'ergio Pequito

TL;DR
This paper analyzes a generalized EM algorithm for Gaussian mixture models from a control systems perspective, revealing its convergence properties and design advantages using robust control theory tools.
Contribution
It introduces a control-theoretic analysis of a generalized EM algorithm, providing new insights into its convergence and design for Gaussian mixture models.
Findings
GEM can be modeled as an LTI system with feedback nonlinearity.
Convergence properties are analyzed using robust control theory.
The approach offers a pedagogical example demonstrating advantages.
Abstract
The Expectation-Maximization (EM) algorithm is one of the most popular methods used to solve the problem of parametric distribution-based clustering in unsupervised learning. In this paper, we propose to analyze a generalized EM (GEM) algorithm in the context of Gaussian mixture models, where the maximization step in the EM is replaced by an increasing step. We show that this GEM algorithm can be understood as a linear time-invariant (LTI) system with a feedback nonlinearity. Therefore, we explore some of its convergence properties by leveraging tools from robust control theory. Lastly, we explain how the proposed GEM can be designed, and present a pedagogical example to understand the advantages of the proposed approach.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGaussian Processes and Bayesian Inference · Bayesian Methods and Mixture Models · Target Tracking and Data Fusion in Sensor Networks
Analysis of a Generalized Expectation-Maximization Algorithm for Gaussian Mixture Models: A Control Systems Perspective
\nameSarthak Chatterjeea, Orlando Romerob, and Sérgio Pequitob CONTACT Sarthak Chatterjee. Email: [email protected] aDepartment of Electrical, Computer, and Systems Engineering, Rensselaer Polytechnic Institute, Troy NY, 12180, USA; bDepartment of Industrial and Systems Engineering, Rensselaer Polytechnic Institute, Troy NY, 12180, USA
Abstract
The Expectation-Maximization (EM) algorithm is one of the most popular methods used to solve the problem of parametric distribution-based clustering in unsupervised learning. In this paper, we propose to analyze a generalized EM (GEM) algorithm in the context of Gaussian mixture models, where the maximization step in the EM is replaced by an increasing step. We show that this GEM algorithm can be understood as a linear time-invariant (LTI) system with a feedback nonlinearity. Therefore, we explore some of its convergence properties by leveraging tools from robust control theory. Lastly, we explain how the proposed GEM can be designed, and present a pedagogical example to understand the advantages of the proposed approach.
keywords:
Statistical data analysis, Linear multivariable systems, Output regulation, Robust control applications.
1 Introduction
A fundamental problem in unsupervised learning is the problem of clustering, where the task in question is to group certain objects of interest into subgroups called clusters, such that all objects in a particular cluster share features (in some predefined sense) with each other, but not with objects in other clusters (Tan et al., 2005; Bishop, 2006).
The Expectation-Maximization (EM) algorithm (Dempster et al., 1977) is one of the most commonly used methods in parametric distribution-based clustering analysis (Nowak, 2003). Notably, Gaussian mixture models (GMMs) (i.e., a finite convex combination of multivariate Gaussian distributions) have found several applications in real-world problems (Tan et al., 2005; Bishop, 2006). In this setting, clustering consists of estimating the parameters in a GMM that maximize its likelihood function (iteratively maximized through the EM algorithm), followed by assigning to each data point the ‘cluster’ corresponding to its most likely multivariate Gaussian distribution in the GMM.
The convergence of the EM algorithm is well-studied in the literature (Wu, 1983), particularly in the context of determining the parameters of GMMs (Xu and Jordan, 1996). Nonetheless, it is worth analyzing the EM algorithm as a dynamical system, and possibly gain insights that enable us to design more efficient variations of the EM algorithm. Therefore, in Romero et al. (2019), the authors proposed to change the perspectives on local optimizers and convergence of the EM algorithm by assessing, respectively, the equilibria and asymptotic stability (in the sense of Lyapunov) of a nonlinear dynamical system that represents the standard EM algorithm, through explicit use of discrete-time Lyapunov stability theory.
In this paper, we build upon the recent work in Romero et al. (2019) and propose to analyze a generalized EM (GEM) algorithm (Dempster et al., 1977; Neal and Hinton, 1998) in the context of Gaussian mixture models, where the maximization step in the EM is replaced by an increasing step. GEM algorithms have also been used in applications such as computer vision (Fessler and Hero, 1995) and noise estimation in communication channels (Krisjansson et al., 2001), and, in general, the study of the EM algorithm and its myriad variants constitute an active area of research (Moon, 1996; Roche, 2011). The main contributions of this work are as follows. First, we show that this GEM algorithm can be understood as a linear time-invariant (LTI) system with a feedback nonlinearity. Secondly, we explore some of its convergence properties by leveraging tools from robust control theory. Lastly, we explain how the proposed GEM can be designed, and present a pedagogical example to understand the advantages of the proposed approach.
2 Problem Statement
Let be some vector of unknown (but deterministic) parameters characterizing a distribution of interest, which we seek to infer from a collected dataset (from now on assumed fixed) and a statistical model composed by a family of joint probability density or mass functions (possibly mixed) indexed by , where
[TABLE]
is some latent (hidden) random vector.
The EM algorithm seeks to find a local maximizer of the incomplete likelihood function given by
[TABLE]
The mapping is, naturally, referred to as the complete likelihood function. To optimize , the EM algorithm alternates at each iteration between two steps. First, in the expectation step (E-step), we compute , defined through
[TABLE]
so that denotes the expected value of the complete log-likelihood function with respect to . Second, in the maximization step (M-step), we maximize and update the current estimate as that maximizer.
Before formally stating the EM algorithm, let us make some mild simplifying assumptions that will avoid pathological behavior on the -function, .
Assumption 1**.**
does not depend on and has positive Lebesgue measure.
Assumption 2**.**
is twice continuously differentiable in .
Notice that, from Assumption 1, the conditional distribution is well defined in , since for every . Finally, we make the following simplifying assumption, which makes the M-step well defined.
Assumption 3**.**
has a unique global maximizer in .
With all these ingredients and assumptions, we summarize the EM algorithm in Algorithm 1.
However, it is to be kept in mind that when we implement the EM algorithm, for most parametric distributions, we do not obtain a closed-form expression for the M-step. As a consequence, to determine a solution (i.e., an approximation) in the M-step, we need to rely on numerical optimization schemes. For instance, we can consider first-order optimization algorithms (e.g., gradient ascent), i.e.,
[TABLE]
for some . Notice that this could constitute a problem by itself since first-order algorithms are known to have slow convergence rates that get aggravated by the increase in the dimension of the search space. Furthermore, any variant of Algorithm 1 that does not explicitly maximize at the M-step, but instead is such that is referred to as a generalized EM (GEM) algorithm.
As previously mentioned, a particularly important class of models are the Gaussian mixture models (GMMs). In these models, each component of the mixture is given by
[TABLE]
with , , is positive definite, and such that . The vector of unknown parameters lumps together the scalar parameters within for , as follows:
[TABLE]
where , , and , with denoting the vector obtained by stacking the column vectors of .
In this setting, an alternative is to replace the M-step by (4), and we obtain a GEM that is able to recover similar (asymptotic) convergence rates available in the literature (Balakrishnan et al., 2017). Nonetheless, (asymptotic) convergence rates can be misleading as they do not reflect the practical number of iterations required to converge. Furthermore, as it is clear in the GMM, there are some additional constraints that are implicit and are not necessarily satisfied by (4) (i.e., and for ).
That said, we need to further understand the transient and the local behavior of the GEM algorithm, for which dynamical systems theory provides us with the proper framework. Subsequently, in this paper, we propose to step away from the dynamics without an explicit control (e.g., the M-step in Algorithm 1), towards one where we can consider an additive control, and therefore, study its properties.
In summary, we seek to address the following questions.
Problem 1**.**
Is it possible to replace the M-step in Algorithm 1 by a parameter update step given by
[TABLE]
where we can design a feedback control law to obtain a GEM algorithm? 2. 2.
What insights (particularly with respect to design) can such control laws provide us with?
3 Main Results
In this section, we provide the main result of the paper. Specifically, we show how we can leverage tools from control systems theory to analyze a GEM algorithm as an LTI system connected in feedback with a nonlinearity. Furthermore, we also show how to derive the convergence rate for such an algorithm using tools from robust control. Lastly, we briefly describe how we can look into certain aspects of designing new GEM-like algorithms.
3.1 GEM Algorithms as LTI Systems with a Feedback Nonlinearity
We first show how we can leverage tools from dynamical systems and control theory to cast a GEM algorithm into the framework of an LTI system with an interconnected feedback nonlinearity. We begin with the following Lemma that provides us with expressions for the closed-form solution of the problem of estimating the parameters of a GMM using a generalized EM algorithm.
Lemma 3.1** (Dempster et al. (1977)).**
Given possible mixtures in the GMM, and independently and identically distributed (i.i.d.) samples , we can estimate the parameter vector by maximizing the log-likelihood , that, in the context of a GMM has a closed-form solution given as follows:
[TABLE]
[TABLE]
and
[TABLE]
with
[TABLE]
where the posterior probabilities are given by
[TABLE]
With the above closed-form solution, if we, instead, consider a ‘shifted-update’ of the covariance as
[TABLE]
(i.e., the update of is done with respect to instead of ), we can summarize in the following Lemma the relationships between the updates of the parameters of the GMM that we aim to estimate, i.e., the mixing weights, the means, and the covariance matrices.
Lemma 3.2**.**
For the shifted updates of the covariance matrices considered in (13), the following relations hold:
[TABLE]
[TABLE]
and
[TABLE]
with
[TABLE]
where denotes the indices of the mixture components, denotes the iteration number, and denotes the Kronecker product.
Therefore, by combining the equations (14)-(16) of Lemma 3.2, we can briefly write the evolution of the parameters as
[TABLE]
where
[TABLE]
In this case, the term could be understood as a nonlinearity driving the system. Nonetheless, it is not guaranteed that some essential implicit constraints hold, i.e.,
[TABLE]
Therefore, towards incorporating these inter-dependencies, we can consider the ‘shifted’ subspace
[TABLE]
where for a shift . Furthermore, let the coordinates of under the basis be denoted by , where the -s are canonical (orthonormal) basis vectors and is the dimension of . Then, , or equivalently, , where .
Now, notice that (or, equivalently, ), by multiplying both sides by , and noticing that . Thus, , by observing that is an open convex set since we only consider local differential properties of the log-likelihood, and consequently, the constraint on positive definiteness of holds.
Therefore,
[TABLE]
belongs to , which constitutes the parameter update of a GEM algorithm that we shall refer to as projection-based GEM (PB-GEM) – see Algorithm 2.
Consequently, the term can be understood as a nonlinearity driving a linear time-invariant (LTI) system. As such, we can consider to be (locally) Lipschitz and for which there is a (locally) strongly convex function . Before stating the theorem that shows the rate of convergence for the PB-GEM algorithm, we introduce the following preliminary definitions and results.
Definition 3.3** (Q-convergence (Jay, 2001)).**
Given a sequence with for , the order of convergence is a nonnegative number satisfying
[TABLE]
with being the rate of convergence.
Definition 3.4** (Sector Integral Quadratic Constraint (IQC) for the gradient map).**
For a strongly convex function with strong convexity parameter , having Lipschitz continuous gradients with Lipschitz constant , the gradient map satisfies the sector IQC defined by
[TABLE]
for all .
Lemma 3.5** (A modified version of Theorem 4 in Lessard et al. (2016)).**
Consider a first-order linear optimization scheme represented as the dynamical system
[TABLE]
with nonlinearity . If satisfies the sector IQC defined by (26), then the linear matrix inequality (LMI)
[TABLE]
*is feasible for some , . Specifically, with respect to a suitable norm , with a convergence rate of , where is a fixed point of (27) satisfying . *
With the above ingredients, we are ready to state our main result concerning the convergence rate of the PB-GEM algorithm, which builds upon tools from robust control theory.
Theorem 3.6**.**
Consider a function that is -strongly convex, has an -Lipschitz gradient, and satisfies . Then, , with is a GEM algorithm (i.e., , where is the maximum-likelihood estimate) with convergence rate bounded by
[TABLE]
Proof.
That the Projection-Based GEM algorithm presented in Algorithm 2 indeed constitutes a generalized EM can be shown using an argument similar to one presented in Salakhutdinov et al. (2003). In particular, if Assumption 3 is satisfied for models of the exponential family (a special case being the GMMs considered in this paper), the PB-GEM algorithm evolves in a way such that we have for all , provided . Secondly, we notice that the iterative scheme can be represented as the LTI system in (27) with a feedback nonlinearity given by .
Due to the regularity of , and the fact that the PB-GEM algorithm can be represented as the dynamical system (27), with and , we can invoke the results of Definition 3.4 and Lemma 3.5 to recover bounds on the convergence rate of the PB-GEM algorithm using the LMI in (28). Remarkably, due to the general block-diagonal structure of optimization algorithms like gradient ascent, we can then use a ‘lossless dimensionality reduction argument’ and reduce the case of the feasibility of the above LMI to analyze the corresponding semidefinite program for the single-dimensional case without loss of generality (Lessard et al., 2016).
This ascertains the local convergence for the maximum of the function as long as the following LMI holds
[TABLE]
for some scalar , and , where denotes the convergence rate. Since is a scalar, we can consider without loss of generality. This gives us the LMI
[TABLE]
As a consequence, to ensure the negative semidefiniteness of the above matrix, both (which is present in the bottom right block) and the Schur complement of the bottom right block need to be negative semidefinite. Thus, we have
[TABLE]
Combining these two, we have
[TABLE]
which yields . ∎
Additionally, the transformation matrix also provides us with valuable insights regarding the rate of convergence of the PB-GEM algorithm. Indeed, differentiating the equation
[TABLE]
we have,
[TABLE]
where with ,
[TABLE]
and denotes the Hessian matrix of .
Therefore, near a stationary point of over which is bounded, we have
[TABLE]
As a consequence, it follows that, under the aforementioned conditions, the projection-based GEM algorithm exhibits superlinear convergence when approaches zero. In particular, the nature of convergence is dictated by the eigenvalues of the matrix . If the eigenvalues are near zero, then the transformation matrix scales the EM update step by approximately the scaled negative inverse Hessian, and the EM algorithm behaves like Newton’s method. On the other hand, if the eigenvalues are near unity (in absolute value), then the PB-GEM algorithm exhibits first-order convergence.
3.2 Towards the Design of GEM Algorithms
We can, therefore, propose to design a GEM algorithm by changing the control law. Nonetheless, we have to be careful with the updates on the different parameters as, implicitly, they possess constraints on the updates. Specifically, we require the -s to sum up to unity, and the -s to be symmetric positive definite.
Subsequently, in what follows, we focus only on the change of the mean by considering the following weighted function such that satisfies
[TABLE]
where , and with being a weight matrix that mixes the different means. In particular, we can consider where denotes a scaling of the mean similar to a learning rate but applied only on the component rates of the means of the mixture model. Note that we can extend this design step only on the means because the means are the only parameters of the GMMs under consideration that do not have implicit constraints associated with them. This allows us to introduce the following parameter update step
[TABLE]
for an algorithm which we will refer to as the weighted projection-based GEM (W-PB-GEM) algorithm – see Algorithm 3.
As a result, we have the following corollary on the convergence rate of the W-PB-GEM algorithm.
Corollary 3.7**.**
Suppose that there exists a function that is -strongly convex, has an -Lipschitz gradient, and satisfies , where , and with being the matrix of weights that determine the component-wise mixture of the means of the GMM whose parameters are to be estimated. Then, , with is a GEM algorithm (i.e, , where is the maximum-likelihood estimate) with convergence rate bounded by
[TABLE]
Remark 1*.*
The convergence rates obtained for the W-PB-GEM algorithm are the same as those obtained for the PB-GEM algorithm. It is to be noted, however, that the update equations associated with the -s and the -s cannot be arbitrarily changed because of the explicit constraints associated with them.
Remark 2*.*
It is worth mentioning here that the convergence rates as obtained in (29) and (40) are merely upper bounds, and, unfortunately, do not shed any light on the transient behavior of the PB-GEM or W-PB-GEM algorithm – see the inset of Figures 2 and 4.
4 Pedagogical Examples
In this section, we seek to demonstrate a pedagogical example that shows the efficacy of the methods extended in this paper in identifying the parameters of unknown GMMs. To do this, we first sample arbitrary points from a mixture of two Gaussians with the following parameters
[TABLE]
[TABLE]
and
[TABLE]
Further, we initialized the algorithms with the following parameters
[TABLE]
such that they lie on the line which is orthogonal to the direction defined by and . Additionally, and are initialized to be arbitrary positive definite matrices and is arbitrarily initialized such that .
4.1 The PB-GEM algorithm
We first consider a pedagogical example to demonstrate the performance of the proposed PB-GEM algorithm on estimating the parameters of the synthetic Gaussian mixture model specified above. The results of running the PB-GEM algorithm to determine the parameters of the above mixture model are shown in Figures 1 and 2. We see that the proposed PB-GEM algorithm is able to successfully determine the parameters of the synthetic GMM from which the points have been sampled. Convergence is obtained in 316 iterations (i.e., to attain a relative change in log-likelihood smaller than ).
4.2 The W-PB-GEM algorithm
Next, we test the performance of the W-PB-GEM algorithm. The matrix of weights that determine the mixture of proportions during the updates of the means is given by
[TABLE]
The results of running the W-PB-GEM algorithm with the same initializations for , and are documented in Figures 3 and 4. Convergence is obtained in 279 iterations with the same stopping criterion used in the previous section.
4.3 Multi-Class Classification
In what follows, we also present an illustrative example where both the PB-GEM and the W-PB-GEM algorithms are used in order to identify the parameters of a GMM with more than two Gaussians. We sample arbitrary points from a mixture of four Gaussians with the following parameters
[TABLE]
[TABLE]
and
[TABLE]
Further, we initialized both the algorithms with the following parameters
[TABLE]
Additionally, and are initialized to be arbitrary positive definite matrices and is arbitrarily initialized such that . The matrix of weights that determine the mixture of proportions during the updates of the means for the W-PB-GEM algorithm is once again given by
[TABLE]
The results of running the PB-GEM and W-PB-GEM algorithms for this problem are shown in Figures 5 and 6 respectively. The results are similar to the case on two-class classification. Convergence (i.e., attaining a relative change in log-likelihood smaller than ) is obtained in iterations for the PB-GEM algorithm and in iterations for the W-PB-GEM algorithm.
4.4 Discussion of results
The reason why the initial conditions on the means are selected such that they lie on a line orthogonal to the means characterizing the synthetic GMM considered above is to intentionally make the convergence of the PB-GEM and W-PB-GEM algorithms more difficult. We also illustrate in Figure 7 a comparative study of the PB-GEM and W-PB-GEM algorithms for the two-class example (the matrix was selected identical to the one in Section 4.2) by plotting the mean and standard deviation of the negative log-likelihood function for 30 instances of both the algorithms when they are initialized with the same set of parameters for a particular instance. In general, such worst-case initialization conditions are useful in order to gain insights into the transient behaviors of such algorithms.
It is also instructive here to note that for the problem of identifying the parameters of a high-dimensional GMM, the number of iterations to convergence would grow exponentially. In such a case, it would be extremely important to have convergence to the actual parameters in as few iterations as possible, since each iteration would involve a pass over the entire dataset, and when the dataset is large, having a lower number of iterations to convergence would amount to a reduction in the amount of time taken for the estimation of the parameters.
We also reiterate that the convergence rates presented in (29) and (40) are merely upper bounds. As demonstrated in the insets of Figures 2 and 4, these have no relationship with the transient behaviors of the PB-GEM and W-PB-GEM algorithms. Although in practice we can improve the convergence rates of these algorithms by designing new and more efficient varieties (as detailed in the construction of the W-PB-GEM algorithm), the upper bound of the obtained convergence rates does not change.
5 Conclusions and Future Work
In this paper, we analyzed a GEM algorithm to estimate the parameters of GMMs from a dynamical systems perspective. In particular, we showed that this algorithm can be understood as an LTI system connected in feedback with a nonlinearity. The convergence properties of the proposed algorithm are studied by utilizing tools from robust control theory. We also explored the simple design of this class of GEM algorithms and provided evidence using pedagogical examples that it might be possible to improve the transient and the practical convergence of these algorithms despite the fact that they exhibit the same asymptotic convergence rates. Future work will consist of using tools from adaptive systems theory to accelerate practical convergence properties for GEM algorithms. Additionally, fundamental connections exist between the EM algorithm and proximal point methods (Chrétien and Hero, 2000, 2008; Figueiredo, 2008) and future work will focus on analyzing proximal interpretations of the EM algorithm using tools from robust control theory (Lessard et al., 2016; Fazlyab et al., 2018).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1\NAT@swatrue
- 2Balakrishnan et al. (2017) Balakrishnan, S., Wainwright, M. J., and Yu, B. (2017). Statistical guarantees for the EM algorithm: From population to sample-based analysis. The Annals of Statistics , 45 (1), 77–120. \NAT@swatrue
- 3Bishop (2006) Bishop, C. (2006). Pattern Recognition and Machine Learning . Springer Verlag. \NAT@swatrue
- 4Chrétien and Hero (2000) Chrétien, S., and Hero, A. O. (2000). Kullback proximal algorithms for maximum-likelihood estimation. IEEE Transactions on Information Theory , 46 (5), 1800–1810. \NAT@swatrue
- 5Chrétien and Hero (2008) Chrétien, S., and Hero, A. O. (2008). On EM algorithms and their proximal generalizations. ESAIM: Probability and Statistics , 12 , 308–326. \NAT@swatrue
- 6Dempster et al. (1977) Dempster, A. P., Laird, N. M., and Rubin, D. B. (1977). Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society, Series B (Methodological) , 1–38. \NAT@swatrue
- 7Fazlyab et al. (2018) Fazlyab, M., Ribeiro, A., Morari, M., and Preciado, V. M. (2018). Analysis of optimization algorithms via integral quadratic constraints: Nonstrongly convex problems. SIAM Journal on Optimization , 28 (3), 2654–2689. \NAT@swatrue
- 8Fessler and Hero (1995) Fessler, J. A., and Hero, A. O. (1995). Penalized maximum-likelihood image reconstruction using space-alternating generalized EM algorithms. IEEE Transactions on Image Processing , 4 (10), 1417–1429. \NAT@swatrue
