English

Non-negative matrix factorization algorithms generally improve topic model fits

Machine Learning 2026-02-10 v5 Machine Learning Computation

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). 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.

Keywords

Cite

@article{arxiv.2105.13440,
  title  = {Non-negative matrix factorization algorithms generally improve topic model fits},
  author = {Peter Carbonetto and Abhishek Sarkar and Zihao Wang and Matthew Stephens},
  journal= {arXiv preprint arXiv:2105.13440},
  year   = {2026}
}
R2 v1 2026-06-24T02:32:50.224Z