CPU- and GPU-based Distributed Sampling in Dirichlet Process Mixtures for Large-scale Analysis

Or Dinari, Raz Zamir, John W. Fisher, Oren Freifeld
4/19/2022
2 citations
cs.LGstat.ML

Official code: BGU-CS-VIL/dpmmpython (21 stars, Python, GPL-2.0, last commit 2022-10-17). 1 more implementation below.

Abstract

In the realm of unsupervised learning, Bayesian nonparametric mixture models, exemplified by the Dirichlet Process Mixture Model (DPMM), provide a principled approach for adapting the complexity of the model to the data. Such models are particularly useful in clustering tasks where the number of clusters is unknown.

Show full abstract

Despite their potential and mathematical elegance, however, DPMMs have yet to become a mainstream tool widely adopted by practitioners. This is arguably due to a misconception that these models scale poorly as well as the lack of high-performance (and user-friendly) software tools that can handle large datasets efficiently. In this paper we bridge this practical gap by proposing a new, easy-to-use, statistical software package for scalable DPMM inference. More concretely, we provide efficient and easily-modifiable implementations for high-performance distributed sampling-based inference in DPMMs where the user is free to choose between either a multiple-machine, multiple-core, CPU implementation (written in Julia) and a multiple-stream GPU implementation (written in CUDA/C++). Both the CPU and GPU implementations come with a common (and optional) python wrapper, providing the user with a single point of entry with the same interface. On the algorithmic side, our implementations leverage a leading DPMM sampler from (Chang and Fisher III, 2013). While Chang and Fisher III's implementation (written in MATLAB/C++) used only CPU and was designed for a single multi-core machine, the packages we proposed here distribute the computations efficiently across either multiple multi-core machines or across mutiple GPU streams. This leads to speedups, alleviates memory and storage limitations, and lets us fit DPMMs to significantly larger datasets and of higher dimensionality than was possible previously by either (Chang and Fisher III, 2013) or other DPMM methods.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
BGU-CS-VIL/dpmmpythonOfficial21PythonGPL-2.02022-10-17
BGU-CS-VIL/DPMMSubClusters_GPUOfficial10C++–2023-01-14
GPL-2.0

Python wrapper for the DPMMSubCluster Julia package for inference in Dirichlet Process Mixture Models (High Performance Machine Learning Workshop 2019)

213Python, Jupyter NotebookApr 13, 20204 years agoGPL-2.0

DPMM Sub Clusters C++ on GPU Cross Platforms (Windows & Linux)

101C++, CApr 3, 20213 years ago

Similar Papers

Cite this paper

@article{dinari2022cpu,
  title  = {CPU- and GPU-based Distributed Sampling in Dirichlet Process Mixtures for Large-scale Analysis},
  author = {Or Dinari and Raz Zamir and John W. Fisher and Oren Freifeld},
  year   = {2022},
  eprint = {2204.08988},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08988}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.08988.svg)](https://codeofpaper.com/paper/2204.08988)

Discussion