         Learning Mixtures of Experts with EM: A Mirror Descent Perspective





                                  Quentin Fruytier 1 Aryan Mokhtari 1 Sujay Sanghavi 1





                          Abstract                                      larly effective when the feature space can be divided and

       Classical Mixtures of Experts (MoE) are Machine                  processed by specialized models, known as experts. Instead

       Learning models that involve partitioning the in-                of relying on a single, large model to handle all input-output

       put space, with a separate “expert” model trained                mappings, MoE utilize an ensemble of specialized experts.

       on each partition. Recently, MoE-based model ar-                 Each expert is responsible for a specific subset of the input

       chitectures have become popular as a means to re-                space, allowing the system to efficiently route inputs to the

       duce training and inference costs. There, the par-               most appropriate expert. This partitioning enables each ex-

       titioning function and the experts are both learnt               pert to focus on mapping its designated inputs to outputs

       jointly via gradient descent-type methods on the                 using a separate, optimized model. By leveraging multiple

       log-likelihood. In this paper we study theoretical               specialized experts rather than a monolithic model, MoE

       guarantees of the Expectation Maximization (EM)                  can achieve greater scalability and flexibility. This mod-

       algorithm for the training of MoE models. We                     ular approach not only enhances computational efficiency

       first rigorously analyze EM for MoE where the                    but also allows for improved performance, as each expert

       conditional distribution of the target and latent                can be finely tuned to handle its particular segment of the

       variable conditioned on the feature variable be-                 input space effectively. Real-world applications of MoE

       longs to an exponential family of distributions                  such as Sparse MoE span across various domains, including

       and show its equivalence to projected Mirror De-                 language translation, speech recognition, recommendation

       scent with unit step size and a Kullback-Leibler                 systems, and more (Fedus et al., 2022; Ma et al., 2018;

       Divergence regularizer. This perspective allows                  Hinton et al., 2012; Liu et al., 2024).

       us to derive new convergence results and iden-                   In its most generic form, training an MoE model involves

       tify conditions for local linear convergence; In                 training both (a) the parameters in the individual experts,

       the special case of mixture of 2 linear or logistic              and (b) the gating function that routes inputs to the appro-

       experts, we additionally provide guarantees for                  priate expert. Typically, these are both learnt jointly by first

       linear convergence based on the signal-to-noise                  formulating the final loss function as applied to the ensem-

       ratio. Experiments on synthetic and (small-scale)                bled output, and then minimizing this joint loss function

       real-world data supports that EM outperforms the                 (via SGD or its variants) over the parameters of the gate and

       gradient descent algorithm both in terms of con-                 the experts.

       vergence rate and the achieved accuracy.

                                                                        In this paper we investigate, primarily from a theoretical

                                                                        perspective, the training of classical MoE as defined by

                                                                        Jacobs et al. (1991) using a classic algorithm: Expectation

1. Introduction

                                                                        Maximization (EM). As opposed to SGD-based methods

Classical Mixtures of Experts (MoE) (Jacobs et al., 1991;               which are agnostic to whether a parameter is in the gate or

Jordan & Jacobs, 1994) are a crucial class of parametric                in an expert, EM first formulates two separate problems –

latent variable models that have gained significant popular-            one for the router, and another for the experts – in a specific

ity in deep learning for their ability to reduce both training          way. It then solves each problem in isolation and in parallel,

and inference costs (Chen et al., 2022). MoE are particu-               and then collates the outputs to arrive at the updated set of

   1

                                                                        gate and expert parameters.

     Electrical and Computer Engineering Department, Univer-

sity of Texas at Austin, Austin, Texas, United States of America.       For our theoretical results, we consider the setting of gen-

Correspondence to: Quentin Fruytier <qdf76@my.utexas.edu>,              eral MoE where the joint distribution of the target and latent

Aryan Mokhtari <mokhtari@austin.utexas.edu>, Sujay Sanghavi             variable conditioned on the feature variable belongs to an

<sanghavi@mail.utexas.edu>.

                                                                        exponential family of distributions. We then narrow in on

Proceedings of the 42 nd International Conference on Machine            two simpler instances of MoE models: Mixture of Linear

Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025             Experts (where each expert is a linear regressor) and Mix-

by the author(s).



                                                                    1

