Abstract
Traditional n-gram language models are effective at capturing local word dependencies but often fail to account for the broader thematic context of a document. This paper introduces the Topic Mixture Language Model (TMLM), an approach that extends Probabilistic Latent Semantic Analysis (PLSA) to higher-order n-gram models. By utilizing latent topic information to weight n-gram counts during training and employing an incremental Bayesian approach for topic prediction during decoding, TMLM achieves significant reductions in perplexity. Experimental results on the LDC English Gigaword corpus demonstrate that TMLM outperforms both standard n-gram baselines and existing PLSA-based interpolation methods, even with a limited number of topics.
Introduction
Language modeling is a critical component of speech recognition and text prediction systems. While n-gram models excel at local patterns, they lack "topic awareness." Previous attempts to integrate topic modeling, specifically PLSA, typically resulted in unigram-based mixture models that required interpolation with large, general-purpose n-gram models. This reliance on massive baseline models is computationally expensive. The TMLM approach seeks to embed topic context directly into the n-gram training process, creating specialized models for latent themes without the need for heavy external interpolation.
Methodology
The TMLM framework is built upon three core pillars:
- Higher-Order Mixture Components: Instead of simple unigram distributions, TMLM uses the "soft classification" of documents—the probability that a document belongs to a specific topic—to weight n-gram counts. This allows for the calculation of parameters based on "discounted average counts," focusing training data on the most relevant units for each topic.
- Topic Decomposition (TD): The Expectation-Maximization (EM) algorithm is employed to decompose the training corpus into $t$ latent topics.
- Incremental Bayesian Topic Prediction: To adapt to new documents during decoding, the model predicts topic distributions on the fly. The authors found that an incremental approach—updating topic weights word-by-word—significantly improves prediction accuracy compared to batch updates.
Experimental Setup
The model was evaluated using the New York Times portion of the LDC English Gigaword corpus (LDC2005T12).
- Training Set: 67.8 million words (77,212 documents).
- Test Set: 1,000 randomly selected documents.
- Vocabulary: 135,956 words for topic decomposition; the top 60,000 words for the language model.
Results and Discussion
The performance of TMLM was measured using perplexity, where lower values indicate better predictive performance.
Comparison with Baselines
TMLM showed a consistent advantage over standard n-gram models. As shown in the table below, TMLM achieved approximately a 15% reduction in perplexity for 3-gram models compared to the baseline.
Comparison with Existing Adaptation Methods
When compared to standard PLSA interpolation (Baseline+PLSA), TMLM provided an additional 10% reduction in perplexity. A key finding was the efficiency of the TMLM approach: a TMLM configuration with only 4 topics outperformed a Baseline+PLSA model using 20 topics.
Conclusion
The Topic Mixture Language Model offers a robust method for incorporating global context into local n-gram predictions. By moving beyond simple interpolation and utilizing incremental Bayesian updates, the model achieves superior performance with fewer parameters. Future research will focus on scaling the approach to larger vocabularies and exploring optimal topic counts across diverse text genres.
Summary updated