                             Learning Mixtures of Experts with EM: A Mirror Descent Perspective



3.2. EM for Deep and Sparse MoE                                        vergence regularizer: The Bregman divergence induced by

                                                                       a differentiable, convex function h : Rd → R, measures the

So far, we have derived EM for the foundational formula-

                                                                       difference between h(θ) and its first-order approximation

tions of MoE, as initially proposed in (Jacobs et al., 1991).

                                                                       at θ t ,i.e.,

While EM is straightforward to derive in these cases, the

same does not hold for deep MoE—and especially not for                    Dh (θ, θ t ) = h(θ) − h(θ t ) − ⟨∇h(θ t ), θ − θ t ⟩.   (14)

Sparse MoE. A deep MoE consists of l ≥ 2 MoE blocks,

as defined in Section 2, stacked sequentially. In this setup,          Thus, the iterations of MD are derived by minimizing the

the input x passes through the first MoE block and then                following expression:

sequentially through all subsequent blocks to produce the

                                                                                                             1

output y.                                                                    L(θ t ) + ⟨∇L(θ t ), θ − θ t ⟩ + Dh (θ t , θ).       (15)

                                                                                                             η

For completeness, and to encourage future work on large-

scale applications of EM for MoE, we propose a formulation             Finally, in projected mirror descent, the update is completed

of EM for deep and sparse MoE in Appendix D.4. Instead of              by projecting the solution obtained from minimizing (15)

solving a separate latent-variable problem at each layer—as            onto a subspace. As mentioned, this scheme is reasonable if

is done in classical MoE—we posit that the latent variable             the function approximation using the Bregman divergence

z ∈ [k]l should represent the entire sequence of experts               serves as an upper bound for the function L(θ). This can

selected across the network. This allows us to construct the           be ensured when the step size η is sufficiently small, and

EM objective in Equation (8).                                          the condition of relative smoothness is satisfied (Lu et al.,

                                                                       2018).

An EM-like solution can then be derived for Sparse MoE,

where the loss is computed solely from the sequences of                In the upcoming theorem, we formally establish that for

experts observed through greedy expert selection. This                 general MoE, minimizing the EM objective function de-

formulation provides a principled approach to training deep            fined in equation (9) is exactly equivalent to minimizing

and sparse MoE models using EM.                                        the subproblem associated with a single step of MD, as de-

                                                                       fined in equation (15), followed by a projection step. This

                                                                       result demonstrates that the EM update for General MoE

4. Main Result                                                         is essentially performing an MD step in a specific natural

In the previous section, we derived the EM update for both             re-parameterization space, then projecting the resulting so-

MoE and SymMoE as the solution to minimizing the EM                    lution onto Ω. The proof of this result is involved and is

objective in (8). We further demonstrated that this solution           deferred to Appendix A.1.

can be decomposed into the concatenation of the respective             Theorem 4.1. For General MoE, there exists a natural

solutions to two minimization sub-problems. In this section,           reparameterization θx ∈ {η(·, θ) : θ ∈ Ω} with

we will show that this update is exactly equivalent to per-

forming a single step of the projected Mirror Descent (MD)                                 L(θ) = EX [L(θx )]                     (16)

update on L(θ) with a unit step size and the KL divergence             and a mirror map A(θx ) such that the EM update in (9)

as a regularizer. To illustrate more clearly that minimizing           simplifies and is equivalent to the expectation moment pro-

Q(θ|θ t ) in (8) corresponds to a projected MD step on the             jection,

loss L(θ) at the point θ t , we first provide a brief overview                       h h                               ii

of the core concept behind the MD update.                                argmin EX KL p y, z θ̃xt+1 p (y, z|η(x, θ)) , (17)

                                                                          θ∈Ω

In most gradient-based methods, the next iteration is ob-

tained by minimizing an upper bound of the objective func-             where for each x, θ̃xt+1 is obtained from the following MD

tion. For example, in Gradient Descent (GD), the next iterate          step,

is found by minimizing the first-order Taylor expansion of

the objective at θ t , with a squared norm regularizer. Specifi-                argmin⟨∇L(θxt ), ψ − θxt ⟩ + DA (ψ, θxt ),        (18)

cally, for minimizing L(.), the GD update with step size η                       ψ∈Ω̃

at θ t is equivalent to minimizing the following function:

                                                                       with L(θx ) being 1-smooth relative to A(θx ). Further,

                                  1                                    ∀ψ1 , ψ2 ∈ Ω̃, the divergence function DA (ψ1 , ψ2 ) is equal

            t            t         t

       L(θ ) + ⟨∇L(θ ), θ − θ ⟩ + ∥θ − θ t ∥22 .

                                 2η                                    to the KL divergence on p(y, z, |ψ):

This function indeed serves as an upper bound for L(.) if

                                                                            DA (ψ1 , ψ2 ) = KL[p(y, z|ψ2 )∥p(y, z|ψ1 )].          (19)

η ≤ 1/L, where L is the Lipschitz constant of ∇L(θ).

Mirror Descent solves a similar sub-problem where instead              Proof sketch. We utilize the assumed property that the con-

of a squared norm regularizer, we employ the Bregman Di-               ditional distribution p(y, z|x, θ) belongs to an exponential



                                                                   5

