When we train a standard linear model or a fully observed graphical model, the optimization landscape is often beautifully well-behaved. The log-likelihood function is concave, meaning it has a single global maximum. Any local search method, like gradient ascent, is guaranteed to find the absolute best parameters given enough time.
However, real-world data is rarely fully observed. We often need to model hidden factors—such as unobserved noise in time-series, latent topics in text documents, or missing annotations in sequence labels. Introducing these hidden or latent variables into a model causes a fundamental mathematical shift: the loss of the objective function's convexity (Charles Sutton et al.).
Why Latent Variables Destroy Convexity
To understand why hidden variables ruin an optimization landscape, consider how we compute the likelihood of observed data. Because the latent variables are unobserved, we cannot optimize the joint likelihood of the data and the hidden states directly. Instead, we must marginalize (sum or integrate) over all possible states of the unobserved variables to compute the marginal likelihood.
This marginalization couples the parameters together in a highly non-linear fashion. Instead of a single smooth bowl, the log-likelihood surface transforms into a rugged, non-convex landscape filled with countless local maxima, saddle points, and poor local optima. As Martha White et al. point out in the context of time-series, the presence of unobserved noise variables creates a non-convex likelihood surface that prevents standard optimization algorithms from reliably finding the globally best fit.
The Failure of Local Search Heuristics
The standard workhorse for maximizing likelihood in the presence of latent variables is the Expectation-Maximization (EM) algorithm, along with its variants like Baum-Welch or variational inference. EM works via coordinate ascent: the E-step estimates the distribution of the latent variables given the current parameters, and the M-step optimizes the parameters assuming those latent estimates are correct.
While elegant, EM is a local search heuristic. Because the underlying marginal log-likelihood is non-convex, EM simply climbs the nearest hill and stops. As a result, it frequently gets trapped in suboptimal local optima. This sensitivity to initialization means that different starting points lead to wildly inconsistent models.
Worse yet, these local optima often represent poor models that prioritize statistical noise or irrelevant correlations over the true underlying data structures. For instance, João Graça et al. observe that standard EM often fails to capture the intended semantic meaning of latent variables because it gets stuck in local optima that favor spurious correlations. Similarly, in crowdsourcing, treating the true labels as latent variables creates non-convex optimization problems where models become highly sensitive to initial parameters and prone to converging on poor local minima (Hiroshi Kajino et al.).
This lack of global convergence guarantees has long been a theoretical and practical headache. Without a guarantee of reaching the global optimum, it is difficult to provide rigorous mathematical proofs that an algorithm will recover the true parameters of a distribution, even when given infinite data (Joachim Giesen et al.).
Bypassing the Landscape via Convex Reformulations
One powerful strategy to escape the tyranny of local optima is to change the game entirely: reformulate the problem so that the optimization landscape becomes convex.
Instead of treating hidden factors as latent variables that must be marginalized out, researchers can sometimes reframe the objective function. For example, in crowdsourcing, Hiroshi Kajino et al. eliminated the risk of getting stuck in local minima by modeling individual workers as personalized classifiers related to a true global model. This bypassed the need for latent variables entirely and yielded a convex optimization framework. In time-series analysis, Martha White et al. introduced the RARMA framework, which reformulates Multivariate ARMA estimation as a convex optimization problem, providing a computationally efficient path to global optimality.
Another approach is to use non-parametric methods that match moments rather than maximizing likelihood. Le Song et al. demonstrated that by embedding distributions into a Reproducing Kernel Hilbert Space (RKHS), the complex, non-convex problem of fitting mixture models can be transformed into a simple, convex quadratic program.
Spectral Methods and the Method of Moments
When a convex reformulation is not possible, how can we learn the true parameters with mathematical guarantees? The answer often lies in spectral methods and the Method of Moments.
Instead of iteratively climbing a non-convex likelihood surface, spectral algorithms compute observable statistics (like pairs or triplets of co-occurring features) and use linear algebra operations—such as Singular Value Decomposition (SVD) or tensor factorization—to isolate the hidden parameters in a single, provably correct step.
For example, Daniel Hsu et al. introduced a spectral algorithm for learning Hidden Markov Models (HMMs) that bypasses the local optima issues of the Baum-Welch algorithm entirely, offering a computationally efficient and provably correct alternative. This idea was extended to more general settings by Animashree Anandkumar et al., who showed that the method of moments can reliably recover the parameters of mixture models and HMMs without getting stuck in local search traps. By using these algebraic techniques to "crack" the hidden variables first, subsequent parameter estimation can often be reduced to a straightforward convex optimization problem (Estimating Latent-Variable Graphical Models using Moments and Likelihoods).
Smoothing and Navigating the Non-Convex Landscape
If one must work directly with the non-convex likelihood function, the final line of defense is to alter how the optimization algorithm navigates the landscape, making it less likely to get trapped.
One intuitive approach is curriculum learning or Self-Paced Learning. M. Pawan Kumar proposed a training strategy that automatically identifies and learns from "easy" data samples before tackling harder ones. By gradually introducing complex data, the algorithm avoids getting knocked into poor local optima early in training.
Surprisingly, making the model more complex can also help. Ji Xu et al. demonstrated that over-parameterization—adding redundant parameters to a Gaussian Mixture Model—can actually smooth out the optimization landscape, allowing the EM algorithm to bypass spurious local optima and reliably find the global maximum likelihood estimate. Similarly, Ivan Lee et al. showed that low-rank reparameterization and smart initialization can drastically improve the training of HMMs, mitigating the messy landscapes that traditionally plague unsupervised sequence learning.