Multi-head self-attention dynamics with identity value matrices need not converge
Self-attention dynamics model the layers of a transformer as a system of interacting particles, the tokens. Each attention head adds to every token a weighted average of the tokens, transformed by a value matrix, with softmax weights that an attention matrix determines. For one head with the identity as value matrix and a positive definite attention matrix, Geshkovski, Letrouit, Polyanskiy, and Rigollet proved that every rescaled token converges, and posed proofs of clustering, or of the convergence of the attention weights, for several heads as an open problem. We give a negative answer when every value matrix is the identity and every attention matrix is symmetric positive definite. For two heads with explicit integer attention matrices, four dimensions, and five tokens, one rescaled token and two attention weights do not converge, for a set of initial tokens with nonempty interior. They fail to converge in the differential equation and, for every step size, in the discrete-time scheme in which the problem was posed. In the hardmax model of Alcalde, Fantuzzi, and Zuazua, whose one-head theorem gives the convergence of every token, the same two heads leave one rescaled token without a limit. In the limit of zero temperature, the coordinates of the non-convergent token relative to the other four follow, formally, the mean of the two population states in the best-response dynamics of a game between two populations, one for each head. This game has no potential, and a planar reduction of its dynamics has a periodic orbit.
Authors
- Sungwoo Kang
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24653052
- Primary Topic
- Neural Networks and Applications
- Type
- preprint