Non-negative matrix factorization algorithms generally improve topic model fits

Peter Carbonetto, Abhishek Sarkar, Zihao Wang, Matthew Stephens
5/27/2021
stat.MLcs.LGstat.CO

Official code: stephenslab/fastTopics (86 stars, R, last commit 2026-04-21).

Abstract

In an effort to develop topic modeling methods that can be quickly applied to large data sets, we revisit the problem of maximum-likelihood estimation in topic models. It is known, at least informally, that maximum-likelihood estimation in topic models is closely related to non-negative matrix factorization (NMF).

Show full abstract

Yet, to our knowledge, this relationship has not been exploited previously to fit topic models. We show that recent advances in NMF optimization methods can be leveraged to fit topic models very efficiently, often resulting in much better fits and in less time than existing algorithms for topic models. We also formally make the connection between the NMF optimization problem and maximum-likelihood estimation for the topic model, and using this result we show that the expectation maximization (EM) algorithm for the topic model is essentially the same as the classic multiplicative updates for NMF (the only difference being that the operations are performed in a different order). Our methods are implemented in the R package fastTopics.

View on arXivView PDF

Code Implementations(1)

Fast algorithms for fitting topic models and non-negative matrix factorizations to count data.

8612R, C++Mar 18, 20197 months agoNOASSERTION

Similar Papers

Cite this paper

@article{carbonetto2021nonnegative,
  title  = {Non-negative matrix factorization algorithms generally improve topic model fits},
  author = {Peter Carbonetto and Abhishek Sarkar and Zihao Wang and Matthew Stephens},
  year   = {2021},
  eprint = {2105.13440},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13440}
}

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

Discussion