Skip to main content
QUICK REVIEW

[Paper Review] Hard but Robust, Easy but Sensitive: How Encoder and Decoder Perform in Neural Machine Translation

Tianyu He, Xu Tan|arXiv (Cornell University)|Aug 17, 2019
Natural Language Processing TechniquesComputer Science33 references8 citations
TL;DR

This paper investigates the distinct roles of encoder and decoder in Transformer-based neural machine translation through empirical analysis. It finds that the decoder handles an easier task than the encoder, converges faster, and is more sensitive to input noise—primarily because preceding tokens provide strong conditional context. These insights reveal inherent asymmetries in the encoder-decoder framework and inform future model design for improved robustness and efficiency.

ABSTRACT

Neural machine translation (NMT) typically adopts the encoder-decoder framework. A good understanding of the characteristics and functionalities of the encoder and decoder can help to explain the pros and cons of the framework, and design better models for NMT. In this work, we conduct an empirical study on the encoder and the decoder in NMT, taking Transformer as an example. We find that 1) the decoder handles an easier task than the encoder in NMT, 2) the decoder is more sensitive to the input noise than the encoder, and 3) the preceding words/tokens in the decoder provide strong conditional information, which accounts for the two observations above. We hope those observations can shed light on the characteristics of the encoder and decoder and inspire future research on NMT.

Motivation & Objective

  • To understand the functional and performance differences between encoder and decoder in neural machine translation.
  • To investigate why the decoder appears easier to train yet more sensitive to noise than the encoder.
  • To analyze the role of autoregressive conditioning in shaping the behavior of the decoder.
  • To provide empirical evidence for asymmetries in the encoder-decoder framework that can guide future NMT model improvements.

Proposed method

  • Empirically compare training effort by varying the number of layers in the encoder and decoder separately on IWSLT14 and other translation tasks.
  • Measure convergence speed by fine-tuning one component (encoder or decoder) while keeping the other fixed.
  • Introduce controlled input noise (random dropping, noising, swapping) to assess sensitivity of encoder and decoder to input perturbations.
  • Compare autoregressive and non-autoregressive NMT models to isolate the impact of previous token conditioning on model behavior.
  • Analyze the influence of different POS types on model sensitivity by selectively dropping tokens of specific parts of speech.
  • Use BLEU score as the primary metric to evaluate model performance under various perturbations and configurations.

Experimental results

Research questions

  • RQ1Why does the decoder converge faster and achieve better gains with additional layers compared to the encoder?
  • RQ2Why is the decoder more sensitive to input noise than the encoder?
  • RQ3How does the presence of preceding tokens in the decoder’s autoregressive generation process affect its performance and robustness?
  • RQ4To what extent do different parts of speech influence the sensitivity of the encoder and decoder to input perturbations?

Key findings

  • The decoder handles an easier task than the encoder, as adding more layers yields larger BLEU improvements in the decoder than in the encoder.
  • The decoder converges faster than the encoder when fine-tuned with fixed parameters, indicating lower training difficulty.
  • The decoder is significantly more sensitive to input noise—adding noise to decoder input causes larger BLEU score drops than noise in the encoder input.
  • The strong conditional information from preceding tokens in the decoder explains both its easier training and higher sensitivity to input perturbations.
  • The decoder is most sensitive to the end-of-sentence (EOS) token, while the encoder is most sensitive to nouns and adjectives.
  • Non-autoregressive models show significantly lower performance than autoregressive models, confirming the critical role of autoregressive conditioning in model robustness and accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.