A Geometric Theory for Nonequilibrium Transformer Dynamics
Aythami Bethencourt de Le\'{o}n, Darryl D. Holm
Key points
From the paper's conclusion- We develop a variational and geometric theory based on statistical physics for the joint evolution of Transformer attention and token representations at fixed model parameters.
Abstract
We develop a variational and geometric theory based on statistical physics for the joint evolution of Transformer attention and token representations at fixed model parameters. To this end, we introduce a free energy for the attention and model the evolution of the attention weights by its Fisher--Rao gradient flow. At fixed token representations, we prove that the softmax matrix is the unique free-energy minimiser and that every positive attention trajectory converges to it. For prescribed time-dependent representations, we show that the attention dynamics becomes linear after a change to logit variables. This result yields tracking bounds relative to the instantaneous softmax and sufficient conditions for attention to converge to a fixed matrix. Hamiltonian dynamics for the representations and their momenta are then coupled to the attention relaxation driven by the same energy. This coupling results in an energy-dissipation law. We also develop two alternative Hamiltonians incorporating the attention value map. We prove global well-posedness of the attention flow and all three coupled systems.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in TransformersarXiv · 2026
- SympFormer: Inertial Attention Blocks from Damped Hamiltonian Dynamics on Spaces of Probability MeasuresarXiv · 2026
- Dynamic Model of Attention in TransformersDigital Solutions and Artificial Intelligence Technologies · 2026
- Asymptotic Behavior of TransformersarXiv · 2026
- Gaussian Equivalence for Multi-Head Self-AttentionarXiv · 2026
- Geometric knowledge spaces, Attention pairing and ArchitecturesarXiv · 2026