mlsanityData to 7 Oct 2026

Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention

arXiv 2605.04279 ↗First posted 5 May 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer self-attention can be interpreted as a gradient flow on the unit sphere, in which tokens evolve under softmax interaction potentials and tend to form clusters. While prior work has established clustering behavior for single-head attention, the multi-head setting remains less understood due to geometric interference between heads, which invalidates standard monotonicity arguments. In this work, we develop a theoretical framework for multi-head self-attention dynamics and resolve several open questions. We show that, under suitable conditions on the score matrices, a natural multi-head energy functional is non-decreasing along both flat and spherical dynamics. We identify the key obstruction to per-head monotonicity as radial shadow terms, which are projections of each head's output onto token directions, persisting even under orthogonality assumptions. We introduce a sufficient condition ensuring monotonicity and establish robustness to approximate orthogonality. In a simplified scalar-head regime with equiangular token configurations, we derive a closed-form expression for the critical inverse temperature governing clustering behavior, and show that heterogeneous heads exhibit super-additive clustering rates. In this regime, we also prove a separation in clustering time between ReLU and softmax attention in the linearized dynamics. Finally, we establish an entropy production identity and show that attention entropy increases monotonically toward equilibrium as clustering progresses. Our results provide a unified perspective on the dynamics of multi-head attention and clarify the mechanisms underlying clustering and stability in transformer models.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 17 of its 20 references that are in the map. First posted on arXiv 5 May 2026.

Builds on

17 of 20 references.

References · 17

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Layer Normalizationcited by 5,579
  3. 2023A mathematical perspective on Transformerscited by 160
  4. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
  5. 2023The emergence of clusters in self-attention dynamicscited by 133
  6. 2023A Study on ReLU and Softmax in Transformercited by 53
  7. 2023Replacing softmax with ReLU in Vision Transformerscited by 43
  8. 2024Dynamic metastability in the self-attention modelcited by 42
  9. 2024Clustering in Causal Attention Maskingcited by 31
  10. 2025The Mean-Field Dynamics of Transformerscited by 24
  11. 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
  12. 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
5 more
  1. 2025Critical attention scaling in long-context transformerscited by 17
  2. 2025Synchronization of mean-field models on the circlecited by 10
  3. 2025Normalization in Attention Dynamicscited by 9
  4. 2025Entropy-Guided Attention for Private LLMscited by 7
  5. 2025Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobianscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.