Accelerated parallel non-conjugate sampling for Bayesian non-parametric models

Michael Minyi Zhang, Sinead A. Williamson, Fernando Pérez-Cruz · DOI

Abstract

Inference of latent feature models in the Bayesian nonparametric setting is generally difficult, especially in high dimensional settings, because it usually requires proposing features from some prior distribution. In special cases, where the integration is tractable, we can sample new feature assignments according to a predictive likelihood. We present a novel method to accelerate the mixing of latent variable model inference by proposing feature locations based on the data, as opposed to the prior. First, we introduce an accelerated feature proposal mechanism that we show is a valid MCMC algorithm for posterior inference. Next, we propose an approximate inference strategy to perform accelerated inference in parallel. A two-stage algorithm that combines the two approaches provides a computationally attractive method that can quickly reach local convergence to the posterior distribution of our model, while allowing us to exploit parallelization.

Introduction

Bayesian Non-parametric (BNP) models, such as the Dirichlet Process Mixture Model (DPMM), are highly valued for their ability to automatically adapt model complexity to the underlying data. Unlike parametric models, BNP models do not require the number of clusters or features to be specified a priori. However, this flexibility comes at a high computational cost, particularly in high-dimensional "big data" scenarios. Standard inference techniques often struggle to scale, either failing to converge in reasonable time or becoming trapped in local optima. This paper introduces a two-stage parallel sampling algorithm designed to overcome these hurdles by utilizing data-driven proposals and a hybrid inference strategy.

The Challenges of High-Dimensional BNP Inference

Two primary obstacles prevent the widespread application of BNP models to massive datasets:

  1. The Needle in a Haystack Problem: Standard Markov Chain Monte Carlo (MCMC) algorithms typically propose new clusters by sampling from a prior distribution. In high-dimensional spaces, this prior is often extremely diffuse. Consequently, the probability of randomly sampling a parameter that aligns with the data is vanishingly small, leading to poor "mixing" where the algorithm fails to explore the posterior distribution effectively.
  2. The Alignment Problem: Parallelizing BNP models is notoriously difficult. When multiple processors independently create new clusters, a "label switching" or alignment problem arises: how do we determine if two clusters created on different processors represent the same underlying feature? Synchronizing an unbounded number of features across a distributed system is often more computationally expensive than the inference itself.

Proposed Methodology: A Two-Stage Approach

To address these issues, we propose a two-stage algorithm that bridges the gap between rapid exploration and theoretical rigor.

Stage 1: Accelerated (Approximate) Inference

In the initial stage, the algorithm prioritizes speed and discovery. Instead of sampling new features from a blind prior, the sampler identifies "unhappy" data points—those that are poorly explained by the current set of clusters. It then uses an Empirical Feature Proposal (Algorithm 2) to suggest new feature locations centered on these points. To maintain high throughput, this stage employs an approximate parallel scheme where processors utilize local counts rather than global ones, significantly reducing communication overhead.

Stage 2: Asymptotically Exact Inference

Once the model has reached a promising neighborhood of the posterior, the algorithm transitions to a theoretically sound, distributed MCMC sampler. This stage ensures that the final results are mathematically correct and converge to the true posterior distribution. The transition allows the model to benefit from the rapid "warm-up" of the first stage while maintaining the guarantees of exact inference.

The Empirical Feature Proposal

The core innovation is a Metropolis-Hastings step that decides whether to accept a new data-driven feature or stick with the prior. This ensures the sampler remains "irreducible," meaning it can theoretically explore the entire state space while practically focusing on the most relevant regions defined by the data.

Experimental Evaluation

The researchers evaluated the proposed method against standard collapsed and uncollapsed samplers using several high-dimensional benchmarks:

  • Synthetic Data: A 10-dimensional Dirichlet mixture of multinomials.
  • MNIST: 60,000 handwritten digit images ($28 \times 28$ pixels).
  • Yale Face Dataset B: 2,424 images of faces under varying lighting conditions ($168 \times 192$ pixels).
  • CIFAR-10: 60,000 color images (processed as greyscale).

Key Insights and Results

  • Superior Convergence Speed: On the Yale Face dataset, the accelerated method achieved higher log-likelihoods in a fraction of the time required by traditional methods. By centering proposals on the data, the algorithm finds meaningful clusters in minutes that standard methods might miss after days of computation.
  • Enhanced Feature Quality: The latent features (cluster centers) learned via the accelerated method were significantly sharper and more recognizable. While standard samplers often produced blurry composites, this method successfully recovered distinct faces and digits.
  • Effective Scalability: The algorithm demonstrated strong performance when parallelized across 10 processors. By allowing independent feature proposals and synchronizing at specific intervals, the method sidesteps the alignment bottlenecks that typically plague distributed BNP inference.

Conclusion and Future Work

This work demonstrates that data-driven proposals are essential for scaling BNP models to high dimensions. The "approximate-then-exact" strategy provides a robust framework for balancing computational efficiency with mathematical rigor.

Future research will explore extending this data-driven logic to other models, such as the Indian Buffet Process (IBP) for latent feature modeling. Additionally, the authors suggest that using "residual errors" as a signal for feature proposals could further enhance the performance of deep Bayesian models, potentially capturing more complex spatial relationships than the multinomial and log-normal likelihoods used in this study.

Summary updated

BibTeX
@inproceedings{zhang2017accelerated,
  author = {Michael Minyi Zhang and Sinead A. Williamson and Fernando Pérez-Cruz},
  title = {{Accelerated parallel non-conjugate sampling for Bayesian non-parametric models}},
  booktitle = {Stat. Comput},
  year = {2017},
  doi = {10.1007/s11222-022-10108-z},
}
Figure