Abstract
Language modeling for morphologically rich languages (MRLs) is hindered by vocabulary explosion and data sparsity at the output layer. We propose stem-driven architectures that leverage unsupervised stemming to share semantic information across word variants. Our primary contribution, the MIX-WS model, utilizes a mixture-of-experts approach to decompose word probability into stem and conditional word probabilities. Experimental results on Hindi, Tamil, Kannada, and Finnish demonstrate dramatic improvements, with perplexity reductions of up to 50% over state-of-the-art baselines.
Introduction
Standard Recurrent Neural Network Language Models (RNNLMs) treat every unique word form as an independent token. In Morphologically Rich Languages (MRLs), where a single root (stem) can generate dozens of inflections, this leads to a massive vocabulary and a "long tail" of rare words. Consequently, models fail to generalize across related forms like "running" and "ran," resulting in poor probability estimations for infrequent variants. While subword information is commonly used in input embeddings, the output layer (softmax) remains a significant bottleneck.
Proposed Architectures
We introduce three architectures to integrate stem-awareness into the output layer, supported by an unsupervised, data-driven stemming algorithm that identifies frequent prefix/suffix patterns.
- MTL-S (Multi-Task Learning with Stems): Trains the model on primary word prediction and auxiliary stem prediction tasks simultaneously.
- MTL-S2W (Stem-to-Word): Employs a curriculum learning strategy, training on stems for initial epochs before transitioning to word prediction.
- MIX-WS (Mixture of Words and Stems): Decomposes the word probability $P(w_t) = P(w_t|s_t) \times P(s_t)$, where $s_t$ is the stem. This hierarchical approach allows the model to better distribute probability mass to rare words sharing common stems.
Experimental Setup and Results
The models were evaluated on four languages with varying degrees of morphological complexity: Hindi (Hi), Tamil (Ta), Kannada (Kn), and Finnish (Fi). Tamil and Kannada, in particular, exhibit high type-to-token ratios, indicating significant complexity.
The proposed models consistently outperformed standard baselines. The MIX-WS architecture emerged as the most effective, nearly halving perplexity in Kannada and Tamil. For instance, in Kannada, perplexity dropped from a baseline of 1403.19 to 764.76.
Key Insights
- The Output Bottleneck: Structural relationships inherent in MRLs are lost if the softmax layer treats every inflection as an independent class.
- Stemming as Abstraction: Control experiments with "fake" random stems resulted in performance degradation, confirming that the unsupervised algorithm captures genuine linguistic abstractions.
- Handling the Long Tail: Improvements were most pronounced for "diverse stems"—those with many different word forms—validating the model's ability to share information across morphological variants.
Conclusion and Future Work
Stem-driven output layers significantly enhance language modeling for MRLs. While our current work utilizes RNNLMs and a simple unsupervised segmenter, future research will explore applying these techniques to Transformer-based architectures and integrating more sophisticated morphological analyzers. Scaling these methods to larger, web-scale corpora also remains a priority.
Summary updated