Consensus Monte Carlo for Random Subsets using Shared Anchors

Yang Ni, Yuan Ji, Peter MüellerJournal of Computational and Graphical Statistics 2019

TL;DR

This paper introduces a novel "Consensus Monte Carlo" (CMC) algorithm designed to efficiently scale Bayesian non-parametric (BNP) models for clustering and feature allocation to massive datasets. By strategically using "anchor points" and parallel processing, their method significantly reduces computation time while maintaining accurate posterior inference, making complex BNP models accessible for big data applications.

What Problem Does This Paper Address?

Modern datasets are growing at an unprecedented rate, often exceeding the computational capacity of traditional Bayesian inference methods, especially those involving complex Bayesian non-parametric (BNP) models. These models, while powerful for tasks like clustering and feature allocation (where the number of clusters or features is not fixed a priori), typically require intensive Markov Chain Monte Carlo (MCMC) simulations. Running these simulations on a single machine becomes infeasible due to memory or CPU limitations. The challenge is to adapt these sophisticated BNP models to handle "big data" without sacrificing their inferential power or introducing significant approximations.

Methods

The core of this paper is the proposed Consensus Monte Carlo (CMC) algorithm. The general idea is to distribute a large dataset across multiple machines (shards). Each machine then runs an independent MCMC simulation on its subset of data. The novelty lies in how these parallel MCMC samples are aggregated. The key innovation is the use of "anchor points" – a subset of observations that are shared across all machines. These anchor points act as a bridge, allowing for the merging of clusters or latent features identified by the independent MCMC runs.

Specifically, the algorithm works as follows:

  1. Data Preparation: The dataset is split into $S+1$ shards. $S$ shards contain unique data points, while the $(S+1)^{th}$ shard serves as anchor points, present in all $S$ shards.
  2. Parallel MCMC: Each of the $S$ shards is used to run an independent MCMC simulation, producing a set of Monte Carlo samples for each shard.
  3. Aggregation with Anchor Points: The crucial step involves merging the results from different shards. This is done by comparing subsets (clusters or features) identified in different shards. If two subsets share a significant number of anchor points (controlled by a tuning parameter $\epsilon$), they are considered similar and merged. This merging process is applied iteratively to combine samples and construct a consensus posterior distribution for the entire dataset.

This approach is designed to be general and applicable to various BNP models, including Dirichlet Process Mixtures (DPM) for clustering and the Indian Buffet Process (IBP) for feature allocation, under different sampling models.

Datasets

The paper evaluates the proposed CMC algorithm on three real-world datasets:

  • MNIST Image Dataset: A standard benchmark dataset of handwritten digits, used for clustering.
  • Pancreatic Cancer Mutations Data: A dataset used for inferring tumor heterogeneity, involving feature allocation.
  • Electronic Health Records (EHR) Data: A large dataset from China, used for phenotyping (a form of double feature allocation).

The paper does not introduce new benchmark datasets but rather applies the proposed method to existing, well-known datasets to demonstrate its effectiveness and scalability.

Key Insights and Ideas

  • Anchor Points as a Unifying Force: The concept of using a shared subset of data (anchor points) to bridge parallel MCMC computations is a clever way to overcome the challenge of combining results from independent runs. It allows for the merging of structures (like clusters or features) that might be discovered differently on separate machines.
  • Scalability Without Sacrificing Power: The CMC algorithm offers a practical solution for applying powerful BNP models to datasets that were previously intractable due to computational constraints. It achieves significant speedups without resorting to overly simplistic approximations.
  • Generality of the Approach: The framework is designed to be model-agnostic, working with various BNP priors and sampling models, making it a versatile tool for a wide range of big data inference problems.
  • Robustness to Anchor Point Choice: The study suggests that the choice of anchor points is not overly sensitive, as long as a sufficient number is used, which simplifies the practical application of the method.

Key Results

  • Significant Speedup: The CMC algorithm demonstrates substantial computational advantages. For instance, on the MNIST dataset, CMC took less than 10 minutes, while a full MCMC simulation was infeasible beyond the first 10 iterations. For the EHR dataset, CMC took approximately 1 hour, compared to 90 minutes for just the first 10 iterations of full MCMC.
  • Accurate Approximation: Simulation studies and real-world applications show that the CMC algorithm provides a good approximation to the full MCMC posterior. For example, on MNIST, the Normalized Mutual Information (NMI) between CMC and full MCMC was 0.85, indicating a strong agreement.
  • Comparable Performance: In simulations for DPM, FA, and DFA models, the CMC approach yielded misclustering rates and parameter estimation errors comparable to full MCMC, with CMC sometimes slightly overestimating the number of clusters/features.
  • Discovery of Interpretable Structures: In the EHR application, the CMC method, applied to a much larger dataset than previous studies, identified more interpretable latent diseases.

Limitations and Future Work

  • Tuning Parameter $\epsilon$: The merging criterion uses a tuning parameter $\epsilon$, which, while found to be robust in simulations, still requires some selection. The paper notes that the choice of $\epsilon$ is somewhat arbitrary and could potentially be guided by more sophisticated methods.
  • High-Dimensionality: While the paper addresses the issue of large sample size, it explicitly states that it has not considered the problem of high-dimensionality.
  • Anchor Point Selection: The anchor points are randomly chosen. While robustness is shown, future work could explore more data-driven or "coreset"-based approaches for selecting anchor points to potentially improve efficiency or accuracy.
  • Generalization to Other Models: Although the framework is general, further exploration into its application with other types of models (e.g., non-convex parameter supports) might be beneficial, as alternative merging operations might be needed.

Summary updated

Abstract

We present a consensus Monte Carlo algorithm that scales existing Bayesian nonparametric models for clustering and feature allocation to big data. The algorithm is valid for any prior on random subsets such as partitions and latent feature allocation, under essentially any sampling model. Motivated by three case studies, we focus on clustering induced by a Dirichlet process mixture sampling model, inference under an Indian buffet process prior with a binomial sampling model, and with a categorical sampling model. We assess the proposed algorithm with simulation studies and show results for inference with three datasets: an MNIST image dataset, a dataset of pancreatic cancer mutations, and a large set of electronic health records (EHR). Supplementary materials for this article are available online.
BibTeX
@article{ni2019consensus,
  author = {Yang Ni and Yuan Ji and Peter Müeller},
  title = {{Consensus Monte Carlo for Random Subsets using Shared Anchors}},
  journal = {Journal of Computational and Graphical Statistics},
  year = {2019},
}
Figure