Abstract
Traditional n-gram language models are constrained by a rigid left-to-right processing order, leading to issues with data sparseness and an inability to capture non-contiguous linguistic dependencies. We present a generalized framework for Hierarchical Word Sequence (HWS) language models. By employing unsupervised permutation functions based on word frequency or statistical association, sentences are restructured into hierarchical trees. This approach allows the model to capture long-distance relationships while significantly improving sequence coverage. Our results demonstrate that HWS models outperform standard n-grams in both intrinsic coverage and extrinsic Machine Translation tasks.
1. Introduction
Standard language models typically rely on the n-gram assumption, where the probability of a word is conditioned solely on the preceding $n-1$ words. While computationally efficient, this linear approach suffers from two primary limitations:
- Data Sparseness: Even with massive datasets, many valid word combinations (like specific trigrams) never appear in the training data, making probability estimation difficult.
- Structural Rigidity: Language is inherently hierarchical. Important dependencies often skip over "filler" words. For instance, in the phrase "as soon as," the second "as" is linguistically tied to the first, yet a standard trigram model forces a dependency on the intervening word "soon."
2. The Hierarchical Word Sequence Framework
To address these flaws, we propose the Generalized Hierarchical Word Sequence Structure (GHWSS). This framework moves beyond linear sequences by using a permutation function to determine the processing order of words, effectively building a dependency tree.
We explore two unsupervised strategies for sentence rearrangement:
- Word Frequency Based: Sentences are recursively split by the most frequent words (e.g., "the", "is"), which act as anchors or roots in the hierarchy.
- Word Association Based: Splitting is determined by the T-score, a statistical measure of contextual association, grouping words that naturally belong together.
In this framework, n-grams are trained along the paths of the resulting tree. Notably, the traditional linear n-gram model is a special case of this framework where the permutation function is the identity function.
3. Experimental Setup
The framework was evaluated using the British National Corpus (100M words) for general training and the English Gigaword Corpus (20M words) for testing. Extrinsic evaluation was performed on a French-to-English Machine Translation task using the TED Talk Parallel Corpus (~140,000 sentence pairs).
4. Results and Analysis
The HWS models demonstrated significant improvements in both intrinsic and extrinsic metrics.
4.1 Intrinsic Coverage
HWS models showed substantially higher coverage scores compared to standard n-grams. For trigrams, HWS methods improved the model's ability to recognize sequences in unseen test data by approximately 25%, proving they effectively combat the data sparseness problem.
4.2 Machine Translation Performance
When used to rerank outputs for a French-to-English translation system, HWS models—particularly the T-score association variant—consistently outperformed standard trigrams across all major metrics.
As shown in the table, the tscore-based-tri model achieved a BLEU score of 31.7 (up from 31.3) and improved both METEOR and TER metrics, confirming the practical utility of the hierarchical approach.
5. Conclusion
The HWS framework provides a robust, unsupervised method for capturing discontinuous linguistic patterns. By embracing the non-linear nature of language, it mitigates data sparseness and improves performance in downstream tasks like Machine Translation. Future work will explore the application of these hierarchical sequences as features in broader machine learning contexts and refine the computational efficiency of the recursive splitting process.
Summary updated