mlsanityData to 7 Oct 2026

Fitting Large Nonlinear Mixed Effects Models Using Variational Expectation Maximization

arXiv 2604.26160 ↗First posted 28 Apr 2026stat.ME cs.CE cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Nonlinear Mixed Effects (NLME) models are widely used in pharmacometrics and related fields to analyze hierarchical and longitudinal data. However, as the number of parameters and random effects increases, traditional methods for maximizing the marginal likelihood become computationally expensive. This paper explores the Variational Expectation Maximization (VEM) algorithm, a scalable alternative for fitting NLME models. Originally introduced in the context of probabilistic graphical models and later popularized through variational autoencoders, VEM has not been extensively applied to NLME modeling. By leveraging flexible variational families and reverse-mode automatic differentiation, VEM can efficiently maximize the marginal likelihood, scaling to NLME models with over 15,000 population parameters. This work provides a detailed description of VEM, compares it to other NLME fitting algorithms, and highlights its scalability through computational experiments. Using the Pumas statistical software, we fit two test models: 1) a standard warfarin model, and 2) an unnecessarily over-parameterized DeepNLME Friberg model with 15,410 population parameters and 16 random effects. The warfarin model was fitted to completion to demonstrate the correctness of VEM, while the DeepNLME Friberg model instead demonstrates VEM's scalability on a toy but large model. VEM improves the log likelihood steadily over hundreds of iterations at a practical per-iteration cost, while FOCE fails to complete even one iteration within a day. The model is deliberately over-parameterized for its small dataset and over-fits it, so what this experiment establishes is that VEM optimizes the objective of a model of this size at a practical cost. Applying VEM to large models that are genuinely useful is left to future work.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 50 references that are in the map. First posted on arXiv 28 Apr 2026.

Builds on

9 of 50 references.

References · 9

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2018Neural Ordinary Differential Equationscited by 3,733
  3. 2016Variational Inference: A Review for Statisticianscited by 1,466
  4. 2015Automatic differentiation in machine learning: a surveycited by 846
  5. 2013Black Box Variational Inferencecited by 317
  6. 2018Inference Suboptimality in Variational Autoencoderscited by 131
  7. 2023Black Box Variational Inference with a Deterministic Objective: Faster, More Accurate, and Even More Black Boxcited by 17
  8. 2013Variational MCMCcited by 7
  9. 2019f-SAEM: A fast Stochastic Approximation of the EM algorithm for nonlinear mixed effects modelscited by 2

Built on by

Not cited yet.