Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in Transformers
math.DS, cs.LG, cs.SY, eess.SY
Submitted: 2026-10-09
Updated: 2026-10-09
Comments: 16 pages, 3 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: In machine learning, a self-attention dynamics describes the attention mechanism of transformers, and is obtained treating the layer index of a transformer as time index.
Terminology
Abstract
In machine learning, a self-attention dynamics describes the attention mechanism of transformers, and is obtained treating the layer index of a transformer as time index. Even though naturally discrete-time, this dynamical system is most often studied in continuous-time. Scope of this paper is to provide a thorough investigation of the discrete-time version of the self-attention dynamics: a complete classification of its equilibria is given, and their stability properties are studied, in both the single-head and the multihead case. We show that in both cases the main attractor of the dynamics is a consensus equilibrium aligned with the principal eigenvector of the value matrix (in the single-head case, a corresponding matrix of weights in the multihead case), even though other locally asymptotically stable bipartite equilibria can be show to exist at least in the single-head situation. The behavior is confirmed by looking at the learned weight matrices of a real transformer.
Sources
- The Asymptotic Behavior of Attention in Transformers
- Universal Transformers
- Setting the Record Straight on Transformer Oversmoothing
- Dynamic metastability in the self-attention model
- On the Expressive Power of Self-Attention Matrices
- Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of View
- Residual Connections and Normalization Can Provably Prevent Oversmoothing in GNNs
- Revisiting Over-smoothing in BERT from the Perspective of Graph
Related papers
- Topological Detection of Hopf Bifurcations via Persistent Homology: A Functional Criterion from Time Series
- When is a System Discoverable from Data? Discovery Requires Chaos
- Universal set of Observables for Forecasting Physical Systems through Causal Embedding
- Cislunar State and Uncertainty Propagation via the Modified Generalized Equinoctial Orbital Elements
- On topological properties of closed attractors
- On a Keller-Segel type equation to model Brain Microvascular Endothelial Cells growth's patterns