mlsanityData to 7 Oct 2026

Unraveling the Gradient Descent Dynamics of Transformers

arXiv 2411.07538 ↗First posted 12 Nov 2024cs.LG math.OCcited by 11

Not on the map. Why?

Abstract (arXiv)

While the Transformer architecture has achieved remarkable success across various domains, a thorough theoretical foundation explaining its optimization dynamics is yet to be fully developed. In this study, we aim to bridge this understanding gap by answering the following two core questions: (1) Which types of Transformer architectures allow Gradient Descent (GD) to achieve guaranteed convergence? and (2) Under what initial conditions and architectural specifics does the Transformer achieve rapid convergence during training? By analyzing the loss landscape of a single Transformer layer using Softmax and Gaussian attention kernels, our work provides concrete answers to these questions. Our findings demonstrate that, with appropriate weight initialization, GD can train a Transformer model (with either kernel type) to achieve a global optimal solution, especially when the input embedding dimension is large. Nonetheless, certain scenarios highlight potential pitfalls: training a Transformer using the Softmax attention kernel may sometimes lead to suboptimal local solutions. In contrast, the Gaussian attention kernel exhibits a much favorable behavior. Our empirical study further validate the theoretical findings.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 26 of its 32 references that are in the map. First posted on arXiv 12 Nov 2024.

Builds on

26 of 32 references.

References · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2020Longformer: The Long-Document Transformercited by 3,362
  7. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  8. 2020GLU Variants Improve Transformercited by 1,724
  9. 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
  10. 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
  11. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  12. 2018Gradient Descent Finds Global Minima of Deep Neural Networkscited by 572
14 more
  1. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  2. 2020Understanding the Difficulty of Training Transformerscited by 210
  3. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  4. 2017Non-convex Optimization for Machine Learningcited by 132
  5. 2023In-Context Convergence of Transformerscited by 112
  6. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
  7. 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
  8. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
  9. 2020Global Convergence of Deep Networks with One Wide Layer Followed by Pyramidal Topologycited by 66
  10. 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
  11. 2023Toward Understanding Why Adam Converges Faster Than SGD for Transformerscited by 50
  12. 2020Recent Theoretical Advances in Non-Convex Optimizationcited by 30
  13. 2023On the Convergence of Encoder-only Shallow Transformerscited by 13
  14. 2023Provable Identifiability of Two-Layer ReLU Neural Networks via LASSO Regularizationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

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

11 papers.