# A Geometric Theory for Nonequilibrium Transformer Dynamics

arXiv: https://arxiv.org/abs/2611.10691 · HTML: https://mlsanity.com/paper/2611.10691/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 11 of its 14 references that are in the map.
- Submitted 7 Nov 2026.

## Builds on (most cited first, 11 of 11)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [A mathematical perspective on Transformers](https://mlsanity.com/paper/2312.10794/) (2023)
- [The emergence of clusters in self-attention dynamics](https://mlsanity.com/paper/2305.05465/) (2023)
- [Energy Transformer](https://mlsanity.com/paper/2302.07253/) (2023)
- [Dynamic metastability in the self-attention model](https://mlsanity.com/paper/2410.06833/) (2024)
- [Riemannian game dynamics](https://mlsanity.com/paper/1603.09173/) (2016)
- [Kernel Approximation of Fisher-Rao Gradient Flows](https://mlsanity.com/paper/2410.20622/) (2024)
- [On H"older projective divergences](https://mlsanity.com/paper/1701.03916/) (2017)
- [Momentum Transformer: Closing the Performance Gap Between Self-attention and Its Linearization](https://mlsanity.com/paper/2208.00579/) (2022)
- [Connections between sequential Bayesian inference and evolutionary dynamics](https://mlsanity.com/paper/2411.16366/) (2024)
- [SympFormer: Inertial Attention Blocks from Damped Hamiltonian Dynamics on Spaces of Probability Measures](https://mlsanity.com/paper/2610.31600/) (2026)

## Abstract (arXiv)

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.
