On the Convergence of Gradient Descent on Learning Transformers with Residual Connections
Not on the map. Why?
Abstract (arXiv)
Transformer models have emerged as fundamental tools across various scientific and engineering disciplines, owing to their outstanding performance in diverse applications. Despite this empirical success, the theoretical foundations of Transformers remain relatively underdeveloped, particularly in understanding their training dynamics. Existing research predominantly examines isolated components--such as self-attention mechanisms and feedforward networks--without thoroughly investigating the interdependencies between these components, especially when residual connections are present. In this paper, we aim to bridge this gap by analyzing the convergence behavior of a structurally complete yet single-layer Transformer, comprising self-attention, a feedforward network, and residual connections. We demonstrate that, under appropriate initialization, gradient descent exhibits a linear convergence rate, where the convergence speed is determined by the minimum and maximum singular values of the output matrix from the attention layer. Moreover, our analysis reveals that residual connections serve to ameliorate the ill-conditioning of this output matrix, an issue stemming from the low-rank structure imposed by the softmax operation, thereby promoting enhanced optimization stability. We also extend our theoretical findings to a multi-layer Transformer architecture, confirming the linear convergence rate of gradient descent under suitable initialization. Empirical results corroborate our theoretical insights, illustrating the beneficial role of residual connections in promoting convergence stability.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 46 of its 55 references that are in the map. First posted on arXiv 5 Jun 2025.
Builds on
46 of 55 references.
References · 46
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 787
- 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 645
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2017Deep Interest Network for Click-Through Rate Predictioncited by 544
34 more
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2018A Convergence Analysis of Gradient Descent for Deep Linear Neural Networkscited by 184
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 130
- 2023In-Context Convergence of Transformerscited by 115
- 2016Identity Matters in Deep Learningcited by 109
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
- 2020Tight Bounds on the Smallest Eigenvalue of the Neural Tangent Kernel for Deep ReLU Networkscited by 87
- 2023Transformers as Support Vector Machinescited by 74
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited 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
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2018Gradient descent with identity initialization efficiently learns positive definite linear transformations by deep residual networkscited by 44
- 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
- 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
- 2024Residual Connections and Normalization Can Provably Prevent Oversmoothing in GNNscited by 34
- 2020On the Global Convergence of Training Deep Linear ResNetscited by 29
- 2022Convergence of gradient descent for deep neural networkscited by 24
- 2018Exponential Convergence Time of Gradient Descent for One-Dimensional Deep Linear Neural Networkscited by 22
- 2019Towards Understanding the Importance of Shortcut Connections in Residual Networkscited by 18
- 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
- 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
- 2024Residual Connections Harm Generative Representation Learningcited by 11
- 2024Local to Global: Learning Dynamics and Effect of Initialization for Transformerscited by 11
- 2024Unraveling the Gradient Descent Dynamics of Transformerscited by 11
- 2024Learning and Transferring Sparse Contextual Bigrams with Linear Transformerscited by 9
- 2023Tomography of Quantum States from Structured Measurements via quantum-aware transformercited by 8
- 2023Convergence Analysis for Learning Orthonormal Deep Linear Neural Networkscited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2026KV Cache Translation across Heterogeneous Large Language Modelscited by 4
- 2026Learning to Adapt: In-Context Learning Beyond Stationaritycited by 2
- 2026Convergence of Gradient Descent for General Neural Network Architectures Beyond the NTK Regimecited by 2
- 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regimecited by 1
- 2026Training Infinitely Deep and Wide Transformerscited by 1
- 2025SCALE: Upscaled Continual Learning of Large Language Modelscited by 0
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026Convergence of Gradient Descent for General Neural Network Architectures Beyond the NTK Regime22 Jun 2026
- 2026Training Infinitely Deep and Wide Transformers17 May 2026
- 2026Learning to Adapt: In-Context Learning Beyond Stationarity13 Apr 2026
- 2025SCALE: Upscaled Continual Learning of Large Language Models5 Nov 2025
- 2025Data Uniformity Improves Training Efficiency and More, with a Convergence Framework Beyond the NTK Regime30 Jun 2025