An Analysis of Attention Mechanisms: The Case of Word Sense Disambiguation in Neural Machine Translation
Not on the map. Why?
Abstract (arXiv)
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. Counter-intuitively, 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 mechanism 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.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Oct 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 4; 2024: 2; 2025: 2; 2026: 1.
15 papers.
Sort:
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2023AlignAtt: Using Attention-based Audio-Translation Alignments as a Guide for Simultaneous Speech Translationcited by 35
- 2022Attention as a Guide for Simultaneous Speech Translationcited by 32
- 2022Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translationcited by 28
- 2024StreamAtt: Direct Streaming Speech-to-Text Translation with Attention-based Audio History Selectioncited by 19
- 2021Inspecting the concept knowledge graph encoded by modern language modelscited by 15
- 2023Compositional Zero-Shot Domain Transfer with Text-to-Text Modelscited by 6
- 2023Code-Switching with Word Senses for Pretraining in Neural Machine Translationcited by 4
- 2021Building on Huang et al. GlossBERT for Word Sense Disambiguationcited by 2
- 2024SBAAM! Eliminating Transcript Dependency in Automatic Subtitlingcited by 1
- 2025Cross-Attention is Half Explanation in Speech-to-Text Modelscited by 1
- 2021An empirical analysis of phrase-based and neural machine translationcited by 0
3 more
- 2023Learning Homographic Disambiguation Representation for Neural Machine Translationcited by 0
- 2025Multi Class Parkinson Disease Detection Based on Finger Tapping Using Attention Enhanced CNN BiLSTMcited by 0
- 2026Systematic Analysis of Large Language Models and Transformer-Based Machine Translation for English-Tamil and Tamil-English Across Diverse Datasetscited by 0
- 2026Systematic Analysis of Large Language Models and Transformer-Based Machine Translation for English-Tamil and Tamil-English Across Diverse Datasets27 Jul 2026
- 2025Multi Class Parkinson Disease Detection Based on Finger Tapping Using Attention Enhanced CNN BiLSTM11 Oct 2025
- 2025Cross-Attention is Half Explanation in Speech-to-Text Models22 Sep 2025
- 2024StreamAtt: Direct Streaming Speech-to-Text Translation with Attention-based Audio History Selection10 Jun 2024
- 2024SBAAM! Eliminating Transcript Dependency in Automatic Subtitling17 May 2024
- 2023Code-Switching with Word Senses for Pretraining in Neural Machine Translation21 Oct 2023
- 2023AlignAtt: Using Attention-based Audio-Translation Alignments as a Guide for Simultaneous Speech Translation19 May 2023
- 2023Learning Homographic Disambiguation Representation for Neural Machine Translation12 Apr 2023
- 2023Compositional Zero-Shot Domain Transfer with Text-to-Text Models23 Mar 2023
- 2022Attention as a Guide for Simultaneous Speech Translation15 Dec 2022
- 2022Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translation30 May 2022
- 2021Building on Huang et al. GlossBERT for Word Sense Disambiguation14 Dec 2021
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2023AlignAtt: Using Attention-based Audio-Translation Alignments as a Guide for Simultaneous Speech Translationcited by 35
- 2022Attention as a Guide for Simultaneous Speech Translationcited by 32
- 2022Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translationcited by 28
- 2024StreamAtt: Direct Streaming Speech-to-Text Translation with Attention-based Audio History Selectioncited by 19
- 2021Inspecting the concept knowledge graph encoded by modern language modelscited by 15
- 2023Compositional Zero-Shot Domain Transfer with Text-to-Text Modelscited by 6
- 2023Code-Switching with Word Senses for Pretraining in Neural Machine Translationcited by 4
- 2021Building on Huang et al. GlossBERT for Word Sense Disambiguationcited by 2
- 2024SBAAM! Eliminating Transcript Dependency in Automatic Subtitlingcited by 1
- 2025Cross-Attention is Half Explanation in Speech-to-Text Modelscited by 1
- 2021An empirical analysis of phrase-based and neural machine translationcited by 0
12 most cited of 15 All 15 (JSON)
- 2026Systematic Analysis of Large Language Models and Transformer-Based Machine Translation for English-Tamil and Tamil-English Across Diverse Datasets27 Jul 2026
- 2025Multi Class Parkinson Disease Detection Based on Finger Tapping Using Attention Enhanced CNN BiLSTM11 Oct 2025
- 2025Cross-Attention is Half Explanation in Speech-to-Text Models22 Sep 2025
- 2024StreamAtt: Direct Streaming Speech-to-Text Translation with Attention-based Audio History Selection10 Jun 2024
- 2024SBAAM! Eliminating Transcript Dependency in Automatic Subtitling17 May 2024
- 2023Code-Switching with Word Senses for Pretraining in Neural Machine Translation21 Oct 2023
- 2023AlignAtt: Using Attention-based Audio-Translation Alignments as a Guide for Simultaneous Speech Translation19 May 2023
- 2023Learning Homographic Disambiguation Representation for Neural Machine Translation12 Apr 2023
- 2023Compositional Zero-Shot Domain Transfer with Text-to-Text Models23 Mar 2023
- 2022Attention as a Guide for Simultaneous Speech Translation15 Dec 2022
- 2022Can Transformer be Too Compositional? Analysing Idiom Processing in Neural Machine Translation30 May 2022
- 2021Building on Huang et al. GlossBERT for Word Sense Disambiguation14 Dec 2021
12 newest of 15 All 15 (JSON)