Assessing the Ability of Self-Attention Networks to Learn Word Order
Not on the map. Why?
Abstract (arXiv)
Self-attention networks (SAN) have attracted a lot of interests due to their high parallelization and strong performance on a variety of NLP tasks, e.g. machine translation. Due to the lack of recurrence structure such as recurrent neural networks (RNN), SAN is ascribed to be weak at learning positional information of words for sequence modeling. However, neither this speculation has been empirically confirmed, nor explanations for their strong performances on machine translation tasks when "lacking positional information" have been explored. To this end, we propose a novel word reordering detection task to quantify how well the word order information learned by SAN and RNN. Specifically, we randomly move one word to another position, and examine whether a trained model can detect both the original and inserted positions. Experimental results reveal that: 1) SAN trained on word reordering detection indeed has difficulty learning the positional information even with the position embedding; and 2) SAN trained on machine translation learns better positional information than its RNN counterpart, in which position embedding plays a critical role. Although recurrence structure make the model more universally-effective on learning word order, learning objectives matter more in the downstream tasks such as machine translation.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 0; 2023: 4; 2024: 1; 2025: 0; 2026: 1.
9 papers.
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Position Information in Transformers: An Overviewcited by 103
- 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23
- 2024TransLinkGuard: Safeguarding Transformer Models Against Model Stealing in Edge Deploymentcited by 11
- 2021Mitigating the Position Bias of Transformer Models in Passage Re-Rankingcited by 10
- 2023The Locality and Symmetry of Positional Encodingscited by 1
- 2023AST-MHSA : Code Summarization using Multi-Head Self-Attentioncited by 0
- 2026WnW: Waxing-and-Waning KV Cache for Long-Form Speech LLMscited by 0
- 2026WnW: Waxing-and-Waning KV Cache for Long-Form Speech LLMs24 Aug 2026
- 2024TransLinkGuard: Safeguarding Transformer Models Against Model Stealing in Edge Deployment17 Apr 2024
- 2023The Locality and Symmetry of Positional Encodings19 Oct 2023
- 2023AST-MHSA : Code Summarization using Multi-Head Self-Attention10 Aug 2023
- 2023The Impact of Positional Encoding on Length Generalization in Transformers31 May 2023
- 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddings23 May 2023
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languages24 May 2021
- 2021Position Information in Transformers: An Overview22 Feb 2021
- 2021Mitigating the Position Bias of Transformer Models in Passage Re-Ranking18 Jan 2021