arXiv:2611.04987cs.LGNov 2026

Manuscript Offprint

arXiv:2611.04987

ZEMA: confidence-calibrated signed descent with only one state

Ali Dadsetan, Domenic Rosati, Frank Rudzicz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recent work characterizes the Adam optimizer as sign descent modulated by gradient uncertainty: the update is the sign of the batch gradient, scaled by how strongly the batch supports that sign. We apply this view directly and introduce ZEMA (Z-score Evidence Momentum Adaptation), which measures that support with a per-coordinate z-score computed from the per-example gradients in the current batch, converts it into a sign probability, and smooths the resulting update with a single exponential moving average. Because the probability is formed before smoothing rather than after, ZEMA keeps one state per parameter instead of Adam's two, at a 4.6% increase in per-step time; the per-example variance it requires can also be estimated from a small fraction of the batch. In fine-tuning and pretraining experiments, ZEMA is competitive with Adam, reduces the variability of the validation loss, and in some settings recovers the sign of the full-dataset gradient more consistently. We close with two directions this opens: extending confidence adaptation beyond the sign geometry, to methods such as Muon, and to differentially private training.

1. Introduction

Sign descent dynamics explain a considerable part of Adam's success Bernstein et al. (2018); Kunstner et al. (2023); Kunstner and Bach (2025); Tomihari and Sato (2025); Zhao et al. (2025), alongside recent geometric accounts that are outside the scope of this paper (Xie et al., 2025; Bernstein and Newhouse, 2024). However, sign descent methods degrade at smaller batch sizes relative to Adam Semenov et al. (2025); Kunstner et al. (2023), which suggests a greater sensitivity to gradient noise: even extensively tuned Signum underperforms Adam Orvieto and Gower (2025).

Adam as uncertainty-aware adaptation One explanation for this gap is that Adam scales its step by the uncertainty in the sign. If the sign of the stochastic batch gradient, mi=B−1∑nginm_i = B^{-1} \sum_n g_i^n for per-example gradients ging_i^n with respect to the iith parameter, is positive with probability ρi\rho_i, then the iith component of the Adam update is approximately 2ρi−112\rho_i - 1^1. When the sign is deterministic, i.e., ρi=0\rho_i = 0 or ρi=1\rho_i = 1, this reduces to sign descent; when both signs are equally likely, i.e., ρi=0.5\rho_i = 0.5, the update is zero. Prior work interprets Adam as a three-stage procedure for estimating ρi\rho_i: (i) assume a normal distribution for the stochastic batch gradient Balles and Hennig (2020); Orvieto and Gower (2025); (ii) estimate its mean and standard deviation, mim_i and σi\sigma_i, by variational inference, implemented

  1. For readers unfamiliar with this theory, see our review in Appendix A.

© A. Dadsetan, D. Rosati & F. Rudzicz.

as an exponential moving average (EMA) Orvieto and Gower (2025); and (iii) compute the update 2ρi−12\rho_i - 1 from these estimates using an approximation to the error function, since 2ρi−1=erf(zi/2)=erf(mi/(2σi))2\rho_i - 1 = \text{erf}(z_i/\sqrt{2}) = \text{erf}(m_i/(\sqrt{2}\sigma_i)) for the z-score zi=mi/σiz_i = m_i/\sigma_i Balles and Hennig (2020).

Contributions. We take the magnitude of a signed update to reflect how strongly the batch supports that sign, and we measure that support per coordinate with a z-score. ZEMA computes ziz_i from the spread of the per-example gradients in the current batch, converts it to the probability ρi\rho_i that the full-dataset gradient is positive, and smooths the resulting update with a single exponential moving average (Algorithm 1). Adam forms this probability after smoothing, whereas ZEMA forms it before, and therefore needs only one state per parameter. The per-example variance this requires costs 4.6% more per step (Table 14, Appendix E), and can be estimated from a small fraction of the batch (Appendix E.7). ZEMA matches AdamW on LoRA fine-tuning to within 0.04 perplexity (Table 1) and improves on it by 0.6 perplexity at 160M-parameter pretraining, at roughly a quarter of AdamW's seed-to-seed standard deviation and at the learning rate chosen for AdamW (Table 2).

Related work Previous adaptive methods store only the first moment (Signum Bernstein et al. (2018), Lion Chen et al. (2023)) or only the second (AdaGrad Duchi et al. (2011), RMSProp Hinton et al. (2012)), whereas ZEMA keeps a single statistic, the z-score, that combines the information both provide. Muon Jordan et al. (2024), which works in a different geometry, and GaLore Zhao et al. (2024), which projects gradients into a low-rank subspace, are also used for training large language models, but their connection to signed descent is currently unclear and outside the scope of this paper; we include both in Appendix C.6 for a broad comparison. Variance-reduction strategies such as MARS (Yuan et al., 2024) could be applied on top of ZEMA, which we leave to future work. Finally, ours is not the first work to use per-example variance, or to motivate Adam in terms of a z-score-like statistic (Kunze et al., 2021; Balles and Hennig, 2020; Patitucci and Mokhtari, 2026), but these works do not use it to reduce the number of optimizer states, nor do they evaluate extensively in the LLM regime, where large-batch pretraining involves non-stationary gradients from rare tokens.

References (31)