Seed-Guided Topic Discovery with Out-of-Vocabulary Seeds

Yu Zhang, Yu Meng, Xuan Wang, Sheng Wang, Jiawei Han

TL;DR

SeeTopic is a novel framework for seed-guided topic discovery that effectively handles "out-of-vocabulary" (OOV) seeds—category names provided by users that never actually appear in the text corpus. By combining the broad linguistic knowledge of pre-trained language models (PLMs) with local corpus statistics through an iterative ensemble ranking process, it generates more coherent, accurate, and diverse topics than traditional models.

What Problem Does This Paper Address?

Topic modeling helps us make sense of massive text collections, but standard unsupervised models (like LDA) often produce topics that don't align with a user's specific interests. "Seed-guided" models solve this by letting users provide "seeds" (category names) to steer the discovery process.

However, existing seed-guided methods have two major blind spots:

  1. The OOV Gap: They assume all seeds appear in the corpus. In reality, users often use complex or formal terms (e.g., "chronic respiratory diseases") that might not match the specific language in the data (e.g., "asthma" or "COPD").
  2. Ignoring PLMs: Most models rely solely on local word counts or simple word embeddings, missing out on the deep semantic understanding captured by modern pre-trained language models like BERT.

The authors address these gaps by proposing a method that can "understand" a seed even if it's never been seen before in the training data.

Methods

The SeeTopic framework consists of three main components:

  • General Representation Module: It uses a PLM (like BERT or BioBERT) to encode every term in the vocabulary and every user-provided seed. Because PLMs use subword tokenization, they can derive meaningful representations for OOV phrases by looking at their components (e.g., understanding "nightlife" via "night" and "life").
  • Seed-Guided Local Representation Module: This module learns embeddings specifically from the input corpus. Its training objective is designed to maximize the Pointwise Mutual Information (PMI) between words and their local contexts, the documents they appear in, and the categories they are assigned to.
  • Iterative Ensemble Ranking: This is the "secret sauce" that connects the two modules. It uses a specialized reciprocal rank-based function to combine the general knowledge from the PLM with the local signals from the corpus. The model starts with a few PLM-selected terms for each category and then iteratively expands these sets, retraining the local embeddings at each step to refine the topics.

Datasets

The researchers evaluated SeeTopic on three real-world datasets from different domains, characterized by a high percentage of OOV seeds:

  • SciDocs (Scientific Papers): Medical paper abstracts with 11 MeSH categories (45% OOV seeds).
  • Amazon (Product Reviews): 100k reviews across 10 product categories (60% OOV seeds).
  • Twitter (Social Media): Geo-tagged tweets in NYC assigned to 9 POI categories (78% OOV seeds).

Key Insights and Ideas

  • PLMs as a Semantic Bridge: The most critical insight is that PLMs provide the necessary "prior knowledge" to handle OOV seeds. They act as a bridge, allowing the model to map an unknown category name to known in-vocabulary terms based on general linguistic similarity.
  • The Power of Iteration: Topic discovery isn't a one-shot process. By iteratively expanding the set of representative terms and retraining local embeddings, the model "adapts" the general knowledge of the PLM to the specific nuances of the local corpus.
  • Balancing Global and Local: Pure PLM similarity can be "too general" (finding terms with lexical overlap but no local relevance), while pure local statistics can't handle OOV seeds. The ensemble ranking ensures discovered terms are both semantically sound and statistically significant in the data.

Key Results

SeeTopic consistently outperformed state-of-the-art baselines (like SeededLDA, Anchored CorEx, and CatE) across all metrics: topic coherence (NPMI, LCP), accuracy (MACC), and diversity.

  • Superior Accuracy on OOV Seeds: As shown in the figures below, SeeTopic's performance advantage is most pronounced when dealing with out-of-vocabulary categories, where traditional models often fail completely.
MACC comparison on Amazon dataset, highlighting the jump in performance for OOV categories.
  • Coherence and Iteration: The iterative process significantly boosts topic coherence. As the number of iterations ($T$) increases, both NPMI and LCP scores improve before plateauing, suggesting that the model successfully learns to "bridge" the gap between the user's seeds and the corpus's language.
Effect of the number of iterations (T) on topic coherence (NPMI).
  • Qualitative Success: In case studies, SeeTopic found highly specific and informative terms. For the "sports and outdoors" category on Amazon, while baselines found generic words like "use" or "good," SeeTopic discovered "canoeing," "picnics," and "rafting."

Limitations and Future Work

While SeeTopic excels at flat topic discovery, the authors acknowledge that many real-world categories are hierarchical. A promising future direction is extending this framework to seed-guided hierarchical topic discovery. In such a setup, the relationship between parent and child nodes in a category tree could provide even more context to help decipher the meaning of complex OOV seeds. Additionally, the current model relies on a fixed hyperparameter ($\rho$) for ensemble ranking; future versions might benefit from dynamically learning how to weight general vs. local knowledge.

Summary updated

BibTeX
@inproceedings{zhang2022seed,
  author = {Yu Zhang and Yu Meng and Xuan Wang and Sheng Wang and Jiawei Han},
  title = {{Seed-Guided Topic Discovery with Out-of-Vocabulary Seeds}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.21},
}
Figure