Deterministic Quantum Annealing Expectation-Maximization Algorithm
Hideyuki Miyahara, Koji Tsumura, and Yuki Sughiyama

TL;DR
This paper introduces the DQAEM algorithm, a quantum annealing-based extension of EM, which improves maximum likelihood estimation by overcoming local optima issues, demonstrated through numerical simulations.
Contribution
The paper proposes the DQAEM algorithm, integrating quantum annealing with EM to enhance global optimization in maximum likelihood estimation.
Findings
DQAEM outperforms EM in numerical simulations.
DQAEM reduces dependence on initial configurations.
DQAEM effectively finds better optima in MLE tasks.
Abstract
Maximum likelihood estimation (MLE) is one of the most important methods in machine learning, and the expectation-maximization (EM) algorithm is often used to obtain maximum likelihood estimates. However, EM heavily depends on initial configurations and fails to find the global optimum. On the other hand, in the field of physics, quantum annealing (QA) was proposed as a novel optimization approach. Motivated by QA, we propose a quantum annealing extension of EM, which we call the deterministic quantum annealing expectation-maximization (DQAEM) algorithm. We also discuss its advantage in terms of the path integral formulation. Furthermore, by employing numerical simulations, we illustrate how it works in MLE and show that DQAEM outperforms EM.
| DQAEM | EM | DSAEM |
| 40.5 % | 20.3 % | 34.3 % |
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.
Deterministic Quantum Annealing Expectation-Maximization Algorithm
Hideyuki Miyahara
Graduate School of Information Science and Technology, The University of Tokyo, 7-3-1 Hongosanchome Bunkyo-ku Tokyo 113-8656, Japan
Koji Tsumura
Graduate School of Information Science and Technology, The University of Tokyo, 7-3-1 Hongosanchome Bunkyo-ku Tokyo 113-8656, Japan
Yuki Sughiyama
Institute of Industrial Science, The University of Tokyo, 4-6-1, Komaba, Meguro-ku, Tokyo 153-8505, Japan
Abstract
Maximum likelihood estimation (MLE) is one of the most important methods in machine learning, and the expectation-maximization (EM) algorithm is often used to obtain maximum likelihood estimates. However, EM heavily depends on initial configurations and fails to find the global optimum. On the other hand, in the field of physics, quantum annealing (QA) was proposed as a novel optimization approach. Motivated by QA, we propose a quantum annealing extension of EM, which we call the deterministic quantum annealing expectation-maximization (DQAEM) algorithm. We also discuss its advantage in terms of the path integral formulation. Furthermore, by employing numerical simulations, we illustrate how it works in MLE and show that DQAEM outperforms EM.
pacs:
03.67.-a, 03.67.Ac, 89.90.+n, 89.70.-a, 89.20.-a
1 Introduction
Machine learning gathers considerable attention in a wide range of fields [1, 2]. In unsupervised learning, which is a major branch of machine learning, maximum likelihood estimation (MLE) plays an important role to characterize a given data set. One of the most common and practical approaches for MLE is the expectation-maximization (EM) algorithm. Although EM is widely used [3], it is also known to be trapped in local optima depending on initial configurations due to non-convexity of log-likelihood functions.
One of the breakthroughs for non-convex optimization is simulated annealing (SA), proposed by Kirkpatrick et al. [4, 5]. In SA, a random variable, which mimics thermal fluctuations, is added during the optimization process to overcome potential barriers in non-convex optimization. Moreover, the global convergence of SA is guaranteed when the annealing process is infinitely long [6]. Motivated by SA and its variant [7, 8], Ueda and Nakano developed a deterministic simulated annealing expectation-maximization (DSAEM) algorithm 111This algorithm is originally called the deterministic annealing expectation-maximization algorithm in Ref. [9]. However, to distinguish our and their approaches, we refer to it as DSAEM in this paper. by introducing thermal fluctuations into EM [9]. This approach succeeded in improving the performance of EM without the increase of numerical costs. However, problems caused by non-convexity are still remaining.
Another approach for non-convex optimization is quantum annealing (QA), which was proposed in Refs. [10, 11, 12], and it has been intensively studied by many physicists [13, 14, 15, 16, 17, 18, 19, 20, 21]. One of the reasons why QA attracts great interest is that, in some cases, it outperforms SA [16]. Another reason is that QA can be directly implemented on a quantum computer, and much effort is devoted to realize one via many approaches [22, 23, 24, 25]. Moreover, quantum algorithms for machine learning are extensively studied [26, 27, 28].
In this study, to improve the performances of EM and DSAEM, by employing QA we propose a new algorithm, which we call the deterministic quantum annealing expectation-maximization (DQAEM) algorithm. To be more precise, by quantizing hidden variables in EM and adding a non-commutative term, we extend classical algorithms: EM and DSAEM. Then, we discuss the mechanism of DQAEM from the viewpoint of the path integral formulation. Through this discussion, we elucidate how DQAEM overcomes the problem of local optima. Furthermore, as applications, we focus on clustering problems with Gaussian mixture models (GMMs). Here, it is confirmed that DQAEM outperforms EM and DSAEM through numerical simulations.
This paper is organized as follows. In Sec. 2, we review MLE and EM to prepare for DQAEM. In Sec. 3, which is the main section of this paper, we present the formulation of DQAEM. Next, we give an interpretation of DQAEM and show its advantage over EM and DSAEM from the viewpoint of the path integral formulation in Sec. 4. Then, in Sec. 5, we introduce GMMs and demonstrate numerical simulations. Here, it is found that DQAEM is superior to EM and DSAEM. Finally, Sec. 6 conclude this paper.
2 Maximum likelihood estimation and expectation-maximization algorithm
To make this paper self-contained, we review MLE and EM. Suppose that we have data points , which are independent and identically distributed, and let be a set of hidden variables. In this paper, we denote the joint probability density function on and with a parameter as .
Using these definitions, the log-likelihood function of is represented by
[TABLE]
where represents a discrete configuration set of ; that is, . In MLE, we estimate the parameter by maximizing the log-likelihood function, Eq. (1). However, it is difficult to maximize Eq. (1), because is analytically unsolvable and primitive methods, such as Newton’s method, are known to be less effective [29]. We therefore often use EM for practical applications [1, 2].
EM consists of two steps. To introduce them, we decompose into two parts:
[TABLE]
where
[TABLE]
Here, we use an arbitrary probability function that satisfies . Note that is the Kullback-Leibler divergence [30, 31]. On the basis of this decomposition, EM is composed of the following two steps, which are called the E and M steps. In the E step, we minimize the KL divergence, Eq (4), with respect to under a fixed . Then we obtain
[TABLE]
Next, by substituting Eq. (5) into Eq. (3), we obtain
[TABLE]
where
[TABLE]
In the M step, we maximize instead of with respect to ; that is, we maximize under the fixed . In EM, we iterate these two steps. Thus, assuming that be a tentative estimated parameter at the -th iteration, the new estimated parameter is determined by
[TABLE]
This procedure is summarized in Algo. 1 with pseudo-code.
Despite the success of EM, it is known that EM sometimes trapped in local optima and fails to estimate the optimal parameter [1, 2]. To relax these problems, we improve EM by employing methods in quantum mechanics.
3 Deterministic quantum annealing expectation-maximization algorithm
This section is the main part of this paper. We formulate DQAEM by quantizing the hidden variables in EM and employing the annealing technique. In the previous section, we denoted by and the hidden variable for each data point and the set of its possible values, respectively. Corresponding to the classical setup, we introduce a quantum one as follows. We define an operator and a ket vector so that they satisfy
[TABLE]
Here we note that the eigenvalues of correspond to the possible values of the hidden variable in the classical setup. In addition, we introduce a bra vector corresponding to as so that it satisfies
[TABLE]
Moreover, we denote the trace on by ; using the ket vector and the bra vector , it is represented by . To simplify the notation, we sometimes use and for and , respectively, and the trace on is also represented by .
Next, we define the negative free energy function as
[TABLE]
where denotes the partition function that is given by
[TABLE]
Here, is the exponential weight with a non-commutative term :
[TABLE]
where the non-commutative relation is imposed, and and represent parameters for simulated and quantum annealing, respectivlely. If we set and , the negative free energy function, Eq. (11), reduces to the log-likelihood function, Eq. (1):
[TABLE]
Therefore, in annealing processes, and are changed from appropriate initial values to [math] and , respectively. Corresponding to EM in the previous section, we construct the E and M steps in DQAEM. Using an arbitrary density matrix that satisfies , we divide the negative free energy function, Eq. (11), into two parts as
[TABLE]
where
[TABLE]
[TABLE]
Here, is a quantum extension of the Kullback-Leibler divergence between density matrices and [32].
In the E step of DQAEM, Eq. (20) under a fixed is minimized; then we obtain
[TABLE]
which is a quantum extension of Eq. (5). Note that, to calculate , we need to use the Suzuki-Trotter expansion [33], the Taylor expansion, the Padé approximation or the technique proposed in Ref. [34], because has the non-commutative term .
On the other hand, in the M step of DQAEM, the parameter is determined by maximizing Eq. (19). Following the method in the previous section, we substitute Eq. (21) into Eq. (19); then we have
[TABLE]
where
[TABLE]
Note that represents the quantum extension of , Eq. (7). Thus, the computation of the M step of DQAEM is written as
[TABLE]
During iterations, the annealing parameter , which controls the strength of quantum fluctuations, is changed from the initial value to [math], and the other parameter , which controls the strength of thermal fluctuations, is changed from the initial value to . We summarize DQAEM in Algo. 2.
Finally, we mention that the free energy function, Eq. (11), increases monotonically when the parameter is updated by DQAEM. The proof is given in A.
4 Mechanism of DQAEM
In this section, we explain an advantage of DQAEM over EM and DSAEM using the path integral formulation. First, we demonstrate that DQAEM is a quantum extension of EM and DSAEM. Setting in Eq. (23), which corresponds to the classical limit, we have
[TABLE]
where we use . Taking into account that does not have the non-commutative term , we get
[TABLE]
Equation (24) with Eq. (26) provides the update equation for in DSAEM, and we obtain by solving
[TABLE]
This update rule is equivalent to that of DSAEM [35]. Furthermore, if we set , Eq. (26) equals to Eq. (7) and DSAEM also reduces to EM.
On the other hand, in DQAEM, the parameter is updated based on Eq. (24) with Eq. (23). Thus we obtain by solving
[TABLE]
Using the bra-ket notation, Eq. (28) can be arranged as
[TABLE]
The difference between Eqs. (27) and (29) is the existence of the non-commutative term in , which gives rise to the advantage of DQAEM. To evaluate the effect of , we calculate by applying the Suzuki-Trotter expansion [33]. Then we obtain
[TABLE]
with the boundary conditions and . In Eq. (31), the quantum effect comes from . If we assume the classical case (i.e. ), we obtain , where is the Kronecker delta function. Thus, does not depend on the index along the Trotter dimension, . In terms of the path integral formulation, this fact implies that can be evaluated by a single classical path with the boundary condition fixed at ; see Fig. 1. On the other hand, in the quantum case, , and therefore Eq. (31) involves not only the classical path but also quantum paths, which depend on the form of ; see Fig. 1. Thus, owing to these quantum paths, DQAEM may overcome the problem of local optima and it is expected that DQAEM outperforms EM and DSAEM. In Sec. 5, we show that the quantum effect really helps EM to find the global optimum through numerical simulations.
Before closing this section, we represent Eq. (31) with the path integral form. In the limit , we define
[TABLE]
where . This notation leads to another expression of Eq. (31) as
[TABLE]
where represents the integration over all paths and is the action given by
[TABLE]
Note that this action also appears in the discussion of the Berry phase [36, 37].
5 Numerical simulations
In this section, we present numerical simulations to confirm the performance of DQAEM. Here, we deal with GMMs with hidden variables. We introduce the quantum representation of GMMs in Sec. 5.1, and give update equations in Sec. 5.2. In Sec. 5.3, we show numerical results to elucidate the advantage of DQAEM over EM and DSAEM.
5.1 Gaussian mixture models
First, we provide a concrete setup of GMMs. Consider that a GMM is composed of Gaussian functions and the domain of the hidden variables is given by 222When we work on the one-hot notation [1, 2], we can formulate an equivalent quantization scheme. [38]. Then the distribution of the GMM is written by
[TABLE]
where is the -th Gaussian function of the GMM parametrized by , and is the Kronecker delta. The parameters stand for the mixing ratios that satisfy . Here, we denote all the parameters collectively by : . From Eq. (15), we get the Hamiltonian of this system:
[TABLE]
where we take the logarithm of Eq. (35) and .
Next, following the discussion of Sec. 3, we define the ket vector , and the operator as
[TABLE]
where represents the label of components of the GMM; that is, . To quantize Eq. (36), we replace by . Then, we obtain the quantum Hamiltonian of the GMM as
[TABLE]
where we use . If we adopt the representation,
[TABLE]
Eq. (39) can be expressed as
[TABLE]
Finally we add a non-commutative term with to Eq. (38). Obviously, there are many candidates for ; however, in the numerical simulation, we adopt
[TABLE]
where and . This term induces quantum paths shown in Fig. 1.
5.2 Update equations
Suppose that we have data points , and they are independent and identically distributed obeying a GMM. In EM, the update equations of GMMs are obtained by Eq. (8) with the constraint ; then the parameters at the -th iteration, , are given by
[TABLE]
where , is the tentative estimated parameter at the -th iteration.
In DQAEM, from Eq. (24), the update equations are expressed by
[TABLE]
where and we denote by for simplicity. If we set and , the update equations of DQAEM, Eqs. (46), (47), and (48) reduce to those of EM, Eqs. (43), (44), and (45). In annealing schedules, the parameters and are changed from initial values to and [math] via iterations, respectively.
5.3 Numerical results
To clarify the advantage of DQAEM, we compare DQAEM with EM and DSAEM by using numerical simulations. In the annealing schedule of DSAEM, we exponentially change from to , following where denotes at the -iteration. On the other hand, in DQAEM, we exponentially change from to [math], following where is at the -th iteration. To compare the “pure” quantum effect in DQAEM with the thermal effect in DSAEM, we fix in the annealing schedule of DQAEM. In the numerical simulation, we apply three algorithms to the two-dimensional data set shown in Fig. 2(a).
As a result, the log-likelihood functions of EM, the negative free energy functions of DSAEM and those of DQAEM are plotted by red lines, orange lines and blue lines in Fig. 2(b), respectively. In this numerical simulation, the optimal value of the log likelihood function is , which is depicted by the green line. From this figure, we see that some trials of three algorithms succeed to find the global optimum, but others fail.
To clarify the performances of three algorithms, we perform DQAEM, EM and DSAEM 1000 times, respectively. We summarize the success ratios of DQAEM, EM and DSAEM in Table 1. From Table. 1, we conclude that DQAEM is superior to both EM and DSAEM.
For intuitive understanding of the reason why DQAEM outperforms EM and DSAEM, we add some more numerical simulations in B.
6 Conclusion
In this paper, we have proposed a new algorithm, which we call DQAEM, to relax the problem of local optima of EM and DSAEM by introducing the mechanism of quantum fluctuations. After formulating it, we have discussed its mechanism from the viewpoint of the path integral formulation. Furthermore, as applications, we have adopted GMMs. Then we have elucidated that DQAEM outperforms EM and DSAEM through numerical simulations. Before closing this paper, we note that the form of the non-commutative term has arbitrariness. The optimal choice of the term is an open problem similarly to original quantum annealing.
Acknowledgements
HM thanks to Masayuki Ohzeki and Shu Tanaka for fruitful discussions. This research is partially supported by the Platform for Dynamic Approaches to Living Systems funded by MEXT and AMED, and Grant-in-Aid for Scientific Research (B) (16H04382), Japan Society for the Promotion of Science.
Appendix A Convergence theorem
We give a theorem that the negative free energy function has monotonicity for iterations.
Theorem 1**.**
Let . Then holds.
Proof.
First, the difference of the free energy functions in each iteration can be written as
[TABLE]
where
[TABLE]
The first two terms in the right hand side of Eq. (50) is positive due to Eq. (24). Furthermore, we can show that the rest of the right hand side of Eq. (50) are positive by the following calculations:
[TABLE]
∎
This theorem insists that DQAEM converges to at least the global optimum or a local optimum. The global convergence of EM is discussed by Dempster et al. [3] and Wu [39], and their discussion is available to DQAEM.
Appendix B Numerical results
We discuss the performances of DQAEM, EM, and DSAEM by showing how the landscape of the negative free energy function behaves when and are changed. For simplicity, we assume that a GMM is composed of two one-dimensional Gaussian functions and consider the case where only means of two Gaussian functions are estimated. Accordingly, the joint probability density function is given by
[TABLE]
where is a Gaussian function with mean and covariance . Under this setup, we estimate : we assume that are unknown and are given.
First, let us describe the landscapes of the negative free energy functions with different and . We plot the negative free energy functions of DQAEM at , , , and with in Fig. 3(a), (b), (c), and (d), respectively. Specifically, Fig. 3(a) describes the log-likelihood function, since DQAEM reduces to EM at and . In our example used here, the global optimal value for is (the left top in Fig. 3(a)) and the point (the right top in Fig. 3(a)) is the local optimum. If we set the initial value at a point close to the local optimum, EM fails to find the global optimum. In contrast, Fig. 3 shows that the negative free energy function changes from a multimodal form to a unimodal form when increases. Thus, even if we set the initial value close to the local optimum, DQAEM may find the global optimum through the annealing process. On the other hand, in Fig. 4, we plot the negative free energy functions of DSAEM at inverse temperature , , , and . DSAEM has the similar effect in the negative free energy function.
However, as we have seen in Sec. 5.3, they differ qualitatively. To understand this fact intuitively, we show the trajectories of the estimated parameters of EM, DSAEM, and DQAEM in Fig. 5. In this numerical simulation, the initial parameter is set near the local optimum in the log-likelihood function. The red line depicts the trajectory of the estimated parameter of EM and goes to the local optimum orthogonally crossing the contour plots. As shown by the orange line, DSAEM eventually fails to find the global optimum as same as the case of EM. On the other hand, the estimated parameter of DQAEM shown by the blue line surmounts the potential barrier and reaches the global optimum. Accordingly, we consider that DQAEM outperforms EM and DSAEM.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Bishop C 2007 Pattern recognition and machine learning (information science and statistics), 1st edn. 2006. corr. 2nd printing edn
- 2[2] Murphy K P 2012 Machine learning: a probabilistic perspective (MIT press)
- 3[3] Dempster A P, Laird N M and Rubin D B 1977 Journal of the Royal Statistical Society, Series B 39 1–38
- 4[4] Kirkpatrick S, Gelatt C D and Vecchi M P 1983 Science 220 671–680 URL http://www.sciencemag.org/content/220/4598/671.abstract
- 5[5] Kirkpatrick S 1984 Journal of Statistical Physics 34 975–986 ISSN 0022-4715 URL http://dx.doi.org/10.1007/BF 01009452
- 6[6] Geman S and Geman D 1984 Pattern Analysis and Machine Intelligence, IEEE Transactions on PAMI-6 721–741 ISSN 0162-8828
- 7[7] Rose K, Gurewitz E and Fox G 1990 Pattern Recognition Letters 11 589–594 ISSN 0167-8655 URL http://www.sciencedirect.com/science/article/pii/016786559090010 Y
- 8[8] Rose K, Gurewitz E and Fox G C 1990 Phys. Rev. Lett. 65 (8) 945–948 URL http://link.aps.org/doi/10.1103/Phys Rev Lett.65.945
