Abstract
Standard Neural Machine Translation (NMT) often struggles with morphologically rich languages where words can take numerous forms. This paper proposes a two-step pipeline that first generates a sequence of lemmas and morphological tags, followed by a deterministic generator to produce the final word forms. This approach addresses data sparsity and improves generalization in languages like Czech and German, yielding significant improvements in BLEU scores and human preference.
Introduction
Most NMT systems utilize Byte-Pair Encoding (BPE) to manage vocabulary size. While effective for handling rare words by breaking them into subword units, BPE is linguistically agnostic. It fails to recognize that different inflections of a word (e.g., "ran," "runs," "running") share a common semantic root. In morphologically rich languages, this leads to three major issues: data sparsity, a lack of explicit signals for grammatical agreement (gender, case, tense), and an inability to generate unseen but linguistically correct word forms.
Methods
The proposed method employs a two-step approach to integrate linguistic structure into neural models:
- Interleaved NMT Step: The NMT system is trained to output a sequence where each word is replaced by its lemma followed by a morphological tag (e.g.,
see+V-3P-Pres-Ind). This simplifies the vocabulary by focusing on semantic anchors while explicitly modeling syntax through tags. - Deterministic Generation Step: A rule-based morphological generator (such as MorphoDiTa for Czech or SMOR for German) converts the (lemma, tag) pairs into correct surface forms.
For German, the pipeline includes compound splitting to handle productive word formation, breaking long nouns into components during training and reassembling them post-generation.
Datasets
The system was evaluated on English–Czech and English–German language pairs using the IWSLT (TED talks) dataset and larger corpora like CzEng 1.0. The experiments scaled from small datasets of ~114k sentences to larger sets of up to 2 million sentences.
Key Results and Insights
The "morphgen" system demonstrated significant gains across several metrics:
- Czech Improvements: BLEU scores increased by 1.68 points on small datasets. At 500k sentences, the improvement peaked at 3.09 BLEU points, maintaining a 2.27-point lead even at 2 million sentences.
- Generalization: The model successfully generated word forms never seen during training, provided it knew the lemma and the tag.
- Human Evaluation: In blind tests, humans preferred the "morphgen" output in 48 out of 70 cases where differences were observed.
- The Importance of Lemmatization: A control experiment adding tags to surface words without lemmatization performed worse than the baseline, proving that the benefit stems from the generalization provided by lemmas acting as "semantic anchors."
Conclusion
While the system provides substantial quality improvements, it introduces dependencies on external morphological tools and increases sequence length, which impacts training and inference time. However, the ability to explicitly model grammatical agreement and generate novel word forms makes it a powerful approach for translating into morphologically complex languages. Future work may explore optimized segmentation and training objectives to further refine the relationship between lemmas and tags.
Summary updated