Implicit Bias and Fast Convergence Rates for Self-attention
Not on the map. Why?
Abstract (arXiv)
We study the fundamental optimization principles of self-attention, the defining mechanism of transformers, by analyzing the implicit bias of gradient-based optimizers in training a self-attention layer with a linear decoder in binary classification. Building on prior studies in linear logistic regression, recent findings demonstrate that the key-query matrix Wt from gradient-descent (GD) converges in direction towards Wmm, which maximizes the margin between optimal and non-optimal tokens across sequences. However, this convergence is local, dependent on initial conditions, only holds asymptotically as the number of iterations increases, and leaves questions about the potential benefits of adaptive step-size rules unaddressed. To bridge this gap, we first establish scenarios for which convergence is provably global. We then analyze two adaptive step-size strategies: normalized GD and Polyak step-size, demonstrating finite-time convergence rates for Wt to Wmm, and quantifying the sparsification rate of the attention map. These findings not only show that these strategies can accelerate parameter convergence over standard GD in a non-convex setting but also deepen the understanding of the implicit bias in self-attention, linking it more closely to the phenomena observed in linear logistic regression despite its intricate non-convex nature.
Key facts. Cited by 31 papers in the map (data through 14 Oct 2026). Builds on 66 of its 81 references that are in the map. First posted on arXiv 8 Feb 2024.
Builds on
66 of 81 references.
References · 66
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
38 more
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 655
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2019Implicit Regularization in Deep Matrix Factorizationcited by 405
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 404
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2019Gradient Descent Maximizes the Margin of Homogeneous Neural Networkscited by 320
- 2020Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Losscited by 268
- 2020Loss landscapes and optimization in over-parameterized non-linear systems and neural networkscited by 233
- 2019Generalization Bounds of Stochastic Gradient Descent for Wide and Deep Neural Networkscited by 222
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2020Directional convergence and alignment in deep learningcited by 178
- 2022Adan: Adaptive Nesterov Momentum Algorithm for Faster Optimizing Deep Modelscited by 174
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2020Towards Resolving the Implicit Bias of Gradient Descent for Matrix Factorization: Greedy Low-Rank Learningcited by 150
- 2020Stochastic Polyak Step-size for SGD: An Adaptive Learning Rate for Fast Convergencecited by 137
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2021Vision Transformer for Small-Size Datasetscited by 122
- 2019Harmless interpolation of noisy data in regressioncited by 121
- 2023Noise Is Not the Main Factor Behind the Gap Between SGD and Adam on Transformers, but Sign Descent Might Becited by 114
- 2018Convergence of Gradient Descent on Separable Datacited by 110
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2022Vision Transformers provably learn spatial structurecited by 93
- 2022Benign Overfitting in Two-layer Convolutional Neural Networkscited by 91
- 2022On the Implicit Bias in Deep-Learning Algorithmscited by 86
- 2018Risk and parameter convergence of logistic regressioncited by 85
- 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 83
- 2020Finite-sample Analysis of Interpolating Linear Classifiers in the Overparameterized Regimecited by 81
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2015Beyond Convexity: Stochastic Quasi-Convex Optimizationcited by 76
- 2022Benign Overfitting without Linearity: Neural Network Classifiers Trained by Gradient Descent for Noisy Linear Datacited by 74
- 2020Global Convergence of Deep Networks with One Wide Layer Followed by Pyramidal Topologycited by 66
- 2023Max-Margin Token Selection in Attention Mechanismcited by 58
- 2023JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attentioncited by 52
- 2023On the Role of Attention in Prompt-tuningcited by 50
- 2022Implicit Bias in Leaky ReLU Networks Trained on High-Dimensional Datacited by 46
- 2020Implicit Regularization in ReLU Networks with the Square Losscited by 45
- 2021Benign Overfitting in Multiclass Classification: All Roads Lead to Interpolationcited by 42
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2024: 9; 2025: 15; 2026: 7.
31 papers.
Sort:
By area:
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Datacited by 41
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 19
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Contextcited by 15
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 14
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGDcited by 13
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Biascited by 11
- 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformerscited by 10
- 2024Training Dynamics of Transformers to Recognize Word Co-occurrence via Gradient Flow Analysiscited by 9
19 more
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selectioncited by 9
- 2024How Transformers Get Rich: Approximation and Dynamics Analysiscited by 8
- 2025Transformative or Conservative? Conservation laws for ResNets and Transformerscited by 7
- 2024On the Learn-to-Optimize Capabilities of Transformers in In-Context Sparse Recoverycited by 6
- 2025When Do Transformers Outperform Feedforward and Recurrent Networks? A Statistical Perspectivecited by 3
- 2025Diagonalizing the Softmax: Hadamard Initialization for Tractable Cross-Entropy Dynamicscited by 2
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformerscited by 2
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridgecited by 2
- 2025Revisiting Transformers through the Lens of Low Entropy and Dynamic Sparsitycited by 1
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalizationcited by 1
- 2025Attention with Trained Embeddings Provably Selects Important Tokenscited by 1
- 2025Learning Linear Regression with Low-Rank Tasks in-Contextcited by 1
- 2025Transformers are almost optimal metalearners for linear classificationcited by 1
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformerscited by 1
- 2025Variational Deep Learning via Implicit Regularizationcited by 0
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Inductioncited by 0
- 2026Transformer as an Euler Discretization of Score-based Variational Flowcited by 0
- 2026The Implicit Bias of Depth: From Neural Collapse to Softmax Codescited by 0
- 2026Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attentioncited by 0
- 2026Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attention21 Jul 2026
- 2026The Implicit Bias of Depth: From Neural Collapse to Softmax Codes21 May 2026
- 2026Transformer as an Euler Discretization of Score-based Variational Flow26 Apr 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Breaking the Reversal Curse in Autoregressive Language Models via Identity Bridge2 Feb 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026
- 2025Diagonalizing the Softmax: Hadamard Initialization for Tractable Cross-Entropy Dynamics3 Dec 2025
- 2025Transformers are almost optimal metalearners for linear classification22 Oct 2025
- 2025Learning Linear Regression with Low-Rank Tasks in-Context6 Oct 2025
- 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers12 Jun 2025
- 2025Transformative or Conservative? Conservation laws for ResNets and Transformers6 Jun 2025
19 more
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGD29 May 2025
- 2025Variational Deep Learning via Implicit Regularization26 May 2025
- 2025Attention with Trained Embeddings Provably Selects Important Tokens22 May 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
- 2025Revisiting Transformers through the Lens of Low Entropy and Dynamic Sparsity26 Apr 2025
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learning6 Apr 2025
- 2025When Do Transformers Outperform Feedforward and Recurrent Networks? A Statistical Perspective14 Mar 2025
- 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Data7 Feb 2025
- 2025Training Dynamics of In-Context Learning in Linear Attention27 Jan 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
- 2024How Transformers Get Rich: Approximation and Dynamics Analysis15 Oct 2024
- 2024Training Dynamics of Transformers to Recognize Word Co-occurrence via Gradient Flow Analysis12 Oct 2024
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Context2 Oct 2024
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Prediction25 Sep 2024
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attention13 Mar 2024
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implications11 Mar 2024
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Models28 Feb 2024
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2025Implicit Bias of Spectral Descent and Muon on Multiclass Separable Datacited by 41
- 2024Implicit Regularization of Gradient Flow on One-Layer Softmax Attentioncited by 19
- 2024Trained Transformer Classifiers Generalize and Exhibit Benign Overfitting In-Contextcited by 15
- 2024Implicit Optimization Bias of Next-Token Prediction in Linear Modelscited by 14
- 2024Transformers Learn Low Sensitivity Functions: Investigations and Implicationscited by 14
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGDcited by 13
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Biascited by 11
- 2024Training Dynamics of Transformers to Recognize Word Co-occurrence via Gradient Flow Analysiscited by 9
- 2024Optimizing Attention with Mirror Descent: Generalized Max-Margin Token Selectioncited by 9
12 most cited of 28 All 28 (JSON)
- 2026Relative Positions Generalize, Absolute Positions Memorize: An Implicit-Bias Account of Length Generalization in Attention21 Jul 2026
- 2026The Implicit Bias of Depth: From Neural Collapse to Softmax Codes21 May 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Finite-Time Analysis of Gradient Descent for Shallow Transformers23 Jan 2026
- 2026Unlabeled Data Can Provably Enhance In-Context Learning of Transformers15 Jan 2026
- 2025Diagonalizing the Softmax: Hadamard Initialization for Tractable Cross-Entropy Dynamics3 Dec 2025
- 2025Transformers are almost optimal metalearners for linear classification22 Oct 2025
- 2025Learning Linear Regression with Low-Rank Tasks in-Context6 Oct 2025
- 2025Transformative or Conservative? Conservation laws for ResNets and Transformers6 Jun 2025
- 2025The Rich and the Simple: On the Implicit Bias of Adam and SGD29 May 2025
- 2025Variational Deep Learning via Implicit Regularization26 May 2025
- 2025Attention with Trained Embeddings Provably Selects Important Tokens22 May 2025
12 newest of 28 All 28 (JSON)