mlsanityData to 7 Oct 2026

Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows

arXiv 2605.18870 ↗First posted 15 May 2026cs.LG math.AP math.FAcited by 0

Not on the map. Why?

Abstract (arXiv)

In recent years, transformer architectures have revolutionized the field of language processing, opening the door to previously unforeseen possibilities. However, from a theoretical point of view, the mathematical models proposed in the literature often lack direct contact with the actual architectures and depend on strong simplifying assumptions. In this paper, we reduce this gap by modelling the data flow in multi-headed transformer architectures as time-dependent gradient flows for a suitable interaction energy capturing the design of the attention mechanism. The explicit dependence on time allows us to consider different weights for each head and for each layer, without imposing constraints on the initialization method. Moreover, we prove that, under a suitable integrability assumption on the evolution of the weights, each element of the ω-limit set of the gradient flows is a stationary point of the interaction energy at a limiting weight distribution. Finally, we analyse the stability of the gradient flows considering perturbations of both the initial data and the weights. Specifically, on the one hand, we study the robustness of the proposed models with respect to noisy inputs, establishing a continuous dependence of the gradient flows on the initial data and uniqueness of the flows. On the other hand, we prove the Gamma-convergence of the perturbed interaction energy to the unperturbed one, leading to the convergence of the corresponding gradient flows. We complement these theoretical results with numerical experiments that confirm the predicted energy-dissipation identity and clarify the asymptotic behavior of the dynamics in both the autonomous-like (Ornstein--Uhlenbeck) and the genuinely non-autonomous (oscillating-weights) regimes.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 37 of its 63 references that are in the map. First posted on arXiv 15 May 2026.

Builds on

37 of 63 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
  7. 2020wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representationscited by 3,853
  8. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  9. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  10. 2019Root Mean Square Layer Normalizationcited by 1,425
  11. 2020On Layer Normalization in the Transformer Architecturecited by 906
  12. 2020Hopfield Networks is All You Needcited by 461
25 more
  1. 2019Fixup Initialization: Residual Learning Without Normalizationcited by 194
  2. 2022Transformer Quality in Linear Timecited by 189
  3. 2020The Lipschitz Constant of Self-Attentioncited by 171
  4. 2023A mathematical perspective on Transformerscited by 160
  5. 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
  6. 2023The emergence of clusters in self-attention dynamicscited by 133
  7. 2024Why Transformers Need Adam: A Hessian Perspectivecited by 123
  8. 2020Transformers for Modeling Physical Systemscited by 105
  9. 2024Theory, Analysis, and Best Practices for Sigmoid Self-Attentioncited by 62
  10. 2023A Study on ReLU and Softmax in Transformercited by 53
  11. 2020Stable ResNetcited by 49
  12. 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
  13. 2020Robust Pruning at Initializationcited by 31
  14. 2024Clustering in Causal Attention Maskingcited by 31
  15. 2025A Unified Perspective on the Dynamics of Deep Transformerscited by 30
  16. 2024Measure-to-measure interpolation using Transformerscited by 28
  17. 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
  18. 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
  19. 2025Neural ODE Transformers: Analyzing Internal Dynamics and Adaptive Fine-tuningcited by 12
  20. 2019Stabilize Deep ResNet with A Sharp Scaling Factor τcited by 10
  21. 2025On the Structure of Stationary Solutions to McKean-Vlasov Equations with Applications to Noisy Transformerscited by 10
  22. 2026Clustering in Deep Stochastic Transformerscited by 5
  23. 2025Stability of Transformers under Layer Normalizationcited by 4
  24. 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
  25. 2025Capturing AI's Attention: Physics of Repetition, Hallucination, Bias and Beyondcited by 3

Built on by

Not cited yet.