LGOct 31, 2024

Analyzing & Reducing the Need for Learning Rate Warmup in GPT Training

arXiv:2410.23922v119 citationsh-index: 7NIPS
Originality Incremental advance
AI Analysis

This work addresses a practical issue for researchers and practitioners training large language models like GPT, offering insights to improve optimization efficiency, though it is incremental as it builds on existing warmup heuristics.

The paper tackled the problem of understanding and reducing the need for learning rate warmup in GPT training, finding that warmup helps counteract large angular updates and limited critical batch size early on, and showed that modifying the optimizer to normalize updates can significantly reduce or eliminate warmup requirements.

Learning Rate Warmup is a popular heuristic for training neural networks, especially at larger batch sizes, despite limited understanding of its benefits. Warmup decreases the update size $Δ\mathbf{w}_t = η_t \mathbf{u}_t$ early in training by using lower values for the learning rate $η_t$. In this work we argue that warmup benefits training by keeping the overall size of $Δ\mathbf{w}_t$ limited, counteracting large initial values of $\mathbf{u}_t$. Focusing on small-scale GPT training with AdamW/Lion, we explore the following question: Why and by which criteria are early updates $\mathbf{u}_t$ too large? We analyze different metrics for the update size including the $\ell_2$-norm, resulting directional change, and impact on the representations of the network, providing a new perspective on warmup. In particular, we find that warmup helps counteract large angular updates as well as a limited critical batch size early in training. Finally, we show that the need for warmup can be significantly reduced or eliminated by modifying the optimizer to explicitly normalize $\mathbf{u}_t$ based on the aforementioned metrics.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes