Distributed, partially collapsed MCMC for Bayesian Nonparametrics

Kumar Avinava Dubey, Michael Minyi Zhang, Eric P. Xing, Sinead Williamson

Introduction

Bayesian Nonparametric (BNP) models, such as the Dirichlet Process and the Indian Buffet Process, offer a powerful framework for modeling data where the complexity—such as the number of clusters or features—is unknown and grows with the data size. Despite their flexibility, scaling these models to massive datasets remains a significant challenge due to the computational demands of standard inference algorithms.

The Scaling Dilemma: Collapsed vs. Uncollapsed Samplers

Inference in BNP models typically relies on Markov Chain Monte Carlo (MCMC) methods, which generally fall into two categories:

  1. Collapsed Samplers: These integrate out infinite-dimensional parameters, leading to faster convergence because they can use data to propose new features directly. However, they introduce global dependencies that hinder parallelization across distributed systems.
  2. Uncollapsed Samplers: These represent latent objects explicitly, making them naturally parallelizable. However, they often suffer from poor mixing, particularly in high-dimensional spaces where proposing new features from a prior is inefficient.

Methodology: A Hybrid, Partially Collapsed Framework

This paper proposes a novel hybrid MCMC framework that combines the strengths of both approaches. The core innovation lies in partitioning the latent measure of a Completely Random Measure (CRM) into two independent parts:

  • The Instantiated Part: A finite measure containing components already associated with data. This part is updated using an uncollapsed sampler, allowing for efficient parallelization across multiple processors.
  • The Infinite Tail: A measure representing yet-to-be-seen components. This part is handled by a collapsed sampler, enabling the model to "birth" new features based on data points rather than random prior draws.

Distributed Strategy and Correctness

To ensure mathematical correctness in a distributed environment, the authors implement a "hot processor" rotation. While all processors update existing features in parallel, only one designated "hot" processor is permitted to propose new features from the infinite tail. The role of the hot processor is periodically rotated, and global statistics are synchronized to maintain a valid MCMC chain that converges to the true posterior.

Experimental Results

The authors evaluated the hybrid sampler against pure collapsed and uncollapsed baselines using several datasets, including synthetic benchmarks and the CIFAR-100 image dataset.

Performance in High Dimensions

A key advantage of the hybrid approach is its robustness to the "curse of dimensionality." In high-dimensional spaces, uncollapsed samplers struggle to find relevant new features. The hybrid sampler, by using a collapsed update for the tail, maintains high performance.

Comparison of F1 scores across different dimensions for Collapsed, Uncollapsed, and Hybrid samplers.

As shown in the figure above, the hybrid sampler matches the performance of the collapsed sampler and significantly outperforms the uncollapsed sampler as the number of dimensions increases.

Convergence and Scalability

The hybrid sampler also demonstrates superior convergence speed. On the CIFAR-100 dataset, it reaches higher log-likelihood values faster than the baselines across various PCA-reduced dimensionalities.

Test log-likelihood vs. time for different dimensionalities (8, 16, 32, 64) on CIFAR-100.

Beyond convergence speed, the framework exhibits excellent scalability. The authors successfully applied a Beta-Bernoulli process to a synthetic dataset with one million observations distributed across 256 processors, representing a significant leap over previous state-of-the-art distributed samplers.

Conclusion

By bridging the gap between collapsed and uncollapsed MCMC, this hybrid framework enables Bayesian Nonparametric models to scale to unprecedented data sizes without sacrificing convergence speed or mathematical rigor. The use of "completely random measures" provides a solid foundation for this decomposition, making it a general-purpose tool for large-scale BNP inference.

Summary updated

BibTeX
@inproceedings{dubey2020distributed,
  author = {Kumar Avinava Dubey and Michael Minyi Zhang and Eric P. Xing and Sinead Williamson},
  title = {{Distributed, partially collapsed MCMC for Bayesian Nonparametrics}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure