Distributed Collapsed Gibbs Sampler for Dirichlet Process Mixture Models in Federated Learning

Reda Khoufache, Mustapha Lebbah, Hanene Azzag, Etienne Goffinet, Djamel Bouchaffra
12/18/2023
stat.MLcs.LG

Official code: redakhoufache/DisCGS (4 stars, last commit 2025-05-09).

Abstract

Dirichlet Process Mixture Models (DPMMs) are widely used to address clustering problems. Their main advantage lies in their ability to automatically estimate the number of clusters during the inference process through the Bayesian non-parametric framework. However, the inference becomes considerably slow as the dataset size increases. This paper proposes a new distributed Markov Chain Monte Carlo (MCMC) inference method for DPMMs (DisCGS) using sufficient statistics. Our approach uses the collapsed Gibbs sampler and is specifically designed to work on distributed data across independent and heterogeneous machines, which habilitates its use in horizontal federated learning. Our method achieves highly promising results and notable scalability. For instance, with a dataset of 100K data points, the centralized algorithm requires approximately 12 hours to complete 100 iterations while our approach achieves the same number of iterations in just 3 minutes, reducing the execution time by a factor of 200 without compromising clustering performance. The code source is publicly available at https://github.com/redakhoufache/DisCGS.

View on arXivView PDF

Code Implementations(1)

42Scala, ShellJun 30, 20231 years ago

Similar Papers

Cite this paper

@article{khoufache2023distributed,
  title  = {Distributed Collapsed Gibbs Sampler for Dirichlet Process Mixture Models in Federated Learning},
  author = {Reda Khoufache and Mustapha Lebbah and Hanene Azzag and Etienne Goffinet and Djamel Bouchaffra},
  year   = {2023},
  eprint = {2312.11169},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.11169v1}
}

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/2312.11169.svg)](https://codeofpaper.com/paper/2312.11169)

Discussion