On a Guided Nonnegative Matrix Factorization

Joshua Vendrow, Jamie Haddock, Elizaveta Rebrova, Deanna Needell · DOI

Abstract

Fully unsupervised topic models have found fantastic success in document clustering and classification. However, these models often suffer from the tendency to learn less-than-meaningful or even redundant topics when the data is biased towards a set of features. For this reason, we propose an approach based upon the nonnegative matrix factorization (NMF) model, deemed Guided NMF, that incorporates user-designed seed word supervision. Our experimental results demonstrate the promise of this model and illustrate that it is competitive with other methods of this ilk with only very little supervision information.

Introduction

Topic modeling is a cornerstone of modern data science, helping us make sense of massive text corpora by automatically grouping documents into themes. However, fully unsupervised models—like standard Nonnegative Matrix Factorization (NMF)—often have a mind of their own. They tend to gravitate toward the most dominant features in a dataset, which might be redundant or irrelevant to a researcher's specific goals. Guided NMF introduces a simple yet powerful way to "nudge" these models using human intuition.

The Challenge of Feature Bias

Unsupervised models are prone to "feature bias." For example, in a dataset of political tweets, a standard model might create topics centered around individual candidates (e.g., "Trump" or "Clinton") because those names appear most frequently. If a researcher wants to study policy issues like healthcare or the economy, these candidate-centric topics act as noise. Guided NMF addresses this by incorporating prior knowledge to force the model toward topics of interest without losing the benefits of automated discovery.

Methodology: Guided NMF

The authors build upon Semi-Supervised NMF (SSNMF). In the standard NMF equation $X \approx AS$, $X$ represents the data, $A$ is the topic matrix (dictionary), and $S$ is the representation matrix. While traditional SSNMF typically provides supervision for $S$ (document labels), Guided NMF provides supervision for $A$.

By introducing a "seed matrix" $Y$ containing user-defined seed words, the model optimizes a joint objective function. It reconstructs the original data while ensuring that the learned topics in $A$ align with the seed words in $Y$. This guides the content of the topics rather than just the classification of documents.

Experimental Results

The model was evaluated on the 20 Newsgroups dataset and a 2016 Twitter political dataset.

Quantitative Performance

On the 20 Newsgroups dataset, Guided NMF demonstrated significant robustness with minimal supervision. With only one seed word per topic, it achieved an AUC between 0.83 and 0.89. In contrast, Seeded LDA (Latent Dirichlet Allocation) performed poorly with very few seeds, only reaching comparable performance when 8 or more seed words were provided.

AUC performance comparison between Guided NMF and Seeded LDA on the 20 Newsgroups dataset.

Qualitative Analysis: Twitter Dataset

The Twitter analysis highlighted the model's ability to overcome feature bias. While standard NMF produced topics dominated by candidate names, Guided NMF successfully extracted distinct policy-related topics such as "Economy" and "Obamacare" using only those terms as seeds.

Guided NMF successfully extracts policy-specific topics from noisy political data.

Conclusion

Guided NMF proves that feature-level supervision is a highly effective way to shape topic modeling. By supervising the dictionary rather than document labels, the model can achieve high accuracy with extremely sparse information—often just a single word. Future work may extend this framework to image and video data, where seed features could guide tasks like image segmentation.

Reference: Vendrow, J., Haddock, J., Rebrova, E., & Needell, D. (2021). On a Guided Nonnegative Matrix Factorization. arXiv:2010.11365v2.

Summary updated

BibTeX
@inproceedings{vendrow2020guided,
  author = {Joshua Vendrow and Jamie Haddock and Elizaveta Rebrova and Deanna Needell},
  title = {{On a Guided Nonnegative Matrix Factorization}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  doi = {10.1109/icassp39728.2021.9413656},
}
Figure