Localmax dynamics for attention in transformers and its asymptotic behavior
Not on the map. Why?
Abstract (arXiv)
We introduce a new discrete-time attention model, termed the localmax dynamics, which interpolates between the classic softmax dynamics and the hardmax dynamics, where only the tokens that maximize the influence toward a given token have a positive weight. As in hardmax, uniform weights are determined by a parameter controlling neighbor influence, but the key extension lies in relaxing neighborhood interactions through an alignment-sensitivity parameter, which allows controlled deviations from pure hardmax behavior. As we prove, while the convex hull of the token states still converges to a convex polytope, its structure can no longer be fully described by a maximal alignment set, prompting the introduction of quiescent sets to capture the invariant behavior of tokens near vertices. We show that these sets play a key role in understanding the asymptotic behavior of the system, even under time-varying alignment sensitivity parameters. We further show that localmax dynamics does not exhibit finite-time convergence and provide results for vanishing, nonzero, time-varying alignment-sensitivity parameters, recovering the limiting behavior of hardmax as a by-product. Finally, we adapt Lyapunov-based methods from classical opinion dynamics, highlighting their limitations in the asymmetric setting of localmax interactions and outlining directions for future research.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 11 of its 28 references that are in the map. First posted on arXiv 19 Sep 2025.
Builds on
11 of 28 references.
References · 11
- 2017Attention Is All You Needcited by 60,361
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2021A Survey of Transformerscited by 401
- 2023A mathematical perspective on Transformerscited by 164
- 2023The emergence of clusters in self-attention dynamicscited by 140
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2024The Asymptotic Behavior of Attention in Transformerscited by 16
- 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
- 2025How Smoothing is N-simplicial Attention?cited by 0
- 2026Transformer-like Inference from Optimal Controlcited by 0
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2025How Smoothing is N-simplicial Attention?17 Dec 2025