Summary
This paper analyses the self-attention mechanism in (trained) Transformers under the lens of dynamical systems. The authors focus on a bare-bone self-attention architecture without the bells and whistles of standard Transformers (e.g. multi-head attention, layer norm) and assume time-independent weights, i.e. shared weights across "layers".
They start their analysis by studying simple self-attention architectures, including 1d settings, and progressively move to more complex and realistic settings, including value matrices with simple and positive leading-eigenvalue.
Across all the scenarios studied, the authors observe that in the limit, tokens cluster towards a few objects, such as vertices of a polytope or hyperplanes. Thus, the authors mathematically confirm that a small number of leaders drive the transformer dynamics.
Strengths
This work focuses on the mathematical under-pinnings of self-attention and transformer architectures, a research direction that remains unexplored, yet is much needed, given the importance of transformer architectures in modern deep learning. Such a theoretical foundation is original and significant for the community.
The authors showcase the clustering behaviour of self-attention in progressively realistic scenarios. The main points and conclusions of this work are clear.
Weaknesses
Overall, it is unclear whether the assumptions used in to prove theorems (e.g. good triples, $Q^T K \succ 0$) are realistic for standard Transformers.
Furthermore, the analysis is performed assuming only time-independent weights. While that design choice has been used in practice (e.g. ALBERTA), it is not the standard design choice for transformers. It is unclear whether the theorems introduced in this work hold for time-dependent weights.
The paper is very math-heavy for a general machine learning audience, and as such it is often hard to follow.
Questions
1. In eq. 4, the authors introduce an exponential factor, which is "instrumental in the proofs of all results that follow". Would the theorems hold without the use of this factor? What are the practical implications of this additional factor?
2. Furthermore, according to the authors, this operation is a "mathematically justified surrogate for the layer normalization". Do the authors expect this rescaling operation to be useful in an actual self-attention implementation, either replacing layer norm or used along with it?
3. In Definition 2, the authors define what constitutes a good triple $(Q, K, V)$. How realistic is this assumption, and how robust is the theorem to the assumption holding approximately?
Rating
6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.
Confidence
2: You are willing to defend your assessment, but it is quite likely that you did not understand the central parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.
Limitations
The authors should focus more on the limitations of the assumptions used for the theoretical results introduced in this work. It is unclear whether the theorems hold in practice, or whether they are based on very strong and unrealistic assumptions. See also weaknesses and limitations.