Pamela Shapiro and Kevin Duh
Proceedings of the Second Workshop on Subword/Character LEvel Models (SCLeM) at NAACL-HLT 2018
Abstract
Neural machine translation (NMT) has achieved impressive results in recent years, but its success is often contingent on the availability of large-scale parallel corpora. In low-resource settings, NMT performance degrades significantly. One strategy to mitigate this is initializing models with pretrained word embeddings. However, in morphologically rich languages like Arabic, rare word forms suffer from poor embedding quality when trained with standard word-level objectives. This paper introduces word embeddings that incorporate explicit morphological resources and compares them to purely unsupervised alternatives. Using Arabic-to-English translation on a small corpus of TED subtitles, the study finds that embeddings utilizing subword and morphological information consistently outperform standard word embeddings in both word similarity tasks and as initialization for NMT systems.
Introduction
Neural Machine Translation (NMT) is currently the state-of-the-art approach for automated translation. However, NMT models are notoriously data-hungry, requiring millions of parallel sentences to generalize effectively. When data is scarce—a "low-resource" scenario—models struggle to learn accurate representations for infrequent words.
This problem is exacerbated in morphologically rich languages (MRLs) such as Arabic. In Arabic, a single root can generate dozens of surface forms through complex prefixes, suffixes, and internal changes (templatic morphology). Standard models like word2vec treat each unique surface string as an independent entity. Consequently, rare morphological variants of common words suffer from "data sparsity," resulting in low-quality embeddings that hinder the model's ability to translate effectively. This research explores whether injecting morphological knowledge directly into the embedding process can bridge this gap.
Methodology
The researchers compared three distinct approaches to generating word embeddings to determine which best captures the nuances of Arabic morphology:
- word2vec (Baseline): A standard skip-gram model that treats words as atomic units, ignoring internal structure.
- fastText (Unsupervised Subword): An approach that represents words as a "bag of character n-grams." This allows the model to capture subword patterns (e.g., prefixes and suffixes) without requiring external linguistic tools.
- Morph (Proposed): A linguistically informed model that modifies the skip-gram objective. It utilizes both the surface word form and its lemma (the dictionary base form) to predict context. The authors used the MADAMIRA morphological analyzer to extract these lemmas. The final "Morph" embedding is a concatenation of the word vector and the lemma vector.
These embeddings were evaluated through two primary lenses: an intrinsic word similarity task (Arabic WordSim353) to measure semantic capture, and an extrinsic NMT task (Arabic-to-English) to measure translation utility. In the NMT experiments, the embeddings were used to initialize the source-side encoder, testing both "fixed" (frozen) and "unfixed" (trainable) configurations.
Experimental Setup
- Monolingual Data: Pretraining was conducted on Arabic Wikipedia (~80 million tokens).
- Parallel Data: The NMT system was trained on a small corpus of TED Talk subtitles containing approximately 175,000 sentences (2.9 million tokens), representing a typical low-resource environment.
- NMT Architecture: A standard attentional encoder-decoder model.
Results and Analysis
Intrinsic Evaluation: Word Similarity
The "Morph" model, specifically the lemma-based component, achieved the highest performance on the WordSim353 task with a Spearman correlation of 0.60. This outperformed both fastText (0.55) and the word2vec baseline (0.52). This suggests that explicit lemmatization is superior at capturing the core semantic meaning of words, particularly when dealing with "broken plurals" where internal word structures change significantly.
Extrinsic Evaluation: Translation Performance
In the translation task, all subword-aware methods outperformed the baseline and the standard Byte Pair Encoding (BPE) approach:
- Baseline (Random Init): 26.55 BLEU
- BPE: 27.80 BLEU
- Morph (Proposed): 28.76 BLEU
- fastText (Unfixed): 29.10 BLEU
While the Morph model excelled in semantic similarity, fastText achieved the highest BLEU score. This indicates that while lemmas capture meaning, character n-grams may be more effective at capturing functional or syntactic nuances—such as case endings or conjunctions—that are critical for fluent translation.
Key Insights
- BPE vs. Pretrained Embeddings: In this low-resource Arabic setup, initializing the model with subword-aware embeddings (fastText or Morph) proved more effective than the standard BPE approach.
- Handling Sparsity: The gains from subword information were most pronounced when the authors isolated sentences containing rare morphological variants. This confirms that the primary value of these methods lies in their ability to handle the "long tail" of the vocabulary.
- Linguistic vs. Statistical: Explicit linguistic resources (lemmas) provide the best semantic grounding, but statistical subword models (fastText) offer a robust fallback for words not covered by morphological analyzers.
Conclusion
Incorporating morphological information into word embeddings significantly improves NMT performance in low-resource settings for languages like Arabic. While explicit lemmatization provides the strongest semantic representations, unsupervised subword models like fastText offer highly competitive translation results due to their ability to capture syntactic patterns and their universal coverage. Future work may involve hybrid models that combine the semantic precision of lemmas with the broad coverage of character n-grams.
Summary updated