Abstract
This paper introduces iDocNADE and DocNADEe, two significant advancements in neural topic modeling designed to address the limitations of traditional "bag-of-words" and unidirectional autoregressive models. By incorporating bidirectional document context and pre-trained word embeddings as distributional priors, these models achieve superior performance in extracting coherent topics and document representations. Evaluation across 15 datasets demonstrates a 5.2% improvement in perplexity and an 11.1% boost in retrieval precision, particularly for challenging short-text data.
Introduction
Traditional topic models, such as Latent Dirichlet Allocation (LDA), often fail to capture the nuanced meaning of words because they treat documents as unordered "bags of words." While neural models like DocNADE (Document Autoregressive Neural Distribution Estimator) improved upon this by modeling word sequences, they remained limited by a strictly "forward-looking" approach—only using preceding words to predict the next. Furthermore, these models struggle with short texts, such as news headlines or social media posts, due to data sparsity and a lack of sufficient word co-occurrence data. This research addresses these challenges by making neural topic models both "context-aware" and "knowledge-informed."
Proposed Methods
The authors introduce two primary architectural innovations to enhance the standard DocNADE framework:
- Bidirectional Context (iDocNADE): Inspired by bidirectional language models, the "Informed" (i) version calculates hidden representations using both the words appearing before and after a target word. This allows the model to capture the full global context of a document when learning topic distributions, effectively resolving semantic ambiguities.
- Distributional Priors (DocNADEe): To solve the data sparsity problem in short texts, the authors incorporate pre-trained word embeddings (e.g., GloVe) as a fixed prior. By adding these embeddings to the model's internal hidden layers, the model can leverage "common sense" semantic relationships (e.g., knowing "market" and "economy" are related) even if they do not frequently co-occur in the specific training corpus.
- Deep Variants: These concepts are extended into multi-layer deep architectures, such as iDeepDNEe, which combine the benefits of deep learning with bidirectional context and external knowledge.
To maintain computational efficiency, the models utilize a tree-softmax approach, keeping complexity at $O(HD)$, where $H$ is the hidden layer size and $D$ is the document length.
Experimental Evaluation
The authors conducted an extensive evaluation across 15 datasets from diverse domains:
- 8 Short-text datasets: Including 20NSshort, TREC6 (questions), R21578title, and various news title sets (TMNtitle, AGnewstitle).
- 7 Long-text datasets: Including the full 20NewsGroups, Reuters8, and RCV1V2.
Performance was measured using perplexity (generalization), information retrieval (IR) precision, and text classification F1-scores.
Key Results and Insights
The proposed models consistently outperformed state-of-the-art baselines across several metrics:
- Generalization: A 5.2% average gain in perplexity across all 15 datasets, indicating better predictive power for unseen text.
- Information Retrieval: An 11.1% improvement in precision (at a 0.02 retrieval fraction) compared to the standard DocNADE.
- Classification: A 5.2% gain in F1-score for text categorization tasks.
- Interpretability: Qualitative analysis showed that iDocNADEe produced the most coherent and human-readable topic word lists, particularly in specialized categories like "Religion" and "Science."
The bidirectional approach (iDocNADE) significantly lowers the "Negative Log-Likelihood" of words by resolving ambiguity through right-hand context. For short texts, the distributional prior acts as a semantic bridge, allowing the model to group related terms even without direct co-occurrence in the training data.
Conclusion
The introduction of bidirectional context and distributional priors represents a significant step forward for neural topic modeling. While highly effective, future work could explore integrating dynamic, contextualized embeddings (like BERT) and further optimizing the computational overhead of bidirectional processing. Additionally, the sensitivity of the mixture coefficient ($\lambda$) suggests that automated hyperparameter tuning could further enhance model robustness.
Summary updated