                             Learning Mixtures of Experts with EM: A Mirror Descent Perspective



eters using a tensor decomposition method, then 2) whilst                In this paper, we will consider three different settings. The

freezing the experts, utilizing EM to fit the gating function’s          first, General MoE, is the most general setting we con-

parameters only. They proved that their approach recovers                sider. It comprises all MoE where the distribution of

the true parameters at a nearly linear rate. Then, Becker                y, z conditioned on x belongs to an exponential family

et al. (2020) experimented with an EM variant algorithm for              of distribution and enjoys a natural re-parameterization

Gaussian Mixture of Experts called Expectation Information               p(y, z|x, θ ∗ ) = p(y, z; θx∗ ) with θx∗ = η(x, θ ∗ ) ∈ Ω̃. That

Maximization (EIM) which featured an extra information                   is to say that the conditional distribution can be written as

projection step. They obtained promising empirical results

on both synthetic and real world datasets. Our work ex-                        p(y, z|x, θ ∗ ) ∝ exp {⟨s(y, z), θx∗ ⟩ + A(θx∗ )} ,   (4)

tends upon previous works by making the direct connection                where s(y, z), θx , and A(·) are, respectively, referred to as

between EM for MoE and projected mirror descent. We                      the sufficient statistic, natural parameterization, and log par-

also unveil the sufficient conditions for EM to converge                 tition of the exponential family of distributions. This setting

sub-linearly to a stationary point or true parameter, and for            includes the popular cases where p(y|x, z) is Gaussian or

special cases, characterize these sufficient conditions with             multivariate Bernoulli. In the former case, the exponential

respect to the SNR of the generative model.                              family of distribution corresponds to a Gaussian Mixture.

                                                                         The second setting, Mixture of Linear Experts, is when

2. Mixture of Experts

                                                                                                            (y − x⊤ βi∗ )2

                                                                                                                          

Next, we formally describe the setting under consideration                      p(y|x, z = i; βi∗ ) ∝ exp                       (5)

                                                                                                                  2

for the Mixture of k Experts. The notation used throughout

is summarized in the Notation Section of the appendix.                   as the density function of the normal distribution. This is

                                                                         equivalent to assume that the target y = x⊤ βi∗ + ϵ where ϵ

Data Generation Model: First, the input or feature vector                is additive zero mean Gaussian noise with unit variance.

variable x ∈ Rd is sampled based on a probability density

function p(x). Second, given the feature vector x, a latent              Finally, Mixture of Logistic Experts, is when the density

variable z ∈ [k], responsible for routing x to the appropriate           function p(y|x, z = i; βi∗ ) can be written as

expert is sampled with probability mass function P (z|x). Fi-

                                                                                                                exp(x⊤ βi∗ )

nally, given the pair (x, z), the target y is generated accord-                  P (y = 1|x, z = i; βi∗ ) =                          (6)

ing to the probability distribution p(y|x, z). Hence, the com-                                                1 + exp(x⊤ βi∗ )

plete data distribution is p(x, y, z) = p(y|x, z)p(z|x)p(x)              and P (y = −1|x, z = i; βi∗ ) = 1 − P (y = 1|x, z = i; βi∗ ).

and the joint input-output probability distribution can be

written as                                                               Maximum Likelihood Loss: Given the assumed data dis-

                              X                                          tribution of (x, y), our goal is to find the set of feasible

            p(x, y) = p(x)        p(y|x, z)P (z|x).         (2)          parameters β ∈ Rd×k and w ∈ Rd×k that maximize the

                            z∈[k]                                        log likelihood function. For ease of notation we define

This is the most general form of data generation under mix-              θ := (β, w) ∈ R2d×k as the concatenation of all parameters.

ture of k-experts, but here we focus on the case where x                 Specifically, from (2), the expected log likelihood is

is sampled from a unit spherical Gaussian distribution, i.e.                                                                  

x ∼ N (0, Id ), and P (z|x) = P (z|x; w∗ ) is parameter-

                                                                                                          X

                                                                          EX [log p(x)] + EX,Y log           p(y|x, z)P (z|x) .

ized by a set of vectors (w1∗ , . . . , wk∗ ) and can be cast as                                           z∈[k]

                                    ⊤   ∗

                               ex wi                                     Given that only the last term of the sum depends on param-

     P (z = i|x; w∗ ) = P               ⊤   ∗   ,   i ∈ [k].   (3)

                              j∈[k] e

                                      x wj                               eters θ = (w, β)⊤ the negative log-likelihood objective

                                                                         function, L(θ), that we aim to minimize can be written as

In other words, the probability mass function of the latent                                                              

variable is the softmax function between the inner product                                     X

of x with the parameter vectors concatenated as w∗ =                           −EX,Y log           p(y|x, z; β)P (z|x; w) (7)

(w1∗ , ..., wk∗ ) ∈ Rd×k .                                                                      z∈[k]



Regarding p(y|x, z), the probability distribution of the tar-            Note that as we will discuss in detail, for both mixtures

get variable y conditioned on the input variable x and                   of linear or logistic experts, the above objective function

latent routing variable z = i (i.e., expert i), we also as-              is known to be non convex with respect to θ. In fact, this

sume that it is parameterized by a vector βi∗ and we have                is generally true for Mixtures of Gaussian, Mixtures of

p(y|x, z = i) = p(y|x, z = i; βi∗ ). Thus, given the con-                Regressions, and Mixtures of Experts. In the next section

catenated vector β ∗ = (β1∗ , ..., βk∗ ) ∈ Rs×k , we can write           we will discuss the use of the EM algorithm for solving this

p(y|x, z) = p(y|x, z; β ∗ ).                                             optimization problem.



                                                                     3

