Skip to content

From Low-Dimensional Chaos to High-Dimensional Dynamics in Self-Attention Systems

J. D. Mireles James

math.DS

Abstract

Continuous-time particle models of self-attention are often studied under symmetry assumptions that yield a gradient structure and constrain the dynamics to convergence toward equilibria. We investigate the behavior of these systems beyond the gradient setting, considering autonomous projected self-attention models with constant query, key, and value matrices and particles constrained to an ellipse. For three particles, the equations define a vector field on the three-dimensional torus. We derive explicit synchronized periodic solutions and compute their Floquet multipliers, establishing the existence of non-gradient dynamics. Numerical explorations using bifurcation diagrams, Poincare sections, periodic-orbit continuation, a nd Lyapunov exponents reveal attracting periodic orbits, invariant-torus-like behavior, and strong evidence of chaos. We then construct higher-dimensional systems by coupling these low-dimensional building blocks through masked and multi-head attention mechanisms. We discuss the persistence of normally hyperbolic invariant manifolds under weak coupling and investigate how the coupling architecture influences the resulting dynamics. Numerical experiments reveal the emergence of additional expanding directions, including a 60-particle system in which 26 of the 40 computed Lyapunov exponents exceed 0.01. These results demonstrate the richness of the dynamical behavior possible in simplified self-attention systems and motivate further investigation of the invariant structures organizing their high-dimensional dynamics.

Create a lesson