Bayes optimal learning of attention-indexed models
Not on the map. Why?
Abstract (arXiv)
We introduce the attention-indexed model (AIM), a theoretical framework for analyzing learning in deep attention layers. Inspired by multi-index models, AIM captures how token-level outputs emerge from layered bilinear interactions over high-dimensional embeddings. Unlike prior tractable attention models, AIM allows full-width key and query matrices, aligning more closely with practical transformers. Using tools from statistical mechanics and random matrix theory, we derive closed-form predictions for Bayes-optimal generalization error and identify sharp phase transitions as a function of sample complexity, model width, and sequence length. We propose a matching approximate message passing algorithm and show that gradient descent can reach optimal performance. AIM offers a solvable playground for understanding learning in self-attention layers, that are key components of modern architectures.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 39 of its 54 references that are in the map. First posted on arXiv 2 Jun 2025.
Builds on
39 of 54 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 150
- 2022The merged-staircase property: a necessary and nearly sufficient condition for SGD learning of sparse functions on two-layer neural networkscited by 142
- 2015Statistical physics of inference: Thresholds and algorithmscited by 128
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 121
- 2020Online stochastic gradient descent on non-convex losses from high-dimensional inferencecited by 119
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2019Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setupcited by 112
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
27 more
- 2023Smoothing the Landscape Boosts the Signal for SGD: Optimal Sample Complexity for Learning Single Index Modelscited by 61
- 2018The committee machine: Computational to statistical gaps in learning a two-layers neural networkcited by 58
- 2023Learning time-scales in two-layers neural networkscited by 57
- 2023On Learning Gaussian Multi-index Models with Gradient Flowcited by 57
- 2024Asymptotic theory of in-context learning by linear attentioncited by 55
- 2022Phase diagram of Stochastic Gradient Descent in high-dimensional two-layer neural networkscited by 50
- 2023A Theory of Non-Linear Feature Learning with One Gradient Step in Two-Layer Neural Networkscited by 49
- 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
- 2023From high-dimensional & mean-field dynamics to dimensionless ODEs: A unifying approach to SGD in two-layers networkscited by 43
- 2023Bayes-optimal Learning of Deep Random Networks of Extensive-widthcited by 41
- 2023What can a Single Attention Layer Learn? A Study Through the Random Features Lenscited by 40
- 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
- 2021Graph-based Approximate Message Passing Iterationscited by 35
- 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
- 2023Hitting the High-Dimensional Notes: An ODE for SGD learning dynamics on GLMs and multi-index modelscited by 26
- 2024Bayes-optimal learning of an extensive-width neural network from quadratically many samplescited by 23
- 2024Fundamental computational limits of weak learnability in high-dimensional multi-index modelscited by 19
- 2024Attention layers provably solve single-location regressioncited by 17
- 2024High-dimensional learning of narrow neural networkscited by 12
- 2025Fundamental limits of learning in sequence multi-index models and deep attention networks: High-dimensional asymptotics and sharp thresholdscited by 12
- 2024Local to Global: Learning Dynamics and Effect of Initialization for Transformerscited by 11
- 2024Unraveling the Gradient Descent Dynamics of Transformerscited by 11
- 2025Fundamental Limits of Matrix Sensing: Exact Asymptotics, Universality, and Applicationscited by 11
- 2024Training Dynamics of Transformers to Recognize Word Co-occurrence via Gradient Flow Analysiscited by 9
- 2023Fitting an ellipsoid to random points: predictions using the replica methodcited by 7
- 2023Exact threshold for approximate ellipsoid fitting of random pointscited by 7
- 2024Bilinear Sequence Regression: A Model for Learning from Long Sequences of High-dimensional Tokenscited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.