On the Optimization and Generalization of Multi-head Attention
Not on the map. Why?
Abstract (arXiv)
The training and generalization dynamics of the Transformer's core mechanism, namely the Attention mechanism, remain under-explored. Besides, existing analyses primarily focus on single-head attention. Inspired by the demonstrated benefits of overparameterization when training fully-connected networks, we investigate the potential optimization and generalization advantages of using multiple attention heads. Towards this goal, we derive convergence and generalization guarantees for gradient-descent training of a single-layer multi-head self-attention model, under a suitable realizability condition on the data. We then establish primitive conditions on the initialization that ensure realizability holds. Finally, we demonstrate that these conditions are satisfied for a simple tokenized-mixture model. We expect the analysis can be extended to various data-model and architecture variations.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 62 of its 69 references that are in the map. First posted on arXiv 19 Oct 2023.
Builds on
62 of 69 references.
References · 62
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
- 2022Transformers learn in-context by gradient descentcited by 714
38 more
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
- 2018Gradient Descent Finds Global Minima of Deep Neural Networkscited by 572
- 2019Fine-Grained Analysis of Optimization and Generalization for Overparameterized Two-Layer Neural Networkscited by 562
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2019Generalization Bounds of Stochastic Gradient Descent for Wide and Deep Neural Networkscited by 221
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
- 2019Towards moderate overparameterization: global convergence guarantees for training shallow neural networkscited by 176
- 2016Long Short-Term Memory-Networks for Machine Readingcited by 161
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2020On the linearity of large non-linear models: when and why the tangent kernel is constantcited by 129
- 2019Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networkscited by 120
- 2020Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descentcited by 118
- 2020Infinite attention: NNGP and NTK for deep attention networkscited by 117
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2020Tight Bounds on the Smallest Eigenvalue of the Neural Tangent Kernel for Deep ReLU Networkscited by 87
- 2019How Much Over-parameterization Is Sufficient to Learn Deep ReLU Networks?cited by 84
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
- 2018Risk and parameter convergence of logistic regressioncited by 81
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023Transformers as Support Vector Machinescited by 67
- 2020Global Convergence of Deep Networks with One Wide Layer Followed by Pyramidal Topologycited by 66
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2021A Local Convergence Theory for Mildly Over-Parameterized Two-Layer Neural Networkcited by 47
- 2021On the Expressive Power of Self-Attention Matricescited by 44
- 2023Memorization Capacity of Multi-Head Attention in Transformerscited by 39
- 2013Margins, Shrinkage, and Boostingcited by 35
- 2020The Effects of Mild Over-parameterization on the Optimization Landscape of Shallow ReLU Neural Networkscited by 33
- 2022Unraveling Attention via Convex Duality: Analysis and Interpretations of Vision Transformerscited by 30
- 2020Gradient Methods Never Overfit On Separable Datacited by 29
- 2022Stability vs Implicit Bias of Gradient Methods on Separable Data and Beyondcited by 29
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 19; 2025: 9; 2026: 6.
37 papers.
Sort:
By area:
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Superiority of Multi-Head Attention in In-Context Linear Regressioncited by 17
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 16
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysiscited by 14
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2024Next-token prediction capacity: general upper bounds and a lower bound for transformerscited by 11
25 more
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Biascited by 10
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selectioncited by 9
- 2023The Expressibility of Polynomial based Attention Schemecited by 7
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 6
- 2024On the Learn-to-Optimize Capabilities of Transformers in In-Context Sparse Recoverycited by 6
- 2024On Mesa-Optimization in Autoregressively Trained Transformers: Emergence and Capabilitycited by 5
- 2024On the Power of Convolution Augmented Transformercited by 5
- 2024Learning Linear Attention in Polynomial Timecited by 5
- 2024On the Benefits of Rank in Attention Layerscited by 4
- 2025Disentangling Feature Structure: A Mathematically Provable Two-Stage Training Dynamics in Transformerscited by 3
- 2025Optimal Rates for Generalization of Gradient Descent for Deep ReLU Classificationcited by 3
- 2024Parameter-Efficient Fine-Tuning for Continual Learning: A Neural Tangent Kernel Perspectivecited by 2
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformerscited by 2
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalizationcited by 1
- 2025Stability-based Generalization Analysis of Randomized Coordinate Descent for Pairwise Learningcited by 0
- 2025Generalization and Optimization of SGD with Lookaheadcited by 0
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Modelscited by 0
- 2025Vocabulary In-Context Learning in Transformers: Benefits of Positional Encodingcited by 0
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformerscited by 0
- 2026Towards Initialization-dependent and Non-vacuous Generalization Bounds for Overparameterized Shallow Neural Networkscited by 0
- 2026Learning Theory of the SVRG: Generalization and Convergence Analysiscited by 0
- 2026Stochastic Gradient Descent with Momentum is Algorithmically Stablecited by 0
- 2026Faster Query-Key Learning Sharpens Attention in Self-Attention Modelscited by 0
- 2026Faster Query-Key Learning Sharpens Attention in Self-Attention Models7 Aug 2026
- 2026Stochastic Gradient Descent with Momentum is Algorithmically Stable27 May 2026
- 2026Learning Theory of the SVRG: Generalization and Convergence Analysis27 May 2026
- 2026Towards Initialization-dependent and Non-vacuous Generalization Bounds for Overparameterized Shallow Neural Networks1 Apr 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026
- 2025Vocabulary In-Context Learning in Transformers: Benefits of Positional Encoding9 Nov 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Optimal Rates for Generalization of Gradient Descent for Deep ReLU Classification3 Oct 2025
- 2025Generalization and Optimization of SGD with Lookahead19 Sep 2025
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization21 May 2025
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Bias2 May 2025
25 more
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2025Stability-based Generalization Analysis of Randomized Coordinate Descent for Pairwise Learning3 Mar 2025
- 2025Disentangling Feature Structure: A Mathematically Provable Two-Stage Training Dynamics in Transformers28 Feb 2025
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selection18 Oct 2024
- 2024On the Learn-to-Optimize Capabilities of Transformers in In-Context Sparse Recovery17 Oct 2024
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMs17 Oct 2024
- 2024Learning Linear Attention in Polynomial Time14 Oct 2024
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis3 Oct 2024
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Prediction25 Sep 2024
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformers19 Aug 2024
- 2024Parameter-Efficient Fine-Tuning for Continual Learning: A Neural Tangent Kernel Perspective24 Jul 2024
- 2024On the Benefits of Rank in Attention Layers23 Jul 2024
- 2024On the Power of Convolution Augmented Transformer8 Jul 2024
- 2024On Mesa-Optimization in Autoregressively Trained Transformers: Emergence and Capability27 May 2024
- 2024Next-token prediction capacity: general upper bounds and a lower bound for transformers22 May 2024
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attention13 Mar 2024
- 2024Mechanics of Next Token Prediction with Self-Attention12 Mar 2024
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Models28 Feb 2024
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?23 Feb 2024
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximator22 Feb 2024
- 2024Implicit Bias and Fast Convergence Rates for Self-attention8 Feb 2024
- 2024Superiority of Multi-Head Attention in In-Context Linear Regression30 Jan 2024
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Space24 Nov 2023
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformer22 Nov 2023
- 2023The Expressibility of Polynomial based Attention Scheme30 Oct 2023
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2024Implicit Bias and Fast Convergence Rates for Self-attentioncited by 31
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Superiority of Multi-Head Attention in In-Context Linear Regressioncited by 17
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 16
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2024Next-token prediction capacity: general upper bounds and a lower bound for transformerscited by 11
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 11
12 most cited of 36 All 36 (JSON)
- 2026Faster Query-Key Learning Sharpens Attention in Self-Attention Models7 Aug 2026
- 2026Stochastic Gradient Descent with Momentum is Algorithmically Stable27 May 2026
- 2026Learning Theory of the SVRG: Generalization and Convergence Analysis27 May 2026
- 2026Towards Initialization-dependent and Non-vacuous Generalization Bounds for Overparameterized Shallow Neural Networks1 Apr 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026
- 2025Vocabulary In-Context Learning in Transformers: Benefits of Positional Encoding9 Nov 2025
- 2025Minimax Rates for Learning Pairwise Interactions in Attention-Style Models13 Oct 2025
- 2025Optimal Rates for Generalization of Gradient Descent for Deep ReLU Classification3 Oct 2025
- 2025Generalization and Optimization of SGD with Lookahead19 Sep 2025
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization21 May 2025
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Bias2 May 2025
12 newest of 36 All 36 (JSON)