A Flexible Empirical Bayes Approach to Generalized Linear Models, with Applications to Sparse Logistic Regression
stat.ML, cs.LG, stat.CO, stat.ME
Submitted: 2026-01-29
Updated: 2026-08-27
Code: https://github.com/DongyueXie/vebglm-paper
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: We introduce a flexible empirical Bayes approach for fitting Bayesian generalized linear models.
Terminology
Abstract
We introduce a flexible empirical Bayes approach for fitting Bayesian generalized linear models. Specifically, we adopt a novel mean-field variational inference (VI) method and the prior is estimated within the VI algorithm, making the method tuning-free. Unlike traditional VI methods that optimize the posterior density function, our approach directly optimizes the posterior mean and prior parameters. This formulation reduces the number of parameters to optimize and enables the use of scalable algorithms such as L-BFGS and stochastic gradient descent. Furthermore, our method automatically determines the optimal posterior based on the prior and likelihood, distinguishing it from existing VI methods that often assume a Gaussian variational. Our approach represents a unified framework applicable to a wide range of exponential family distributions, removing the need to develop unique VI methods for each combination of likelihood and prior distributions. We apply the framework to solve sparse logistic regression and demonstrate the superior predictive performance of our method in extensive numerical studies, by comparing it to prevalent sparse logistic regression approaches.
Sources
- yaglm: a Python package for fitting and tuning generalized linear models that supports structured, adaptive and non-convex penalties
- High-Dimensional Bayesian Regularised Regression with the BayesReg Package
- ebnm: An R Package for Solving the Empirical Bayes Normal Means Problem Using a Variety of Prior Families
- Understanding Stochastic Natural Gradient Variational Inference
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- Scalable Posterior Uncertainty for Flexible Density-Based Clustering
- A Transport Geometry of Benign Overfitting
- Efficient quadratic entropy with distance sketches