Ensemble Topic Modeling via Matrix Factorization

Mark Belford, Brian Mac Namee, Derek Greene

Introduction

Topic modeling is a fundamental technique in text mining, used to discover latent thematic structures within large document collections. However, widely used methods such as Non-negative Matrix Factorization (NMF) and Latent Dirichlet Allocation (LDA) frequently suffer from instability. Due to their reliance on stochastic initialization, these algorithms often converge to different local optima across multiple runs on the same dataset. This inconsistency makes it difficult for researchers to derive a "definitive" set of topics, particularly in noisy environments like social media.

This paper addresses the instability problem by introducing a two-layered ensemble NMF approach. By aggregating multiple "unstable" runs into a single consensus model, the proposed method achieves high stability and superior accuracy compared to individual model runs.

Methodology

The proposed framework consists of two primary stages: Ensemble Generation and Ensemble Integration.

Ensemble Generation

In the first stage, standard NMF is executed $r$ times (e.g., $r=100$) on the same document-term matrix $A$. Each run utilizes a different random seed for initialization. This intentionally exploits the inherent instability of NMF to generate a diverse collection of "base" topic models.

Ensemble Integration

The topic-term matrices ($H$ factors) from all $r$ runs are concatenated into a single "meta-matrix" $M$. After normalization, a second layer of NMF is applied to $M$. To ensure a high-quality, stable output, this second layer employs a deterministic initialization method (NNDSVD). The final ensemble topics are derived from this secondary factorization. To map the original documents to these ensemble topics, the data is "folded" into the model using a matrix projection ($D = A \cdot H^T$).

The two-step ensemble framework: Generation Step and Integration Step.

Experimental Setup

The authors evaluated the framework using a newly curated benchmark: the 20-topics Dataset. This dataset comprises over 20 million tweets.

  • Core Users: 1,200 accounts manually categorized into 20 ground-truth topics (e.g., Aviation, Business, Irish Politics).
  • Friend Users: Up to 4,000 additional unannotated users were included to introduce noise and test model robustness.
  • Preprocessing: To mitigate the issues of short-text sparsity, individual tweets were aggregated into "weekly user documents."

Results and Discussion

The ensemble approach demonstrated significant improvements in both stability and accuracy.

Stability and Robustness

Stability was quantified using Normalized Mutual Information (NMI). While standard randomly initialized NMF showed high variance (NMI between 0.63 and 0.84), the ensemble method remained highly consistent, with NMI scores ranging from 0.93 to 0.99. Furthermore, the ensemble model exhibited remarkable robustness to noise. As shown in Figure 2, the stability of the ensemble model declined much more gracefully than standard NMF as the number of "friend" users (noise) increased.

Comparison of stability between the Ensemble method and Random NMF as noise (Friend Users) increases.

Accuracy

The ensemble model consistently outperformed the mean, minimum, and maximum accuracy of the 100 base models. This suggests a "synergy" effect where the integration process filters out noise and emphasizes persistent semantic structures that individual runs might miss. Qualitatively, the model successfully identified 18 of the 20 ground-truth categories, with minor overlaps occurring only in highly similar domains like UK and Irish politics.

Conclusion

The ensemble NMF framework provides a robust solution to the instability of traditional topic modeling. By leveraging the diversity of multiple random initializations and integrating them through a secondary factorization layer, the method produces a stable, high-quality consensus model. While computationally more intensive than a single NMF run, the gains in reliability and accuracy make it a compelling choice for analyzing complex, noisy text data.

Summary updated

BibTeX
@inproceedings{belford2016ensemble,
  author = {Mark Belford and Brian Mac Namee and Derek Greene},
  title = {{Ensemble Topic Modeling via Matrix Factorization}},
  booktitle = {AICS},
  year = {2016},
}
Figure