ClusterCluster: Parallel Markov Chain Monte Carlo for Dirichlet Process Mixtures

Dan Lovell, Jonathan Malmaud, Ryan P. Adams, Vikash K. MansinghkaarXiv 2013

TL;DR

This paper introduces "ClusterCluster," a novel method for parallelizing Markov Chain Monte Carlo (MCMC) inference for Dirichlet Process Mixtures (DPMs). By reparameterizing the DP to induce conditional independencies, they enable exact parallel computation on distributed systems like Map-Reduce, significantly speeding up inference for large-scale Bayesian nonparametric models.

What Problem Does This Paper Address?

Bayesian nonparametric models, particularly Dirichlet Process Mixtures (DPMs), are powerful tools for tasks like density estimation and clustering because they can automatically determine the complexity of a model (e.g., the number of clusters) from the data. However, inferring these models using standard MCMC methods is notoriously computationally expensive and inherently sequential, making them impractical for the massive datasets common today. Existing parallelization approaches often rely on approximations or alter the model, which can compromise accuracy. This paper aims to bridge this gap by enabling exact, parallel MCMC inference for DPMs without sacrificing the model's integrity.

Methods

The core innovation is a reparameterization of the Dirichlet Process that introduces "superclusters." This creates conditional independencies between groups of clusters, allowing MCMC updates for different superclusters to be performed in parallel across multiple compute nodes. This is achieved by:

  • Auxiliary Variable Representation: Introducing latent variables that group clusters into "superclusters."
  • Induced Conditional Independencies: The reparameterization ensures that updates within one supercluster do not directly depend on updates in another, enabling parallelization.
  • Map-Reduce Implementation: The parallel structure naturally maps onto the Map-Reduce framework, where "mappers" perform local updates within superclusters and "reducers" handle global updates of hyperparameters.
  • Exact Inference: Crucially, this approach maintains the exact posterior distribution, avoiding approximations often found in other parallelization methods.

Datasets

The paper evaluates their method on:

  • Synthetic Datasets: Generated from finite mixture models with varying numbers of clusters (up to 2048) and datapoints (up to 1 million), and dimensionality (up to 256). These are used to assess accuracy and convergence.
  • Real-World Dataset: A subset of the Tiny Images dataset (1 million vectors in 256 dimensions) for vector quantization, demonstrating scalability on a large, complex dataset.

Key Insights and Ideas

  • DPs Can Be Parallelized Exactly: The paper demonstrates that the inherent structure of DPMs, when reparameterized, can be exploited for exact parallel inference, challenging the notion that these models are inherently sequential.
  • Learning Parallelism Granularity: The "supercluster" concept allows the model to learn not only the data clusters but also the optimal granularity for parallelization, a novel concept.
  • Map-Reduce Synergy: The proposed reparameterization aligns perfectly with the Map-Reduce paradigm, making it a natural fit for distributed computing environments.
  • Scalability Beyond Expectations: The method shows promise for handling "big data" problems where traditional MCMC is intractable, even with high-dimensional data.

Key Results

  • Parallel Efficiency: The "ClusterCluster" sampler demonstrates significant speedups with increasing numbers of compute nodes, achieving parallel efficiencies up to 32 workers on large datasets.
  • Accurate Density Estimation: The parallel sampler constructs accurate density estimates, converging to the true likelihood of synthetic datasets.
  • Scalability to 1MM Data Points: The system successfully runs on datasets with up to 1 million data points in 256 dimensions, a scale previously unachievable with exact MCMC for DPMs.
  • Convergence Behavior: Predictive densities converge quickly, while latent structure estimates (like the number of clusters) converge more slowly, a behavior consistent with DP properties.

Limitations and Future Work

  • Python Implementation Overhead: The current implementation uses Python, which introduces overhead. A C++ implementation is suggested to achieve even greater performance gains (potentially 100x).
  • Saturation Point: For very large numbers of compute nodes, communication costs and convergence slowdown can lead to saturation or even performance degradation.
  • Data Distribution: For datasets larger than 100GB, distributing the data itself (not just the latent state) using systems like Hadoop File System is recommended.
  • Further Optimization: Future work could explore many-core architectures, distributed frameworks like HaLoop or MPI, and advanced Hadoop tuning. The authors also suggest investigating other nonparametric models for similar parallelization strategies.

Summary updated

BibTeX
@misc{lovell2013clustercluster,
  author = {Dan Lovell and Jonathan Malmaud and Ryan P. Adams and Vikash K. Mansinghka},
  title = {{ClusterCluster: Parallel Markov Chain Monte Carlo for Dirichlet Process Mixtures}},
  year = {2013},
  eprint = {1304.2302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1304.2302},
}
Figure