mlsanityData to 14 Oct 2026

On the Convergence of Gradient Descent on Learning Transformers with Residual Connections

arXiv 2506.05249 ↗First posted 5 Jun 2025cs.LG math.OCcited by 6

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
  8. 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 787
  9. 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 645
  10. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
  11. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  12. 2017Deep Interest Network for Click-Through Rate Predictioncited by 544
34 more
  1. 2023Trained Transformers Learn Linear Models In-Contextcited by 337
  2. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  3. 2018A Convergence Analysis of Gradient Descent for Deep Linear Neural Networkscited by 184
  4. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
  5. 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
  6. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
  7. 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 130
  8. 2023In-Context Convergence of Transformerscited by 115
  9. 2016Identity Matters in Deep Learningcited by 109
  10. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 102
  11. 2020Tight Bounds on the Smallest Eigenvalue of the Neural Tangent Kernel for Deep ReLU Networkscited by 87
  12. 2023Transformers as Support Vector Machinescited by 74
  13. 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 74
  14. 2020Global Convergence of Deep Networks with One Wide Layer Followed by Pyramidal Topologycited by 66
  15. 2023Max-Margin Token Selection in Attention Mechanismcited by 58
  16. 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
  17. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
  18. 2018Gradient descent with identity initialization efficiently learns positive definite linear transformations by deep residual networkscited by 44
  19. 2024Infinite Limits of Multi-head Transformer Dynamicscited by 39
  20. 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
  21. 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
  22. 2024Residual Connections and Normalization Can Provably Prevent Oversmoothing in GNNscited by 34
  23. 2020On the Global Convergence of Training Deep Linear ResNetscited by 29
  24. 2022Convergence of gradient descent for deep neural networkscited by 24
  25. 2018Exponential Convergence Time of Gradient Descent for One-Dimensional Deep Linear Neural Networkscited by 22
  26. 2019Towards Understanding the Importance of Shortcut Connections in Residual Networkscited by 18
  27. 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
  28. 2024Non-asymptotic Convergence of Training Transformers for Next-token Predictioncited by 13
  29. 2024Residual Connections Harm Generative Representation Learningcited by 11
  30. 2024Local to Global: Learning Dynamics and Effect of Initialization for Transformerscited by 11
  31. 2024Unraveling the Gradient Descent Dynamics of Transformerscited by 11
  32. 2024Learning and Transferring Sparse Contextual Bigrams with Linear Transformerscited by 9
  33. 2023Tomography of Quantum States from Structured Measurements via quantum-aware transformercited by 8
  34. 2023Convergence Analysis for Learning Orthonormal Deep Linear Neural Networkscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.