Attention is Not Only a Weight: Analyzing Transformers with Vector Norms
Not on the map. Why?
Abstract (arXiv)
Attention is a key component of Transformers, which have recently achieved considerable success in natural language processing. Hence, attention is being extensively studied to investigate various linguistic capabilities of Transformers, focusing on analyzing the parallels between attention weights and specific linguistic phenomena. This paper shows that attention weights alone are only one of the two factors that determine the output of attention and proposes a norm-based analysis that incorporates the second factor, the norm of the transformed input vectors. The findings of our norm-based analyses of BERT and a Transformer-based neural machine translation system include the following: (i) contrary to previous studies, BERT pays poor attention to special tokens, and (ii) reasonable word alignment can be extracted from attention mechanisms of Transformer. These findings provide insights into the inner workings of Transformers.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 0; 2024: 0; 2025: 0; 2026: 1.
6 papers.
- 2022Visualizing and Explaining Language Modelscited by 4
- 2022Can Language Representation Models Think in Bets?cited by 3
- 2022Understanding Prior Bias and Choice Paralysis in Transformer-based Language Representation Models through Four Experimental Probescited by 2
- 2026Reasoning Fails Where Step Flow Breakscited by 2
- 2021Multi-Stream Transformerscited by 1
- 2022Discovering material information using hierarchical Reformer model on financial regulatory filingscited by 0
- 2026Reasoning Fails Where Step Flow Breaks8 Apr 2026
- 2022Can Language Representation Models Think in Bets?14 Oct 2022
- 2022Understanding Prior Bias and Choice Paralysis in Transformer-based Language Representation Models through Four Experimental Probes3 Oct 2022
- 2022Visualizing and Explaining Language Models30 Apr 2022
- 2022Discovering material information using hierarchical Reformer model on financial regulatory filings28 Mar 2022
- 2021Multi-Stream Transformers21 Jul 2021