English

Scalable Bayesian Inference for Generalized Linear Mixed Models via Stochastic Gradient MCMC

Computation 2026-01-07 v3 Methodology Machine Learning

Abstract

The generalized linear mixed model (GLMM) is widely used for analyzing correlated data, particularly in large-scale biomedical and social science applications. Scalable Bayesian inference for GLMMs is challenging because the marginal likelihood is intractable and conventional Markov chain Monte Carlo (MCMC) methods become computationally prohibitive as the number of subjects grows. We develop a stochastic gradient MCMC (SGMCMC) algorithm tailored to GLMMs that enables accurate posterior inference in the large-sample regime. Our approach uses Fisher's identity to construct an unbiased Monte Carlo estimator of the gradient of the marginal log-likelihood, making SGMCMC feasible when direct gradient computation is impossible. We analyze the additional variability introduced by both minibatching and gradient approximation, and derive a post-hoc covariance correction that yields properly calibrated posterior uncertainty. Through simulations, we show that the proposed method provides accurate posterior means and variances, outperforming existing approaches, including control variate methods, in large-nn settings. We further demonstrate the method's practical utility in an analysis of electronic health records data, where accounting for variance inflation materially changes scientific conclusions.

Keywords

Cite

@article{arxiv.2403.03007,
  title  = {Scalable Bayesian Inference for Generalized Linear Mixed Models via Stochastic Gradient MCMC},
  author = {Samuel I. Berchuck and Youngsoo Baek and Felipe A. Medeiros and Andrea Agazzi},
  journal= {arXiv preprint arXiv:2403.03007},
  year   = {2026}
}

Comments

28 pages, 4 figures

R2 v1 2026-06-28T15:09:51.340Z