Modeling Target-Side Morphology in Neural Machine Translation: A Comparison of Strategies

Marion Weller-Di Marco, Matthias Huck, Alexander FraserarXiv 2022

Abstract

Morphologically rich languages pose difficulties to machine translation. Machine translation engines that rely on statistical learning from parallel training data, such as state-of-the-art neural systems, face challenges especially with rich morphology on the output language side. Key challenges of rich target-side morphology in data-driven machine translation include: (1) A large amount of differently inflected word surface forms entails a larger vocabulary and thus data sparsity. (2) Some inflected forms of infrequent terms typically do not appear in the training corpus, which makes closed-vocabulary systems unable to generate these unobserved variants. (3) Linguistic agreement requires the system to correctly match the grammatical categories between inflected word forms in the output sentence, both in terms of target-side morpho-syntactic wellformedness and semantic adequacy with respect to the input. In this paper, we re-investigate two target-side linguistic processing techniques: a lemma-tag strategy and a linguistically informed word segmentation strategy. Our experiments are conducted on a English-German translation task under three training corpus conditions of different magnitudes. We find that a stronger Transformer baseline leaves less room for improvement than a shallow-RNN encoder-decoder model when translating in-domain. However, we find that linguistic modeling of target-side morphology does benefit the Transformer model when the same system is applied to out-of-domain input text. We also successfully apply our approach to English to Czech translation.

Introduction

Translating into morphologically rich languages (MRLs) like German or Czech is a notorious challenge for Neural Machine Translation (NMT). In these languages, a single concept can manifest in dozens of surface forms depending on case, gender, number, and tense. While standard NMT systems use Byte Pair Encoding (BPE) to manage vocabulary, BPE is "linguistically blind." It often splits words at arbitrary points, failing to recognize shared roots between different inflections. This results in data sparsity, an inability to generate unseen word forms, and frequent grammatical agreement errors.

Methodology: Beyond Frequency-Based Segmentation

This research compares two distinct strategies for handling target-side morphology against a standard BPE baseline:

1. The Lemma-Tag Strategy (Knowledge-Rich)

This approach replaces surface words with a pair consisting of a lemma and a detailed morphological tag. During training, the NMT model learns to predict these pairs. At inference, a dedicated morphological generator (e.g., SMOR for German) reconstructs the correct surface form from the predicted lemma and tag. This allows the system to generate valid word forms it may have never encountered in the training data, provided it has seen the lemma and the required tag separately.

Example of the Lemma-Tag strategy for German, showing the mapping between morphological tags, lemmas, and inflected forms.

2. Linguistically Informed Word Segmentation (Knowledge-Poor)

This strategy uses a cascaded pipeline: a modified stemmer detaches suffixes, followed by an empirical compound splitter, and finally BPE on the remaining segments. It requires fewer resources than the lemma-tag approach but provides more morphological structure than raw BPE.

Experimental Results

The strategies were evaluated on English-to-German and English-to-Czech translation tasks using both Transformer and shallow RNN architectures across various data scales.

Domain Generalization and Robustness

A key finding is the "masking" effect of the Transformer in-domain. For news text, the Transformer's powerful context modeling makes the benefits of explicit morphology marginal. However, the advantages become clear in out-of-domain scenarios. In medical translation (HimL dataset), the Lemma-Tag approach consistently outperformed the baseline, even with large training sets. It proved more robust when encountering unfamiliar vocabulary, avoiding the nonsensical splits common in BPE-based systems.

Low-Resource Performance

The benefits are most pronounced in low-resource settings. On a small English-to-Czech task, the Lemma-Tag strategy achieved a significant gain of +3.6 BLEU points over the BPE baseline. This highlights the value of systematic morphological generation when training data is scarce.

Conclusion

While modern Transformer models are highly capable, explicit morphological modeling remains critical for translating into MRLs, particularly for low-resource languages and out-of-domain generalization. The Lemma-Tag strategy, though more complex to implement, offers a systematic way to handle the vast variety of word forms in languages like German and Czech, ensuring better grammatical consistency and lexical coverage.

Summary updated

BibTeX
@misc{marco2022modeling,
  author = {Marion Weller-Di Marco and Matthias Huck and Alexander Fraser},
  title = {{Modeling Target-Side Morphology in Neural Machine Translation: A Comparison of Strategies}},
  year = {2022},
  eprint = {2203.13550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13550},
}
Figure