Abstract
Whenever a new approach to perform Bayesian computation is introduced, a common practice is to showcase this approach on a binary regression model and datasets of moderate size. This paper discusses to which extent this practice is sound. It also reviews the current state of the art of Bayesian computation, using binary regression as a running example. Both sampling-based algorithms (importance sampling, MCMC and SMC) and fast approximations (Laplace, VB and EP) are covered. Extensive numerical results are provided, and are used to make recommendations to both end users and Bayesian computation experts. Implications for other problems (variable selection) and other models are also discussed.
Introduction: The "Pima" Obsession
In the field of Bayesian computation, the Pima Indians diabetes dataset—a small collection of health data with only eight covariates—has become an ubiquitous benchmark. Whenever a researcher proposes a new, physics-inspired Markov chain Monte Carlo (MCMC) method or a complex Sequential Monte Carlo (SMC) algorithm, it is almost inevitably tested against this dataset using a standard probit or logit model.
However, this paper argues that this "benchmark culture" is fundamentally flawed. By extensively comparing modern approximation and sampling methods, we demonstrate that these "toy" problems are often too simple to provide meaningful insights into an algorithm's performance. If a basic technique can solve a problem near-perfectly in milliseconds, using it to justify a complex new sampler is misleading. This study establishes a more rigorous hierarchy of Bayesian computation for binary regression and identifies where the true computational frontiers lie.
A Taxonomy of Computational Approaches
To evaluate the state of the art, we categorize Bayesian computational methods into two distinct groups:
1. Fast Deterministic Approximations
These methods prioritize speed, providing a Gaussian approximation of the posterior distribution. We evaluated:
- Laplace Approximation: The standard baseline, including variants like Improved Laplace and Laplace-EM.
- Expectation Propagation (EP): An iterative method that matches moments of the posterior distribution.
2. Exact Sampling-based Methods
These methods are theoretically capable of reaching the true posterior given sufficient computational time. Our evaluation included:
- Importance Sampling (IS): Specifically using a multivariate t-distribution as a proposal, and its enhanced version, Quasi-Monte Carlo IS (IS-QMC).
- MCMC Variants: Gibbs Sampling (mathematically tailored for probit), Random Walk Metropolis-Hastings (RWMH), Hamiltonian Monte Carlo (HMC), and the No U-Turn Sampler (NUTS).
- Sequential Monte Carlo (SMC): A particle-based approach that evolves a population of samples.
Notably, we utilized fast approximations (like EP) to intelligently calibrate the starting parameters and proposal distributions for the sampling methods, removing the need for manual, often biased, tuning.
The Experimental Bake-off
We tested these algorithms across two tiers of data:
- Moderate Benchmarks (The "Toy" Tier): Datasets like Pima Indians (p=8), German Credit (p=25), and Heart (p=14).
- Larger Benchmarks (The Recommended Tier): Datasets with higher dimensionality, such as Musk (p=95), Sonar (p=61), and DNA (p=180).
In these contexts, the computational bottleneck is rarely the number of observations ($n_D$), but rather the number of covariates ($p$), as the matrix inversions required scale at $O(n_D p^3)$.
Key Findings: Why Toy Benchmarks Fail
The Dominance of Expectation Propagation
For standard binary regression on moderate datasets, EP is remarkably effective. It consistently achieves marginal accuracies of approximately 0.99 across all components while running 10 to 20 times faster than even the Improved Laplace method. For the vast majority of practical applications involving small-to-moderate $p$, EP renders complex sampling methods unnecessary.
The Underrated Power of Importance Sampling
On moderate datasets, simple Importance Sampling—especially when supercharged with Quasi-Monte Carlo sequences—outperforms complex MCMC methods like HMC and NUTS. In our tests on the Pima dataset, IS showed efficiency factors near 100% (99.5%). Adding QMC further improved Mean Squared Error (MSE) by factors ranging from 2.6x to over 600x.
The Failure of Specialized Samplers
Interestingly, Gibbs sampling, despite being custom-tailored for probit regression, often performed worse than generic black-box methods. Similarly, advanced algorithms like HMC and NUTS, which are designed to scale with dimensionality, showed massive tuning overhead on small datasets that their performance could not justify.
Scaling to High Dimensions
The limitations of simple methods only emerge as $p$ increases. On the DNA dataset ($p=180$), Importance Sampling finally collapses, and EP begins to show minor errors. In this high-dimensional regime, SMC and RWMH (when calibrated with EP) proved to be the most robust contenders. This suggests that the true test for any new Bayesian algorithm should not be how it handles 8 dimensions, but how it handles 180 or more.
Conclusion and Recommendations
Our results lead to clear recommendations for both practitioners and researchers:
- For End Users: If you are working with binary regression on a dataset with fewer than 100 covariates, use Expectation Propagation for speed or IS-QMC for exactness. There is rarely a need for MCMC in this regime.
- For Researchers: Stop using the Pima Indians dataset to justify new algorithms. To prove a method's worth, it must be tested on datasets where $p > 100$, where standard approximations begin to fail.
The future of Bayesian computation lies in the "large $p$" problem. Future research should focus on sparse Gaussian approximations or variable selection priors to handle massive dimensionality ($p \gg 1000$), rather than continuing to optimize for problems that have already been solved.
Summary updated