Introduction
Topic modeling is a fundamental technique for uncovering latent themes within large text collections. However, these models are often stochastic, producing varying results across different runs. To navigate this instability, researchers rely on automated topic coherence measures to evaluate the semantic quality of generated topics. Modern coherence measures frequently utilize word embeddings—vector representations of word meanings—to calculate similarity. Despite their popularity, there is no established "gold standard" for embedding configurations. This study investigates the sensitivity of coherence scores to three critical design choices: the embedding algorithm, the model variant, and the reference corpus used for training.
Methodology
The researchers evaluated coherence by calculating the average cosine similarity between the top words in a topic based on their vector representations. To handle out-of-vocabulary (OOV) terms, they implemented a robust skipping mechanism: if a word is missing from the embedding's vocabulary, the measure skips to the next available term rather than penalizing the score.
The study compared several dimensions:
- Algorithms: word2vec vs. fastText.
- Model Variants: Continuous Bag-Of-Words (CBOW) vs. Skip-Gram (SG).
- Reference Corpora: A domain-specific corpus (1.6 million Guardian articles) vs. a general-purpose corpus (4.9 million Wikipedia abstracts).
Evaluation was conducted using Non-negative Matrix Factorization (NMF) across 15 distinct datasets (annual Guardian news archives from 2004 to 2018). These datasets provided "ground truth" labels (e.g., "politics," "sport"), allowing the researchers to determine the actual number of topics ($k$) and test if coherence measures could correctly identify it.
The Impact of Design Choices
The most striking finding is that the choice of the background reference corpus is the primary driver of coherence rankings. As shown in the correlation analysis, models trained on the same corpus—regardless of algorithm—showed high agreement. Conversely, switching the reference corpus led to significantly lower correlations, suggesting that a topic deemed coherent by a Wikipedia-based measure might be viewed as incoherent by a news-based measure.
Interestingly, when the training data remained constant, word2vec and fastText produced remarkably similar results. Within the model variants, CBOW generally outperformed Skip-Gram. The authors suggest that CBOW’s objective of predicting a target word from its context aligns more naturally with the goal of measuring intra-topic word similarity.
Performance and Ground Truth Recovery
A surprising result emerged regarding the "general vs. specific" debate. Counter-intuitively, the general-purpose Wikipedia corpus proved more effective at identifying the correct number of topics than the domain-specific Guardian corpus. The researchers hypothesize a "temporal effect": while the Guardian reference corpus spans 15 years of shifting language and context, the Wikipedia snapshot provides a more stable semantic baseline.
The specific configuration wikipedia2016-w2v-cbow-d100 emerged as the most reliable. In tests to recover the ground truth number of topics, this model placed the correct $k$ within its top 5 recommendations for 14 out of the 15 datasets.
Conclusion
The study demonstrates that the choice of reference corpus is the most influential factor in automated topic evaluation. Researchers must exercise caution and transparency when selecting embeddings, as these choices can fundamentally alter which topic model is identified as "best." While domain-specific data is often preferred, general-purpose corpora like Wikipedia may offer superior stability and performance for coherence tasks. Future research could investigate whether leveraging fastText’s subword information for OOV words might bridge the performance gap observed in this study.
Summary updated