Finite-Time Analysis of Gradient Descent for Shallow Transformers
Not on the map. Why?
Abstract (arXiv)
Understanding why Transformers perform so well remains challenging due to their non-convex optimization landscape. In this work, we analyze a shallow Transformer with m independent heads trained by projected gradient descent in the kernel regime. Our analysis reveals two main findings: (i) the width required for nonasymptotic guarantees scales only logarithmically with the sample size n, and (ii) the optimization error is independent of the sequence length T. This contrasts sharply with recurrent architectures, where the optimization error can grow exponentially with T. The trade-off is memory: to keep the full context, the Transformer's memory requirement grows with the sequence length. We validate our theoretical results numerically in a teacher-student setting and compare Transformers with recurrent architectures on an autoregressive task.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 43 of its 59 references that are in the map. First posted on arXiv 23 Jan 2026.
Builds on
43 of 59 references.
References · 43
- 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
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,621
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Rethinking Attention with Performerscited by 1,601
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 787
- 2019Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descentcited by 738
- 2018On Lazy Training in Differentiable Programmingcited by 675
- 2018Gradient Descent Provably Optimizes Over-parameterized Neural Networkscited by 659
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
31 more
- 2018Gradient Descent Finds Global Minima of Deep Neural Networkscited by 574
- 2019On Exact Computation with an Infinitely Wide Neural Netcited by 573
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2018Bayesian Deep Convolutional Networks with Many Channels are Gaussian Processescited by 167
- 2018Independently Recurrent Neural Network (IndRNN): Building A Longer and Deeper RNNcited by 143
- 2020Tensor Programs II: Neural Tangent Kernel for Any Architecturecited by 143
- 2018Deep Convolutional Networks as shallow Gaussian Processescited by 138
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2019An Improved Analysis of Training Over-parameterized Deep Neural Networkscited by 121
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 121
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2023In-Context Convergence of Transformerscited by 115
- 2020Tight Bounds on the Smallest Eigenvalue of the Neural Tangent Kernel for Deep ReLU Networkscited by 87
- 2019Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural Networkscited by 79
- 2020The Recurrent Neural Tangent Kernelcited by 67
- 2023Max-Margin Token Selection in Attention Mechanismcited by 58
- 2023On the Role of Attention in Prompt-tuningcited by 50
- 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
- 2021On the Proof of Global Convergence of Gradient Descent for Deep ReLU Networks with Linear Widthscited by 44
- 2023Replacing softmax with ReLU in Vision Transformerscited by 44
- 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
- 2023On the Optimization and Generalization of Multi-head Attentioncited by 37
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2019Neural tangent kernels, transportation mappings, and universal approximationcited by 30
- 2024On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixturescited by 15
- 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
- 2024Unraveling the Gradient Descent Dynamics of Transformerscited by 11
- 2024Convergence of Gradient Descent for Recurrent Neural Networks: A Nonasymptotic Analysiscited by 8
- 2024Recurrent Natural Policy Gradient for POMDPscited by 8
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026PowerStep: Memory-Efficient Adaptive Optimization via ℓp-Norm Steepest Descent
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regression
- 2024Resource-Efficient Transformer Architecture: Optimizing Memory and Execution Time for Real-Time Applications
- 2026The Recurrent Transformer: Greater Effective Depth and Efficient Decoding
- 2026Energy-Entropy Regularization: The True Power of Minimal Looped Transformers
- 2025Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformers
- 2025Two-Scale Latent Dynamics for Recurrent-Depth Transformers