Sinkhorn EM: An Expectation-Maximization algorithm based on entropic optimal transport

Gonzalo E. Mena, Amin Nejatbakhsh, Erdem Varol, Jonathan Niles-WeedarXiv 2020

Introduction

The Expectation-Maximization (EM) algorithm is a cornerstone of modern statistics, essential for tasks ranging from data clustering to training hidden Markov models. Despite its ubiquity, EM suffers from a significant limitation: it is a "greedy" optimizer prone to becoming trapped in local optima. This occurs because the likelihood surfaces it navigates are frequently characterized by flat plateaus and suboptimal dips.

Sinkhorn EM (sEM) introduces a novel modification to the classic algorithm by incorporating entropic optimal transport. By baking prior knowledge of mixing weights directly into the learning process, sEM creates a steeper optimization landscape that accelerates convergence and significantly improves the likelihood of reaching the global optimum.

The Challenge of Known Mixing Weights

In many practical scenarios, researchers possess prior knowledge regarding the proportions of clusters, known as mixing weights. Paradoxically, standard EM often struggles to utilize this information effectively. To avoid local optima, practitioners frequently resort to "overparameterized EM" (oEM)—intentionally ignoring known weights to allow the algorithm more freedom. While this can help find the global solution, it often results in frustratingly slow convergence. Sinkhorn EM aims to bridge this gap, offering an approach that respects prior constraints while maintaining high-speed convergence.

Methods: The Sinkhorn E-Step

The core innovation of sEM lies in the Expectation (E) step. While standard EM assigns data points to clusters independently based on posterior probabilities, sEM treats the assignment as an optimal transport problem.

In sEM, the "responsibilities" (assignments) are computed such that they collectively respect the known mixing weights across the entire dataset. This global constraint is solved efficiently using Sinkhorn’s algorithm, which introduces an entropic regularization term to ensure the problem remains smooth and differentiable. Mathematically, this replaces the standard log-likelihood objective with a new loss function based on entropic optimal transport.

The entropic-OT loss (blue) exhibits significantly more curvature than the standard negative log-likelihood (red), creating a "funnel" toward the global minimum.

Theoretical Advantages: Curvature and Convergence

The primary theoretical insight of this work is that the entropic-OT loss function "dominates" the standard negative log-likelihood (NLL). As shown in the figure above, while both functions share the same global minimum, the sEM loss possesses strictly more curvature around that minimum. In optimization terms, this transforms a flat, difficult-to-navigate valley into a steep funnel, providing a stronger signal to guide the algorithm toward the correct parameters.

Furthermore, for specific cases like mixtures of two Gaussians, the authors prove that sEM converges to true parameters from a much wider range of initializations than standard EM. The Sinkhorn E-step can be interpreted as a standard E-step with a "tilted" prior, enforcing global constraints that prevent the algorithm from settling into spurious fixed points.

Experimental Results

The researchers evaluated sEM against vanilla EM (vEM) and overparameterized EM (oEM) using both synthetic Gaussian mixtures and complex biological image segmentation data from C. elegans neurons.

Speed and Robustness

In simulations, sEM consistently reached the correct solution in significantly fewer iterations. As illustrated below, sEM maintains low error across a much broader range of mixing weights compared to its counterparts after just a few iterations.

Error rates after 4 iterations demonstrate that sEM (blue) converges to the correct solution more reliably and across a wider range of mixing weights than vanilla EM (red) or overparameterized EM (purple).

Biological Application

On the C. elegans task, which utilized a "neural statistical atlas" (NeuroPAL) as a prior, sEM outperformed other methods across multiple metrics, including training/test log-likelihood and segmentation accuracy. Qualitatively, sEM produced "crisper" segmentation maps with more distinct boundaries between neurons, demonstrating its practical utility in high-stakes scientific imaging.

Conclusion and Future Work

Sinkhorn EM represents a significant step forward in making EM more robust and efficient. While it introduces a mild computational overhead per E-step due to the iterative nature of Sinkhorn’s algorithm, this is largely offset by the reduction in total iterations required. Future work may further reduce this overhead through "warm starts"—reusing mathematical potentials from previous iterations. While current rigorous proofs focus on Gaussian mixtures, the empirical success of sEM suggests broad applicability to a wide class of latent variable models.

Summary updated

BibTeX
@misc{mena2020sinkhorn,
  author = {Gonzalo E. Mena and Amin Nejatbakhsh and Erdem Varol and Jonathan Niles-Weed},
  title = {{Sinkhorn EM: An Expectation-Maximization algorithm based on entropic optimal transport}},
  year = {2020},
  eprint = {2006.16548},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.16548},
}
Figure