Perceptrons and localization of attention's mean-field landscape
Antonio Álvarez-López, Borjan Geshkovski, Domènec Ruiz-Balet
TL;DR
The paper casts Transformer dynamics as a mean-field interacting particle system on the unit sphere and analyzes how a perceptron block reshapes the energy landscape under a Wasserstein gradient-flow framework. It shows that, in contrast to pure attention, the coupled system drives stationary measures to be atomic and spatially localized, with precise results in low dimensions and generic sparsity in higher dimensions. The authors derive sharp bounds on cluster masses and the number of atoms (scaling like \\sqrt{\\beta}) and provide concrete verifications via simulations in multiple dimensions, including both ReLU and GeLU activations and both unnormalized and normalized attention. Overall, the work reveals a fundamental mechanism by which perceptrons counteract attention-driven collapse and enforce discrete, interpretable structure in the mean-field landscape, with implications for understanding representation geometry in long-context Transformer regimes.
Abstract
The forward pass of a Transformer can be seen as an interacting particle system on the unit sphere: time plays the role of layers, particles that of token embeddings, and the unit sphere idealizes layer normalization. In some weight settings the system can even be seen as a gradient flow for an explicit energy, and one can make sense of the infinite context length (mean-field) limit thanks to Wasserstein gradient flows. In this paper we study the effect of the perceptron block in this setting, and show that critical points are generically atomic and localized on subsets of the sphere.
