Understanding and Improving Morphological Learning in the Neural Machine Translation Decoder

Fahim Dalvi, Nadir Durrani, Hassan Sajjad, Yonatan Belinkov, Stephan Vogel

Introduction

Neural Machine Translation (NMT) has revolutionized the field, yet the internal workings of these models often remain a "black box." While research has shown that NMT encoders—the components that read source text—develop a sophisticated understanding of grammar and morphology, the decoders—the components that generate the target text—often lag behind. This discrepancy is particularly problematic when translating into morphologically rich languages like German or Czech, where precise word forms (gender, tense, case) are essential for fluency.

This paper investigates why decoders underperform in learning morphology and explores whether explicit supervision can "force" the decoder to improve its internal representations and, consequently, its translation quality.

Methodology

The researchers first employed a diagnostic analysis using a "probing classifier." By freezing a pre-trained NMT model and using the decoder's internal hidden states as features, they tested how well a simple classifier could predict morphological tags. This revealed that the decoder's knowledge was significantly lower than the encoder's.

To address this, the authors compared three distinct strategies for injecting morphological information into the training process:

  1. Joint Generation: The model is trained to output a single sequence where words are immediately followed by their corresponding morphological tags.
  2. Joint-data Learning: The model alternates between two separate tasks: translating a source sentence into words and "translating" it into a sequence of morphological tags.
  3. Multi-task Learning (MTL): The most advanced approach, where the decoder uses a shared internal representation but employs two separate output "heads." At each step, it simultaneously predicts the next word and its morphological tag.
Comparison of morphological injection strategies: Joint Generation, Joint-data learning, and Multi-task learning.

Key Results and Analysis

The experimental results demonstrated that the method of supervision matters significantly. Multi-task learning emerged as the superior approach, providing consistent improvements in translation quality across language pairs. In contrast, the Joint Generation approach (referred to as "Simultaneous Prediction" in performance charts) actually degraded performance, likely because doubling the sequence length made it harder for the model to learn long-range dependencies.

Performance gains in BLEU score across different language pairs and training methods.

Key findings include:

  • Translation Quality: Multi-task learning improved BLEU scores by 0.2 to 0.6 points.
  • Morphological Accuracy: Explicit supervision increased the decoder's internal morphological accuracy by approximately 3%.
  • Encoder-Decoder Synergy: The best diagnostic results were achieved by combining the decoder's state with the encoder's most "attended" state, suggesting the two components learn complementary information.

Discussion: The "Lazy" Decoder

A central insight of this research is the concept of the "lazy" decoder. The authors discovered that the decoder isn't inherently incapable of learning morphology; rather, it is efficient. Because the attention mechanism allows the decoder to rely on the encoder's rich representations as a "crutch," the decoder doesn't bother to store that information itself.

When the researchers trained a model without attention, the decoder's internal morphological knowledge actually increased. This confirms that the decoder only learns what is strictly necessary to minimize training loss. By using Multi-task learning, the researchers effectively removed this crutch, forcing the decoder to develop its own robust morphological representations.

Conclusion and Future Work

This study highlights that while NMT models are powerful, their internal components may not always learn optimal representations if they can rely on other parts of the network. Forcing the decoder to perform auxiliary morphological tasks significantly improves its performance in morphologically rich contexts.

Future research directions include adapting these techniques for subword-level units (like BPE), which are standard in modern NMT but present challenges for tag mapping. Additionally, exploring whether this "lazy decoder" phenomenon persists in self-attention-heavy Transformer architectures remains a key area for investigation.

Summary updated

BibTeX
@inproceedings{dalvi2017understanding,
  author = {Fahim Dalvi and Nadir Durrani and Hassan Sajjad and Yonatan Belinkov and Stephan Vogel},
  title = {{Understanding and Improving Morphological Learning in the Neural Machine Translation Decoder}},
  booktitle = {IJCNLP},
  year = {2017},
}
Figure