Guided Semi-Supervised Non-Negative Matrix Factorization

Pengyu Li, Christine Tseng, Yaxuan Zheng, Joyce A. Chew, Longxiu Huang, Benjamin Jarman, Deanna Needell · DOI

TL;DR

This paper introduces Guided Semi-Supervised Non-Negative Matrix Factorization (GSSNMF), a novel method that combines class labels and user-defined seed words to simultaneously improve topic modeling and document classification. GSSNMF demonstrates superior performance over existing methods on both tasks, offering more coherent topics and higher classification accuracy.

What Problem Does This Paper Address?

Extracting meaningful insights from large text datasets is crucial for tasks like classification and topic modeling. While Non-Negative Matrix Factorization (NMF) is a powerful tool for unsupervised topic discovery, its purely unsupervised nature can lead to topics that are not always relevant or discriminative for downstream tasks. Existing semi-supervised approaches like Semi-Supervised NMF (SSNMF) leverage class labels for classification, and Guided NMF uses seed words to steer topic generation. However, no single method effectively integrates both forms of supervision to enhance both classification and topic coherence simultaneously. This paper aims to bridge this gap by proposing a unified framework that leverages both label information and seed words.

Methods

The core of this paper is the introduction of Guided Semi-Supervised Non-Negative Matrix Factorization (GSSNMF). This method extends classical NMF by incorporating two types of supervision:

  • Class Labels: Similar to SSNMF, GSSNMF uses a masking matrix to distinguish between labeled training data and unlabeled test data, and a label matrix to represent class assignments. This information is used to improve classification accuracy.
  • Seed Words: Inspired by Guided NMF, GSSNMF utilizes user-defined seed words to guide the topic modeling process. These seed words help ensure that the learned topics are more interpretable and capture a wider range of features.

GSSNMF formulates a unified optimization problem that aims to simultaneously minimize reconstruction error, guide topic generation with seed words, and enforce label consistency. The authors propose a multiplicative update scheme, similar to existing NMF variants, to efficiently solve this optimization problem. A key feature is that by setting either the regularization parameter for seed words ($\lambda$) or label information ($\mu$) to zero, GSSNMF naturally reduces to Guided NMF or SSNMF, respectively, highlighting its generality.

Datasets

The proposed GSSNMF method was evaluated on two real-world datasets:

  • California Innocence Project (CIP) Dataset: This dataset consists of Appellant's Opening Briefs (AOBs) from legal cases, each associated with one or more of thirteen crime labels. This dataset is particularly relevant for multi-label classification tasks.
  • 20 Newsgroups Dataset: A standard benchmark dataset comprising approximately 20,000 documents from 20 different newsgroups. For this study, a subset of 1800 documents from nine selected newsgroups was used, categorized into five broader classes.

Key Insights and Ideas

  • Synergistic Supervision: The paper demonstrates that combining class labels and seed words offers a synergistic benefit, leading to better performance on both classification and topic modeling than using either type of supervision alone.
  • Improved Classification with Seed Words: For classification, seed words act as an additional guide for SSNMF, helping it to better distinguish between classes and avoid trivial solutions where most documents are assigned to the most prevalent class.
  • Enhanced Topic Coherence with Labels: For topic modeling, known label information helps GSSNMF to group similar documents more effectively, leading to more coherent and interpretable topics compared to Guided NMF.
  • Flexibility in Rank Selection: Unlike TS-NMF, which requires the number of topics to equal the number of classes, GSSNMF offers flexibility in choosing the latent topic number, allowing for better adaptation to the underlying data structure.

Key Results

  • Classification Performance: On the CIP dataset, GSSNMF achieved a higher Macro F1-score (0.765) compared to SSNMF (0.672) in a single trial, indicating improved multi-label classification accuracy. This improvement was attributed to the seed words helping to reduce misclassifications, particularly for major labels. Similar improvements were observed on the 20 Newsgroups dataset.
  • Topic Modeling Performance: GSSNMF consistently outperformed Guided NMF in terms of topic coherence (measured by average $C_{avg}$) across various ranks on the CIP dataset. For instance, at rank 7, GSSNMF achieved an average $C_{avg}$ of 1165.65, compared to 1148.089 for Guided NMF. The paper also noted that GSSNMF produced topics with more consistent coherence levels.
  • Comparison with TS-NMF: While TS-NMF achieved higher $C_{avg}$ on the 20 Newsgroups dataset at rank 9, the paper highlights that this was due to TS-NMF being constrained to use a rank equal to the number of classes, which may not reflect the true low-rank structure of the data and can lead to overly specific topics. GSSNMF's flexibility in rank selection is presented as a significant advantage.

Limitations and Future Work

  • Parameter Tuning: The paper acknowledges that the parameters $\lambda$ and $\mu$, which control the influence of seed words and label information, were selected based on experimental results. Future work aims to develop error analysis to understand the interplay between these parameters and to identify a more systematic way to select them.
  • Alternative Divergences: The current GSSNMF formulation is based on the Frobenius norm. Future research could explore using other divergence measures, such as information divergence, and deriving corresponding multiplicative update solvers.
  • Exploring Other SSNMF Variants: The authors mention that other variants of SSNMF exist and suggest that future work could incorporate these into the GSSNMF framework.

Summary updated

BibTeX
@article{li2022guided,
  author = {Pengyu Li and Christine Tseng and Yaxuan Zheng and Joyce A. Chew and Longxiu Huang and Benjamin Jarman and Deanna Needell},
  title = {{Guided Semi-Supervised Non-Negative Matrix Factorization}},
  journal = {Algorithms},
  year = {2022},
  doi = {10.3390/a15050136},
}
Figure