                             Learning Mixtures of Experts with EM: A Mirror Descent Perspective



As noted in the literature, EM’s convergence is sensitive to           of EM can directly benefit from this paradigm for solving

initialization. If θ 1 is initialized within a locally average-        each iteration’s convex optimization subproblem (i.e., Equa-

convex region of L(θ), the EM iterates for the MoE problem             tion (9)) where a GD-style method is typically used. Scaling

will converge sub-linearly to the true parameter. However,             laws for the mini-batch paradigm suggest that reducing the

if θ 1 is in a region where L(θ) is strongly average-convex            batch size should be accompanied by a proportional reduc-

relative to A, the iterates will converge linearly. This last          tion in the learning rate (Shuai et al., 2024; Malladi et al.,

assumption is different from that of prior work, which typi-           2022; Goyal et al., 2017). However, since EM is equivalent

cally require θ 1 to be initialized in a locally strongly convex       to MD with a fixed learning rate of 1, this kind of modular

region.                                                                tuning is not directly applicable to EM. This does not imply

                                                                       that there is no optimal batch size for EM. Rather, extending

4.2. Discussion of Main Result                                         theoretical guarantees to stochastic and mini-batch settings

                                                                       can be approached through the framework of stochastic mir-

The results show that the EM update (9) for general MoE                ror descent (SMD) and mini-batch MD (MBMD), both of

is equivalent to projected mirror descent with a unit step-            which have been studied in the context of composite opti-

size and KL divergence regularizer on the complete data                mization (Duchi et al., 2010). We highlight this as an open

distribution. We offer the following additional remarks.               direction for future research on scalable implementations of

First, if we have oracle access to the EM updates for w                EM for MoE.

and β, EM requires no hyper-parameters, unlike GD, which

is sensitive to the step size. This can be especially advan-           5. Special case of SymMoLinE and

tageous for cases where the β-update has a closed-form                    SymMoLogE

solution (as is the case for linear experts), making EM’s

benefits over GD more evident. Additionally, while GD                  In this section, we narrow in on two special cases: the

regularizes progress based on the Euclidean distance be-               Symmetric Mixture of Linear Experts (SymMoLinE) and

tween iterates, EM adjusts progress based on the divergence            the Symmetric Mixture of Logistic Experts (SymMoLogE)

between probability distributions across iterations. This is           models. We first show that minimizing the EM objective

often more suitable for latent variable models, where small            function defined in (9) is exactly equivalent to minimizing

Euclidean changes may cause large shifts in the mixture                the subproblem associated with a single step of MD as

distribution, and vice versa.                                          defined in equation (15), with a step size of η = 1. This

                                                                       time, we fully specify the mirror map and show it is strictly

Second, whereas previous analysis of EM for various set-

                                                                       convex. Unlike the previous result, this correspondence

tings hinged on various types of analyses ranging from

                                                                       between EM and MD does not feature the extra projection

verifying obscure conditions to – less reproducible at scale –

                                                                       step that was present for general MoE. This allows us to

direct proofs, the connection to MD that we unveil greatly

                                                                       more easily characterize the sufficient condition of EM for

unifies the process of analysis and provides more intuition as

                                                                       linear convergence to the true parameters, relating it to the

to the inner workings of EM. In particular, as we will discuss

                                                                       MIM and SNR of the generative model (see Appendix B.5

in Section 5, our framework for analysis allows to easily

                                                                       and B.6). The proof is provided in Appendix B.2.

provide intuitive conditions for linear convergence to the

true parameters that are based on the MIM and subsequently,            Theorem 5.1. For SymMoLinE and SymMoLogE, there

the SNR of the generative model.                                       is a mirror map A(θ) such that the EM update in (9) is

                                                                       equivalent to

Third, while Jordan & Xu (1995) also demonstrated that

the EM algorithm for MoE converges linearly to the true                         argmin⟨∇L(θ t ), θ − θ t ⟩ + DA (θ, θ t ),      (29)

                                                                                  θ∈Ω

parameters, the sufficient conditions they provided are more

restrictive. Specifically, their analysis requires the Hessian         where, ∀ϕ, θ ∈ Ω, the divergence function DA (θ, θ t ) is

to be negative definite, and the convergence rate depends              equal to the KL divergence on the complete data:

explicitly on its eigenvalues. These conditions are similar in

nature to those typically required for GD-type methods. In                  DA (ϕ, θ) = KL[p(x, y, z; θ)∥p(x, y, z; ϕ)].        (30)

contrast, our sufficient conditions for optimality align with

those of MD, which more accurately captures the conver-                In particular, in the case of SymMoLinE,

gence behavior of EM, as established by the equivalence                                     ⊤ 2                    

                                                                                            (x β)                ⊤

shown in Theorem 4.1.                                                       A(θ) = EX                 + log 1 + ex w ,          (31)

                                                                                               2

Finally, large-scale applications often favor a mini-batch

training paradigm, as it tends to yield better performance             while in the case of SymMoLogE,

for a given computational cost. Large-scale implementation                             h         ⊤

                                                                                                       ⊤

                                                                                                           i

                                                                         A(θ) = EX log 1 + ex β 1 + ex w       .                (32)



                                                                   7

