The EM Algorithm That Overshoots: Why Hard Assignment Fails
Consider a simple Gaussian mixture model with two components:
The EM algorithm iterates soft E-steps (computing posterior responsibilities) and M-steps (updating parameters). Suppose instead you replace the E-step with a hard assignment: each data point is assigned to whichever component has higher posterior probability.
The question: Hard-assignment EM (i.e., K-means style) maximizes the same log-likelihood as soft EM โ true or false? If false, what objective does hard assignment actually optimize, and why does it tend to produce different (and generally worse) solutions?
Give a precise characterization of the two objectives and explain the conceptual gap between them.
Answer: The EM Algorithm That Overshoots: Why Hard Assignment Fails
Key Idea / Intuition
Soft EM genuinely maximizes the observed-data log-likelihood by carefully averaging over all possible hidden-variable assignments, weighted by their posterior probability. Hard assignment instead maximizes a lower bound called the complete-data log-likelihood with the most probable assignment โ effectively it optimizes a different, cruder objective that ignores the uncertainty in cluster membership. Because it commits to one discrete assignment and never hedges, it is equivalent to K-means (when variances are equal and isotropic), which minimizes within-cluster sum of squares, not the true log-likelihood.
Formal Proof / Solution
Setup
Let be observed data, and latent component indicators (). The observed log-likelihood is:
What Soft EM Maximizes
The EM algorithm introduces a variational distribution over latent variables and maximizes the Evidence Lower Bound (ELBO):
At the E-step, is set to the exact posterior:
This choice makes the ELBO tight: . So the M-step actually increases the true log-likelihood.
What Hard Assignment Maximizes
In hard assignment, we replace the soft responsibilities with:
Now the ELBO becomes:
This is exactly the complete-data log-likelihood under the hard assignment โ not the observed log-likelihood. The gap is:
Hard assignment inflates this KL term because it concentrates all mass on one component, ignoring uncertainty.
The K-means Connection
When is fixed and equal, maximizing the complete-data log-likelihood reduces to:
This is precisely minimizing within-cluster sum of squares โ the K-means objective. So hard-assignment EM is K-means.
Why Hard Assignment Is Generally Worse
| Property | Soft EM | Hard EM (K-means) | |---|---|---| | Objective | True log-likelihood | Complete-data log-likelihood | | KL gap at E-step | Zero (tight bound) | (inflated by assignment uncertainty) | | Handles overlap | Yes, via soft responsibilities | No, forces crisp boundaries | | Sensitive to initialization | Less | More |
Summary: Hard assignment optimizes a lower bound of the log-likelihood, not the log-likelihood itself. The tightness gap is the KL divergence between the hard distribution and the true posterior, which is nonzero whenever clusters overlap. Soft EM closes this gap exactly at each E-step, guaranteeing monotone increase of the true log-likelihood.
Source: The Elements of Statistical Learning, Hastie, Tibshirani, Friedman, Chapter 8 & 14