Abstract
Neural topic models typically optimize for perplexity, often at the expense of human-interpretable topic coherence. This paper introduces a differentiable surrogate for topic quality based on pre-trained word embeddings, allowing coherence to be integrated directly into the training process. The authors propose several variants, including NTM-R (regularization) and NTM-F (factorization). Results on multiple datasets show that these models achieve a superior balance between perplexity and coherence compared to existing methods, effectively navigating the trade-off between model fit and semantic meaningfulness.
Introduction
Topic modeling is a fundamental NLP technique used to discover hidden themes in large document collections. Traditionally, these models are trained to minimize perplexity, a measure of how well the model predicts word distributions. However, a known "catch-22" exists: models with the best perplexity often produce topics that are semantically nonsensical to humans.
To evaluate human-readability, researchers use NPMI (Normalized Point-wise Mutual Information), which measures the co-occurrence of top words in a topic. Unfortunately, NPMI is computationally expensive and non-differentiable, making it unsuitable for direct optimization via backpropagation. Consequently, most models are optimized for perplexity and only checked for coherence post-hoc.
Methods
The authors propose moving coherence from an evaluation metric to a training objective within the Neural Topic Model (NTM) framework.
They introduce three main strategies:
- NTM-R (Regularization): They introduce WETC (Word Embedding Topic Coherence). By using the cosine similarity between pre-trained word embeddings (e.g., GloVe) as a differentiable proxy for NPMI, they add a "coherence penalty" to the standard loss function.
- NTM-F (Factorization): This approach forces the topic-word matrix to be a product of fixed pre-trained embeddings and a learnable topic-embedding matrix, implicitly grouping semantically similar words.
- NTM-FR: A hybrid approach combining both regularization and factorization.
Experimental Results
The models were evaluated on the 20NewsGroup dataset, as well as DailyKOS, NIPS, and NYTimes to ensure robustness across different document lengths and vocabulary sizes.
Key Findings
- The Pareto Front: There is a clear trade-off between perplexity and coherence. NTM-R effectively finds the "Pareto front," providing the highest coherence for a given level of perplexity. On 20NewsGroup, NTM-R matched the state-of-the-art NPMI (0.28) while maintaining a significantly better perplexity (775 vs. 1172 for ProdLDA).
- Human Alignment: A user study confirmed that the WETC metric correlates with human judgments of topic quality nearly as well as NPMI.
- Efficiency: WETC relies on simple matrix multiplications, making it several orders of magnitude faster to calculate than NPMI, which requires scanning massive reference corpora like Wikipedia.
Discussion and Limitations
While NTM-R showed strong performance, NTM-F struggled to maintain coherence throughout training due to a drastically reduced parameter space. Additionally, performance on the NYTimes dataset was limited by the high frequency of named entities (40% of the vocabulary), which often lack high-quality pre-trained embeddings. This caused a divergence between the embedding-based WETC and frequency-based NPMI.
Future work may involve establishing WETC as a standard metric and exploring residual "relaxation" terms to improve the factorization approach.
Summary updated