[Paper Review] Bayesian inference for logistic models using Polya-Gamma latent variables
This paper introduces a novel data-augmentation method for Bayesian logistic regression using Pólya-Gamma latent variables, enabling exact Gibbs sampling without Metropolis–Hastings or numerical integration. The approach achieves superior computational efficiency and ease of use across diverse models, including hierarchical and spatial models, by transforming binomial likelihoods into conditionally Gaussian forms via a new class of Pólya-Gamma distributions.
We propose a new data-augmentation strategy for fully Bayesian inference in models with binomial likelihoods. The approach appeals to a new class of Polya-Gamma distributions, which are constructed in detail. A variety of examples are presented to show the versatility of the method, including logistic regression, negative binomial regression, nonlinear mixed-effects models, and spatial models for count data. In each case, our data-augmentation strategy leads to simple, effective methods for posterior inference that: (1) circumvent the need for analytic approximations, numerical integration, or Metropolis-Hastings; and (2) outperform other known data-augmentation strategies, both in ease of use and in computational efficiency. All methods, including an efficient sampler for the Polya-Gamma distribution, are implemented in the R package BayesLogit. In the technical supplement appended to the end of the paper, we provide further details regarding the generation of Polya-Gamma random variables; the empirical benchmarks reported in the main manuscript; and the extension of the basic data-augmentation framework to contingency tables and multinomial outcomes.
Motivation & Objective
- To address the long-standing challenge of computationally efficient Bayesian inference in logistic regression due to the intractable likelihood form.
- To develop a simple, exact data-augmentation scheme that avoids analytic approximations, numerical integration, or Metropolis–Hastings steps.
- To extend the method beyond logistic regression to models with binomial, negative binomial, and multinomial likelihoods.
- To provide a fast, automatic, and scalable sampler for Pólya-Gamma variates to support use in complex hierarchical models.
- To demonstrate the method's superiority in computational efficiency and effective sample size across a range of real and synthetic data examples.
Proposed method
- Introduces a new class of Pólya-Gamma distributions, defined as an infinite series of independent gamma random variables, with distribution PG(b,c) for b>0 and c∈ℝ.
- Establishes a fundamental integral identity: the binomial likelihood can be represented as a Gaussian scale mixture with respect to a Pólya-Gamma distributed precision parameter ω.
- Derives the conditional posterior distribution of ω given the linear predictor ψ as PG(b, ψ), enabling a Gibbs sampling scheme with conjugate updates.
- Develops an accept/reject sampler for PG(b,c) using the alternating-series method of Devroye (1986), with a uniform acceptance probability bound of 0.99919 for the PG(1,c) case.
- Implements the method in the R package BayesLogit, supporting efficient posterior sampling in logistic, negative binomial, nonlinear mixed-effects, and spatial models.
- Uses the Pólya-Gamma representation to enable full conditional Gaussian updates for regression coefficients, while treating ω as a latent auxiliary variable.
Experimental results
Research questions
- RQ1Can a simple, exact data-augmentation scheme be developed for Bayesian logistic regression that avoids Metropolis–Hastings and numerical integration?
- RQ2Does the Pólya-Gamma representation lead to more efficient posterior sampling than existing methods in hierarchical and complex models?
- RQ3Can the Pólya-Gamma framework be extended to overdispersed count models such as negative binomial regression?
- RQ4How does the computational performance of the Pólya-Gamma sampler compare to independence Metropolis–Hastings and other data-augmentation schemes?
- RQ5Can the Pólya-Gamma method be efficiently parallelized for use in large-scale or GPU-accelerated settings?
Key findings
- The Pólya-Gamma method achieves a 3x to 5x improvement in effective sample size over competing methods in spatial and hierarchical models, despite higher computational cost per iteration.
- For simple logistic regression with abundant data, the Pólya-Gamma method is nearly as efficient as a well-tuned independence Metropolis–Hastings sampler.
- The Pólya-Gamma Gibbs sampler shows uniform ergodicity, ensuring stable and fast convergence in all tested scenarios.
- The accept/reject sampler for PG(1,c) achieves a 99.919% acceptance rate, making it highly efficient and suitable for black-box use in complex models.
- In negative binomial regression with many counts per observation, the Pólya-Gamma method maintains the highest effective sample size, though its effective sampling rate is reduced due to the sum-of-PG(1,c) construction.
- The method enables exact Bayesian inference in complex hierarchical models with binomial likelihoods, previously difficult to implement due to lack of scalable, exact samplers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.