Abstract
Bayesian inference provides a gold standard for uncertainty quantification, but traditional methods are notoriously slow on large datasets. This paper surveys a "zoo" of modern techniques—ranging from data subsampling to massive parallelization—that trade off a sliver of mathematical exactness for the speed necessary to handle terabyte-scale data.
Introduction
The core challenge in Bayesian statistics is integration. To calculate a posterior distribution—representing our updated beliefs after observing data—researchers typically rely on Markov Chain Monte Carlo (MCMC). However, traditional MCMC is inherently serial and requires a "full pass" over the entire dataset for every single update. In an era of billion-point datasets, a single step of such an algorithm becomes prohibitively expensive.
While Variational Inference (VI) offers a faster optimization-based alternative, it often struggles with complex model structures and can underestimate uncertainty. This paper addresses the urgent need for a unifying taxonomy of "scalable" patterns that allow Bayesian methods to function effectively across "Big Data" (many samples) and "Wide Data" (many parameters).
A Taxonomy of Scalable Patterns
The authors organize a decade of research into three primary patterns of scalability:
1. MCMC with Data Subsets
Instead of processing the entire dataset at once, these methods utilize "minibatches" to approximate the likelihood.
- Adaptive Subsampling: This approach uses statistical tests (such as t-tests) to determine if a small subset of data provides sufficient evidence to accept or reject a proposal in a Metropolis-Hastings step.
- Stochastic Gradient Langevin Dynamics (SGLD): By borrowing the "stochastic gradient" trick from deep learning and injecting controlled noise, SGLD transforms an optimization path into a posterior sampler.
- Firefly Monte Carlo (FlyMC): An exact method that employs lower bounds on the likelihood to "brighten" (select) only the most informative data points at any given step.
2. Parallel and Distributed MCMC
These patterns leverage modern hardware to break the serial bottleneck of traditional chains.
- Prefetching: This technique speculatively executes multiple potential future "branches" of a Markov chain in parallel, retaining only the branch that eventually occurs.
- Consensus Monte Carlo: This method shards data across multiple machines, runs independent "sub-posterior" samplers on each, and then uses averaging techniques (such as Weierstrass samplers) to combine the results.
- Hogwild Gibbs: Inspired by asynchronous optimization, this pattern runs Gibbs sampling updates in parallel across cores without using locks, accepting a small amount of data "staleness" in exchange for massive throughput.
3. Scalable Variational Inference
- Stochastic Variational Inference (SVI): SVI applies stochastic optimization to scale mean-field VI to massive datasets.
- Black Box Variational Inference (BBVI): By using Monte Carlo gradients, BBVI makes variational methods applicable to a wide array of models without requiring complex, model-specific derivations.
Key Insights: The Bias-Variance Tradeoff
A central theme of the paper is the reassessment of "unbiased" samplers. Historically, MCMC research prioritized mathematical exactness. However, the authors argue that accepting a small "asymptotic bias" (a constant error floor) is often a winning trade-off. If an approximate sampler moves 100x faster, it significantly reduces "transient bias"—the error caused by a chain failing to reach the high-probability region of the posterior in a reasonable timeframe.
Furthermore, the authors highlight the "Regime of Small Big Data." Even within massive datasets, researchers often care about rare events or specific sub-populations (e.g., new users in a recommendation system). Bayesian methods are essential here because they resist overfitting when data for these specific sub-groups remains sparse.
Applications and Results
These scalable patterns have been successfully deployed in high-stakes environments:
- Microsoft Bing Search: Managing sponsored search advertising and keyword auctions.
- Astronomy: Estimating latent variables for hundreds of billions of light sources.
- Healthcare: Generating calibrated predictions for patients despite massive missing data.
Key results indicate that SGLD and SVI can scale Bayesian models to millions of observations—a feat once considered impossible. Additionally, consensus methods enable "MapReduce-style" inference, allowing researchers to utilize standard cloud infrastructure like Amazon EC2 for complex posterior calculations.
Limitations and Future Directions
Despite these advances, several challenges remain:
- Metrics: There is a lack of robust metrics for "approximate" samplers. Standard tools like Effective Sample Size (ESS) do not account for the bias introduced by subsampling.
- The Scaling Wall: MCMC faces a fundamental limit where doubling compute only improves error by a factor of $\sqrt{2}$. While variational methods may scale better ($1/n$), they remain less flexible.
- Hyperparameter Tuning: Many scalable methods introduce new "tuning knobs," such as learning rates and batch sizes. Automating the configuration of these algorithms remains a significant open challenge for the field.
Summary updated