Lune

ICML2025顶会

How to set AdamW's weight decay as you scale model and dataset size

Xi Wang, Laurence Aitchison

摘要

The scaling of the optimal AdamW weight decay hyperparameter with model and dataset size is critical as we seek to build larger models, but is poorly understood. We show that weights learned by AdamW can be understood as an exponential moving average (EMA) of recent updates. This gives critical insights for how to set the weight decay in AdamW, and how the weight decay should scale with model and dataset size. In particular, the key hyperparameter for an exponential moving average is the EMA timescale. Intuitively, the EMA timescale can be understood as the number of recent iterations the EMA averages over. We find that the optimal timescale, measured in epochs, is roughly constant as we change model and dataset size. Moreover, given a learning rate, there is a one-to-one mapping from the EMA timescale to the weight decay hyperparameter. Thus, if the optimal EMA timescale is constant, that implies that as the dataset size increases, the optimal weight decay should fall and as the model size increases, the optimal weight decay should increase (if we follow the muP recommendation for scaling the learning rate). We validate these scaling rules on ResNet-18 and Vision Transformers trained on CIFAR-10 and ImageNet, and on NanoGPT pre-training on OpenWebText. Finally, we found that as training progresses, muP's learning rate scaling breaks down for AdamW unless weight decay is scaled appropriately.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Don't be lazy: CompleteP enables compute-efficient deep transformers 引用了 Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration
  • Don't be lazy: CompleteP enables compute-efficient deep transformers 引用了 Small-scale proxies for large-scale Transformer training instabilities
  • Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration 引用了 Power Lines: Scaling laws for weight decay and batch size in LLM pre-training
  • Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration 引用了 Scaling Vision Transformers to 22 Billion Parameters
  • Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and Duration 引用了 On the SDEs and Scaling Rules for Adaptive Gradient Algorithms
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 Don't be lazy: CompleteP enables compute-efficient deep transformers
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 An Exponential Learning Rate Schedule for Deep Learning
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 On the SDEs and Scaling Rules for Adaptive Gradient Algorithms
  • Power Lines: Scaling laws for weight decay and batch size in LLM pre-training 引用了 Small-scale proxies for large-scale Transformer training instabilities
  • Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales 引用了 Don't be lazy: CompleteP enables compute-efficient deep transformers
  • Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across Scales 引用了 Power Lines: Scaling laws for weight decay and batch size in LLM pre-training
  • Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCo 引用了 Small-scale proxies for large-scale Transformer training instabilities
  • On the SDEs and Scaling Rules for Adaptive Gradient Algorithms 引用了 An Exponential Learning Rate Schedule for Deep Learning
  • Small-scale proxies for large-scale Transformer training instabilities 引用了 Scaling Vision Transformers to 22 Billion Parameters
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

  1. Don't be lazy: CompleteP enables compute-efficient deep transformersNolan Dey, Bin Claire Zhang, Lorenzo Noci, Mufan Bill Li 等NeurIPS 2025 · 77 次引用
  2. Power Lines: Scaling laws for weight decay and batch size in LLM pre-trainingShane Bergsma, Nolan Dey, Gurpreet Gosal, Gavia Gray 等NeurIPS 2025 · 44 次引用
  3. Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCoZachary Charles, Gabriel Teston, Lucio M. Dery, John Keith Rush 等NeurIPS 2025 · 29 次引用
  4. Completed Hyperparameter Transfer across Modules, Width, Depth, Batch and DurationBruno Mlodozeniec, Pierre Ablin, Louis Béthune, Dan Busbridge 等ICLR 2026 · 24 次引用
  5. Hyperparameter Transfer Enables Consistent Gains of Matrix-Preconditioned Optimizers Across ScalesShikai Qiu, Charlie Chen, Hoang Phan, Qi Lei 等NeurIPS 2025 · 17 次引用

它引用的 Paper21

  1. S4L: Self-Supervised Semi-Supervised LearningLucas Beyer, Xiaohua Zhai, Avital Oliver, Alexander KolesnikovICCV 2019 · 854 次引用
  2. Scaling Vision Transformers to 22 Billion ParametersMostafa Dehghani, Josip Djolonga, Basil Mustafa, Piotr Padlewski 等ICML 2023 · 848 次引用
  3. An Exponential Learning Rate Schedule for Deep LearningZhiyuan Li, Sanjeev AroraICLR 2020 · 267 次引用
  4. Small-scale proxies for large-scale Transformer training instabilitiesMitchell Wortsman, Peter J. Liu, Lechao Xiao, Katie E. Everett 等ICLR 2024 · 162 次引用
  5. On the SDEs and Scaling Rules for Adaptive Gradient AlgorithmsSadhika Malladi, Kaifeng Lyu, Abhishek Panigrahi, Sanjeev AroraNeurIPS 2022 · 125 次引用

相关 Paper

  1. Weight Decay may matter more than µP for Learning Rate Transfer in PracticeAtli Kosson, Jeremy Welborn, Yang Liu, Martin Jaggi 等ICLR 2026 · 11 次引用
  2. How to Scale Your EMADan Busbridge, Jason Ramapuram, Pierre Ablin, Tatiana Likhomanenko 等NeurIPS 2023 · 33 次引用
  3. Adam with model exponential moving average is effective for nonconvex optimizationKwangjun Ahn, Ashok CutkoskyNeurIPS 2024 · 36 次引用
  4. The AdEMAMix Optimizer: Better, Faster, OlderMatteo Pagliardini, Pierre Ablin, David GrangierICLR 2025
  5. Scaling Exponents Across Parameterizations and OptimizersKatie E. Everett, Lechao Xiao, Mitchell Wortsman, Alexander A. Alemi 等ICML 2024 · 59 次引用
黄昏的海面,两侧是细线勾勒的悬崖