Abstract
Traditional topic models like Latent Dirichlet Allocation (LDA) often rely on the "bag of words" assumption, ignoring the structural dependencies between words. This paper presents the Extended Global Topic Random Field (EGTRF), which incorporates complex, non-linear word dependencies by extending relationships to distance-2 neighbors in a document-level dependency graph. By integrating external semantic similarity from word2vec, EGTRF demonstrates superior performance in topic discovery and predictive accuracy.
Introduction
The "bag of words" assumption treats documents as unordered collections of terms, assuming each word's topic is independent of its context. While models like the Global Topic Random Field (GTRF) introduced dependency trees to capture local word relationships, they were restricted to direct (distance-1) connections. This limitation overlooks deeper semantic and syntactic links that span across sentences or through intermediate words. The Extended Global Topic Random Field (EGTRF) addresses this by modeling broader dependencies and leveraging external linguistic knowledge.
Methodology
The EGTRF framework operates through a multi-step process designed to capture latent topical consistency across a document.
Graph Representation and Merging
Individual sentences are first processed into dependency trees. These trees are then merged into a unified document graph. This merging process is critical as it reveals "hidden" relations; words from different sentences may become distance-2 neighbors in the document graph, facilitating cross-sentence topical coherence.
Distance-2 Dependencies and Semantic Integration
Unlike its predecessors, EGTRF assumes a word's topic is influenced by both its direct neighbors and its neighbors-of-neighbors (distance-2). To further refine topic assignment, the model incorporates "confidence scores" derived from pre-trained word2vec embeddings. This allows the model to utilize "common sense" semantic relationships learned from massive external corpora, which is particularly beneficial for sparse or short documents.
Inference
Parameter estimation is performed via variational inference. The specific EGRF formulation is designed to avoid the intractable normalizing factors typically associated with random field models, ensuring computational feasibility.
Experimental Setup
The model was evaluated against LDA and GTRF using two benchmark datasets:
- 20 Newsgroups: ~13,700 documents with a vocabulary of 5,164 terms.
- NIPS Data: 843 research papers from the NIPS conference with a vocabulary of 6,098 terms.
Performance was measured using perplexity (lower is better) and log predictive probability (higher is better) across varying topic counts.
Results
The experimental results indicate that EGTRF consistently outperforms baseline models across both datasets.
As shown in the figures, EGTRF achieves lower perplexity and higher log predictive probability than both LDA and GTRF. The inclusion of word2vec similarity (EGTRF+s) yielded the best overall results, confirming that external semantic features significantly enhance topic modeling accuracy.
Conclusion
The Extended Global Topic Random Field successfully bridges the gap between simple bag-of-words models and complex structural dependencies. By extending dependencies to distance-2 and incorporating external semantic knowledge, the model achieves state-of-the-art performance on standard benchmarks. Future work may explore the integration of alternative word features or more complex graph structures within the EGRF architecture.
Summary updated