From Deep Transformers to Infinite-Dimensional Nesterov Acceleration and Back
Attention Is All You Need is one of the most influential papers of this century, and the transformer architecture it introduced forms the backbone of large language models. At the heart of a transformer is the attention layer, which lets the representation of each word change in response to the words around it. What happens when we repeat this operation over many layers is still poorly understood mathematically.
In this talk, we follow how an entire collection of word representations evolves as it passes through the layers. We introduce momentum, so that each update takes into account how the representations have been moving. This leads us to an infinite-dimensional version of Nesterov acceleration, where the equations of motion are partial differential equations. We then return to the individual layers. For a simple form of attention, we show how blow-up in the continuous model predicts how many layers it takes for the vectors representing words to exceed a given size.
I assume no prior knowledge of large language models, deep transformers, or infinite-dimensional geometry.
This talk is based on joint work with Viktor Stein, Wuchen Li, and Gabriele Steidl.