Exact and Efficient Parallel Inference for Nonparametric Mixture Models

Sinead A. Williamson, Avinava Dubey, Eric P. XingarXiv 2012 · DOI

Abstract

Nonparametric mixture models based on the Dirichlet process are an elegant alternative to finite models when the number of underlying components is unknown, but inference in such models can be slow. Existing attempts to parallelize inference in such models have relied on introducing approximations, which can lead to inaccuracies in the posterior estimate. In this paper, we describe auxiliary variable representations for the Dirichlet process and the hierarchical Dirichlet process that allow us to sample from the true posterior in a distributed manner. We show that our approach allows scalable inference without the deterioration in estimate quality that accompanies existing methods.

The Challenge of Parallelizing Nonparametrics

Nonparametric mixture models, such as the Dirichlet Process (DP) and Hierarchical Dirichlet Process (HDP), are powerful tools in machine learning because they allow the number of clusters or topics to grow naturally with the data. However, their primary drawback is computational efficiency.

Standard inference techniques like Gibbs sampling are inherently sequential. In the common "Chinese Restaurant Process" view, the probability of a data point joining a cluster depends on the assignments of all other data points. This global dependency creates a bottleneck that makes simple parallelization difficult. Previous attempts to solve this often relied on approximations—ignoring certain dependencies to gain speed—which frequently resulted in poor model quality and inaccurate posterior estimates.

Methodology: Auxiliary Variable Representation

The researchers propose a novel approach that achieves parallelization without sacrificing mathematical exactness. The core innovation is an auxiliary variable representation that decomposes a single Dirichlet Process into a mixture of $P$ independent Dirichlet Processes, where $P$ corresponds to the number of available processors.

  1. Processor Indicators: Each data point is assigned an auxiliary variable $\pi_i$ that acts as a processor indicator.
  2. Local Inference: Conditioned on these indicators, data points on different processors become independent. This allows each processor to run a local Gibbs sampler to assign its subset of data to clusters.
  3. Global Inference: To maintain the integrity of the global model, a Metropolis-Hastings step is introduced to periodically reassign entire clusters between processors. This ensures the algorithm samples from the true posterior distribution rather than $P$ disconnected models.

Experimental Evaluation

The "AVparallel" method was evaluated on two primary datasets:

  • Synthetic Gaussian Mixture: One million data points from 50 univariate Gaussian components, used to measure clustering accuracy (F1 score) against a known ground truth.
  • NIPS Corpus: Approximately 3 million words from 2,470 research papers, used to test the Hierarchical Dirichlet Process for topic modeling via perplexity.

Key Results

The experiments demonstrated that AVparallel provides significant speedups while maintaining high accuracy. Unlike asynchronous approximate methods, AVparallel does not suffer from quality degradation as the number of processors increases.

F1 score performance over time. (a) shows AVparallel scaling with different processor counts; (b) compares AVparallel against other algorithms using eight processors.

As shown in the figures above, AVparallel reaches high F1 scores significantly faster than the single-processor Gibbs sampler. Furthermore, it achieves a higher final F1 score than competing methods like Variational Bayes (VB) or Asynchronous Parallel DP, which often converge to sub-optimal solutions due to their approximate nature.

Time taken to reach convergence (< 0.1% change in F1) across different processor counts.

The scalability of the approach is evident in the convergence times. For the Dirichlet Process Mixture Model, increasing the processor count from 1 to 8 leads to a near-linear reduction in the time required to reach convergence, outperforming both standard Gibbs and more complex Sequential Monte Carlo (SMC) methods.

Discussion and Limitations

While AVparallel offers a robust path to scaling nonparametric models, it faces one primary constraint: the size of the largest cluster. Because the algorithm migrates entire clusters to maintain exactness, a single massive cluster cannot be split across processors. This "mega-cluster" bottleneck can limit parallel efficiency in highly skewed datasets.

Future research aims to address this by developing hybrid methods that can split large clusters approximately while maintaining exactness elsewhere, and extending this auxiliary variable framework to a broader range of nonparametric Bayesian models.

Summary updated

BibTeX
@misc{williamson2012exact,
  author = {Sinead A. Williamson and Avinava Dubey and Eric P. Xing},
  title = {{Exact and Efficient Parallel Inference for Nonparametric Mixture Models}},
  year = {2012},
  eprint = {1211.7120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1211.7120},
}
Figure