arXiv:2505.16363cs.LGcs.AI2025-05EMNLP被引 5

用动量自身做归一化,让大模型训练更高效

AdamS: Momentum Itself Can Be A Normalizer for LLM Pretraining and Post-training

  • 用动量和梯度平方的根作为分母,替代传统二阶统计量
  • 在GPT-2和Llama2上达到优于AdamW的训练效果
  • 无需修改代码,可直接替换AdamW,适合各类大模型

我们提出AdamS,一种针对大语言模型预训练与后训练的简单而高效的优化器。通过引入新的分母——动量与当前梯度平方加权和的平方根,AdamS无需估计二阶矩,从而在内存和计算开销上与带动量的SGD相当,同时实现更优的优化性能。该方法具有高度可移植性:可直接继承AdamW的超参数,完全模型无关,无需修改优化器接口或模型结构。其设计动机源于Transformer目标函数的$(L_0, L_1)$光滑性特性,局部光滑性由梯度幅度决定,可进一步由动量幅度近似。我们建立了严格的收敛理论,并提供实用的超参数选择指南。实验表明,AdamS在GPT-2与Llama2(最大达130亿参数)的预训练任务及后训练强化学习中表现优异,兼具效率、简洁性与理论基础。

原文摘要 · Abstract (English)

We introduce AdamS, a simple yet effective alternative to Adam for large language model (LLM) pretraining and post-training. By leveraging a novel denominator, i.e., the root of weighted sum of squares of the momentum and the current gradient, AdamS eliminates the need for second-moment estimates. Hence, AdamS is efficient, matching the memory and compute footprint of SGD with momentum while delivering superior optimization performance. Moreover, AdamS is easy to adopt: it can directly inherit hyperparameters of AdamW, and is entirely model-agnostic, integrating seamlessly into existing pipelines without modifications to optimizer APIs or architectures. The motivation behind AdamS stems from the observed $(L_0, L_1)$ smoothness properties in transformer objectives, where local smoothness is governed by gradient magnitudes that can be further approximated by momentum magnitudes. We establish rigorous theoretical convergence guarantees and provide practical guidelines for hyperparameter selection. Empirically, AdamS demonstrates strong performance in various tasks, including pre-training runs on GPT-2 and Llama2 (up to 13B parameters) and reinforcement learning in post-training regimes. With its efficiency, simplicity, and theoretical grounding, AdamS stands as a compelling alternative to existing optimizers.

优化器大模型训练自适应优化Transformer

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。