Abstract
Standard neural language models often struggle to predict rare words, a challenge amplified in morphologically rich languages (MRLs) characterized by large, sparse vocabularies. While character-aware architectures have improved input representations, the output layer—responsible for word-level prediction—remains a significant bottleneck. This paper introduces Attract-Preserve (AP) fine-tuning, a novel unsupervised method that injects character-level subword information into the model's output word embeddings. By aligning the embeddings of words with similar subword structures, the model effectively "borrows" semantic strength for rare tokens. Evaluated across a new 50-language benchmark, this approach yields substantial perplexity reductions, particularly for complex agglutinative languages like Korean, Finnish, and Turkish.
The Bottleneck in Morphologically Rich Languages
In standard neural language modeling (LM), the model predicts the next word from a fixed vocabulary. Each word is represented by a unique embedding vector learned during training. This architecture creates a fundamental problem for rare words: because they appear infrequently, their associated parameters are poorly optimized.
This issue is catastrophic for Morphologically Rich Languages (MRLs) such as Finnish or Turkish. These languages are highly agglutinative, frequently stacking prefixes and suffixes to form complex words. This results in a high "type-to-token ratio," where a large portion of the vocabulary consists of rare, unique words. While recent "character-aware" models (like the Char-CNN-LSTM) address this on the input side by building representations from characters, the output prediction layer still typically relies on a massive, independent word-level matrix that fails to capture these morphological relationships.
Methodology: Attract-Preserve Fine-Tuning
The authors propose building upon the Char-CNN-LSTM architecture by adding an unsupervised post-processing step called Attract-Preserve (AP) fine-tuning.
The process consists of two primary components:
- Subword Feature Extraction: The CNN layer in the model is designed to recognize character n-grams. These often correspond to meaningful linguistic units like morphemes or roots. This creates a character-aware vector space where words with similar internal structures are naturally grouped.
- Fine-Tuning Mechanism: After each training epoch, the model updates its output word embedding matrix ($M^w$) using two objectives:
- Attract: The model identifies "positive pairs"—words sharing similar subword features according to the CNN—and pulls their output embeddings closer together. Conversely, "negative pairs" (randomly sampled words) are pushed apart.
- Preserve: A regularization term prevents these vectors from drifting too far from the semantic representations learned from their original contextual training.
By enforcing these constraints, rare words can inherit semantic information from more frequent words that share the same root or suffix, significantly improving the quality of the output matrix.
Experimental Setup and Datasets
To evaluate the global efficacy of AP fine-tuning, the authors curated a massive new multilingual benchmark:
- 50-Language Benchmark: Derived from Polyglot Wikipedia and standard Wikipedia dumps, this dataset covers 50 typologically diverse languages, including isolating, fusional, and agglutinative types.
- Multilingual Wikipedia Corpus (MWC) & Europarl: These larger corpora were used to verify that improvements hold across different domains and data scales.
The study found a strong correlation between a language's type-to-token ratio and the difficulty of the LM task. Languages with higher ratios (more unique words) showed the most significant performance degradation in standard models, making them the primary beneficiaries of the AP method.
Key Results
The AP fine-tuning method demonstrated broad and significant success:
- Global Improvement: The method outperformed the strong Char-CNN-LSTM baseline in 47 out of 50 languages.
- Massive Gains for MRLs: The most dramatic improvements occurred in agglutinative and introflexive languages. Perplexity dropped by 957 points in Korean, 378 points in Finnish, and 144 points in Hebrew.
- High-Resource Benefits: Even morphologically simpler languages like English saw a perplexity improvement of 22 points.
- Scalability: Results on the larger MWC dataset confirmed that these gains are not limited to small-data scenarios but are a function of the language's inherent morphological complexity.
Conclusion and Future Directions
The research highlights that the output layer is the primary bottleneck for language modeling in MRLs. By leveraging morphology as a "cheat code" for rare words, AP fine-tuning allows models to respect linguistic realities that standard word-level models ignore.
While the current approach operates within a closed vocabulary, future work aims to extend this framework to true open-vocabulary prediction, enabling the model to generate entirely unseen words at test time. Additionally, incorporating non-contextual evidence could further refine the semantic representations of the most infrequent tokens in the vocabulary.
Summary updated