                           Learning Mixtures of Experts with EM: A Mirror Descent Perspective



A. EM, Projected Mirror Descent, and General MoE.

In this Section, we provide all the complete proofs and discussions relating to results from Section 4.



A.1. EM is Projected Mirror Descent for General MoE.

In this section, we provide the full and detailed proof of the main result, Theorem 4.1. For ease of comprehension and in

the hope that this will provide useful insights into other types of non-exponential family mixtures for which EM is also

connected to MD, we prove our result following the same general ideas as that of Kunstner et al. (2021, Proposition 1).

For ease of reading, we re-state the theorem below:





Theorem 4.1: For General MoE, there exists a natural re-parameterization θx ∈ {η(·, θ) : θ ∈ Ω} with

                                                       L(θ) = EX [L(θx )]

and a mirror map A(θx ) such that the EM update in (9) simplifies and is equivalent to the expectation moment projection,

                                            h h                                   ii

                                  argmin EX KL p y, z θ̃xt+1 p (y, z|η(x, θ)) ,

                                     θ∈Ω



where for each x, θ̃xt+1 is obtained from the following MD step,

                                          argmin⟨∇L(θxt ), ψ − θxt ⟩ + DA (ψ, θxt ),

                                           ψ∈Ω̃



with L(θx ) being 1-smooth relative to A(θx ). Further, ∀ψ1 , ψ2 ∈ Ω̃, the divergence function DA (ψ1 , ψ2 ) is equal to the

KL divergence on p(y, z, |ψ):

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



Proof. The EM is centered around iterative minimization of the surrogate upper-bound Q(ϕ|θ). For conditionally exponential

family of distribution, We can decompose it in terms of the sufficient statistic and log-partition:

                                          "                                     #

                                            X

                             t                                               t

                       Q(θ|θ ) = −EY,X         ln(p(y, x, z; θ))P (z|y, x; θ )

                                               z

                                           "                                                        #

                                               X

                               = −EY,X             (ln(p(y, z|x; θ)) + ln(p(x))) P (z|y, x; θ t )

                                               z

                                           "                                                                    #

                                               X

                                                    ⟨S(y, z), θx ⟩ − A(θxt )) + ln(p(x))                   t

                                                                                           

                               = −EY,X                                                         P (z|y, x; θ )

                                               z

                                                                                                        



                               = EX −⟨EY |x,θ∗ EZ|y,x,θt [S(y, z)], θx ⟩ + A(θx ) − ln(p(x))

                                                                                            

                                       |           {z             }

                                                        s(x;θ t )



                               = EX −⟨s(x; θ t ), θx ⟩ + A(θx ) − ln(p(x)) .

                                                                         



Therefore, the above also implies

                                       EX ∇L(θxt ) = EX ∇Q(θxt |θxt )

                                                                  

                                                                                                                       (33)

                                                    = EX ∇A(θx ) − s(x; θ t )

                                                                            

                                                                                                                       (34)

Simple algebra then shows that

                   Q(θ|θ t ) − Q(θ t |θ t ) = EX −⟨s(x; θ t ), θx ⟩ + A(θx ) + ⟨s(x; θ t ), θxt ⟩ − A(θxt )

                                                                                                          



                                            = EX −⟨s(x; θ t ), θx − θx ⟩ + A(θx ) − A(θxt )

                                                                                              



                                            i)

                                            = EX −⟨s(x; θ t ) − ∇A(θxt ), θx − θxt ⟩ + DA (θx , θxt )

                                                                                                     



                                            = EX ⟨∇L(θxt ), θx − θxt ⟩ + DA (θx , θxt )

                                                                                       





                                                                    13

