Simple Algorithm
Machine Learning · Convergence · 28 min

Why EM Works

The ELBO view: monotone improvement and its variants.

EM looks like a heuristic: guess the hidden variables, refit, repeat. It is in fact coordinate ascent on a single function, the evidence lower bound, and that one observation explains why the likelihood never falls, where the iterates can end up, why EM sometimes crawls, and how to build versions that run on data streams, on Monte Carlo samples and on posteriors you cannot compute.

What you’ll learn

  • Prove the decomposition log⁡p(x∣θ)=L(q,θ)+DKL(q ∥ p(z∣x,θ))\log p(\mathbf x\mid\boldsymbol\theta)=\mathcal L(q,\boldsymbol\theta)+\KL\big(q\,\|\,p(\mathbf z\mid\mathbf x,\boldsymbol\theta)\big) and derive EM as coordinate ascent on L\mathcal L.
  • State Wu's convergence theorem with its conditions, and explain why the limit can be a saddle point and why the iterates need not converge.
  • Derive EM's linear rate from the fraction of missing information, DM(θ⋆)=Ic−1ImDM(\boldsymbol\theta^\star)=I_c^{-1}I_m, and compute it in an exact example.
  • Compare generalized, incremental, online, Monte Carlo, stochastic-approximation and variational EM: what each step computes and what guarantee survives.

One function, two coordinates

Write x\mathbf x for all the observed data, z\mathbf z for all the latent variables and ℓ(θ)=log⁡p(x∣θ)\ell(\boldsymbol\theta)=\log p(\mathbf x\mid\boldsymbol\theta). For any distribution qq over z\mathbf z, define the evidence lower bound (ELBO), also called the negative variational free energy:

L(q,θ)=Eq[log⁡p(x,z∣θ)]−Eq[log⁡q(z)]=Eq[log⁡p(x,z∣θ)]+H(q)\mathcal L(q,\boldsymbol\theta)=\E_{q}\big[\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)\big]-\E_{q}\big[\log q(\mathbf z)\big]=\E_{q}\big[\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)\big]+H(q)
DerivationProof
  1. log⁡p(x∣θ)=Eq[log⁡p(x,z∣θ)−log⁡p(z∣x,θ)]\log p(\mathbf x\mid\boldsymbol\theta)=\E_q\big[\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)-\log p(\mathbf z\mid\mathbf x,\boldsymbol\theta)\big]

    log⁡p(x∣θ)\log p(\mathbf x\mid\boldsymbol\theta) does not depend on z\mathbf z, so it equals its own average under qq. Then use p(x∣θ)=p(x,z∣θ)/p(z∣x,θ)p(\mathbf x\mid\boldsymbol\theta)=p(\mathbf x,\mathbf z\mid\boldsymbol\theta)/p(\mathbf z\mid\mathbf x,\boldsymbol\theta) inside the average:

  2. =Eq[log⁡p(x,z∣θ)−log⁡q(z)]⏟L(q,θ)+Eq[log⁡q(z)p(z∣x,θ)]⏟DKL(q ∥ p(⋅∣x,θ))=\underbrace{\E_q\big[\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)-\log q(\mathbf z)\big]}_{\mathcal L(q,\boldsymbol\theta)}+\underbrace{\E_q\Big[\log\frac{q(\mathbf z)}{p(\mathbf z\mid\mathbf x,\boldsymbol\theta)}\Big]}_{\KL(q\,\|\,p(\cdot\mid\mathbf x,\boldsymbol\theta))}

    Add and subtract Eq[log⁡q(z)]\E_q[\log q(\mathbf z)] and regroup:

  3. The KL divergence is nonnegative and zero only when the two distributions agree (Gibbs' inequality, a consequence of Jensen's inequality), which gives the bound and the equality case.

Now EM is coordinate ascent on L\mathcal L (Neal & Hinton, 1998):

  • E-step, maximize over qq with θ=θt\boldsymbol\theta=\boldsymbol\theta_t fixed. Since ℓ(θt)\ell(\boldsymbol\theta_t) is fixed, maximizing L\mathcal L means minimizing the KL term, so qt+1=p(z∣x,θt)q_{t+1}=p(\mathbf z\mid\mathbf x,\boldsymbol\theta_t) and the gap closes.
  • M-step, maximize over θ\boldsymbol\theta with q=qt+1q=q_{t+1} fixed. The entropy H(qt+1)H(q_{t+1}) does not involve θ\boldsymbol\theta, so this maximizes Q(θ∣θt)=Eqt+1[log⁡p(x,z∣θ)]Q(\boldsymbol\theta\mid\boldsymbol\theta_t)=\E_{q_{t+1}}[\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)].

Monotonicity is one line: ℓ(θt+1)=L(qt+1,θt+1)+DKL≥L(qt+1,θt+1)≥L(qt+1,θt)=ℓ(θt)\ell(\boldsymbol\theta_{t+1})=\mathcal L(q_{t+1},\boldsymbol\theta_{t+1})+\KL\ge\mathcal L(q_{t+1},\boldsymbol\theta_{t+1})\ge\mathcal L(q_{t+1},\boldsymbol\theta_t)=\ell(\boldsymbol\theta_t). The gain in likelihood is the M-step's gain in L\mathcal L plus the KL gap that reopens once the parameters move.

Check your understanding

Immediately after an M-step (and before the next E-step), which statement is true in general?

  1. DKL(qt+1 ∥ p(z∣x,θt+1))=0\KL\big(q_{t+1}\,\|\,p(\mathbf z\mid\mathbf x,\boldsymbol\theta_{t+1})\big)=0, so ℓ(θt+1)=L(qt+1,θt+1)\ell(\boldsymbol\theta_{t+1})=\mathcal L(q_{t+1},\boldsymbol\theta_{t+1})
  2. The likelihood rose by exactly the M-step's increase in L\mathcal L
  3. L\mathcal L has not decreased, and the KL gap is generally positive again, so the likelihood rose by at least the gain in L\mathcal L
  4. The KL gap shrank, because the M-step moved θ\boldsymbol\theta toward qt+1q_{t+1}
Show the answer

C. L\mathcal L has not decreased, and the KL gap is generally positive again, so the likelihood rose by at least the gain in L\mathcal L

The M-step changes θ\boldsymbol\theta, so the posterior p(z∣x,θt+1)p(\mathbf z\mid\mathbf x,\boldsymbol\theta_{t+1}) moves away from qt+1q_{t+1}, which was computed at θt\boldsymbol\theta_t. The gap reopens, and ℓ(θt+1)−ℓ(θt)=[L(qt+1,θt+1)−L(qt+1,θt)]+DKL≥\ell(\boldsymbol\theta_{t+1})-\ell(\boldsymbol\theta_t)=[\mathcal L(q_{t+1},\boldsymbol\theta_{t+1})-\mathcal L(q_{t+1},\boldsymbol\theta_t)]+\KL\ge the gain in L\mathcal L. The next E-step closes it again.

Where EM converges

Monotonicity gives convergence of the values ℓ(θt)\ell(\boldsymbol\theta_t) whenever ℓ\ell is bounded above, but says nothing about the limit. Boyles (1983) gave an example in which a generalized EM sequence fails to converge under the conditions stated by Dempster, Laird & Rubin, and Wu (1983) supplied conditions that work, by applying Zangwill's global convergence theorem to the EM map.

Read the theorem for what it leaves out:

  • "Stationary" includes saddle points and local minima. Compactness and continuity cannot tell a maximum from a saddle; in practice a small perturbation usually pushes EM off a saddle, but EM can sit on one exactly.
  • The values may converge while the iterates wander. When the likelihood has a continuum of maximizers (as it does in non-identified models), θt\boldsymbol\theta_t can drift along the ridge. Under mild conditions the iterates approach a compact, connected set of stationary points, which need not be a single point (Boyles, 1983; Wu, 1983).
  • Compactness fails for mixtures. A component collapsing onto a data point sends ℓ→∞\ell\to\infty, so the level sets of a Gaussian mixture likelihood are not compact. The theorem applies after constraining the variances or adding a prior (Gaussian Mixture Models in Depth).
Think first You start EM for a KK-component Gaussian mixture with all components identical: equal weights, the same mean and the same covariance. What happens, and does it contradict the theorem?

Every responsibility equals 1/K1/K, so the M-step gives every component the same weighted mean and covariance: those of a single Gaussian fitted to all the data. The components stay identical forever. This fixed point is a stationary point of ℓ\ell (the gradient with respect to each mean is 1K\frac1K times the single-Gaussian gradient, which vanishes at the single-Gaussian MLE), typically a saddle point, and EM converges to it in one step, exactly as the theorem allows. Random or k-means initialization breaks the symmetry.

How fast: the fraction of missing information

Write EM as a map, θt+1=M(θt)\boldsymbol\theta_{t+1}=M(\boldsymbol\theta_t), with a fixed point θ⋆\boldsymbol\theta^\star in the interior. Near it, θt+1−θ⋆≈DM(θ⋆)(θt−θ⋆)\boldsymbol\theta_{t+1}-\boldsymbol\theta^\star\approx DM(\boldsymbol\theta^\star)(\boldsymbol\theta_t-\boldsymbol\theta^\star), so the speed is set by the Jacobian DMDM. Three information matrices at θ⋆\boldsymbol\theta^\star, all conditional on the observed x\mathbf x, enter:

Ic=−E[∇2log⁡p(x,z∣θ) ∣ x],Im=−E[∇2log⁡p(z∣x,θ) ∣ x],Iobs=−∇2ℓ(θ).I_c=-\E\big[\nabla^2\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)\,\big|\,\mathbf x\big],\qquad I_m=-\E\big[\nabla^2\log p(\mathbf z\mid\mathbf x,\boldsymbol\theta)\,\big|\,\mathbf x\big],\qquad I_{\text{obs}}=-\nabla^2\ell(\boldsymbol\theta).

Because ℓ(θ)=log⁡p(x,z∣θ)−log⁡p(z∣x,θ)\ell(\boldsymbol\theta)=\log p(\mathbf x,\mathbf z\mid\boldsymbol\theta)-\log p(\mathbf z\mid\mathbf x,\boldsymbol\theta) for every z\mathbf z, averaging the Hessians over the posterior gives the missing information principle (Orchard & Woodbury, 1972; Louis, 1982): observed information = complete information − missing information, Iobs=Ic−ImI_{\text{obs}}=I_c-I_m.

DerivationThe Jacobian of the EM map (Dempster, Laird & Rubin, 1977)
  1. ∇112Q(θ⋆∣θ⋆) DM(θ⋆)+∇122Q(θ⋆∣θ⋆)=0\nabla^2_{11}Q(\boldsymbol\theta^\star\mid\boldsymbol\theta^\star)\,DM(\boldsymbol\theta^\star)+\nabla^2_{12}Q(\boldsymbol\theta^\star\mid\boldsymbol\theta^\star)=0

    The M-step solves ∇θQ(θ∣θt)=0\nabla_{\boldsymbol\theta}Q(\boldsymbol\theta\mid\boldsymbol\theta_t)=\mathbf 0 at θ=M(θt)\boldsymbol\theta=M(\boldsymbol\theta_t). Differentiate this identity in θt\boldsymbol\theta_t at the fixed point (subscripts 1 and 2 mark derivatives in the first and second arguments of QQ):

  2. ∇112Q=−Ic,∇122Q=Cov⁡(sc∣x)=Im\nabla^2_{11}Q=-I_c,\qquad\nabla^2_{12}Q=\Cov\big(\mathbf s_c\mid\mathbf x\big)=I_m

    The first block is minus the complete information. For the second, ∇1Q(θ∣θ′)\nabla_1Q(\boldsymbol\theta\mid\boldsymbol\theta') is the posterior mean of the complete-data score sc\mathbf s_c; differentiating the posterior in θ′\boldsymbol\theta' produces the covariance of sc\mathbf s_c given x\mathbf x, which by the information identity for p(z∣x,θ)p(\mathbf z\mid\mathbf x,\boldsymbol\theta) equals the missing information:

  3. DM(θ⋆)=Ic−1Im=I−Ic−1Iobs,rate=λmax⁡(Ic−1Im)∈[0,1)DM(\boldsymbol\theta^\star)=I_c^{-1}I_m=I-I_c^{-1}I_{\text{obs}},\qquad\text{rate}=\lambda_{\max}\big(I_c^{-1}I_m\big)\in[0,1)

    Solve for DMDM and use Iobs=Ic−ImI_{\text{obs}}=I_c-I_m. The local rate of convergence is the spectral radius, the largest fraction of missing information over directions in parameter space:

Predict before you look

In that example, 90% of the values are missing. Starting with an error ∣μ0−μ^∣=1\abs{\mu_0-\hat\mu}=1, how many EM iterations does it take to bring the error below 10−610^{-6}?

Show the answer

132 iterations

The error after tt iterations is 0.9t0.9^t, and 0.9t<10−60.9^t<10^{-6} needs t>6/log⁡10(1/0.9)≈131.1t>6/\log_{10}(1/0.9)\approx131.1, so 132 iterations. With 30% missing it takes 12. EM's linear rate is harmless when little is missing and painful when most of the information sits in the hidden variables.

For mixtures the missing information is the uncertainty in the labels. When components are well separated, responsibilities are near 0 or 1, Im≈0I_m\approx0 and EM converges in a handful of iterations; Ma, Xu & Jordan (2000) showed that, for large samples near the true parameters, the rate tends to zero as the overlap vanishes, so EM becomes asymptotically superlinear. Overlapping components make EM crawl, as in the widget above. Xu & Jordan (1996) showed that for Gaussian mixtures each EM step is the gradient multiplied by an explicit matrix, θt+1−θt=P(θt)∇ℓ(θt)\boldsymbol\theta_{t+1}-\boldsymbol\theta_t=P(\boldsymbol\theta_t)\nabla\ell(\boldsymbol\theta_t): a preconditioned gradient method that respects the constraints on weights and covariances automatically.

When EM is too slow, the same quantities help: Louis's formula computes IobsI_{\text{obs}} from complete-data quantities, enabling Newton or quasi-Newton steps near the optimum and standard errors at the end; parameter expansion (PX-EM; Liu, Rubin & Wu, 1998) enlarges the model to reduce the effective missing information.

Variants: when a step is too expensive

The decomposition says which relaxations are safe. Any step that does not decrease L\mathcal L, in either coordinate, keeps the likelihood bounded below by a non-decreasing quantity; steps that replace expectations by random estimates trade monotonicity for cheapness and need stochastic-approximation step sizes.

VariantE-stepM-stepWhat survives
Generalized EMexactany θ\boldsymbol\theta that increases QQmonotone ascent; Wu's theorem under closedness
ECM (Meng & Rubin, 1993)exacta cycle of conditional maximizations, each over a block of parametersmonotone ascent; same limit points as EM under mild conditions
Incremental EM (Neal & Hinton, 1998)refresh the posterior of one point or block, update running sufficient statisticsfull, from the statisticseach partial step increases L\mathcal L; often much faster in wall-clock time
Online EM (Cappé & Moulines, 2009)posterior of one new observation, blended into the statistics with step γt\gamma_tθ=θˉ(s)\boldsymbol\theta=\bar{\boldsymbol\theta}(\mathbf s)with Robbins–Monro steps, convergence to stationary points of the KL divergence from the data distribution to the model, at the rate of the MLE
Monte Carlo EM (Wei & Tanner, 1990)average over draws z(j)∼p(z∣x,θt)\mathbf z^{(j)}\sim p(\mathbf z\mid\mathbf x,\boldsymbol\theta_t), often by MCMCexact on the Monte Carlo QQnot monotone; the sample size must grow as iterates approach the optimum
Stochastic EMa single imputed draw of z\mathbf zcomplete-data MLEa Markov chain that fluctuates around the MLE rather than converging to it
SAEM (Delyon, Lavielle & Moulines, 1999)simulate z\mathbf z, then Qt+1=(1−γt)Qt+γtlog⁡p(x,z∣⋅)Q_{t+1}=(1-\gamma_t)Q_t+\gamma_t\log p(\mathbf x,\mathbf z\mid\cdot)maximize Qt+1Q_{t+1}convergence to stationary points under conditions, the attractive ones being local maxima
Variational EMbest qq within a tractable familyexact on L(q,⋅)\mathcal L(q,\cdot)monotone in L\mathcal L, but L\mathcal L is only a bound; see below
text
ONLINE-EM for a Gaussian mixture on a stream x_1, x_2, ...
  # running expected sufficient statistics, initialized from a start (pi, mu, Sigma):
  #   s0[k] = pi_k,  s1[k] = pi_k mu_k,  s2[k] = pi_k (Sigma_k + mu_k mu_k^T)
  for t = 1, 2, ...:
      r = responsibilities of x_t under the current (pi, mu, Sigma)     # E-step, one point
      for k = 1..K:
          s0[k] += g_t * (r[k]               - s0[k])
          s1[k] += g_t * (r[k] * x_t         - s1[k])
          s2[k] += g_t * (r[k] * x_t x_t^T   - s2[k])
      pi_k = s0[k];  mu_k = s1[k] / s0[k];  Sigma_k = s2[k] / s0[k] - mu_k mu_k^T   # M-step
  # step sizes with sum g_t = infinity and sum g_t^2 < infinity, e.g. g_t = t^(-0.6)

For complete-data models in the exponential family, EM only needs the expected sufficient statistics, so a stochastic-approximation average of them replaces the full E-step. The weights stay normalized automatically because each r\mathbf r sums to one.

Statistical guarantees and open problems

Wu's theorem is about optimization on a fixed sample. A different question is statistical: started near the truth, does sample EM reach an estimate as good as the MLE? Balakrishnan, Wainwright & Yu (2017) separate the two by comparing sample EM with the population EM operator Mˉ\bar M, defined like MM but with the expectation over infinitely many data. If the model is correct, the true parameter θ⋆\boldsymbol\theta^\star is a fixed point of Mˉ\bar M.

DerivationFrom a contraction to a statistical guarantee
  1. ∥Mˉ(θ)−Mˉ(θ′)∥≤κ∥θ−θ′∥,sup⁡θ∈B∥Mn(θ)−Mˉ(θ)∥≤εn\norm{\bar M(\boldsymbol\theta)-\bar M(\boldsymbol\theta')}\le\kappa\norm{\boldsymbol\theta-\boldsymbol\theta'},\qquad\sup_{\boldsymbol\theta\in B}\norm{M_n(\boldsymbol\theta)-\bar M(\boldsymbol\theta)}\le\varepsilon_n

    Assume Mˉ\bar M is a contraction with factor κ<1\kappa<1 on a ball B={θ:∥θ−θ⋆∥≤r}B=\{\boldsymbol\theta:\norm{\boldsymbol\theta-\boldsymbol\theta^\star}\le r\}, and that with probability at least 1−δ1-\delta the sample operator stays uniformly close to it on the ball:

  2. ∥θt+1−θ⋆∥≤∥Mn(θt)−Mˉ(θt)∥+∥Mˉ(θt)−Mˉ(θ⋆)∥≤εn+κ∥θt−θ⋆∥\norm{\boldsymbol\theta_{t+1}-\boldsymbol\theta^\star}\le\norm{M_n(\boldsymbol\theta_t)-\bar M(\boldsymbol\theta_t)}+\norm{\bar M(\boldsymbol\theta_t)-\bar M(\boldsymbol\theta^\star)}\le\varepsilon_n+\kappa\norm{\boldsymbol\theta_t-\boldsymbol\theta^\star}

    Use Mˉ(θ⋆)=θ⋆\bar M(\boldsymbol\theta^\star)=\boldsymbol\theta^\star and the triangle inequality. If εn≤(1−κ)r\varepsilon_n\le(1-\kappa)r, the iterate stays in the ball, so the bound can be repeated:

  3. ∥θt−θ⋆∥≤κt∥θ0−θ⋆∥+εn1−κ\norm{\boldsymbol\theta_t-\boldsymbol\theta^\star}\le\kappa^t\norm{\boldsymbol\theta_0-\boldsymbol\theta^\star}+\frac{\varepsilon_n}{1-\kappa}

    Unroll the recursion. The optimization error decays geometrically, and what remains is the statistical error εn/(1−κ)\varepsilon_n/(1-\kappa); for many models εn\varepsilon_n is of order d/n\sqrt{d/n} up to logarithmic factors.

Their examples include the symmetric mixture 12N(θ⋆,σ2I)+12N(−θ⋆,σ2I)\tfrac12\mathcal N(\boldsymbol\theta^\star,\sigma^2I)+\tfrac12\mathcal N(-\boldsymbol\theta^\star,\sigma^2I) in Rd\R^d. If the signal-to-noise ratio ∥θ⋆∥/σ\norm{\boldsymbol\theta^\star}/\sigma exceeds a large enough constant η\eta, population EM contracts with factor κ≤e−cη2\kappa\le e^{-c\eta^2} on the ball of radius ∥θ⋆∥/4\norm{\boldsymbol\theta^\star}/4 around θ⋆\boldsymbol\theta^\star; with n≳dlog⁡(1/δ)n\gtrsim d\log(1/\delta) samples, sample EM started anywhere in that ball reaches an error of order (d/n)log⁡(1/δ)\sqrt{(d/n)\log(1/\delta)} (times a factor depending on σ\sigma and ∥θ⋆∥\norm{\boldsymbol\theta^\star}) with probability at least 1−δ1-\delta.

Over-specified models behave differently. Fitting a two-component mixture to data from a single Gaussian makes the Fisher information singular at the truth. Dwivedi, Ho, Khamaru, Wainwright, Jordan & Yu (2020) showed that with unbalanced mixture weights EM still converges geometrically, to within (d/n)1/2(d/n)^{1/2} of the truth, but with balanced weights its convergence is exponentially slower and its fixed point is only (d/n)1/4(d/n)^{1/4}-accurate. The global picture for mixtures, including bad local maxima that no amount of data removes, is in Gaussian Mixture Models in Depth.

Key takeaways

  • For any qq, log⁡p(x∣θ)=L(q,θ)+DKL(q ∥ p(z∣x,θ))\log p(\mathbf x\mid\boldsymbol\theta)=\mathcal L(q,\boldsymbol\theta)+\KL(q\,\|\,p(\mathbf z\mid\mathbf x,\boldsymbol\theta)). EM is coordinate ascent on L\mathcal L: the E-step closes the KL gap, the M-step raises L\mathcal L, and the likelihood cannot fall.
  • Fisher's identity, ∇ℓ(θt)=∇θQ(θ∣θt)∣θt\nabla\ell(\boldsymbol\theta_t)=\nabla_{\boldsymbol\theta}Q(\boldsymbol\theta\mid\boldsymbol\theta_t)|_{\boldsymbol\theta_t}, makes interior fixed points of EM stationary points of ℓ\ell. Wu's theorem: under compactness and continuity, limit points are stationary (possibly saddles) and ℓ(θt)\ell(\boldsymbol\theta_t) converges.
  • EM converges linearly with rate λmax⁡(Ic−1Im)\lambda_{\max}(I_c^{-1}I_m), the fraction of missing information; with a fraction m/nm/n of a Gaussian sample missing, the error shrinks by exactly m/nm/n per iteration.
  • Generalized, ECM and incremental EM keep monotonicity; online, Monte Carlo and stochastic-approximation EM trade it for cheap noisy steps; variational EM maximizes ℓ−min⁡qDKL\ell-\min_q\KL, which biases the parameters.
  • A contraction of the population EM operator near the truth turns into a statistical guarantee for sample EM: geometric convergence to within εn/(1−κ)\varepsilon_n/(1-\kappa) of θ⋆\boldsymbol\theta^\star. Singular, over-specified models are slower on both counts.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

In the coordinate-ascent view of EM, what does the E-step do to the evidence lower bound L(q,θ)\mathcal L(q,\boldsymbol\theta)?

  1. It maximizes L\mathcal L over qq with θ\boldsymbol\theta fixed, closing the KL gap so that L=ℓ(θt)\mathcal L=\ell(\boldsymbol\theta_t)
  2. It maximizes L\mathcal L over θ\boldsymbol\theta with qq fixed
  3. It minimizes L\mathcal L to tighten the bound from below
  4. It leaves L\mathcal L unchanged and only computes the gradient
Show the answer

A. It maximizes L\mathcal L over qq with θ\boldsymbol\theta fixed, closing the KL gap so that L=ℓ(θt)\mathcal L=\ell(\boldsymbol\theta_t)

With θt\boldsymbol\theta_t fixed, ℓ(θt)=L+DKL\ell(\boldsymbol\theta_t)=\mathcal L+\KL is constant, so maximizing L\mathcal L over qq is minimizing the KL term, which the posterior makes zero.

Question 2

Under Wu's conditions, what can you conclude about an EM sequence (θt)(\boldsymbol\theta_t)?

  1. It converges to the global maximizer of the likelihood
  2. It converges to a local maximizer of the likelihood
  3. Its limit points are stationary points of ℓ\ell (possibly saddle points), and ℓ(θt)\ell(\boldsymbol\theta_t) converges monotonically
  4. It converges to a single point whenever the likelihood is bounded
Show the answer

C. Its limit points are stationary points of ℓ\ell (possibly saddle points), and ℓ(θt)\ell(\boldsymbol\theta_t) converges monotonically

The theorem guarantees stationarity of limit points and monotone convergence of the values. Convergence of the iterates themselves needs more (for example isolated stationary points and ∥θt+1−θt∥→0\norm{\boldsymbol\theta_{t+1}-\boldsymbol\theta_t}\to0), and nothing rules out saddle points; EM started with identical mixture components sits on one forever.

Question 3

Near its limit, EM's error shrinks by a factor of about 0.95 per iteration. What does this tell you?

  1. The model is misspecified
  2. About 95% of the information about the slowest-converging parameter direction is missing (carried by the latent variables)
  3. EM is converging to a saddle point
  4. A bug: EM should converge quadratically
Show the answer

B. About 95% of the information about the slowest-converging parameter direction is missing (carried by the latent variables)

The linear rate is λmax⁡(Ic−1Im)\lambda_{\max}(I_c^{-1}I_m), the largest fraction of missing information. A rate of 0.95 means that in some direction the observed data carry only 5% of the information complete data would; switching to (quasi-)Newton steps near the optimum, or reparameterizing, can help.

Question 4

In Monte Carlo EM, why is the number of Monte Carlo draws per E-step usually increased as the iterations proceed?

  1. To keep the Monte Carlo error in QQ smaller than the shrinking EM steps, so the iterates converge instead of jittering around the optimum
  2. Because each iteration needs a fresh burn-in of exactly the same length
  3. To restore the exact monotonicity of the likelihood, which then holds once the sample is large enough
  4. Because the M-step becomes harder as θ\boldsymbol\theta approaches the optimum
Show the answer

A. To keep the Monte Carlo error in QQ smaller than the shrinking EM steps, so the iterates converge instead of jittering around the optimum

Far from the optimum, EM's steps are large and crude Monte Carlo estimates suffice. Near it, the steps shrink, and a fixed Monte Carlo error would dominate, leaving the iterates fluctuating. Growing sample sizes (or stochastic-approximation averaging, as in SAEM) let the noise vanish.

Further reading

  • A. P. Dempster, N. M. Laird & D. B. Rubin, "Maximum likelihood from incomplete data via the EM algorithm," Journal of the Royal Statistical Society B 39(1), 1–38 (1977).
  • C. F. J. Wu, "On the convergence properties of the EM algorithm," Annals of Statistics 11(1), 95–103 (1983).
  • R. M. Neal & G. E. Hinton, "A view of the EM algorithm that justifies incremental, sparse, and other variants," in M. I. Jordan (ed.), Learning in Graphical Models (Kluwer, 1998), 355–368.
  • S. Balakrishnan, M. J. Wainwright & B. Yu, "Statistical guarantees for the EM algorithm: From population to sample-based analysis," Annals of Statistics 45(1), 77–120 (2017).
  • G. J. McLachlan & T. Krishnan, The EM Algorithm and Extensions, 2nd ed. (Wiley, 2008).