Abstract
Latent variable models (LVMs) are powerful tools for modeling complex phenomena involving partially observed data or unobserved underlying structures. However, parameter estimation in LVMs is often computationally challenging due to the intractable nature of the likelihood function. While Expectation-Maximization (EM) type algorithms and standard Stochastic Gradient Descent (SGD) are common, they suffer from theoretical limitations or slow convergence. We propose Fisher-SGD, an efficient preconditioned stochastic gradient algorithm that incorporates a positive-definite Fisher Information Matrix (FIM) estimate. Our method ensures convergence under mild assumptions and provides "free" asymptotic confidence intervals. We demonstrate its performance through simulations in nonlinear mixed-effects models and stochastic block models.
Introduction
Latent variable models (LVMs) are foundational to modern statistical modeling, enabling researchers to account for unobserved group structures, individual variability, and complex dependencies. Applications range from Stochastic Block Models (SBMs) in social network analysis to Nonlinear Mixed-Effects Models (NLMEMs) in clinical pharmacokinetics. Despite their utility, the "latent" nature of these models makes the marginal likelihood function difficult to compute, complicating parameter estimation.
Historically, researchers have relied on two primary frameworks:
- EM-type algorithms (e.g., SAEM): These are highly efficient but often restricted to "curved exponential families." When models are highly nonlinear or fall outside this framework, these methods become difficult to implement or lose theoretical guarantees.
- Vanilla Stochastic Gradient Descent (SGD): While flexible, standard SGD is highly sensitive to the choice of learning rate and often exhibits slow convergence in high-dimensional spaces.
This paper introduces Fisher-SGD to bridge this gap, offering a method that is as versatile as SGD but as efficient as EM, while simultaneously addressing the challenge of uncertainty quantification.
The Fisher-SGD Framework
The core innovation of this work is the application of a preconditioning step to the stochastic gradient. Instead of a standard descent step, the algorithm scales the gradient using an estimate of the Fisher Information Matrix (FIM).
Preconditioning and Stability
A significant hurdle in preconditioned SGD is ensuring the preconditioner remains positive definite. Fisher-SGD utilizes a specific FIM estimator (Delattre & Kuhn, 2023) that is structurally guaranteed to be symmetric and positive definite. This ensures that every update moves in a true descent direction and appropriately scales the step size for each parameter based on the local curvature of the likelihood surface.
The Three-Phase "Warming" Strategy
To manage the noise inherent in latent variable sampling—especially during the early stages of training—the authors implement a robust learning rate schedule:
- Pre-heating: A gradual increase in step size to stabilize the initial search.
- Heating: Maintaining a constant step size (typically 1) to allow the algorithm to reach the neighborhood of the optimum.
- Decreasing: A standard decay phase to ensure fine-tuned convergence to the maximum likelihood estimate.
Furthermore, the algorithm is designed for compatibility with modern automatic differentiation (autodiff) tools, removing the need for researchers to manually derive complex gradients for every new model specification.
Experimental Evaluation
The performance of Fisher-SGD was validated across three distinct scenarios:
1. Nonlinear Mixed-Effects Models (NLMEM)
Using a simulated logistic growth curve model with 1,000 individuals, Fisher-SGD was compared against the industry-standard MCMC-SAEM. Fisher-SGD achieved superior accuracy, particularly for variance components. For instance, the Root Mean Squared Error (RMSE) for the variance parameter $\Gamma_{22}$ was 14.32 for Fisher-SGD, compared to 16.49 for MCMC-SAEM.
2. Stochastic Block Models (SBM)
The algorithm was tested on directed graphs with 100 and 200 nodes. SBMs are notoriously difficult due to the complex dependencies between nodes. Fisher-SGD successfully recovered parameters with high precision, achieving an RMSE for group probabilities ($p_{ij}$) as low as 0.010.
3. Real-World Application: Coucal Growth
The method was applied to a real-world dataset tracking the body weights of 259 coucal birds. This dataset is characterized by highly variable measurement frequencies per individual. Fisher-SGD proved robust in this irregular data environment, providing stable parameter estimates where other methods might struggle.
Key Insights
- Beyond Exponential Families: Fisher-SGD operates under much milder assumptions than EM-type algorithms, making it suitable for highly nonlinear real-world models.
- Uncertainty Quantification: A major advantage of Fisher-SGD is that it provides asymptotic confidence intervals "for free." Because the FIM is estimated during the training process, the standard errors required for confidence intervals are a byproduct of the estimation, rather than requiring a separate, expensive post-processing step. In simulations, the empirical coverage for the global parameter vector $\theta$ was 0.952, nearly matching the theoretical 0.95 target.
- Geometric Efficiency: By accounting for the geometry of the parameter space, the algorithm avoids getting stuck in "flat" regions of the likelihood surface, leading to more consistent convergence across different parameter scales.
Conclusion and Future Work
Fisher-SGD represents a significant step forward in making complex latent variable modeling more accessible and computationally efficient. While the method introduces some computational overhead per iteration due to FIM inversion, this is offset by a reduction in the total number of iterations required. Future research will focus on automating the hyperparameter tuning for the "warming" phases and extending the FIM estimation formulas to even broader classes of non-independent data structures.
Summary updated