Compositional Representation of Morphologically-Rich Input for Neural Machine Translation

Duygu Ataman, Marcello FedericoACL 2018

Abstract

Neural Machine Translation (NMT) systems typically rely on fixed-size vocabularies, which poses a significant challenge for morphologically-rich languages (MRLs) where a single root can produce thousands of word forms. While Byte-Pair Encoding (BPE) is a common statistical workaround, it often fails to capture meaningful linguistic units. This paper introduces a compositional NMT architecture that replaces standard embedding lookups with a bi-directional RNN layer that constructs word representations from character trigrams. Evaluated on five diverse language pairs in low-resource settings, the proposed model consistently outperforms BPE-based baselines, achieving gains of up to 2.48 BLEU points.

Introduction

The "out-of-vocabulary" (OOV) problem is a persistent bottleneck in NMT. In languages like Turkish or Czech, the high degree of inflection means that even large training corpora cannot cover all possible word forms. Standard approaches like BPE segment words into frequent sub-word units based on statistical frequency. However, BPE is linguistically agnostic; it may split a word in a way that destroys its semantic or syntactic integrity, leading to a loss of information necessary for accurate translation.

To address this, the authors propose a "compositional" approach. Instead of treating sub-words as independent tokens, the model learns to compose word-level vectors from finer-grained character n-grams. This allows the model to generalize to unseen word forms by leveraging the shared sub-structures (morphemes) it has encountered during training.

Methods: The Compositional Architecture

The core innovation is the replacement of the standard word embedding layer with a dedicated composition layer based on a bi-directional Recurrent Neural Network (bi-RNN) using Gated Recurrent Units (GRUs).

Architecture of the Compositional NMT model using character trigrams and bi-directional GRUs.

As shown in Figure 1, the process follows four main steps:

  1. Input Granularity: Words are decomposed into overlapping character trigrams (e.g., "tornai" becomes ^to, tor, orn, rna, nai, ai$). This provides a balance between the ambiguity of single characters and the rigidity of full words.
  2. Bi-directional GRU Layer: These trigrams are fed into the bi-RNN. The forward pass captures prefix and root information, while the backward pass captures suffix information.
  3. Vector Composition: The final hidden states from both directions are concatenated and transformed into a single vector representing the entire word.
  4. End-to-End Training: Unlike BPE, which is a static pre-processing step, the composition layer is trained jointly with the NMT model. This ensures that the generated word representations are specifically optimized for the translation task.

Experimental Setup

The researchers evaluated the model on five language pairs, all translating into English, using the TED Talks corpora (WIT³) and IWSLT evaluation sets. The languages were chosen to represent different morphological typologies:

  • Turkish (Tr-En): Highly agglutinative and complex.
  • Arabic (Ar-En): Templatic morphology.
  • Czech (Cs-En): Both fusional and agglutinative.
  • German (De-En): Fusional with medium complexity.
  • Italian (It-En): Fusional with lower complexity.

Results and Discussion

The compositional approach demonstrated superior performance across all tested languages. The most significant improvements occurred when the model used character trigrams to compose representations for full words.

BLEU score comparison between simple and compositional models across various language pairs.

As detailed in Figure 5, the compositional model achieved BLEU score increases ranging from 1.71 to 2.48 points over the BPE-based NMT baseline. Notably, the gains were highest for Italian (+2.48) and Czech (+2.32).

Qualitative analysis revealed that the compositional model is better at capturing syntactic agreement. In Italian, for instance, the model more accurately identified shared subjects between verbs by correctly processing their suffixes. In Turkish, it handled complex predicates and genitive cases that the baseline model often failed to translate correctly.

Conclusion

This research demonstrates that moving away from fixed sub-word vocabularies toward learned compositional representations can significantly improve NMT for morphologically-rich languages. By using character trigrams and a bi-directional RNN, the model effectively "discovers" the underlying morphology of the source language through the bilingual context of the training data.

While the approach is computationally more expensive than simple embedding lookups—due to the need to run an RNN for every input word—the gains in translation quality are substantial. Future work will focus on optimizing the composition layer for speed and exploring its application on the target (output) side of the translation pipeline.

Summary updated

BibTeX
@inproceedings{ataman2018compositional,
  author = {Duygu Ataman and Marcello Federico},
  title = {{Compositional Representation of Morphologically-Rich Input for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-2049},
}
Figure