Lune

NeurIPS2024顶会

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

Atli Kosson, Bettina Messmer, Martin Jaggi

摘要

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 Δwt=ηtut\Delta \mathbf{w}_t = \eta_t \mathbf{u}_t early in training by using lower values for the learning rate ηt\eta_t. In this work we argue that warmup benefits training by keeping the overall size of Δwt\Delta \mathbf{w}_t limited, counteracting large initial values of ut\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 ut\mathbf{u}_t too large? We analyze different metrics for the update size including the ℓ2\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 ut\mathbf{u}_t based on the aforementioned metrics.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Scaling with Collapse: Efficient and Predictable Training of LLM Families 引用了 Power Lines: Scaling laws for weight decay and batch size in LLM pre-training
  • Scaling with Collapse: Efficient and Predictable Training of LLM Families 引用了 Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer
  • Lions and Muons: Optimization via Stochastic Frank-Wolfe under Heavy-Tailed Noise 引用了 Symbolic Discovery of Optimization Algorithms
  • Weight Decay may matter more than µP for Learning Rate Transfer in Practice 引用了 Power Lines: Scaling laws for weight decay and batch size in LLM pre-training
  • Weight Decay may matter more than µP for Learning Rate Transfer in Practice 引用了 Symbolic Discovery of Optimization Algorithms
  • Weight Decay may matter more than µP for Learning Rate Transfer in Practice 引用了 Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 Large Batch Optimization for Deep Learning: Training BERT in 76 minutes
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer
  • Symbolic Discovery of Optimization Algorithms 引用了 On the Variance of the Adaptive Learning Rate and Beyond
  • Why Do We Need Warm-up? A Theoretical Perspective 引用了 On the Variance of the Adaptive Learning Rate and Beyond
  • Why Do We Need Warm-up? A Theoretical Perspective 引用了 On Layer Normalization in the Transformer Architecture
  • Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer 引用了 Large Batch Optimization for Deep Learning: Training BERT in 76 minutes
  • On Layer Normalization in the Transformer Architecture 引用了 On the Variance of the Adaptive Learning Rate and Beyond
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Power Lines: Scaling laws for weight decay and batch size in LLM pre-trainingShane Bergsma, Nolan Dey, Gurpreet Gosal, Gavia Gray 等NeurIPS 2025 · 44 次引用
  2. Lions and Muons: Optimization via Stochastic Frank-Wolfe under Heavy-Tailed NoiseMaria-Eleni Sfyraki, Jun-Kun WangICML 2026 · 37 次引用
  3. Weight Decay may matter more than µP for Learning Rate Transfer in PracticeAtli Kosson, Jeremy Welborn, Yang Liu, Martin Jaggi 等ICLR 2026 · 11 次引用
  4. Scaling with Collapse: Efficient and Predictable Training of LLM FamiliesShane Bergsma, Bin Claire Zhang, Nolan Simran Dey, Shaheer Muhammad 等ICLR 2026 · 10 次引用
  5. Why Do We Need Warm-up? A Theoretical PerspectiveFoivos Alimisis, Rustem Islamov, Aurelien LucchiICML 2026 · 8 次引用

它引用的 Paper20

  1. On the Variance of the Adaptive Learning Rate and BeyondLiyuan Liu, Haoming Jiang, Pengcheng He, Weizhu Chen 等ICLR 2020 · 2,210 次引用
  2. On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng 等ICML 2020 · 1,388 次引用
  3. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu 等ICLR 2020 · 1,170 次引用
  4. Symbolic Discovery of Optimization AlgorithmsXiangning Chen, Chen Liang, Da Huang, Esteban Real 等NeurIPS 2023 · 734 次引用
  5. Tuning Large Neural Networks via Zero-Shot Hyperparameter TransferGe Yang, Edward J. Hu, Igor Babuschkin, Szymon Sidor 等NeurIPS 2021 · 208 次引用

相关 Paper

  1. Rotational Equilibrium: How Weight Decay Balances Learning Across Neural NetworksAtli Kosson, Bettina Messmer, Martin JaggiICML 2024 · 39 次引用
  2. MERIT: Maximum-normalized Element-wise Ratio for Language Model Large-batch TrainingYang Luo, Zangwei Zheng, Ziheng Qin, Zirui Zhu 等ICML 2025
  3. MGUP: A Momentum-Gradient Alignment Update Policy for Stochastic OptimizationDa Chang, Ganzhao YuanNeurIPS 2025 · 9 次引用
  4. Why Warmup the Learning Rate? Underlying Mechanisms and ImprovementsDayal Singh Kalra, Maissam BarkeshliNeurIPS 2024 · 87 次引用
  5. OLion: Approaching the Hadamard Ideal by Intersecting Spectral and L inf Implicit BiasesZixiao Wang, Yifei Shen, Huishuai ZhangICML 2026
黄昏的海面,两侧是细线勾勒的悬崖