A Flexible Empirical Bayes Approach to Generalized Linear Models, with Applications to Sparse Logistic Regression
Dongyue Xie, Wanrong Zhu, Matthew Stephens
TL;DR
This work tackles scalable, tuning-free Bayesian inference for sparse generalized linear models by introducing EBGLM, a framework that learns the prior within variational inference and optimizes the posterior mean $\boldsymbol{\theta}$ using a real-valued objective $h(\boldsymbol{\theta},g)$. The method employs a mean-field VI with a Taylor-expanded approximate ELBO and establishes a connection to Bayesian normal means via Tweedie’s formula, enabling closed-form updates without sampling. It supports spike-and-slab priors, including Point Normal, Point Laplace, and ash, and can automatically determine the optimal posterior under those priors. Empirical results on simulated sparse logistic regression and real data benchmarks (e.g., 20 Newsgroups and UCI datasets) show improved predictive performance and robustness relative to traditional penalized and variational approaches, highlighting the practical impact of tuning-free, data-driven prior learning in high-dimensional settings.
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.
