Understanding How Encoder-Decoder Architectures Attend
Not on the map. Why?
Abstract (arXiv)
Encoder-decoder networks with attention have proven to be a powerful way to solve many sequence-to-sequence tasks. In these networks, attention aligns encoder and decoder states and is often used for visualizing network behavior. However, the mechanisms used by networks to generate appropriate attention matrices are still mysterious. Moreover, how these mechanisms vary depending on the particular architecture used for the encoder and decoder (recurrent, feed-forward, etc.) are also not well understood. In this work, we investigate how encoder-decoder networks solve different sequence-to-sequence tasks. We introduce a way of decomposing hidden states over a sequence into temporal (independent of input) and input-driven (independent of sequence position) components. This reveals how attention matrices are formed: depending on the task requirements, networks rely more heavily on either the temporal or input-driven components. These findings hold across both recurrent and feed-forward architectures despite their differences in forming the temporal components. Overall, our results provide new insight into the inner workings of attention-based encoder-decoder networks.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 20 of its 37 references that are in the map. First posted on arXiv 28 Oct 2021.
Builds on
20 of 37 references.
References · 20
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2019Attention is not Explanationcited by 916
- 2019Attention is not not Explanationcited by 629
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2019Is Attention Interpretable?cited by 387
8 more
- 2017State-of-the-art Speech Recognition With Sequence-to-Sequence Modelscited by 196
- 2020The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?cited by 122
- 2019Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamicscited by 38
- 2017What does Attention in Neural Machine Translation Pay Attention to?cited by 30
- 2019Saliency-driven Word Alignment Interpretation for Neural Machine Translationcited by 27
- 2016Capacity and Trainability in Recurrent Neural Networkscited by 26
- 2020How recurrent networks implement contextual processing in sentiment analysiscited by 11
- 2020The geometry of integration in text classification RNNscited by 9
Built on by
Citing papers per year: 2022: 1; 2023: 1.
2 papers.