The Bottleneck of Exact MCMC on Big Data
In Bayesian inference, Markov chain Monte Carlo (MCMC) is the standard method for sampling from a posterior distribution, with the Metropolis-Hastings (MH) algorithm serving as the gold standard. However, MH suffers from a major bottleneck when applied to "Big Data": deciding whether to accept or reject a proposed new state requires calculating the likelihood across all $N$ datapoints.
When $N$ is in the millions or billions, spending $O(N)$ computation for a single binary decision is highly inefficient. Given a fixed computational time budget, this results in very few samples and high sampling variance. This paper argues that we should abandon the strict requirement for "exact" unbiased samples. Instead, we can achieve a much better balance between bias and variance by using sequential hypothesis testing to make accept/reject decisions using only a fraction of the data.
The "Austere" Metropolis-Hastings Method
The authors reformulate the MH accept/reject step as a statistical decision problem. Rather than computing the exact log-likelihood ratio across the entire dataset, they treat the data as a population and evaluate a random subsample (a mini-batch).
- Sequential Hypothesis Testing: The algorithm tests whether the average log-likelihood ratio exceeds a specific threshold (determined by the proposal distribution and a random uniform draw).
- The "Bias-Knob" ($\epsilon$): A standard t-test is used to determine if the accept/reject decision can be made with a confidence level of $1-\epsilon$. This $\epsilon$ parameter acts as a controllable "bias-knob."
- Adaptive Subsampling: If the initial mini-batch does not provide enough statistical evidence to make a confident decision (i.e., the test statistic is too close to the threshold), the algorithm adaptively increases the mini-batch size until the confidence requirement is met.
- Theoretical Bounds: The paper provides a theoretical framework bounding the error (total variation distance) between the approximate stationary distribution and the true posterior.
Unlike standard MH, this austere approach rarely needs to process the entire dataset. Furthermore, unlike other fast MCMC methods (such as standard Stochastic Gradient Langevin Dynamics, or SGLD), it maintains a formal accept/reject step that can correct for poor proposals.
Key Insights and Results
The Efficiency of "Good Enough"
Most MH decisions are straightforward: the proposed move is either significantly better or significantly worse than the current state. These "easy" decisions can be made with high confidence using very little data. The full dataset is only necessary for "hard" decisions where the likelihoods are nearly identical. By introducing a small amount of bias (via the $\epsilon$ threshold), the algorithm generates samples much faster. This rapid sampling drives down variance more quickly than the introduced bias increases the overall error.
Faster Convergence
The authors evaluated their method on several tasks, including Logistic Regression on PCA-reduced MNIST, Independent Component Analysis (ICA) on a 1.95 million sample synthetic dataset, and variable selection on the MiniBooNE dataset.
In these experiments, the "austere" MCMC reached a lower Mean Squared Error (Risk) much faster than the exact MH algorithm within the same wall-clock time. For instance, in the large-scale ICA experiment, the approximate test often required only a tiny fraction of the data to make confident decisions, leading to massive computational savings.
Correcting SGLD
Stochastic Gradient Langevin Dynamics (SGLD) is a popular and fast MCMC method, but it can become unstable and diverge in regions with high gradients. The authors demonstrate that adding their austere MH test to SGLD acts as a crucial safety net. It rejects proposals that would otherwise throw the chain into low-density regions, keeping the samples near the true mode of the posterior.
Limitations and Future Work
While highly effective, the austere MH method has a few limitations:
- CLT Assumption: The reliance on the t-test assumes the Central Limit Theorem (CLT) holds. This assumption may break down if the dataset is extremely sparse or contains extreme outliers that dominate the likelihood.
- Fixed Thresholds: The current algorithm uses a fixed error tolerance $\epsilon$. The authors suggest that an adaptive algorithm that gradually "dials down" the bias over time as the chain converges would be even better, leaving this for future work.
- Hyperparameter Tuning: Users must still select an initial mini-batch size $m$ and the tolerance $\epsilon$, although the paper offers guidance on optimal design choices.
Summary updated