Manifold Optimization for Gaussian Mixture Models

Reshad Hosseini, Suvrit SraarXiv 2015

TL;DR

This paper introduces a powerful alternative to the classic Expectation-Maximization (EM) algorithm for training Gaussian Mixture Models (GMMs) using Riemannian manifold optimization. By applying a clever reparameterization that makes the optimization landscape "geodesically convex," the authors demonstrate that a custom manifold-LBFGS solver can match or significantly outperform EM in speed, reliability, and robustness to overlapping data.

The Challenge of GMM Training

Gaussian Mixture Models are a staple of machine learning, but training them is notoriously tricky. The "de facto" standard is the EM algorithm, which is prized for its simplicity and guaranteed likelihood improvement. However, EM can be agonizingly slow to converge, especially when the mixture components overlap significantly.

The core challenge lies in the constraints: covariance matrices must remain symmetric and positive definite (SPD). Traditional optimization methods (like Gradient Descent or Newton’s method) often struggle with these boundaries. Previous attempts to use nonlinear programming either used "hacks" like Cholesky decomposition—which introduces spurious local minima—or interior-point methods that are too computationally expensive for high-dimensional data.

Riemannian Manifold Optimization

The authors propose a framework based on Riemannian Manifold Optimization. Instead of treating covariance matrices as flat Euclidean objects, they operate on the manifold of SPD matrices ($P^d$).

Visualization of optimization on a Riemannian manifold, where parameters are constrained to a curved surface.

Key technical contributions include:

  1. Reparameterization: The "aha" moment of the paper. An out-of-the-box manifold solver actually performs worse than EM. The authors fix this by augmenting the data vectors and reparameterizing the Gaussian density. This transformation makes the log-likelihood of a single Gaussian geodesically convex (convex along the shortest paths on the manifold).
  2. Manifold-LBFGS Solver: They developed a specialized version of the Limited-memory Broyden-Fletcher-Goldfarb-Shanno (LBFGS) algorithm adapted for manifolds.
  3. Wolfe Line Search: A critical component of their solver is a robust line-search procedure that satisfies "Wolfe conditions" on a manifold, ensuring stable and efficient steps toward the optimum.
  4. Unconstrained Weights: They use a log-sum-exp (softmax) transformation to turn the constrained mixture weights into unconstrained variables, allowing the entire problem to be solved using standard manifold gradients.

Key Insights and Results

The authors evaluated their approach against EM and standard manifold Conjugate Gradient (CG) methods using simulated data, natural image patches, and several datasets from the UCI Machine Learning Repository (e.g., MAGIC telescope, YearPredictionMSD).

The Power of Reparameterization

One of the most significant findings was that geometry is destiny. The reason EM is so successful is that its "M-step" is a Euclidean convex problem. The authors realized that for manifold optimization to compete, they needed to find a geometric equivalent. Their reparameterization provides exactly that by inducing geodesic convexity.

Comparison of convergence speed between standard and reparameterized manifold optimization methods for single and mixture Gaussian models.

As shown in the performance plots, without the proposed reparameterization, manifold methods were roughly 20 times slower than the optimized version. This proves that the geometric insight was the primary driver of success.

Performance Highlights

  • Massive Speedups: On the "YearPredictionMSD" dataset (the largest tested), manifold-LBFGS was roughly twice as fast as EM for a 9-component mixture.
  • Robustness to Overlap: One of EM's biggest weaknesses is "low separation" (where clusters sit on top of each other). The manifold-LBFGS approach is far less sensitive to this, maintaining high performance where EM stalls.
  • Predictable Performance: Manifold methods showed much less variability in running times across different random initializations compared to the high variance often seen with EM.

Limitations and Future Work

While powerful, manifold operations like "parallel transport" and "retractions" (moving vectors and points along the curved surface) have a higher per-iteration cost than the simple arithmetic of EM. The authors suggest that more optimized implementations could further reduce this overhead.

For truly "Big Data" scenarios where $n$ is in the millions, the authors suggest extending this to Stochastic Manifold Optimization. Additionally, incorporating priors (MAP estimation) would be a natural next step, particularly using priors that are themselves geodesically convex.

Summary updated

BibTeX
@misc{hosseini2015manifold,
  author = {Reshad Hosseini and Suvrit Sra},
  title = {{Manifold Optimization for Gaussian Mixture Models}},
  year = {2015},
  eprint = {1506.07677},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1506.07677},
}
Figure