Abstract: (Neal and Hinton, 1998) recast maximum likelihood estimation of any given latent variable model as the minimization of a free energy functional $F$, and the EM algorithm as coordinate descent applied to $F$. Here, we explore alternative ways to optimize the functional. In particular, we identify various gradient flows associated with $F$ and show that their limits coincide with $F$'s stationary points. By discretizing the flows, we obtain practical particle-based algorithms for maximum likelihood estimation in broad classes of latent variable models. The novel algorithms scale to high-dimensional settings and perform well in numerical experiments.
Introduction
Training latent variable models involves learning parameters $\theta$ to explain observed data $y$ while accounting for unobserved variables $x$. The standard approach, Expectation-Maximization (EM), faces two primary challenges: tractability and the limitations of coordinate descent. Computing the posterior (E-step) and maximizing expected log-likelihood (M-step) are often analytically impossible for complex models. Furthermore, as a coordinate descent method on the "free energy" functional, EM can be slow and struggle with ill-conditioned problems where parameters and latent variables are highly coupled. While Monte Carlo EM variants exist, they often fail to leverage information across iterations, leading to high computational costs.
Joint Gradient-Based Optimization
This work builds on the insight that EM minimizes a Free Energy functional $F(\theta, q)$, where $q$ is a distribution over latent variables. Instead of alternating updates, the authors propose following the gradient flow of this functional. By treating the distribution $q$ as a cloud of $N$ particles, they derive several novel algorithms:
- Particle Gradient Descent (PGD): Particles evolve via discretized Langevin diffusion (Wasserstein-2 gradient flow), while parameters $\theta$ are updated via gradient descent.
- Particle Quasi-Newton (PQN): Incorporates a Hessian-based update for $\theta$ to address ill-conditioning.
- Particle Marginal Gradient Descent (PMGD): Optimized for cases with a simple M-step but a complex E-step.
By updating particles and parameters simultaneously, these algorithms "warm-start" the latent distribution. Particles from the previous step are typically near the new posterior, making the process significantly more efficient than restarting MCMC chains from scratch. To ensure stability, the authors also introduce a heuristic of scaling the parameter gradient by the number of terms to account for the different magnitudes of particle and parameter updates.
Experimental Evaluation
The algorithms were evaluated across several benchmarks, including a toy hierarchical model, the Wisconsin Breast Cancer dataset, MNIST, and CelebA.
Efficiency and Scaling
In Bayesian logistic regression tasks, PGD and PQN achieved accuracy comparable to the state-of-the-art SOUL algorithm but with significantly reduced computation time. For instance, with $N=100$ particles, PGD completed in approximately 1.2s compared to 13.4s for SOUL, largely due to superior vectorization.
Handling Multimodality and Generative Tasks
In Bayesian Neural Network (BNN) experiments, these particle-based algorithms handled multimodal posteriors more effectively than Variational Inference (MFG VI), which often produced under-confident, overly narrow approximations. On MNIST and CelebA inpainting tasks, the PGD-trained generator networks outperformed standard Variational Autoencoders (VAEs) and other competitive baselines like Alternating Back-Propagation (ABP).
Conclusion
The proposed particle-based framework offers a scalable and efficient alternative to traditional EM for training latent variable models. While the use of fixed step sizes and finite particle counts introduces a small asymptotic bias, the joint optimization approach provides significant benefits in terms of speed and the ability to capture complex posterior geometries. Future work may explore extending these gradient flows to Riemannian manifolds to accommodate constrained parameter spaces.
Summary updated