mlsanityData to 14 Oct 2026

The Stability-Efficiency Dilemma: Investigating Sequence Length Warmup for Training GPT Models

arXiv 2108.06084 ↗First posted 13 Aug 2021cs.LG cs.DCcited by 36

Not on the map. Why?

Abstract (arXiv)

Recent works have demonstrated great success in pre-training large-scale autoregressive language models on massive GPUs. To reduce the wall-clock training time, a common practice is to increase the batch size and learning rate. However, such practice is often brittle and leads to a so-called stability-efficiency dilemma: increasing the batch sizes and learning rates leads to better training efficiency but can also result in training instability, leading to poor generalization accuracy or failed runs. To better understand this phenomenon, we conduct an in-depth analysis on large-scale pre-training experiments replicating the GPT-2 model. We find that there is a strong correlation between training instability and extreme values of gradient variance, and that samples with long sequence lengths contribute to these extreme gradient variance values, especially at the beginning of the training, indicating that long sequence length can be a main source of training instability. Based on the analysis, we present a Sequence Length Warmup method that aims to solve the training stability-efficiency dilemma. Experiments replicating GPT-2 models show that our approach enables stable training with 8x larger batch size and 4x larger learning rate, whereas the baseline approach struggles with training instability. To achieve the same or better zero-shot evaluation results, our method reduces the required number of training tokens and wall clock time by up to 2.2x and 3.7x, respectively. Experiments replicating GPT-3 model (125M) show that our approach enables stable training with 8x larger batch size and 40x larger learning rate, and retains 99% of the zero-shot accuracy on 11 tasks using 10x less data and 17x less time compared to the original GPT-3 training recipe, while the baseline diverges under the same settings and only retain 95% of accuracy under lower learning rate.

Key facts. Cited by 36 papers in the map (data through 14 Oct 2026). Builds on 35 of its 70 references that are in the map. First posted on arXiv 13 Aug 2021.

Builds on

35 of 70 references.

References · 35

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2020Scaling Laws for Neural Language Modelscited by 6,586
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  10. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  11. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  12. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
23 more
  1. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  2. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  3. 2017Mixed Precision Trainingcited by 1,156
  4. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  5. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  6. 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
  7. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
  8. 2019Defending Against Neural Fake Newscited by 559
  9. 2017Don't Decay the Learning Rate, Increase the Batch Sizecited by 320
  10. 2018A Simple Method for Commonsense Reasoningcited by 223
  11. 2019Competence-based Curriculum Learning for Neural Machine Translationcited by 202
  12. 2020How Can We Accelerate Progress Towards Human-like Linguistic Generalization?cited by 114
  13. 2016Averaged-DQN: Variance Reduction and Stabilization for Deep Reinforcement Learningcited by 106
  14. 2020Shortformer: Better Language Modeling using Shorter Inputscited by 76
  15. 20211-bit Adam: Communication Efficient Large-Scale Training with Adam's Convergence Speedcited by 75
  16. 2017Curriculum Learning and Minibatch Bucketing in Neural Machine Translationcited by 63
  17. 2019Curriculum Learning for Domain Adaptation in Neural Machine Translationcited by 59
  18. 2019Simple and Effective Curriculum Pointer-Generator Networks for Reading Comprehension over Long Narrativescited by 59
  19. 2018An Empirical Exploration of Curriculum Learning for Neural Machine Translationcited by 58
  20. 2019Control Regularization for Reduced Variance Reinforcement Learningcited by 37
  21. 2021Curriculum learning for language modelingcited by 32
  22. 2018Variance Reduction for Reinforcement Learning in Input-Driven Environmentscited by 30
  23. 20211-bit LAMB: Communication Efficient Large-Scale Large-Batch Training with LAMB's Convergence Speedcited by 24

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 2; 2023: 10; 2024: 11; 2025: 9; 2026: 4.

36 papers.

Sort:

By area:

  1. 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
  2. 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
  3. 2025Online Difficulty Filtering for Reasoning Oriented Reinforcement Learningcited by 104
  4. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
  5. 2023SPDF: Sparse Pre-training and Dense Fine-tuning for Large Language Modelscited by 28
  6. 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
  7. 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
  8. 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 26
  9. 2023Block-State Transformerscited by 24
  10. 2024Curriculum Learning for Small Code Language Modelscited by 22
  11. 2023Irreducible Curriculum for Language Model Pretrainingcited by 16
  12. 2024SmileyLlama: Modifying Large Language Models for Directed Chemical Space Explorationcited by 14
24 more
  1. 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
  2. 2024Progress and Opportunities of Foundation Models in Bioinformaticscited by 13
  3. 2023Dynamic Masking Rate Schedules for MLM Pretrainingcited by 12
  4. 2025IRGPT: Understanding Real-world Infrared Image with Bi-cross-modal Curriculum on Large-scale Benchmarkcited by 12
  5. 2024Fisher Information-based Efficient Curriculum Federated Learning with Large Language Modelscited by 6
  6. 2025SkyLadder: Better and Faster Pretraining via Context Window Schedulingcited by 6
  7. 2026Curriculum Learning for LLM Pretraining: An Analysis of Learning Dynamicscited by 6
  8. 2024Multi-attribute Auction-based Resource Allocation for Twins Migration in Vehicular Metaverses: A GPT-based DRL Approachcited by 5
  9. 2024Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikescited by 4
  10. 2024Adaptive Batch Size Schedules for Distributed Training of Language Models with Data and Model Parallelismcited by 4
  11. 2025MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Trainingcited by 4
  12. 2023How Much Context Does My Attention-Based ASR System Need?cited by 3
  13. 2025Influence-driven Curriculum Learning for Pre-training on Limited Datacited by 2
  14. 2022Confidence-Aware Paced-Curriculum Learning by Label Smoothing for Surgical Scene Understandingcited by 1
  15. 2024dnaGrinder: a lightweight and high-capacity genomic foundation modelcited by 1
  16. 2024PLaMo-100B: A Ground-Up Language Model Designed for Japanese Proficiencycited by 1
  17. 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentationcited by 1
  18. 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
  19. 2024MediSwift: Efficient Sparse Pre-trained Biomedical Language Modelscited by 0
  20. 2025Attention Condensation via Sparsity Induced Regularized Trainingcited by 0
  21. 2025General Intelligence-based Fragmentation (GIF): A framework for peak-labeled spectra simulationcited by 0
  22. 2025BdSL-SPOTER: A Transformer-Based Framework for Bengali Sign Language Recognition with Cultural Adaptationcited by 0
  23. 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Modelscited by 0
  24. 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generationcited by 0