A Stochastic Path-Integrated Differential EstimatoR Expectation Maximization Algorithm

Gersende Fort, Eric Moulines, Hoi-To Wai

Abstract

The Expectation-Maximization (EM) algorithm is a fundamental tool for latent variable modeling, yet its scalability is often limited by the requirement of a full dataset pass during the E-step. This paper presents SPIDER-EM, a novel variance-reduced EM variant that integrates the Stochastic Path-Integrated Differential EstimatoR (SPIDER) technique. By operating in the expectation space and utilizing a nested loop structure with path-integrated updates, SPIDER-EM achieves a state-of-the-art complexity bound of $O(\sqrt{n})$, significantly improving upon the $O(n^{2/3})$ scaling of previous variance-reduced methods. Empirical evaluations on synthetic Gaussian Mixture Models and the MNIST dataset confirm its superior convergence speed, stability, and optimal scaling properties.

Introduction

Maximum likelihood estimation in models with hidden variables, such as Gaussian Mixture Models (GMMs), typically relies on the EM algorithm. However, as dataset sizes ($n$) grow into the millions, the standard EM algorithm's E-step becomes a computational bottleneck because it requires a full pass over the entire dataset to compute conditional expectations. While online and incremental EM variants have been proposed to mitigate this by processing data in mini-batches, they often suffer from high variance or suboptimal convergence rates.

Recent advancements in variance reduction, such as sEM-vr and FIEM, have improved scaling to $O(n^{2/3})$. SPIDER-EM aims to close this gap and reach the theoretical lower bound of $O(\sqrt{n})$ for finite-sum optimization within the EM framework. This improvement is crucial for making EM practical for truly massive datasets.

The SPIDER-EM Algorithm

SPIDER-EM introduces a sophisticated variance-reduction strategy adapted for the EM framework. Unlike gradient-based methods, EM operates by maximizing a surrogate function. SPIDER-EM tracks sufficient statistics in the "expectation space" rather than just model parameters, leveraging the "mean field" properties of the EM algorithm.

The algorithm employs a nested loop structure to manage variance and bias:

  1. Outer Loop: Periodically performs a full scan of the dataset to compute an exact conditional expectation. This serves as a "control variate" or anchor to prevent the estimator from drifting.
  2. Inner Loop: Performs low-complexity updates using small mini-batches. Instead of estimating the expectation from scratch, it "integrates" the differences between successive iterates, tracking the "path" of the iterates for a more accurate estimate with fewer samples.
SPIDER-EM Algorithm Pseudocode

Crucially, the authors develop a unified Stochastic Approximation (SA) framework to prove convergence. This is necessary because the SPIDER estimator in this context is inherently biased, and the path-integration must be carefully managed to ensure convergence to a stationary point in non-convex likelihood landscapes.

Key Results and Complexity

The primary theoretical contribution is the proof that SPIDER-EM achieves a per-sample complexity of $n + \sqrt{n}O(\epsilon^{-1})$ to find an $\epsilon$-stationary point. This $\sqrt{n}$ dependence is a significant improvement over the $n^{2/3}$ seen in previous algorithms and is proven to be optimal for this class of problems.

Empirical results on synthetic GMM data verify these bounds. As shown in the complexity analysis, SPIDER-EM's required number of examples to reach a target accuracy remains nearly constant or grows very slowly as the problem size $n$ increases, following the $O(n^{1/2})$ line.

Empirical Complexity Scaling

On the MNIST dataset ($n=60,000$), pre-processed with PCA to 20 dimensions and fit with a 12-component multivariate GMM, SPIDER-EM reached lower objective values faster than Online EM, sEM-vr, and FIEM. The algorithm also showed much lower variability in its estimates compared to Online EM, which often fluctuates due to mini-batch noise. Notably, SPIDER-EM maintains a low memory footprint, comparable to Online EM and much lower than incremental methods that store statistics for every data point.

Conclusion

SPIDER-EM represents a significant step forward in scaling the EM algorithm for massive datasets. By achieving the optimal $O(\sqrt{n})$ complexity through path-integrated variance reduction, it provides a robust and efficient solution for large-scale latent variable modeling. Future work may extend this framework to non-exponential family models or explore accelerated convergence under specific geometric conditions like the Polyak-Lojasiewicz (PL) condition.

Summary updated

BibTeX
@inproceedings{fort2020stochastic,
  author = {Gersende Fort and Eric Moulines and Hoi-To Wai},
  title = {{A Stochastic Path-Integrated Differential EstimatoR Expectation Maximization Algorithm}},
  booktitle = {HAL},
  year = {2020},
}
Figure