aiqbench analysis
This research provides a rigorous theoretical framework for understanding the long-term inference dynamics of deep linear transformers by mapping them to interacting particle systems. By uncovering hidden Hamiltonian structures and low-dimensional behaviors like oscillations and bifurcations, the study offers critical insights into how attention mechanisms evolve over time regardless of parameter scale. These findings advance our fundamental comprehension of transformer stability and emergent dynamical patterns in machine learning architectures.
On the Diverse Dynamical Behaviors Arising in Deep Linear Transformers
arXiv:2607.18584v1 Announce Type: new Abstract: We study the inference-time behavior of deep linear encoder-only transformers through the lens of interacting particle systems. In this perspective, tokens are modeled as particles that interact dynamically through successive linear self-attention layers. We show that in embedding dimension two, for any key, query, and value matrices, the dynamics can be reformulated as a generalized Kuramoto-type model with pure second-harmonic coupling. This formulation is amenable to Watanabe--Strogatz theory which reveals the dynamics are intrinsically low-dimensional regardless of the parameter matrices. For a class of token initializations associated with the Ott--Antonsen (OA) manifold, we show that the parameter matrices induce a diverse variety of long-time behaviors in linear transformers, including clustering, oscillations, and bifurcations. The oscillations and bifurcations are characterized by uncovering a hidden Hamiltonian structure in the dynamics. By establishing a structural stability result, we further show that dynamics initialized near the OA manifold exhibit the same long-time behavior as those initialized exactly on the manifold. Motivated by our theory in dimension two, we conduct numerical experiments for analogous parameter regimes in higher-dimensional transformers. Our numerical experiments suggest that the long-time behaviors characterized in our theoretical results persist in higher dimensions.
Abstract:We study the inference-time behavior of deep linear encoder-only transformers through the lens of interacting particle systems. In this perspective, tokens are modeled as particles that interact dynamically through successive linear self-attention layers. We show that in embedding dimension two, for any key, query, and value matrices, the dynamics can be reformulated as a generalized Kuramoto-type model with pure second-harmonic coupling. This formulation is amenable to Watanabe--Strogatz theory which reveals the dynamics are intrinsically low-dimensional regardless of the parameter matrices. For a class of token initializations associated with the Ott--Antonsen (OA) manifold, we show that the parameter matrices induce a diverse variety of long-time behaviors in linear transformers, including clustering, oscillations, and bifurcations. The oscillations and bifurcations are characterized by uncovering a hidden Hamiltonian structure in the dynamics. By establishing a structural stability result, we further show that dynamics initialized near the OA manifold exhibit the same long-time behavior as those initialized exactly on the manifold. Motivated by our theory in dimension two, we conduct numerical experiments for analogous parameter regimes in higher-dimensional transformers. Our numerical experiments suggest that the long-time behaviors characterized in our theoretical results persist in higher dimensions.
Machine Learning (cs.LG); Dynamical Systems (math.DS)
arXiv:2607.18584 [cs.LG]
(or arXiv:2607.18584v1 [cs.LG] for this version)
https://doi.org/10.48550/arXiv.2607.18584 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Full text under the publisher's open licence · 288 words
Related coverage

The Entangled Dimensions of Decision Theory
LessWrong · Jul 30, 2026

PIRAMID: Progress and Plans
LessWrong · Jul 27, 2026
From Parallel to Sequential: Small-Batch Noise Restores Simplicity Bias of Muon
arXiv · Oct 14, 2026

Explicit Block-Encodings Solve Biharmonic Equations on Quantum Computers
Quantum Zeitgeist · Jul 27, 2026