How Multi-Timescale Memory Cools Optimization: Theory and Evidence from AdEMAMix
Organizations: Department of Mathematical Modeling and Machine Learning, University of Zurich · ELLIS Institute Tübingen, MPI for Intelligent Systems, Tübingen AI Center
Abstract
Augmenting AdamW with multiple momentum timescales improves large language model pretraining, yet the mechanism driving these gains remains poorly understood. We identify an interaction between multi-timescale optimizer memory and the geometry of normalized networks: memory changes parameter norms and thereby controls how fast parameters rotate. Starting from exact norm dynamics under decoupled weight decay, we show that the parameter norm depends on the temporal correlation of the updates, with weight decay controlling how long these correlations influence optimization. We show how an independently weighted slow momentum can substantially increase the norm of parameters, while contributing negligible power to the instantaneous update, therefore acting as an endogenous annealing schedule. We study this mechanism in AdEMAMix for language-model pretraining. Controlled interventions show that this scheduling mechanism has clear practical consequences and is an important factor behind AdEMAMix's advantage over AdamW.
Figures & tables
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Search or comparison | Grid and selected setting |
|---|---|
| AdamW : joint | ; ; peak , at |
| AdamW : decay | ; selected fixed |
| AdEMAMix : slow channel | ; ; , , peak and fixed |
| AdEMAMix : decay | ; selected optimizer settings fixed |
| AdamH , joint | ; ; |
| AdEMAMixH , amplitude | at and fixed AdamH settings |
| Schedule | Optimizer | Mean loss | SD (millinats) |
|---|---|---|---|
| Constant | AdamW | ||
| Constant | AdEMAMix | ||
| Constant | AdamW with AdEMAMix norms | ||
| Constant | AdEMAMix with AdamW norms | ||
| Cosine | AdamW | ||
| Cosine | AdEMAMix |
| Common grid | |
|---|---|
| Configuration | Selected rate |
| AdamW | |
| AdEMAMix | |
| AdamW with AdEMAMix norms | |
| AdEMAMix with AdamW norms | |
| Radial-off |
| Schedule | Quantity | Fast | Overlap | Slow |
|---|---|---|---|---|
| Constant | Present power | |||
| Survived displacement | ||||
| Cosine | Present power | |||
| Survived displacement |
Neural Network Optimization
Neural network optimization studies algorithms and training dynamics that help models learn efficiently, reliably, and generalize well.
See all 368 papers