paper-with-me

홈 › Papers

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

2021-08-13 · Conglong Li, Minjia Zhang, Yuxiong He

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.

📄 PDF Abstract BibTeX arXiv:2108.06084

Code (1)

microsoft/DeepSpeed 공식 구현 pytorch

Tasks

LAMBADAText Generation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
GPT GPT is a Transformer-based architecture and training procedure for natural language processing tasks. Training follows a…
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…
Weight Decay 설명 없음

Similar Papers 제목 키워드 기반

DSDE: Dynamic Speculative Decoding with KLD Stability for Real-World Serving

2025-09-01 · Mingyu Yang, Jae-Young Choi, Kihyo Moon, Minsung Jang 외 arxiv

Speculative decoding accelerates large language model inference, but its reliance on a fixed speculation length is suboptimal in large-batch serving environments with diverse requests. This paper explores a new direction…

Lifelong Learning with Task-Specific Adaptation: Addressing the Stability-Plasticity Dilemma

2025-03-08 · Ruiyu Wang, Sen Wang, Xinxin Zuo, Qiang Sun

Lifelong learning (LL) aims to continuously acquire new knowledge while retaining previously learned knowledge. A central challenge in LL is the stability-plasticity dilemma, which requires models to balance the preserva…

Lifelong learningparameter-efficient fine-tuning

UP: Unbounded Positive Asymmetric Optimization for Breaking the Exploration-Stability Dilemma

2026-07-08 · Chongyu Fan, Pengfei Liu, Jingjia Huang, Sijia Liu 외 arxiv

Reinforcement learning (RL) has become the standard paradigm for enhancing the complex reasoning capabilities of large language models (LLMs). To achieve sample efficiency, modern RL frameworks rely on importance samplin…

Reinforcement Learning

Fractional Rotation, Full Potential? Investigating Performance and Convergence of Partial RoPE

2026-03-12 · Mohammad Aflah Khan, Krishna P. Gummadi, Manish Gupta, Abhilasha Ravichander arxiv

Rotary Positional Embedding (RoPE) is a common choice in transformer architectures for encoding relative positional information. Although earlier work has examined omitting RoPE in specific layers, the effect of varying …

Rethinking Importance Sampling in LLM Policy Optimization: A Cumulative Token Perspective

2026-05-08 · Yuheng Zhang, Chenlu Ye, Shuowei Jin, Changlong Yu 외 arxiv

Reinforcement learning, including reinforcement learning with verifiable rewards (RLVR), has emerged as a powerful approach for LLM post-training. Central to these approaches is the design of the importance sampling (IS)…

Reinforcement LearningMathematical Reasoning