Abstract
This paper explores the application of Random Forests (RFs) to statistical language modeling, addressing the historical limitations of single decision trees. By aggregating randomized trees with Kneser-Ney smoothing, the authors demonstrate a 10% reduction in perplexity and improved word error rates in speech recognition tasks. The primary advantage of the RF approach lies in its superior ability to generalize to unseen word sequences through randomized history clustering.
Introduction: Beyond the $n$-gram
In the early 2000s, the "gold standard" for language modeling was the $n$-gram model. While effective, $n$-grams suffer from the curse of dimensionality and data sparseness, as most possible word sequences never appear in training data. Previous attempts to use Decision Trees (DTs) to cluster similar histories into equivalence classes often failed to outperform $n$-grams due to overfitting and data fragmentation—where leaf nodes contain too little data for reliable prediction.
Methodology: Building the Forest
The authors propose a Random Forest (RF) approach to language modeling, growing a collection of DTs with injected randomness to improve robustness and generalization.
- Randomized DT Growing: Randomness is introduced via feature subsampling (considering a random subset of history positions at each split) and random initialization of the clustering algorithm.
- Kneser-Ney (KN) Smoothing: State-of-the-art KN smoothing is integrated directly into the tree pruning and probability estimation process.
- Aggregation: The final word probability is an average of the probabilities from all 100 trees in the forest. This "collective wisdom" allows the model to generalize significantly better than any single tree.
Experimental Results and Convergence
The model was evaluated on the UPenn Treebank (Wall Street Journal corpus) for perplexity and the WSJ DARPA’93 HUB1 for speech recognition. The RF-trigram reduced test data perplexity from 145.0 (standard KN-trigram) to 129.7, representing a 10.6% improvement.
As shown in the figure above, performance improves sharply with the first 10–20 trees and then tapers off, indicating that a modest forest provides most of the gain. This ensemble stability allows the RF to remain robust where a single DT would overfit.
Generalization to Unseen Events
A key insight of this work is how RFs handle "unseen" events. In a standard $n$-gram model, over half of the test events were unseen in the training data. The RF model drastically reduces this proportion.
Because each tree clusters history differently, it is highly likely that at least one tree in the forest has encountered a similar history before. This effectively "smooths" the data, allowing the RF to assign more accurate probabilities to rare or novel sequences.
Impact on Speech Recognition
In practical Automatic Speech Recognition (ASR) tasks, the RF model achieved an absolute reduction in Word Error Rate (WER) of up to 1.1% compared to the baseline. For a model trained on 20 million words, the WER dropped from 14.0% to 12.9%. Furthermore, the authors found that interpolating a standard $n$-gram with an RF model provided little extra benefit, suggesting the RF approach directly improves the underlying probability estimates.
Conclusion and Future Work
While computationally more expensive than building standard $n$-gram tables, Random Forests offer a powerful framework for language modeling. Future work may involve extending this to higher-order models (4-grams or 5-grams) and integrating complex syntactic features, which decision trees are uniquely suited to handle via their flexible splitting criteria.
Summary updated