arXiv Machine Learning

Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention

arXiv:2608. 08922v1 Announce Type: cross Abstract: Transformer layers generate state-dependent interaction networks: token representations determine the attention matrix, which in turn updates the representations.

arXiv AI
Sep 17

The Attention Within: Consensus Dynamics in Selective State Space Models

Selective state space models (SSMs) use a recurrence to mix token information, a process analogous to attention in transformers. By modeling token evolution as an ordinary differential equation and applying input‑to‑state stability, the study proves that SSMs exhibit local exponential stability of consensus equilibria and delineates their domain of attraction for time‑varying weight matrices. Experiments on a pretrained Mamba‑2 model reveal that the output gate controls the degree of consensus, preventing tokens from fully converging.

By Jo\~ao Pedro Silvestre, \'Alvaro Rodr\'iguez Abella, Paulo Tabuada
arXiv AI
Nov 6

First-Token Attraction in Mamba Dynamics

The paper investigates token dynamics in deep Mamba models, focusing on how the first token attracts subsequent tokens. Unlike attention mechanisms, Mamba dynamics use full matrix-valued interaction coefficients, making analysis difficult; the authors develop a high-dimensional invariant box framework and exit-time argument to recover sign-definiteness. They characterize limit points, prove exponential convergence, and show that the first token’s direction attracts others, leading to token clustering and attention-sink phenomena, with experiments on Falcon‑Mamba‑7B confirming these predictions.

By Trinh T. Nguyen, Minh-Khoi Nguyen-Nhat, Duy-Tung Pham, Hoang-Son Do, Tan Minh Nguyen, Thieu N. Vo
arXiv Machine Learning
Oct 19

Anisotropic Representation Dynamics in Transformers

The paper introduces a Mixture‑Gated Theory of Anisotropic Representation Dynamics that decomposes Transformer self‑attention into value transport, query gating, and key gating. It shows that the geometry of attended representations can cause a representation difference to contract or expand, a phenomenon termed gating‑induced regime switching. The authors derive a spectral criterion to predict switching, quantify its strength, and identify subspaces where switching occurs, validating these predictions experimentally across four Transformer architectures.

By Nguyen Do, My T. Thai
arXiv Machine Learning
Oct 12

Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in Transformers

The paper investigates the discrete-time self‑attention dynamics of transformers, providing a full classification of equilibria and their stability for both single‑head and multi‑head cases. It shows that the main attractor is a consensus equilibrium aligned with the principal eigenvector of the value matrix, while locally asymptotically stable bipartite equilibria also exist in the single‑head scenario. The theoretical findings are corroborated by examining learned weight matrices from an actual transformer.

By Claudio Altafini
arXiv Machine Learning
Jul 31

Critical attention scaling in long-context transformers

arXiv:2510. 05554v2 Announce Type: replace Abstract: As large language models scale to longer contexts, attention layers suffer from a fundamental pathology: attention scores collapse toward uniformity as context length $n$ increases, causing tokens to cluster excessively, a phenomenon known as rank-collapse.

By Shi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe Rigollet