Pólya Urn Latent Dirichlet Allocation: a doubly sparse massively parallel sampler

Alexander Terenin, Måns Magnusson, Leif Jonsson, David Draper
4/12/2017
21 citations
stat.MLstat.CO

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

Abstract

Latent Dirichlet Allocation (LDA) is a topic model widely used in natural language processing and machine learning. Most approaches to training the model rely on iterative algorithms, which makes it difficult to run LDA on big corpora that are best analyzed in parallel and distributed computational environments.

Show full abstract

Indeed, current approaches to parallel inference either don't converge to the correct posterior or require storage of large dense matrices in memory. We present a novel sampler that overcomes both problems, and we show that this sampler is faster, both empirically and theoretically, than previous Gibbs samplers for LDA. We do so by employing a novel Pólya-urn-based approximation in the sparse partially collapsed sampler for LDA. We prove that the approximation error vanishes with data size, making our algorithm asymptotically exact, a property of importance for large-scale topic models. In addition, we show, via an explicit example, that - contrary to popular belief in the topic modeling literature - partially collapsed samplers can be more efficient than fully collapsed samplers. We conclude by comparing the performance of our algorithm with that of other approaches on well-known corpora.

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{terenin2017plya,
  title  = {Pólya Urn Latent Dirichlet Allocation: a doubly sparse massively parallel sampler},
  author = {Alexander Terenin and Måns Magnusson and Leif Jonsson and David Draper},
  year   = {2017},
  eprint = {1704.03581},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1704.03581}
}

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

Discussion