mlsanityData to 7 Oct 2026

Understanding the Difficulty of Training Transformers

arXiv 2004.08249 ↗First posted 17 Apr 2020cs.LG cs.CL stat.MLcited by 210

Not on the map. Why?

Abstract (arXiv)

Transformers have proved effective in many NLP tasks. However, their training requires non-trivial efforts regarding designing cutting-edge optimizers and learning rate schedulers carefully (e.g., conventional SGD fails to train Transformers effectively). Our objective here is to understand textitwhat complicates Transformer training from both empirical and theoretical perspectives. Our analysis reveals that unbalanced gradients are not the root cause of the instability of training. Instead, we identify an amplification effect that influences training substantially -- for each layer in a multi-layer Transformer model, heavy dependency on its residual branch makes training unstable, since it amplifies small parameter perturbations (e.g., parameter updates) and results in significant disturbances in the model output. Yet we observe that a light dependency limits the model potential and leads to inferior trained models. Inspired by our analysis, we propose Admin (Adaptive model initialization) to stabilize stabilize the early stage's training and unleash its full potential in the late stage. Extensive experiments show that Admin is more stable, converges faster, and leads to better performance. Implementations are released at: https://github.com/LiyuanLucasLiu/Transforemr-Clinic.

Key facts. Cited by 210 papers in the map (data through 7 Oct 2026). First posted on arXiv 17 Apr 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 37; 2022: 27; 2023: 53; 2024: 25; 2025: 34; 2026: 34.

210 papers.

Sort:

By area:

  1. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  2. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  3. 2021Revisiting Deep Learning Models for Tabular Datacited by 725
  4. 2021ImageNet-21K Pretraining for the Massescited by 607
  5. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
  6. 2021A Survey of Transformerscited by 399
  7. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  8. 2023Fine-Tuning Language Models with Just Forward Passescited by 337
  9. 2022ActionFormer: Localizing Moments of Actions with Transformerscited by 308
  10. 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
  11. 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 260
  12. 2021Are Transformers More Robust Than CNNs?cited by 187
38 more
  1. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  2. 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
  3. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 154
  4. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  5. 2022MetaFormer Baselines for Visioncited by 131
  6. 2024Why Transformers Need Adam: A Hessian Perspectivecited by 123
  7. 2022A Kernel-Based View of Language Model Fine-Tuningcited by 118
  8. 2023Noise Is Not the Main Factor Behind the Gap Between SGD and Adam on Transformers, but Sign Descent Might Becited by 114
  9. 2021Taming Sparsely Activated Transformer with Stochastic Expertscited by 112
  10. 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 106
  11. 2023Linear attention is (maybe) all you need (to understand transformer optimization)cited by 97
  12. 2021Efficient Two-Stage Detection of Human-Object Interactions with a Novel Unary-Pairwise Transformercited by 91
  13. 2022Adaptive Gradient Methods at the Edge of Stabilitycited by 88
  14. 2021TransRefer3D: Entity-and-Relation Aware Transformer for Fine-Grained 3D Visual Groundingcited by 86
  15. 2021Lessons on Parameter Sharing across Layers in Transformerscited by 85
  16. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  17. 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 83
  18. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  19. 2024Hyper-Connectionscited by 81
  20. 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 78
  21. 2021A Practical Survey on Faster and Lighter Transformerscited by 73
  22. 2021Stabilizing Equilibrium Models by Jacobian Regularizationcited by 71
  23. 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
  24. 2024Attention Heads of Large Language Models: A Surveycited by 65
  25. 2021Skyformer: Remodel Self-Attention with Gaussian Kernel and Nystr"om Methodcited by 61
  26. 2023Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable Transformerscited by 59
  27. 2021Distributed Deep Learning in Open Collaborationscited by 58
  28. 2022Mixture of Attention Heads: Selecting Attention Heads Per Tokencited by 58
  29. 2025The Curse of Depth in Large Language Modelscited by 58
  30. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 51
  31. 2021VTNet: Visual Transformer Network for Object Goal Navigationcited by 50
  32. 2024LoRA Training in the NTK Regime has No Spurious Local Minimacited by 48
  33. 2021Long-Range Transformers for Dynamic Spatiotemporal Forecastingcited by 46
  34. 2022Transformers in Time-series Analysis: A Tutorialcited by 45
  35. 2021GradInit: Learning to Initialize Neural Networks for Stable and Efficient Trainingcited by 44
  36. 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 44
  37. 2024SAMformer: Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attentioncited by 43
  38. 2021A Loss Curvature Perspective on Training Instability in Deep Learningcited by 39

50 most cited of 210 All 210 (JSON)