Sparse Partially Collapsed MCMC for Parallel Inference in Topic Models

Måns Magnusson, Leif Jonsson, Mattias Villani, David Broman
6/11/2015
19 citations
stat.MLstat.ME

Official code: lejon/PartiallyCollapsedLDA (28 stars, Java, last commit 2026-06-30).

Abstract

Topic models, and more specifically the class of Latent Dirichlet Allocation (LDA), are widely used for probabilistic modeling of text. MCMC sampling from the posterior distribution is typically performed using a collapsed Gibbs sampler.

Show full abstract

We propose a parallel sparse partially collapsed Gibbs sampler and compare its speed and efficiency to state-of-the-art samplers for topic models on five well-known text corpora of differing sizes and properties. In particular, we propose and compare two different strategies for sampling the parameter block with latent topic indicators. The experiments show that the increase in statistical inefficiency from only partial collapsing is smaller than commonly assumed, and can be more than compensated by the speedup from parallelization and sparsity on larger corpora. We also prove that the partially collapsed samplers scale well with the size of the corpus. The proposed algorithm is fast, efficient, exact, and can be used in more modeling situations than the ordinary collapsed sampler.

View on arXivView PDF

Code Implementations(1)

Implementations of various fast parallelized samplers for LDA, including Partially Collapsed LDA, Light LDA, Partially Collapsed Light LDA and a very efficient Polya-Urn LDA

2822JavaApr 21, 20155 months ago
ldamachine-learningmachine-learning-algorithmsmachinelearning

Similar Papers

Cite this paper

@article{magnusson2015sparse,
  title  = {Sparse Partially Collapsed MCMC for Parallel Inference in Topic Models},
  author = {Måns Magnusson and Leif Jonsson and Mattias Villani and David Broman},
  year   = {2015},
  eprint = {1506.03784},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1506.03784}
}

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

Discussion