TL;DR
This paper introduces SeNMFk-SPLIT, a novel distributed topic modeling method designed for massive text datasets. It improves upon existing Semantic NMF techniques by enabling separate factorization of term-document and word-context matrices, making it more scalable and efficient for large corpora. The method was successfully applied to the entire AI and ML literature on arXiv, demonstrating its ability to extract high-quality, interpretable topics.
What Problem Does This Paper Address?
The explosion of digital text data, particularly in scientific research, necessitates effective methods for organizing and understanding this information. Topic modeling is a key technique for uncovering hidden themes within large document collections. While Non-negative Matrix Factorization (NMF) is a popular unsupervised approach, traditional NMF requires manual selection of the number of topics, which is crucial for meaningful results. Too few topics lead to under-fitting, while too many result in over-fitting and noisy topics. Furthermore, standard NMF often overlooks the semantic relationships between words, which are vital for extracting coherent themes. Semantic NMF (SeNMFk) addresses these limitations by incorporating semantic information and automatically determining the number of topics. However, SeNMFk's joint factorization of term-document and word-context matrices can be computationally expensive and memory-intensive for very large datasets. This paper tackles the challenge of scaling semantic topic modeling to massive corpora.
Methods
The core contribution of this paper is the development of SeNMFk-SPLIT. This method builds upon the Semantic NMF with automatic model selection (SeNMFk) framework. SeNMFk typically performs a joint factorization of the term-document (TF-IDF) matrix (X) and the word-context (co-occurrence) matrix (M). SeNMFk-SPLIT introduces a distributed approach by first decomposing X and M separately into intermediate latent representations. Specifically, it uses pyDNMFk to estimate topic numbers ($k_1$ and $k_2$) and factor matrices ($W_1, H_1$ for X and $W_2, H_2$ for M). Then, it concatenates these intermediate topic matrices ($[W_1|W_2]$) and factorizes them again to obtain a unified set of common latent topics ($W$). Finally, it learns the document coordinates ($H^*$) in this new topic space through regression. This "split" approach allows for processing smaller matrices independently, significantly reducing memory and computational demands for large-scale data.
Datasets
The primary dataset used for evaluation is the entire collection of AI and ML scientific literature abstracts uploaded to arXiv. After pre-processing, this dataset comprised 168,177 documents. The vocabulary was filtered to include terms appearing in at least five documents and no more than 50% of the corpus, resulting in a vocabulary of 25,869 unique terms. The term-document matrix (X) was represented using TF-IDF, and the word-context matrix (M) was constructed using co-occurrence counts within a window of 100 tokens, normalized with Shifted Positive Point-wise Mutual Information (SPPMI).
Key Insights and Ideas
- Scalability is Key: The most significant insight is that by decoupling the factorization of the term-document and word-context matrices, SeNMFk-SPLIT achieves a dramatic improvement in scalability for large corpora, a critical bottleneck for many existing topic modeling techniques.
- Semantic Coherence Remains High: Despite the distributed approach, the method successfully retains the semantic coherence that SeNMFk is known for, leading to interpretable topics.
- UMAP Reveals Topic Relationships: Visualizing the document clusters using UMAP provides compelling evidence of the method's effectiveness. Related topics (e.g., Reinforcement Learning, Multi-agent Systems) form overlapping clusters, while emerging or distinct fields (e.g., Quantum Computing, Data Privacy) appear further apart, reflecting the structure of the research landscape.
- Automatic Topic Number Selection is Crucial: The paper reiterates the importance of automatically determining the number of topics, avoiding the pitfalls of manual selection and leading to more robust topic discovery.
Key Results
SeNMFk-SPLIT was applied to over 168,000 AI/ML abstracts and successfully extracted 46 distinct topics. The paper presents word clouds and top-five word lists for several topics, demonstrating their high interpretability and relevance (e.g., "Quantum Computing," "Deep Learning," "Document Engineering," "Tensor Factorization"). A UMAP visualization (Figure 1) shows that documents with similar topics are grouped together, and clusters for related topics tend to be closer. The distribution of abstracts across topics (Figure 6) highlights the varying prevalence of different research areas within the AI/ML literature.
Limitations and Future Work
- Limitations: The paper does not explicitly detail limitations of SeNMFk-SPLIT itself, beyond the inherent challenges of topic modeling such as potential ambiguity in topic interpretation or the sensitivity to pre-processing choices. The method relies on the quality of the underlying pyDNMFk library.
- Future Work: The authors demonstrate the method's capability on a large dataset and suggest that it can be utilized on even larger datasets. Further exploration of different normalization techniques for the word-context matrix or applying SeNMFk-SPLIT to other large-scale scientific domains could be promising future directions. The paper also implicitly suggests that the UMAP visualization is a valuable tool for understanding the relationships between discovered topics, which could be further leveraged.
Summary updated