Abstract
Traditional seed-guided topic modeling assumes that user-provided seeds are present in the corpus vocabulary. However, in real-world scenarios, a significant portion of seeds (45% to 78%) are Out-of-Vocabulary (OOV). We introduce SEETOPIC, a framework that leverages Pre-trained Language Models (PLMs) to bridge this gap. By combining general linguistic knowledge from PLMs with local corpus statistics through an iterative expansion and ensemble ranking strategy, SEETOPIC discovers coherent and accurate topics even when seeds are missing from the text. Evaluations on SciDocs, Amazon, and Twitter datasets demonstrate that SEETOPIC consistently outperforms state-of-the-art baselines in both In-Vocabulary (IV) and OOV settings.
Introduction
Topic modeling is a fundamental NLP task for organizing massive document collections into thematic groups. While unsupervised models like LDA are common, they often fail to align with specific user-defined categories. Seed-guided models address this by allowing users to provide example words. However, these models typically rely on the assumption that seeds are In-Vocabulary. In practice, users often provide specific or complex category names that do not appear verbatim in the raw text. Our analysis shows that OOV seeds are prevalent across diverse domains, ranging from 45% in scientific papers to 78% in social media data. SEETOPIC is designed to handle these OOV seeds by utilizing the subword tokenization and semantic depth of PLMs.
Methods
The SEETOPIC framework integrates two distinct modules to refine topic discovery:
- General Representation Module (PLM): Leveraging models like BERT, SEETOPIC uses subword tokenization to interpret OOV seeds (e.g., decomposing "nightlife" into "night" and "##life"). This provides a semantic anchor based on general language knowledge.
- Seed-Guided Local Representation Module: This module learns embeddings specific to the input corpus by maximizing the Pointwise Mutual Information (PMI) between words, contexts, and documents.
- Ensemble Ranking and Veto Principle: Potential topic words are ranked using a generalized reciprocal rank formula. A low sensitivity parameter creates a "veto" effect, ensuring a word is only selected if it ranks highly in both general linguistic knowledge and local statistical patterns.
- Iterative Expansion: The model gradually expands the topic set, starting with a few terms and relearning local embeddings to refine the topic's definition over multiple iterations ($T$).
Experimental Results
Accuracy and Relevance
SEETOPIC was evaluated against state-of-the-art baselines including SeededLDA, CatE, and Anchored CorEx. As shown in the MACC (Mean Accuracy) results, SEETOPIC (SeeTopic) significantly outperforms other models, particularly in the challenging Out-of-Vocabulary setting where traditional models' performance often degrades.
Topic Coherence
The quality of discovered topics was further assessed using NPMI and LCP metrics. SEETOPIC consistently produced more logically consistent word groups. The iterative expansion process ($T$) shows a positive correlation with coherence metrics, indicating that the model successfully refines its understanding of topics over time.
Diversity and Case Studies
Beyond accuracy, SEETOPIC ensures high topic diversity, avoiding the overlap common in unsupervised methods. Case studies on medical seeds like "hepatitis a/b/c/e" revealed that SEETOPIC identifies specific, relevant terms (e.g., "hcv", "hepatitis b virus") while baselines often revert to generic terms like "patient" or "treatment."
Conclusion
SEETOPIC effectively addresses the OOV seed problem in topic discovery by harmonizing global PLM knowledge with local corpus statistics. While computationally more intensive than traditional models, its ability to handle complex, real-world user inputs makes it a robust tool for domain-specific text analysis. Future work will explore extending this framework to hierarchical topic structures to better capture parent-child relationships between categories.
Summary updated