Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding
Not on the map. Why?
Abstract (arXiv)
This paper investigates the dynamical properties of tokens in pre-trained Transformer models and explores their application to improving Transformers. To this end, we analyze the dynamical system governing the continuous-time limit of the pre-trained model and characterize the asymptotic behavior of its solutions. Specifically, we characterize when tokens move closer to or farther from one another over time, depending on the model parameters. We provide sufficient conditions, based on these parameters, to identify scenarios where tokens either converge to zero or diverge to infinity. Unlike prior works, our conditions are broader in scope and more applicable to real-world models. Furthermore, we investigate how different forms of positional encoding -- specifically absolute and rotary -- affect these dynamical regimes. Empirical evidence reveals that the convergence scenario adversely impacts model performance. Motivated by these insights, we propose simple refinements to Transformer architectures that mitigate convergence behavior in models with absolute or rotary positional encoding. These findings support theoretical foundations and design principles for improving Transformer models.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 37 of its 57 references that are in the map. First posted on arXiv 25 Nov 2025.
Builds on
37 of 57 references.
References · 37
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2021Zero-Shot Text-to-Image Generationcited by 4,288
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
25 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2021Transformers in Vision: A Surveycited by 1,013
- 2020Efficient Transformers: A Surveycited by 790
- 2018Universal Transformerscited by 647
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
- 2021A Survey of Transformerscited by 401
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2023A mathematical perspective on Transformerscited by 164
- 2023The emergence of clusters in self-attention dynamicscited by 140
- 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 113
- 2018ResNet with one-neuron hidden layers is a Universal Approximatorcited by 79
- 2019Deep Learning via Dynamical Systems: An Approximation Perspectivecited by 78
- 2021Neural ODE control for classification, approximation and transportcited by 57
- 2019Approximation Capabilities of Neural ODEs and Invertible Residual Networkscited by 56
- 2024Dynamic metastability in the self-attention modelcited by 46
- 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 31
- 2023Interpolation, Approximation and Controllability of Deep Neural Networkscited by 16
- 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024The Asymptotic Behavior of Attention in Transformers
- 2025On the Universality of Transformer Architectures; How Much Attention Is Enough?
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics
- 2025TransXSSM: A Hybrid Transformer State Space Model with Unified Rotary Position Embedding
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers
- 2025Two-Scale Latent Dynamics for Recurrent-Depth Transformers
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer training
- 2026Rethinking the Role of Positional Encoding: Sliding-Window Transformers without PE Remain Turing Complete