Asymptotically Exact, Embarrassingly Parallel MCMC

Willie Neiswanger, Chong Wang, Eric P. Xing

TL;DR

This paper introduces a method to parallelize Markov chain Monte Carlo (MCMC) by partitioning data across multiple machines that never need to communicate during the sampling process. By combining subposterior samples using novel density product estimators, the authors achieve significant speedups in "burn-in" time and sampling while maintaining the gold-standard guarantee of asymptotic exactness.

What Problem Does This Paper Address?

Bayesian inference via MCMC is a cornerstone of modern statistics, but it hits a wall with "Big Data." Standard MCMC algorithms usually require a pass over the entire dataset ($N$ points) to draw a single sample, leading to $O(N)$ complexity. Furthermore, MCMC requires a "burn-in" period—a long initial phase where the chain wanders toward the high-probability regions of the distribution—which traditionally cannot be parallelized.

Existing parallel MCMC attempts usually fall into two camps:

  1. Multiple Chains: Running independent chains on the full dataset. This helps with sampling but does nothing to speed up the initial burn-in.
  2. Distributed Data: Machines communicate at every iteration to compute gradients or likelihoods. This creates a massive "synchronization bottleneck" where fast machines sit idle waiting for slow ones or network lag.

The authors seek an "embarrassingly parallel" solution: machines work on data subsets independently and only "talk" at the very end to combine results.

Methods

The core innovation is the Subposterior and the Combination Stage.

  1. The Subposterior: The data is split into $M$ subsets. Each machine runs MCMC on its subset using a modified "subposterior" density: $p_m(\theta) \propto p(\theta)^{1/M} p(x^{n_m}|\theta)$. By underweighting the prior $p(\theta)$, the product of these $M$ subposteriors mathematically equals the full-data posterior.
  2. Combination Strategies: Once machines have generated samples, how do we combine them? The paper proposes three ways:
  3. Parametric: Assumes the subposteriors are Gaussian. It’s lightning-fast but can be biased if the true posterior is complex or multimodal.
  4. Nonparametric: Uses Kernel Density Estimation (KDE) to represent subposteriors. This is asymptotically exact, meaning it converges to the true distribution as you take more samples.
  5. Semiparametric: A "best of both worlds" approach that uses a Gaussian base but applies a nonparametric correction. It scales better to higher dimensions than pure KDE.
  6. IMG Sampler: To actually draw samples from the product of these densities, the authors use an "Independent Metropolis within Gibbs" (IMG) sampler, which efficiently navigates the combined mixture of Gaussians.

Datasets

The authors evaluated their method on several models:

  • Synthetic Logistic Regression: 50,000 observations in 50 dimensions.
  • Covtype (Forest Cover Type): A real-world dataset with 581,012 observations and 54 dimensions.
  • Gaussian Mixture Models: Used specifically to test how the method handles multimodal (multi-peaked) distributions.
  • Hierarchical Poisson-gamma model: A common Bayesian model for count data.

Key Insights and Ideas

  • Parallelizing Burn-in: This is the "aha moment." Because each machine works on a smaller subset of data, the "energy landscape" is often smoother, and the chains move faster. The time to reach the target distribution is significantly reduced compared to a single chain on the full dataset.
  • The Prior Trick: Simply running MCMC on subsets with the full prior and averaging the results (a common heuristic) leads to systematic bias. The $1/M$ exponent on the prior is the mathematical "glue" that allows the subposteriors to be multiplied correctly.
  • Communication Efficiency: Communication is unidirectional (worker to master) and only happens once (or can be streamed). There is no "waiting" for other machines, making it ideal for MapReduce-style architectures.

Key Results

  • Speedup: On the covtype dataset, the parallel methods reached high classification accuracy much faster than a standard single-chain HMC (Hamiltonian Monte Carlo) runner.
  • Accuracy: Unlike "Consensus Monte Carlo" (which averages samples), the nonparametric and semiparametric methods correctly captured the shape of multimodal distributions. In tests, simple averaging failed to find all the "modes" (peaks) of the distribution, while this paper's method succeeded.
  • Scaling: The semiparametric method showed impressive resilience as the number of dimensions increased, outperforming pure nonparametric methods which often struggle with the "curse of dimensionality."

Limitations and Future Work

  • Space Constraints: The current theory and algorithms are designed for finite-dimensional real spaces ($\mathbb{R}^d$).
  • Model Types: The method does not yet extend to infinite-dimensional models (like certain Nonparametric Bayesian models) or distributions over a simplex (like Latent Dirichlet Allocation/Topic Modeling).
  • High Dimensionality: While the semiparametric approach helps, very high-dimensional spaces still pose a challenge for density estimation-based combination.

The authors suggest that future work will focus on extending these "embarrassingly parallel" guarantees to more complex parameter spaces and discrete models.

Summary updated

BibTeX
@inproceedings{neiswanger2014asymptotically,
  author = {Willie Neiswanger and Chong Wang and Eric P. Xing},
  title = {{Asymptotically Exact, Embarrassingly Parallel MCMC}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2014},
  url = {https://openreview.net/forum?id=3iG6iYCv35},
}
Figure