betaFeedback

WorksComputer Science

How Multi-Timescale Memory Cools Optimization: Theory and Evidence from AdEMAMix

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.

Introduction

The rapid scaling of large language models (LLMs) has increasingly relied on practical optimizer heuristics, while a principled understanding of the underlying learning mechanics ([24]) remains an open challenge. Multi-timescale optimizer memory is a recent example. While ADAMW ([17]) has long served as the standard optimizer, recent work demonstrates that augmenting it with multiple memory timescales yields significant, consistent gains across large-scale pretraining regimes ([20, 23, 8, 3, 2]). Most notably, ADEMAMIX ([20]) equips ADAMW with a second, much slower independently weighted exponential moving average (EMA) of past gradients whose timescale and strength evolve over training. Despite recent work relating ADEMAMIX to accelerated stochastic methods ([19, 3]), these perspectives do not explain how its multi-timescale memory alters the training dynamics of modern neural networks. Why such a slow momentum channel consistently benefits large-scale pretraining is therefore an open puzzle.

In this work, we show that a major driver of ADEMAMIX’s success is an indirect, geometric mechanism: the interaction between optimizer memory and parameter scale invariance. Modern language models rely heavily on normalization layers, making parameter groups exactly or approximately scale-invariant: the loss depends only on parameter directions rather than also on their norms ([25, 14]). However, the norm remains dynamically critical: it interacts with the learning rate (LR) and with optimizer updates to regulate the parameters’ rotation speed during training ([9, 26, 13]). We study how an optimizer’s memory configuration governs this radial norm trajectory and, in turn, endogenously regulates the parameter rotational dynamics:

How does multi-timescale optimizer memory shape the parameter norm, and how does this transform learning-rate schedules into endogenous rotational schedules?

Prior work establishes that momentum can alter scale-invariant norms and rotational dynamics [7, 26, 13]. Our focus is on how the temporal structure and timescales of optimizer memory determine this norm trajectory. The key mechanism is the separation between what an optimizer momentum buffer contributes to the update applied now versus what its correlated history leaves behind in the parameter norm. Starting from the exact norm dynamics under decoupled weight decay (WD), we show temporal correlations of the update govern the norm at equilibrium, with WD weighting correlations between updates at different steps. This separates instantaneous update power from the contribution of temporal correlation to the norm response: a memory channel can contribute little instantaneous power while its correlated history exerts a much larger accumulated effect on the norm, thereby dampening future rotation. Multi-timescale memory strongly amplifies this separation. In particular, an independently weighted slow channel can make this correlation contribution large without noticeably increasing instantaneous update power, accumulating a disproportionate norm contribution that anneals rotational motion. ADEMAMIX provides a clear instance of this mechanism: in our language-model runs, its slow, independently weighted, and scheduled momentum branch contributes only a few percent of instantaneous update power, yet its correlated history has a disproportionately persistent effect. The parameter norm in scale-invariant groups becomes roughly six times larger than ADAMW’s at the same LR and WD, while rotational motion is reduced by about the same factor (Figure 1a). The norm trajectory induced by optimizer memory is therefore not merely a geometric side effect: it transforms the LR schedule into an optimizer-specific rotational schedule, making optimizer memory an integral part of the scheduling problem itself.

Figure 1. Same learning rate and weight decay, different memory, in 124M Llama pretraining. (a) ADEMAMix/AdamW ratios at the same constant LR: update power stays within 10%, while the squared parameter norm grows 42× and tangential rotation slows about sixfold. (b) Validation loss for the native and transplanted runs at their selected constant rates. (c) Validation loss under cosine LR with a free radius and with Hyperball extension (AdamH, AdEMAMixH): fixing the radius helps AdamW but hurts AdEMAMix, narrowing its advantage over AdamH. In (b,c), curves and bands show the mean and one sample standard deviation over three seeds.

To quantify the optimization consequences of this transformation, we evaluate a finite-horizon last-iterate bound on the resulting rotational schedules [4], building on the observation of Schaipp et al. [22] that convex last-iterate bounds capture several empirical properties of LR scheduling. Holding the LR schedule fixed (e.g., cosine Loshchilov & Hutter, [16] or a warmup-stable-decay (WSD) schedule [10, 5]), changing optimizer memory can materially alter the resulting rotational schedule and the value of the bound. We compare the rotational profiles predicted by our memory model, and find that the bound is smaller for the cooling profile generated by slow memory, predicting a useful scheduling contribution to AdEMAMix’s performance.

We next ask whether this channel contributes to AdEMAMix’s advantage in LLM pretraining. Recent work shows that matching effective or angular step sizes over training can reproduce aspects of the loss trajectories of different optimizers or hyperparameter settings [15, 29, 28] and that this can be advantageous in terms of performance [27, 6, 11]. This motivates intervening on the norms that govern those step sizes. Removing the radial component of the update suppresses ADEMAMIX’s norm growth. Giving ADAMW the ADEMAMIX norm trajectory recovers most of the loss gap and shifts its preferred LR. The reverse transplant, instead, largely removes ADEMAMIX’s advantage despite full LR retuning Figure 1b. Applying HYPERBALL Wen et al. [27] improves ADAMW and worsens ADEMAMIX, leaving about a third of the original gap under cosine LR Figure 1c. When we switch off slow memory mid-training, its effect on relative updates weakens as the excess norm decays. Together, these interventions indicate that norm-induced rotational scheduling accounts for a large part of ADEMAMIX’s advantage over ADAMW.

More broadly, our results show that the LR, WD, and optimizer memory cannot be understood independently for scale-invariant parameters: together they generate the rotational schedule actually executed during training. We therefore recognize that this realized rotational schedule, rather than any individual hyperparameter or schedule in isolation, is a natural object for understanding and comparing optimizer dynamics and performance.

Our Contributions Our main contributions are:

  • Norm dynamics from optimizer memory. We develop a framework that expresses radial dynamics through the temporal structure of the update, separating instantaneous power from the accumulated contribution of correlated updates.

  • Rotational slowdown from multi-timescale memory. This decomposition exposes how different memory architectures, and in particular independently weighted multiple timescales, can generate outsized radial effects while contributing little instantaneous power, thereby increasing the parameter norm and annealing future rotational motion.

  • Rotational scheduling and empirical validation. We connect these dynamics to finite-horizon rotational scheduling and show through controlled LLM interventions that the norm channel explains a large part of ADEMAMIX’s advantage over ADAMW.

App. A discusses related work on multi-timescale optimizer memory, scale-invariant geometry, and radial dynamics.

Background: AdEMAMix and Scale-Invariant Dynamics

AdEMAMix

We consider updates with decoupled weight decay,

xt+1=δtxt−ηtut,δt:=1−ηtλt∈(0,1],(1)x_{t+1} = \delta_t x_t - \eta_t u_t, \qquad\delta_t := 1 - \eta_t \lambda_t \in(0,1], \tag*{(1)}

where xt∈Rdx_t \in\mathbb{R}^d, ηt>0\eta_t > 0 is the learning rate, λt≥0\lambda_t \ge0 is the weight-decay coefficient, and utu_t is the optimizer update.

Definition 2.1 (AdEMAMIX Update). Given the current gradient gtg_t, ADEMAMIX Pagliardini et al. [20] combines fast and slow momentum buffers with a shared second-moment scale:

mt+1(j)=βt(j)mt(j)+(1−βt(j))gt,j∈{f,s},m_{t+1}^{(j)} = \beta_t^{(j)} m_t^{(j)} + (1-\beta_t^{(j)})g_t, \qquad j \in\{f,s\},
vt+1=β2vt+(1−β2)gt2,ut=mt+1(f)+αtmt+1(s)vt+1+ε.(2)v_{t+1} = \beta_2 v_t + (1-\beta_2)g_t^2, \qquad u_t = \frac{m_{t+1}^{(f)}+\alpha_t m_{t+1}^{(s)}}{\sqrt{v_{t+1}+\varepsilon}}. \tag*{(2)}

We have that 0<βt(f)=β(f),βt(s)=β(s),β2<10 < \beta_t^{(f)} = \beta^{(f)}, \beta_t^{(s)} = \beta^{(s)}, \beta_2 < 1, αt>0\alpha_t > 0, and ε>0\varepsilon> 0. ADAMW Loshchilov & Hutter [17] is the case αt=0\alpha_t = 0. αt\alpha_t and βt(s)\beta_t^{(s)} are warmed up through training (App. F.1). For simplicity we ignore bias correction.

Scale Invariance, Norms, and Rotational Motion

A nonzero parameter group is scale-invariant if L(κx)=L(x)L(\kappa x)=L(x) for κ>0\kappa> 0, so the loss depends only on its unit direction x^:=x/∥x∥\hat{x} := x/\lVert x\rVert. Differentiating this identity in κ\kappa and in xx, respectively, gives

⟨∇L(x),x⟩=0,∇L(κx)=κ−1∇L(x).\langle\nabla L(x),x\rangle= 0, \qquad\nabla L(\kappa x)=\kappa^{-1}\nabla L(x).

Thus the gradient is tangent to the weight sphere and scales inversely with radius Kosson et al. [13]; ); Arora et al. [1]. Equivalently, ∇L(x)=∥x∥−1∇SL(x^)\nabla L(x)=\lVert x\rVert^{-1}\nabla_{\mathbb{S}}L(\hat{x}), where ∇SL(x^):=(I−x^x^T)∇L(x^)\nabla_{\mathbb{S}}L(\hat{x}) := (I-\hat{x}\hat{x}^{\mathsf{T}})\nabla L(\hat{x}) is the spherical gradient; App. B gives the derivations.

Directional motion depends on the update’s radial and tangential components, ut,∥:=⟨ut,x^t⟩u_{t,\parallel} := \langle u_t, \hat{x}_t\rangle and ut,⊥:=ut−ut,∥x^tu_{t,\perp} := u_t - u_{t,\parallel}\hat{x}_t. Dividing their displacements by the radius gives

qt∥:=ηtut,∥∥xt∥,qt⊥:=ηt∥ut,⊥∥∥xt∥.q^{\parallel}_t := \frac{\eta_t u_{t,\parallel}}{\lVert x_t\rVert}, \qquad q^{\perp}_t := \frac{\eta_t\lVert u_{t,\perp}\rVert}{\lVert x_t\rVert}.

The total relative update is qttot:=ηt∥ut∥/∥xt∥q^{\mathrm{tot}}_t := \eta_t\lVert u_t\rVert/ \lVert x_t\rVert. The turning angle Δϕt:=∠(xt,xt+1)\Delta\phi_t := \angle(x_t,x_{t+1}) satisfies Δϕt=arctan⁡(qt⊥/(δt−qt∥))\Delta\phi_t = \arctan(q^{\perp}_t/(\delta_t-q^{\parallel}_t)) when δt−qt∥>0\delta_t-q^{\parallel}_t > 0. For small relative updates and small weight decay, we can approximate qt⊥≃Δϕtq^{\perp}_t \simeq\Delta\phi_t ([13]); App. § 10.§ 2 gives the exact relation and approximation.

Takeaway For a fixed tangential displacement, a larger parameter norm gives a smaller rotation.

The Empirical Puzzle

AdEMAMix generates roughly sixfold larger parameter norms and fivefold slower rotation than AdamW, although the slow buffer’s own contribution to instantaneous update power is negligible. We observe this contrast in 124M-parameter Llama pretraining on FineWeb, with the same learning-rate schedule, peak rate 8⋅10−48 \cdot10^{-4}, and weight decay for both optimizers.

Figure 1a shows the norm increase under a constant learning rate; Figure 10 in App. § 14.§ 2 shows the norm and rotation trajectories under both constant and cosine rates. Here and below, the matrix norm is the aggregate ∥xt∥:=(∑m∥xm,t∥F2)1/2\lVert x_t\rVert:= \left(\sum_m \lVert x_{m,t}\rVert_F^2\right)^{1/2} over the hidden matrices that are weight-decayed, and specified in App. § 14.§ 1. The larger radius accompanies much smaller tangential relative updates.

Figure 10. Aggregate matrix norm (a) and tangential relative update (b) for 124M Llama at peak rate 8⋅10−48 \cdot10^{-4}. Constant-rate ADAMW uses one run.

To compare this effect with instantaneous power, let ut(f)u_t^{(f)} and ut(s)u_t^{(s)} denote the preconditioned fast and slow buffers. Then ut=ut(f)+αtut(s)u_t = u_t^{(f)} + \alpha_t u_t^{(s)} and

∥ut∥2=∥ut(f)∥2+2αt⟨ut(f),ut(s)⟩+αt2∥ut(s)∥2.(3)\lVert u_t\rVert^2 = \lVert u_t^{(f)}\rVert^2 + 2\alpha_t\langle u_t^{(f)},u_t^{(s)}\rangle+ \alpha_t^2\lVert u_t^{(s)}\rVert^2 . \tag*{(3)}

Over the final 30% of training, the slow-buffer power and its overlap with the fast buffer together account for only about 5% of total power under constant LR and 6% under cosine (Table 4). How can this small instantaneous contribution accompany such a large norm increase and rotational slowdown?

ScheduleQuantityFastOverlapSlow
ConstantPresent power95.0%2.0%3.0%
ConstantSurvived displacement1.0%14.4%84.6%
CosinePresent power93.7%2.2%4.1%
CosineSurvived displacement1.5%21.3%77.2%

Table 4. Shares of the three branch terms in present update power (final 30% of training) and in the squared survived update displacement at the endpoint. Coordinate-panel estimates summed over the 60 targeted matrices.

Memory-Induced Norm Cooling

Temporal Correlations Control the Parameter Norm

To gain a better understanding of AdEMAMix, we start by expanding the parameter norm recursion.

Lemma 4.1 (Squared-Norm Growth Identity). Every update in (2.1) satisfies

∥xt+1∥2=δt2∥xt∥2−2δtηt⟨xt,ut⟩+ηt2∥ut∥2.(4)\lVert x_{t+1}\rVert^2 = \delta_t^2\lVert x_t\rVert^2 - 2\delta_t\eta_t\langle x_t,u_t\rangle+ \eta_t^2\lVert u_t\rVert^2 . \tag*{(4)}

The first term contracts the previous squared radius thanks to WD. The second is a signed radial contribution: alignment of utu_t against xtx_t drives outward motion. The last term is instantaneous displacement power. Without decay, and for heavy-ball momentum on tangent gradients, the radial-work term equals the accumulated past-update power through which momentum grows scale-invariant norms in Hoe et al. (2021, Lemma 2.2).

Earlier updates enter the parameter with a minus sign. When a later update aligns with one of them, its applied displacement reinforces what remains of the earlier displacement. Positive correlations across the update history can therefore make ⟨xt,ut⟩\langle x_t,u_t\rangle negative, producing outward radial work on average. Weight decay contracts those earlier displacements at every intervening step. It consequently determines how long correlations with past updates can influence the current norm, as captured by the weighted sum below.

References

  1. [1]Sanjeev Arora, Zhiyuan Li, and Kaifeng Lyu. Theoretical analysis of auto rate-tuning by batch normalization. In International Conference on Learning Representations, 2019. Also arXiv:1812.03981.arxiv.org/abs/1812.03981
  2. [2]Katie Everett and Shikai Qiu. Optimizer memory schedules for outscaling the overtraining axis. arXiv preprint arXiv:2609.04577, 2026.arxiv.org/abs/2609.04577
  3. [3]Damien Ferbach, Courtney Paquette, Gauthier Gidel, Katie Everett, and Elliot Paquette. Logarithmic-time schedules for scaling language models with momentum. arXiv preprint arXiv:2602.05298, 2026.arxiv.org/abs/2602.05298
  4. [4]Jacopo Graldi, Antonio Orvieto, and Anastasia Koloskova. From learning rates to rotational schedules: Finite-horizon theory on the sphere. Preprint, 2026. URL https://openreview.net/forum?id=qS8Nmjrg rL.arxiv.org/abs/2611.29579
  5. [5]Alexander Hägele, Elie Bakouch, Atli Kosson, Loubna Ben Allal, Leandro von Werra, and Martin Jaggi. Scaling laws and compute-optimal training beyond fixed training durations. In Advances in Neural Information Processing Systems, volume 37, 2024.arxiv.org/abs/2405.18392
  6. [6]Alexander Hägele, Alejandro Hernández-Cano, Atli Kosson, and Martin Jaggi. Improving neural network training by decoupling the magnitude and direction of weight vectors. arXiv preprint arXiv:2606.25971, 2026.arxiv.org/abs/2606.25971
  7. [7]Byeongho Heo, Sanghyuk Chun, Seong Joon Oh, Dongyoon Han, Sangdoo Yun, Gyuwan Kim, Youngjung Uh, and Jung-Woo Ha. AdamP: Slowing down the slowdown for momentum optimizers on scale-invariant weights. In International Conference on Learning Representations, 2021. arXiv:2006.08217.arxiv.org/abs/2006.08217
  8. [8]Alejandro Hernández-Cano, Alexander Hägele, et al. Apertus: Democratizing open and compliant LLMs for global language environments. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2026. doi: 10.18653/v1/2026.acl-long.2172.
  9. [9]Elad Hoffer, Ron Banner, Itay Golan, and Daniel Soudry. Norm matters: Efficient and accurate normalization schemes in deep networks. In Advances in Neural Information Processing Systems, volume 31, 2018. arXiv:1803.01814.arxiv.org/abs/1803.01814
  10. [10]Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zheng Leng Thai, Kaihuo Zhang, Chongyi Wang, Yuan Yao, Chenyang Zhao, Jie Zhou, Jie Cai, Zhongwu Zhai, Ning Ding, Chao Jia, Guoyang Zeng, Dahai Li, Zhiyuan Liu, and Maosong Sun. MiniCPM: Unveiling the potential of small language models with scalable training strategies. arXiv preprint arXiv:2404.06395, 2024.arxiv.org/abs/2404.06395
  11. [11]Florian Hübler, Kai Lion, Antonio Orvieto, and Niao He. Muown implicitly performs angular step-size decay. arXiv preprint arXiv:2606.23637, 2026.arxiv.org/abs/2606.23637
  12. [12]Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.arxiv.org/abs/1412.6980
  13. [13]Atli Kosson, Bettina Messmer, and Martin Jaggi. Rotational equilibrium: How weight decay balances learning across neural networks. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 25333–25369. PMLR, 2024.arxiv.org/abs/2305.17212
  14. [14]Zhiyuan Li and Sanjeev Arora. An exponential learning rate schedule for deep learning. In International Conference on Learning Representations, 2020. arXiv:1910.07454.arxiv.org/abs/1910.07454
  15. [15]Zihan Liu, Ruiheng Zheng, Shaobo Zhang, Changxin Tian, Kunlong Chen, Zhiqiang Zhang, and Lei Wu. Effective learning rate governs loss dynamics in language model pretraining. arXiv preprint arXiv:2608.24814, 2026.arxiv.org/abs/2608.24814
  16. [16]Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations, 2017. arXiv:1608.03983.arxiv.org/abs/1608.03983
  17. [17]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. arXiv:1711.05101.arxiv.org/abs/1711.05101
  18. [18]James Lucas, Shengyang Sun, Richard Zemel, and Roger Grosse. Aggregated momentum: Stability through passive damping. arXiv preprint arXiv:1804.00325, 2018.arxiv.org/abs/1804.00325
  19. [19]Depen Morwani, Nikhil Vyas, Hanlin Zhang, and Sham Kakade. Connections between schedule-free optimizers, ademamix, and accelerated sgd variants. arXiv preprint arXiv:2502.02431, 2025.arxiv.org/abs/2502.02431
  20. [20]Matteo Pagliardini, Pierre Ablin, and David Grangier. The AdEMAMix optimizer: Better, faster, older. In International Conference on Learning Representations, 2025. arXiv:2409.03137.arxiv.org/abs/2409.03137
  21. [21]Simon Roburin, Yann de Mont-Marin, Andrei Bursuc, Renaud Marlet, Patrick Pérez, and Mathieu Aubry. Spherical perspective on learning with normalization layers. Neurocomputing, 487:66–74, 2022. doi: 10.1016/j.neucom.2022.02.021. arXiv:2006.13382.DOI
  22. [22]Fabian Schaipp, Alexander Hägele, Adrien Taylor, Umut Şimşekli, and Francis Bach. The surprising agreement between convex optimization theory and learning-rate scheduling for large model training. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 53267–53294. PMLR, 2025.arxiv.org/abs/2501.18965
  23. [23]Andrei Semenov, Matteo Pagliardini, and Martin Jaggi. Benchmarking optimizers for large language model pretraining. arXiv preprint arXiv:2509.01440, 2025.arxiv.org/abs/2509.01440
  24. [24]Jamie Simon, Daniel Kunin, Alexander Atanasov, Enric Boix-Adserà, Blake Bordelon, Jeremy Cohen, Nikhil Ghosh, Florentin Guth, Arthur Jacot, Mason Kamb, Dhruva Karkada, Eric J. Michaud, Berkan Ottlik, and Joseph Turnbull. There will be a scientific theory of deep learning. arXiv preprint arXiv:2604.21691, 2026.arxiv.org/abs/2604.21691
  25. [25]Twan van Laarhoven. L2 regularization versus batch and weight normalization. arXiv preprint arXiv:1706.05350, 2017.arxiv.org/abs/1706.05350
  26. [26]Ruosi Wan, Zhanxing Zhu, Xiangyu Zhang, and Jian Sun. Spherical motion dynamics: Learning dynamics of normalized neural network using SGD and weight decay. In Advances in Neural Information Processing Systems, volume 34, 2021.
  27. [27]Kaiyue Wen, Xingyu Dang, Kaifeng Lyu, Tengyu Ma, and Percy Liang. Fantastic pretraining optimizers and where to find them II: Hyperball optimization. arXiv preprint arXiv:2606.16899, 2026.arxiv.org/abs/2606.16899
  28. [28]Yihao Xiao, Jialong Sun, Zitian Gao, Zeming Wei, Chutian Wang, Ran Tao, Jiaye Teng, and Bryan Dai. Hyperball may not be a free lunch. arXiv preprint arXiv:2607.22444, 2026.arxiv.org/abs/2607.22444
  29. [29]Jinghui Yuan, Hongtao Zhang, Jade Zou, Tianyu Li, Wenjie Zhou, Tianyu He, and Wei Chen. Hyper-Transfer: Understanding the equivalence between base optimizer and hyperball. arXiv preprint arXiv:2609.07017, 2026.arxiv.org/abs/2609.07017

Paper details

vlnc:W_2k222jj4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents