用于大规模语言模型的对数时间调度
Logarithmic-time Schedules for Scaling Language Models with Momentum
AI总结:
ADANA通过引入对数时间调度和阻尼机制,在大规模语言模型训练中提升性能和效率。
摘要:
在实践中,AdamW中的超参数(β₁, β₂)和权重衰减λ通常保持固定值。是否有理由不这样做?我们显示,在大规模语言模型训练中,答案是肯定的:通过利用语言数据的幂律结构,可以为(β₁, β₂, λ)设计时间变化的调度,从而带来显著的性能提升。我们研究了对数时间调度,其中优化器的梯度记忆时间随训练时间增长。尽管朴素的此类变体不稳定,但我们显示,合适的阻尼机制可以恢复稳定性,同时保留更长记忆的好处。基于此,我们提出了ADANA,一种类似于AdamW的优化器,它将对数时间调度与显式阻尼相结合,以平衡稳定性和性能。我们通过跨Transformer扩展(45M到2.6B参数)的经验评估ADANA,将其与AdamW、Muon和AdEMAMix进行比较。当正确调优时,ADANA相对于调优的AdamW在计算效率上可达到高达40%,且随着模型规模的增加,增益会持续并甚至提高。我们进一步显示,当将对数时间调度应用于AdEMAMix时,也会出现类似的收益,且单独的对数时间权重衰减也能带来显著改进。最后,我们提出了ADANA的变体,以缓解潜在的失败模式并提高鲁棒性。
英文摘要:
In practice, the hyperparameters $(β_1, β_2)$ and weight-decay $λ$ in AdamW are typically kept at fixed values. Is there any reason to do otherwise? We show that for large-scale language model training, the answer is yes: by exploiting the power-law structure of language data, one can design time-varying schedules for $(β_1, β_2, λ)$ that deliver substantial performance gains. We study logarithmic-time scheduling, in which the optimizer's gradient memory horizon grows with training time. Although naive variants of this are unstable, we show that suitable damping mechanisms restore stability while preserving the benefits of longer memory. Based on this, we present ADANA, an AdamW-like optimizer that couples log-time schedules with explicit damping to balance stability and performance. We empirically evaluate ADANA across transformer scalings (45M to 2.6B parameters), comparing against AdamW, Muon, and AdEMAMix. When properly tuned, ADANA achieves up to 40% compute efficiency relative to a tuned AdamW, with gains that persist--and even improve--as model scale increases. We further show that similar benefits arise when applying logarithmic-time scheduling to AdEMAMix, and that logarithmic-time weight-decay alone can yield significant improvements. Finally, we present variants of ADANA that mitigate potential failure modes and improve robustness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。