arXiv:2609.37535cs.LGSep 2026

Manuscript Offprint

arXiv:2609.37535

Why Adaptive Optimizers Underestimate Rare Tokens

Sangsidhya Kar

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

ABSTRACT

In the softmax output layer, a rare token receives a small positive logit gradient on most steps and a much larger negative gradient on the few steps when it is the target. SGD simply adds these contributions. Coordinate-wise adaptive methods such as Adam, RMSProp, and sign descent instead divide each update by a running estimate of its magnitude, and that estimate is largest immediately after the token appears. This imbalance has two effects. At the level of the whole output layer, we characterize which optimizers preserve the mean output embedding: every method whose update is linear in past gradients does, as do Kronecker-factored and orthogonalized methods such as Shampoo and Muon. Adam, Adafactor, Lion, and sign descent do not, and for these methods we obtain an exact step-by-step expression for the change. At the level of an individual rare token, the same normalization shifts the training fixed point. In the unigram model, sign descent lowers the logit of every token that occurs in fewer than half of the minibatches at a constant expected rate. For RMSProp with periodic arrivals, we can solve the fixed point in closed form: if a token is absent for at least two consecutive minibatches, its equilibrium probability is strictly below its data frequency for every learning rate, and the ratio tends to κ/(2(eκ/2−1))\kappa/(2(e^{\kappa/2}-1)). Here κ\kappa is the mean number of steps between occurrences divided by the second-moment time constant 1/(1−β2)1/(1-\beta_2). In the same model, SGD and AMSGrad retain the unbiased fixed point. We test these predictions both in a unigram model and in a small language model trained from a known generating distribution. With random arrivals, the bias is larger than the periodic formula predicts; in the language model, the optimizers with the biased fixed point also fit the generating distribution less well.

1 Introduction

Language models are trained predominantly with coordinate-wise adaptive optimizers such as Adam (Kingma & Ba, 2015), while token frequencies are strongly heavy-tailed (Piantadosi, 2014). The softmax output layer brings these two features together. For a token i, the cross-entropy gradient with respect to its logit is pi−yip_i - y_i. When i is not the target, this quantity is small and positive; when the rare event i is the target occurs, it is large and negative. SGD accumulates these contributions linearly, so in expectation the token's logit stops drifting when its average predicted probability matches its frequency in the data. A coordinate-wise adaptive optimizer handles the same gradients differently: it divides each coordinate by a running root-mean-square of that coordinate's past gradients. For a rare token, that second-moment estimate is largest immediately after an observation and then decays throughout the long gap before the next one. Thus, the upward update following an observation is strongly suppressed, while the smaller downward updates later in the gap are divided by progressively smaller quantities.

There are two related effects to keep apart. At the vocabulary level, adding the same constant to every logit leaves the softmax probabilities unchanged. The corresponding output-layer gradients sum to zero across the vocabulary, and any optimizer whose update is a linear combination of past gradients preserves the mean output embedding. This is an instance of the conservation laws associated with symmetries in gradient-based learning (Kunin et al., 2021). Stollenwerk & Stollenwerk (2025) showed that Adam's second-moment normalization breaks this conservation law,

PREPRINT

producing the common embedding shift observed by Gao et al. (2019); Biš et al. (2021); that shift has subsequently been connected to output-logit divergence (Wortsman et al., 2024; Stollenwerk et al., 2026). For an untied output layer without weight decay, however, the common shift leaves predictions unchanged.

The more important effect is local to individual rare tokens, because it changes their predicted probabilities. Coordinate-wise normalization shifts the fixed point of training, and the resulting bias remains even as the learning rate tends to zero. The main results are:

• Which optimizers conserve the mean output embedding (Section 3). Conservation holds for SGD and momentum methods, and also for Kronecker-factored methods such as Shampoo (Gupta et al., 2018) and orthogonalized methods such as Muon (Jordan et al., 2024). For any coordinate-wise method, the change of the mean at each step equals minus the learning rate times the covariance, across the vocabulary, between the momentum and the coordinate-wise scaling.

• Sign descent (Section 4.2). In a unigram model, sign descent lowers the logit of every token that appears in fewer than half of the minibatches at a constant expected rate, however small its probability already is.

• The fixed point of RMSProp (Section 4.3). For a token that appears once every NN steps, we compute the RMSProp fixed point in closed form. For every N≥3N \geq 3 and β2∈(0,1)\beta_2 \in (0,1) the token's probability at the fixed point is strictly below its frequency; the ratio depends only on NN and β2\beta_2, and tends to ρ(κ)=κ/(2(eκ/2−1))\rho(\kappa) = \kappa/(2(e^{\kappa/2}-1)) when N(1−β2)→κN(1-\beta_2) \to \kappa. In the same model, SGD and AMSGrad (Reddi et al., 2018) have unbiased fixed points.

• Predictions and experiments (Section 5). The analysis predicts that, for a token of frequency qi≪1/Bq_i \ll 1/B, the bias depends on β2\beta_2 and on the batch size BB only through κ=(1−β2)/(qiB)\kappa = (1 - \beta_2)/(q_i B). We test this in a unigram model and in a small language model trained on data from a known generating distribution; in the unigram model it holds for κ≲1\kappa \lesssim 1 but not for larger κ\kappa, where the bias is also larger than predicted. All experiments run on a CPU with the code provided as supplementary material.

The parameter κ\kappa is not necessarily small in common settings. With β2=0.95\beta_2 = 0.95, as in Wortsman et al. (2024), and a batch size of B=4096B = 4096, every token with frequency below 1.2×10−51.2 \times 10^{-5} has κ>1\kappa > 1, while frequencies below 1.2×10−61.2 \times 10^{-6} give κ>10\kappa > 10; at the latter value, ρ(κ)≈0.03\rho(\kappa) \approx 0.03.

References (32)