[Paper Review] Non-negative matrix factorization algorithms generally improve topic model fits
This paper proposes a novel method for fitting topic models by first solving a Poisson non-negative matrix factorization (NMF) problem, then transforming the solution into a topic model. By leveraging efficient coordinate descent optimization on the NMF problem, the approach achieves significantly better likelihood fits and faster computation than standard EM-based algorithms, particularly in cases with interdependent topics where EM struggles to converge.
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.
Motivation & Objective
- To improve parameter estimation in topic models by exploiting the formal equivalence between Poisson NMF and the multinomial topic model.
- To address the limitations of standard EM algorithms in fitting topic models, especially slow convergence and suboptimal solutions in the presence of interdependent topics.
- To demonstrate that solving the NMF problem first, followed by a simple transformation, yields better likelihoods and more accurate topic estimates than direct topic model fitting.
- To extend the benefits of modern NMF optimization algorithms—particularly coordinate descent—to topic modeling, improving both maximum likelihood and variational inference performance.
- To provide an efficient, scalable implementation via the R package fastTopics, optimized for large, sparse data sets.
Proposed method
- Formalize the equivalence between the Poisson NMF objective and the multinomial topic model likelihood, showing they are equal up to a constant (Lemma 1).
- Use coordinate descent (CD) optimization to solve the Poisson NMF problem, which avoids the complex 'sum-to-one' constraints of the topic model parameter space.
- Transform the resulting NMF factors into a valid topic model by normalizing the topic-term matrices to sum to one, yielding interpretable topic proportions and word distributions.
- Apply the same strategy to improve variational inference by initializing the variational parameters from the NMF solution, enhancing convergence and fit quality.
- Leverage data sparsity in large, high-dimensional count matrices (e.g., text or single-cell genomics data) to accelerate computation in the fastTopics R package.
- Compare the proposed method against standard EM and other optimization variants using benchmark data sets (e.g., 20 Newsgroups, 68k PBMC), measuring likelihood, convergence speed, and topic quality.
Experimental results
Research questions
- RQ1Can solving a Poisson NMF problem first and transforming the solution into a topic model yield better likelihood fits than direct topic model fitting with EM?
- RQ2Why do EM-based algorithms sometimes fail to converge to high-quality solutions, and can NMF-based optimization overcome this?
- RQ3How does the performance of coordinate descent (CD) on the NMF problem compare to EM and other optimization methods in terms of likelihood, speed, and topic quality?
- RQ4Can the NMF-based initialization improve the performance of variational inference in latent Dirichlet allocation (LDA)?
- RQ5In what settings—particularly with interdependent topics—does the NMF-based approach provide the most substantial gains over standard topic modeling methods?
Key findings
- The proposed NMF-based method consistently achieved higher log-likelihoods than EM-based algorithms on both text and single-cell genomics data sets, with gains up to 10% in likelihood on the 68k PBMC data set.
- Coordinate descent (CD) on the Poisson NMF problem outperformed other optimization methods, including EM and accelerated variants, in both convergence speed and final fit quality.
- In cases with interdependent topics—such as ribosomal protein genes in PBMC data or off-topic discussions in newsgroups—EM failed to converge to good solutions, while the NMF-CD method produced significantly better and more interpretable topic estimates.
- The CD-based NMF approach produced topic proportions that were strikingly different from EM estimates, particularly for topics capturing global or shared biological signals, indicating EM was trapped in poor local optima.
- The method improved variational inference performance when used to initialize the variational parameters, suggesting broader applicability beyond maximum likelihood estimation.
- The fastTopics R package successfully leveraged data sparsity to enable efficient analysis of large-scale data sets, demonstrating the method’s scalability and practical utility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.