Parallelizing MCMC with Random Partition Trees

Xiangyu Wang, Fangjian Guo, Katherine A. Heller, David B. DunsonNeurIPS 2015

Bayesian inference often relies on Markov Chain Monte Carlo (MCMC) to sample from posterior distributions. However, as datasets grow to a massive scale, standard MCMC becomes prohibitively slow—it takes too long to iterate, too long to converge, and often won't fit within a single machine's memory.

A popular solution is Embarrassingly Parallel MCMC (EP-MCMC). The strategy is to split the data into $m$ subsets, run MCMC on each subset independently (and simultaneously), and then combine the results. The theoretical foundation here is the Product Density Equation (PDE), which states that the full posterior is proportional to the product of the subset posteriors.

The primary challenge lies in the combining rule. Existing methods typically fall into two traps:

  1. Assuming Gaussianity: Methods like Consensus Monte Carlo fail when the underlying distribution is skewed or multi-modal.
  2. Using Kernel Density Estimation (KDE): These suffer from a "complexity explosion." If you have 10,000 samples on two machines, multiplying their KDEs creates a mixture with 100 million components, making it nearly impossible to resample efficiently.

To address these bottlenecks, researchers have introduced PART (Parallel Aggregation Random Trees), a novel algorithm that uses random partition trees to combine posterior samples from different data subsets.

How PART Works

PART uses a tree-based approach to partition the parameter space into disjoint rectangular blocks (histograms), avoiding the exponential explosion of mixture components.

  1. Space Partitioning: The algorithm recursively bisects the space. It offers two strategies for choosing "cut points":
  2. Maximum Likelihood (ML): Greedily maximizes the empirical log-likelihood.
  3. Median/KD-Tree (KD): Cuts at the empirical median of pooled samples, which is significantly faster for very large sample sizes.
  4. Density Aggregation: Because all subsets use the same tree structure, the subset posteriors are represented as histograms over the exact same blocks. Multiplying these densities becomes a simple matter of multiplying counts within each leaf and normalizing.
  5. Refinements for Accuracy: Much like Random Forests, PART builds multiple trees and averages the results to reduce variance. Additionally, instead of assuming a flat "uniform" distribution in each leaf, the algorithm fits a local Gaussian to the samples within that block to create a smoother final density.

Key Advantages

  • Avoiding the Mixture Explosion: By forcing all subset MCMC chains to be aggregated into the same tree leaves, the complexity of the combined distribution remains linear relative to the number of leaves, rather than exponential.
  • Distribution-Free Flexibility: Unlike methods that assume a normal distribution, PART can capture multi-modal and highly non-Gaussian shapes because the tree adaptively partitions the space where the density is highest.
  • Communication-Free Sampling: The MCMC chains run entirely independently. Communication only happens at the very end during the aggregation step, which is computationally cheap.

Key Results and Performance

The authors evaluated PART on several benchmarks, including toy examples, synthetic logistic regression, and real-world datasets (Covertype and MiniBooNE).

Handling Multi-modality

In a 1D bimodal toy example, PART correctly identified both peaks of the distribution. In contrast, parametric and averaging methods collapsed into a single, incorrect mode in the middle of the two peaks.

Comparison of density estimation methods on a bimodal distribution.

Accuracy and Scalability

In a 50-dimensional Synthetic Logistic Regression task, PART (KD) achieved an RMSE of 0.587, significantly outperforming Consensus MCMC (29.93) and the Weierstrass rejection sampler (6.47).

Furthermore, on the Covertype (581,012 observations) and MiniBooNE (130,065 observations) datasets, PART achieved higher prediction accuracy in less total runtime (including MCMC and aggregation time) compared to running a single long MCMC chain on the full dataset.

Prediction accuracy versus total time for Covertype and MiniBooNE datasets.

Limitations and Future Work

While PART offers a massive leap forward for EP-MCMC, it does have limitations:

  • Tuning Parameters: The algorithm requires choosing hyperparameters like the minimum samples per leaf and minimum leaf area. A more automated tuning procedure would improve usability.
  • High-Dimensional Scaling: While it performed well at 50 dimensions, tree-based methods can struggle as dimensionality increases further due to the "curse of dimensionality." Exploring other multi-scale density estimators that share the partition tree's properties could yield even better scaling.
  • Smoothing: While local Gaussian smoothing helped, more sophisticated smoothing techniques could potentially improve the approximation of the density tails.

Summary updated

BibTeX
@inproceedings{wang2015parallelizing,
  author = {Xiangyu Wang and Fangjian Guo and Katherine A. Heller and David B. Dunson},
  title = {{Parallelizing MCMC with Random Partition Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=r1EEhub_bH},
}
Figure