Speaker
Description
Transformers are highly successful models in machine learning, yet their mathematical properties remain only partially understood. In this talk, we present results that advance their theoretical understanding on two fronts: characterizing their asymptotic behavior as the number of self-attention layers tends to infinity, and analyzing their exact interpolation capabilities when alternated with feed-forward layers.
First, we rigorously characterize the dynamics of transformers with hardmax self-attention layers in the infinite-depth limit. By interpreting such transformers as dynamical systems that evolve sequences of elements in $\mathbb{R}^d$, referred to as tokens, and leveraging a geometric view of self-attention based on hyperplane separation, we show that all tokens converge to a clustered equilibrium determined by special tokens we call leaders.
Second, we prove that full transformers, alternating self-attention and feed-forward layers, can exactly interpolate datasets of input sequences in $\mathbb{R}^d$ with corresponding target sequences of equal or shorter length. Specifically, given $N$ input sequences of arbitrary but finite length and target sequences of lengths $m^1, \dots, m^N \in \mathbb{N}$, we construct a transformer with $\mathcal{O}(\sum_{j=1}^N m^j)$ blocks and $\mathcal{O}(d \sum_{j=1}^N m^j)$ parameters that exactly interpolates the dataset. Our construction yields complexity bounds independent of the input sequence lengths by exploiting the clustering effect inherent to self-attention layers. Moreover, it employs low-rank parameter matrices within the self-attention mechanism, a common feature in practical transformer implementations.
Together, these results offer new insights into the asymptotics and expressive power of deep transformer architectures.