An Analysis of Attention Mechanisms: The Case of Word Sense Disambiguation in Neural Machine Translation

By Gongbo Tang, Rico Sennrich, Joakim Nivre. 2018

89 citations recorded by the source corpus.

Recent work has shown that the encoder-decoder attention mechanisms in neural machine translation (NMT) are different from the word alignment in statistical machine translation. In this paper, we focus on analyzing encoder-decoder attention mechanisms, in the case of word sense disambiguation (WSD) in NMT models. We hypothesize that attention mechanisms pay more attention to context tokens when translating ambiguous words. We explore the attention distribution patterns when translating ambiguous nouns. Counterintuitively, we find that attention mechanisms are likely to distribute more attention to the ambiguous noun itself rather than context tokens, in comparison to other nouns. We conclude that attention is not the main mechanism used by NMT models to incorporate contextual information for WSD. The experimental results suggest that NMT models learn to encode contextual information necessary for WSD in the encoder hidden states. For the attention mechanism in Transformer models, we reveal that the first few layers gradually learn to “align” source and target tokens and the last few layers learn to extract features from the related but unaligned context tokens.

Subfields: Artificial Intelligence, Information Systems

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Felix Stahlberg
  2. Zheng Zhang
  3. Jianfeng Gao
  4. Yue Cao
  5. Han Hu
  6. Philipp Koehn
  7. Jifeng Dai
  8. Xizhou Zhu

In Information Systems

  1. Axel-Cyrille Ngonga Ngomo
  2. Marta Ruiz Costa-jussà
  3. Roger Wattenhofer
  4. Philipp Koehn
  5. Kees van Deemter
  6. Hainan Xu
  7. Zheng Zhang
  8. Massimiliano Ciaramita

Citations in the corpus