The Stability-Efficiency Dilemma: Investigating Sequence Length Warmup for Training GPT Models
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
23 more
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2017Mixed Precision Trainingcited by 1,156
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2019Defending Against Neural Fake Newscited by 559
- 2017Don't Decay the Learning Rate, Increase the Batch Sizecited by 320
- 2018A Simple Method for Commonsense Reasoningcited by 223
- 2019Competence-based Curriculum Learning for Neural Machine Translationcited by 202
- 2020How Can We Accelerate Progress Towards Human-like Linguistic Generalization?cited by 114
- 2016Averaged-DQN: Variance Reduction and Stabilization for Deep Reinforcement Learningcited by 106
- 2020Shortformer: Better Language Modeling using Shorter Inputscited by 76
- 20211-bit Adam: Communication Efficient Large-Scale Training with Adam's Convergence Speedcited by 75
- 2017Curriculum Learning and Minibatch Bucketing in Neural Machine Translationcited by 63
- 2019Curriculum Learning for Domain Adaptation in Neural Machine Translationcited by 59
- 2019Simple and Effective Curriculum Pointer-Generator Networks for Reading Comprehension over Long Narrativescited by 59
- 2018An Empirical Exploration of Curriculum Learning for Neural Machine Translationcited by 58
- 2019Control Regularization for Reduced Variance Reinforcement Learningcited by 37
- 2021Curriculum learning for language modelingcited by 32
- 2018Variance Reduction for Reinforcement Learning in Input-Driven Environmentscited by 30
- 20211-bit LAMB: Communication Efficient Large-Scale Large-Batch Training with LAMB's Convergence Speedcited by 24
Built on by
Citing papers per year: 2022: 2; 2023: 10; 2024: 11; 2025: 9; 2026: 4.
36 papers.
Sort:
By area:
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2025Online Difficulty Filtering for Reasoning Oriented Reinforcement Learningcited by 104
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
- 2023SPDF: Sparse Pre-training and Dense Fine-tuning for Large Language Modelscited by 28
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 26
- 2023Block-State Transformerscited by 24
- 2024Curriculum Learning for Small Code Language Modelscited by 22
- 2023Irreducible Curriculum for Language Model Pretrainingcited by 16
- 2024SmileyLlama: Modifying Large Language Models for Directed Chemical Space Explorationcited by 14
24 more
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
- 2024Progress and Opportunities of Foundation Models in Bioinformaticscited by 13
- 2023Dynamic Masking Rate Schedules for MLM Pretrainingcited by 12
- 2025IRGPT: Understanding Real-world Infrared Image with Bi-cross-modal Curriculum on Large-scale Benchmarkcited by 12
- 2024Fisher Information-based Efficient Curriculum Federated Learning with Large Language Modelscited by 6
- 2025SkyLadder: Better and Faster Pretraining via Context Window Schedulingcited by 6
- 2026Curriculum Learning for LLM Pretraining: An Analysis of Learning Dynamicscited by 6
- 2024Multi-attribute Auction-based Resource Allocation for Twins Migration in Vehicular Metaverses: A GPT-based DRL Approachcited by 5
- 2024Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikescited by 4
- 2024Adaptive Batch Size Schedules for Distributed Training of Language Models with Data and Model Parallelismcited by 4
- 2025MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Trainingcited by 4
- 2023How Much Context Does My Attention-Based ASR System Need?cited by 3
- 2025Influence-driven Curriculum Learning for Pre-training on Limited Datacited by 2
- 2022Confidence-Aware Paced-Curriculum Learning by Label Smoothing for Surgical Scene Understandingcited by 1
- 2024dnaGrinder: a lightweight and high-capacity genomic foundation modelcited by 1
- 2024PLaMo-100B: A Ground-Up Language Model Designed for Japanese Proficiencycited by 1
- 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentationcited by 1
- 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 1
- 2024MediSwift: Efficient Sparse Pre-trained Biomedical Language Modelscited by 0
- 2025Attention Condensation via Sparsity Induced Regularized Trainingcited by 0
- 2025General Intelligence-based Fragmentation (GIF): A framework for peak-labeled spectra simulationcited by 0
- 2025BdSL-SPOTER: A Transformer-Based Framework for Bengali Sign Language Recognition with Cultural Adaptationcited by 0
- 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Modelscited by 0
- 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generationcited by 0
- 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generation5 Sep 2026
- 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Models29 Apr 2026
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2026Curriculum Learning for LLM Pretraining: An Analysis of Learning Dynamics29 Jan 2026
- 2025BdSL-SPOTER: A Transformer-Based Framework for Bengali Sign Language Recognition with Cultural Adaptation15 Nov 2025
- 2025General Intelligence-based Fragmentation (GIF): A framework for peak-labeled spectra simulation11 Nov 2025
- 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentation27 Oct 2025
- 2025Influence-driven Curriculum Learning for Pre-training on Limited Data21 Aug 2025
- 2025IRGPT: Understanding Real-world Infrared Image with Bi-cross-modal Curriculum on Large-scale Benchmark19 Jul 2025
- 2025MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Training14 Apr 2025
- 2025Online Difficulty Filtering for Reasoning Oriented Reinforcement Learning4 Apr 2025
- 2025SkyLadder: Better and Faster Pretraining via Context Window Scheduling19 Mar 2025
24 more
- 2025Attention Condensation via Sparsity Induced Regularized Training3 Mar 2025
- 2024Adaptive Batch Size Schedules for Distributed Training of Language Models with Data and Model Parallelism30 Dec 2024
- 2024PLaMo-100B: A Ground-Up Language Model Designed for Japanese Proficiency10 Oct 2024
- 2024Initialization of Large Language Models via Reparameterization to Mitigate Loss Spikes7 Oct 2024
- 2024Fisher Information-based Efficient Curriculum Federated Learning with Large Language Models30 Sep 2024
- 2024dnaGrinder: a lightweight and high-capacity genomic foundation model24 Sep 2024
- 2024SmileyLlama: Modifying Large Language Models for Directed Chemical Space Exploration3 Sep 2024
- 2024Curriculum Learning for Small Code Language Models14 Jul 2024
- 2024Multi-attribute Auction-based Resource Allocation for Twins Migration in Vehicular Metaverses: A GPT-based DRL Approach8 Jun 2024
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum21 May 2024
- 2024MediSwift: Efficient Sparse Pre-trained Biomedical Language Models1 Mar 2024
- 2024Progress and Opportunities of Foundation Models in Bioinformatics6 Feb 2024
- 2023Spike No More: Stabilizing the Pre-training of Large Language Models28 Dec 2023
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Survey1 Dec 2023
- 2023How Much Context Does My Attention-Based ASR System Need?24 Oct 2023
- 2023Irreducible Curriculum for Language Model Pretraining23 Oct 2023
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution27 Jun 2023
- 2023Block-State Transformers15 Jun 2023
- 2023Dynamic Masking Rate Schedules for MLM Pretraining24 May 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Cluster6 Apr 2023
- 2023SPDF: Sparse Pre-training and Dense Fine-tuning for Large Language Models18 Mar 2023
- 2022Confidence-Aware Paced-Curriculum Learning by Label Smoothing for Surgical Scene Understanding22 Dec 2022
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routing7 Dec 2022
- 2023HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolutioncited by 194
- 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
- 2023SPDF: Sparse Pre-training and Dense Fine-tuning for Large Language Modelscited by 28
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 26
- 2023Block-State Transformerscited by 24
- 2024Curriculum Learning for Small Code Language Modelscited by 22
- 2023Irreducible Curriculum for Language Model Pretrainingcited by 16
- 2022DeepSpeed Data Efficiency: Improving Deep Learning Model Quality and Training Efficiency via Efficient Data Sampling and Routingcited by 13
- 2024Progress and Opportunities of Foundation Models in Bioinformaticscited by 13
12 most cited of 33 All 33 (JSON)
- 2026Branch-Centric Tokenization and Test-Time Augmentation for Skeleton Generation5 Sep 2026
- 2026Better Models, Faster Training: Sigmoid Attention for single-cell Foundation Models29 Apr 2026
- 2026QUEST: A robust attention formulation using query-modulated spherical attention31 Mar 2026
- 2026Curriculum Learning for LLM Pretraining: An Analysis of Learning Dynamics29 Jan 2026
- 2025BdSL-SPOTER: A Transformer-Based Framework for Bengali Sign Language Recognition with Cultural Adaptation15 Nov 2025
- 2025General Intelligence-based Fragmentation (GIF): A framework for peak-labeled spectra simulation11 Nov 2025
- 2025Progressive Growing of Patch Size: Curriculum Learning for Accelerated and Improved Medical Image Segmentation27 Oct 2025
- 2025Influence-driven Curriculum Learning for Pre-training on Limited Data21 Aug 2025
- 2025MegaScale-Data: Scaling Dataloader for Multisource Large Foundation Model Training14 Apr 2025
- 2025SkyLadder: Better and Faster Pretraining via Context Window Scheduling19 Mar 2025
- 2025Attention Condensation via Sparsity Induced Regularized Training3 Mar 2025
- 2024Adaptive Batch Size Schedules for Distributed Training of Language Models with Data and Model Parallelism30 Dec 2024
12 newest of 33 All 33 (JSON)