Manuscript Offprint
arXiv:2610.31642A Fix for Softmax and Cross-Entropy
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Standard implementations of softmax, log-softmax, and cross-entropy have two numerical bugs. The first bug, Softmax Collapse, rounds the target logit's gradient to zero if that one logit is much larger than the others, resulting in gradients that no longer sum to zero. The second bug, Softmax Cancellation, occurs when student logits are close to teacher logits, and produces non-zero gradients even when the student and teacher logits are equal. We present simple implementations of log-softmax, softmax, and cross-entropy that fix both bugs. Our fix eliminates the previously-observed “Slingshot” phenomenon, speeds up grokking with weight decay, prevents accuracy collapse without weight decay, stops student networks from drifting away from the teacher during distillation, and shows that after memorization, logit growth is bounded by an equilibrium between weight decay and Adam's hyperparameter.
1 INTRODUCTION
Naively computing softmax or cross-entropy on logits as overflows if any logit exceeds the floating-point exponent limit ( in fp32), which is why standard implementations in all deep learning frameworks (JAX, PyTorch, TensorFlow, etc.) shift the input logits by subtracting their maximum value (Higham, 2002):
For a target distribution , cross-entropy is then computed as , whose exact gradient is . Though subtracting prevents overflow, two numerical bugs remain.
Standard CE, float64
Fixed CE, float64
Standard CE, float32
Fixed CE, float32
Standard CE, bfloat16
Fixed CE, bfloat16

(a) Softmax Collapse: vs. margin m.
(b) Softmax Cancellation: as .
Figure 1: The two bugs in standard softmax and cross-entropy. (a) Softmax Collapse: As a model becomes more confident in the correct class (thereby increasing the logit margin m), the true gradient on the target logit shrinks exponentially, but standard implementations incorrectly round that gradient to zero once m crosses a precision cliff ( in bf16, 16.6 in fp32, and 36.7 in fp64). (b) Softmax Cancellation: In soft-target distillation, as student logits approach teacher logits , the true gradient shrinks toward zero, but standard implementations lose precision and plateau at a non-zero noise floor. Our fix eliminates both bugs and yields accurate gradients across all precisions.
The first bug, Softmax Collapse (Figure 1a), occurs when a model correctly predicts the target class with high confidence, so that is much larger than all non-target logits ( ). We measure this confidence by the logit margin, which is how much larger the target logit is than the log-sum-exp of all non-target logits:
In Equation 1, subtracting sets the shifted target logit to (so in the denominator), while the non-target exponentials sum to a small positive number . Floating-point numbers have much finer precision near 0 than near 1: in fp32, values near 0 can be as small as , whereas values added to 1.0 are lost to rounding below . Because standard implementations form the denominator by adding to 1.0, the term is lost to rounding once the margin exceeds a threshold that we call the precision cliff ( in bf16, in fp32, and in fp64). When , the denominator evaluates to exactly 1.0, which causes to evaluate to 1.0 and zeroes out both the loss and the target gradient . However, the non-target gradients ( ) are evaluated near 0 without adding 1.0 to their numerators, so they remain positive all the way down to exponent underflow ( ). Because the target gradient rounds to 0.0 while the non-target gradients do not, the gradients no longer sum to zero ( ). When training with adaptive optimizers such as Adam and AdamW (Kingma & Ba, 2015; Loshchilov & Hutter, 2019), which normalize each gradient by a moving average of its magnitude, this asymmetry causes the recurring “Slingshot” loss spikes observed by Thilak et al. (2022) and the grokking failures studied by Prieto et al. (2025). While prior works used surrogate losses (Prieto et al., 2025), gradient projection (Liu et al., 2026), or fp64 casting (Nanda et al., 2023; Varma et al., 2023) to mitigate these issues, we instead fix log-softmax, softmax, and cross-entropy directly (Section 2).
The second bug, Softmax Cancellation (Figure 1b), occurs in knowledge distillation (Hinton et al., 2015) and KL regularization, where the target comes from teacher logits . Standard implementations compute and separately and subtract them to get . This means that if is close to , subtracting these nearly equal probabilities loses precision, and slight differences between the forward-pass softmax and backward-pass log-softmax formulas leave a non-zero gradient even when . We fix this by computing directly from in log space (Section 3).
which sum to zero ( ). In floating point, however, the two expressions for in Equation 3 behave very differently once , where is too small to change 1.0 when added to it (Figure 1a). Standard implementations add 1 and to form the denominator , which rounds to 1 when . In the forward pass, then evaluates to , zeroing out both and . In the backward pass, standard cross-entropy implementations compute and subtract 1 to get . In contrast, our fixed expression keeps in the numerator: even when the denominator rounds to 1.0, dividing by 1.0 preserves down to exponent underflow ( ).
While rounds to zero when , the non-target gradients do not. For each non-target class , standard cross-entropy computes . Because the numerator is evaluated directly from the negative difference without adding 1, it remains accurate down to exponent underflow while the denominator rounds to 1. When , standard cross-entropy therefore zeroes out only the target entry while all non-target gradients remain positive:
The same bug affects standalone softmax(z): once , softmax's backward pass rounds ( ) to 1 and sets while the remaining gradients stay non-zero.
This bug can be fixed by never adding 1 to directly. In logsoftmax(z) and softmax(z), only the largest logit is shifted to 0 (where in the denominator). Instead of including in the sum of exponentials, we set , compute the margin by excluding from the log-sum-exp, and combine them with a numerically stable softplus( ) (with softmax(z) ):
For hard-target cross-entropy with target t, we can use t directly in place of without computing an :
Because the -th slot is replaced with the constant 0 rather than , only appears in through the differences (), so autodiff correctly computes the target gradient as the negated sum of the non-target gradients:
Here is a JAX implementation of logsoftmax, softmax, and hard-target cross-entropy, which remains accurate down to exponent underflow and satisfies :
import jax, jax.numpy as jnp, optax
def log_softmax(z): i_max = jnp.argmax(z, axis=-1) z_max = jnp.take_along_axis(z, i_max[..., None], axis=-1) # Max logit. is_max = jax.nn.one_hot(i_max, z.shape[-1], dtype=bool) # Max mask. shifted = jnp.where(is_max, 0.0, z - z_max) # Exact 0 at argmax. others = jnp.where(is_max, -jnp.inf, shifted) # Exclude argmax from sum. m = -jax.nn.logsumexp(others, axis=-1, keepdims=True) # Logit margin. return shifted - jax.nn.softplus(-m) # log_softmax(z).
softmax = lambda z: jnp.exp(log_softmax(z))
def cross_entropy(z, t): z_t = jnp.take_along_axis(z, t[..., None], axis=-1) # Target logit. is_t = jax.nn.one_hot(t, z.shape[-1], dtype=bool) # Target mask. others = jnp.where(is_t, -jnp.inf, z - z_t) # Exclude target from sum. m = -jax.nn.logsumexp(others, axis=-1) # Logit margin. return jax.nn.softplus(-m) # -log_softmax(z)_t.
As an example, consider and . The standard jax.nn and optax implementations return zero for the target log-probability, loss, and target gradient, while our functions return accurate values whose gradients sum to zero:
z, t = jnp.array([9.0, -9.0, -9.0], dtype=jnp.float32), jnp.array(0) std_ce = optax.softmax_cross_entropy_with_integer_labels jax.nn.log_softmax(z) # -> [0.0, -18.0, -18.0] jax.grad(lambda z: jax.nn.softmax(z)[0])(z) # -> [0.0, -1.523e-8, -1.523e-8] jax.value_and_grad(std_ce)(z, t) # -> 0.0, [0.0, 1.523e-8, 1.523e-8] log_softmax(z) # -> [-3.046e-8, -18.0, -18.0] jax.grad(lambda z: softmax(z)[0])(z) # -> [3.046e-8, -1.523e-8, -1.523e-8] jax.value_and_grad(cross_entropy)(z, t) # -> 3.046e-8, [-3.046e-8, 1.523e-8, 1.523e-8]
3 SOFTMAX CANCELLATION
Given student logits and teacher logits , standard soft-target cross-entropy computes and evaluates
As the student logits approach the teacher logits ( ), the true gradient shrinks toward 0 and equals 0 when . In floating point, however, computing and separately and subtracting them (Equation 8) loses precision when is close to , because the small logit difference is lost when and are rounded to probabilities before being subtracted (Figure 1b). Worse, because in the forward pass and in the backward pass are evaluated using slightly different sequences of operations, and do not match to machine precision even when , leaving a non-zero gradient .
To avoid subtracting nearly equal probabilities, we pass directly to our loss function and compute in log space using and . Given , we center under and write the log-ratio and difference as:
Because and , the input to is always non-negative. We then set to remove any remaining floating-point drift from . Because , , and are evaluated using and without adding or subtracting 1, remains accurate as and is 0 when . Here is a JAX implementation of soft-target cross-entropy (using and from Section 2), which uses (sg) to return the forward loss while substituting in the backward pass:
def soft_target_cross_entropy(z_S, z_T): log_q = log_softmax(z_S) q, p = jnp.exp(log_q), softmax(z_T) delta = z_S - z_T d = delta - jnp.sum(p * delta, axis=-1, keepdims=True) s = d - jnp.log1p(jnp.sum(p * jnp.expm1(d), axis=-1, keepdims=True)) u = p * jnp.expm1(s) g = u - q * jnp.sum(u, axis=-1, keepdims=True) sg = jax.lax.stop_gradient loss = -jnp.sum(p * sg(log_q), axis=-1) return loss + jnp.sum(sg(g) * (z_S - sg(z_S)), axis=-1)
Logit difference.
Center under p.
log(q / p).
Difference q - p.
Ensure sum(g) = 0.
Forward loss.
Custom gradient g.
As an example, let be a small fp32 perturbation of . Standard soft-target cross-entropy shrinks the second gradient entry by , flips the sign of the third, and fails to sum to zero, while our implementation matches the exact fp64 gradient:
z_T = jnp.array([2.0, 1.0, 0.0], dtype=jnp.float32) z_S = z_T + jnp.array([-1e-7, 1e-7, 0.0], dtype=jnp.float32) std_soft_ce = lambda z_S, z_T: -jnp.sum(jax.nn.softmax(z_T) * jax.nn.log_softmax(z_S)) jax.grad(std_soft_ce)(z_S, z_T) # -> [-5.960464e-8, 1.451589e-8, -1.123343e-9] jax.grad(soft_target_cross_entropy)(z_S, z_T) # -> [-4.595504e-8, 4.144190e-8, 4.513142e-9]
Exact (float64) gradient: [-4.595504e-8, 4.144190e-8, 4.513142e-9]
4 THE SLINGSHOT MECHANISM
In grokking (Power et al., 2022), a network quickly memorizes the training set and generalizes much later. While studying grokking on modular addition with Adam (Kingma & Ba, 2015; Loshchilov & Hutter, 2019), Thilak et al. (2022) observed the Slingshot Mechanism, where training after memorization alternates between flat loss plateaus near zero and sudden loss spikes that coincide with jumps in test accuracy.
These Slingshot spikes are a direct consequence of Softmax Collapse (Section 2). Recall that AdamW updates parameters by subtracting , where and are bias-corrected moving averages of the parameter gradient and its square (with decay rates ). After memorization, the logit margins grow as the network pushes its target probabilities toward 1. Once an example’s margin exceeds the precision cliff , standard cross-entropy rounds its target gradient to zero while its non-target gradients ( ) remain positive. When all examples in a batch sit above , the parameter gradients nearly vanish and Adam’s second moment decays exponentially toward zero while weight decay slowly shrinks the parameters. Eventually, weight decay or the residual non-target updates pull a few examples back below , where their target

(a) Mean logit margin m.
(b) Training loss.
(c) Test accuracy.
Figure 2: The Slingshot mechanism (Thilak et al., 2022) with and without weight decay (5 random seeds, fp32). Top row ( , , , Varma et al. 2023): Standard cross-entropy hits the fp32 cliff ( , where loss rounds to 0) and repeatedly drops and rebounds, slowing and degrading grokking; fixed cross-entropy crosses smoothly, groks faster on all 5 seeds, and saturates just above at (Section 5). Bottom row ( , , , Doshi et al. 2024): Without weight decay, hitting around step 1250 triggers a spike that drops standard cross-entropy test accuracy from 61% to 23%, whereas fixed cross-entropy continues smoothly to 85%.
gradients abruptly turn back on. Because decayed while those examples were above , Adam divides the restored gradients by a very small denominator , producing a large parameter step that spikes the training loss, resets , and repeats the cycle. With our fixed cross-entropy, the target-logit gradient does not round to zero at , so and decay smoothly together and Slingshot spikes disappear (Figure 2).
Whether Slingshot spikes appear to help or hurt generalization depends on how the network’s weight norm is controlled (Figure 2). When a network uses LayerNorm before the output layer and no weight decay (Thilak et al., 2022; Prieto et al., 2025), growing the pre-LayerNorm weights does not change the logits, but it does shrink the effective step size ; each Slingshot spike inflates and acts as an accidental learning-rate decay. When weight norms are already controlled by weight decay (Varma et al., 2023), Slingshot spikes at only slow down and hurt grokking ( vs. test accuracy on ; Figure 2, top). And when neither LayerNorm nor weight decay is used (Doshi et al., 2024), a single Slingshot spike at is destructive: on ( , ), standard cross-entropy tracks fixed cross-entropy up to 61% test accuracy until hits around step 1250, where a spike drops test accuracy to 23% (and from 60% to 21% on ), while fixed cross-entropy continues smoothly to 85% (Figure 2, bottom).
5 MARGIN EQUILIBRIA
In Figure 2a, our fixed cross-entropy eliminates the precision cliff at , yet why does its margin still saturate just above at when weight decay is applied ( , top) while continuing to climb without weight decay ( , bottom)? This plateau has nothing to do with fp32 precision; rather, it is the equilibrium where weight decay balances AdamW's normalized gradient step. At a stationary point where the parameters stop changing, the moving averages converge to and (so ), and setting the parameter update to zero gives:
Here , , and cancel out, so RMSProp (Tieleman & Hinton, 2012) and LaProp (Ziyin et al., 2020) share the same stationary point. After memorization, the gradients shrink exponentially with the margin ( ). If , the normalized gradient has a magnitude of 1.
no matter how small becomes, which causes the margin to grow until the gradients underflow. When , however, the normalized gradient has magnitude while , and shrinks as once (Figure 3). Balancing this shrinking step against weight decay requires (Wortsman et al., 2024; Molybog et al., 2023; Everett et al., 2024; Kosson et al., 2024), which acts like an regularizer with weight (Rosset et al., 2004; Soudry et al., 2018). Since , the margin stops growing at:

Standard CE, float64
Standard CE, float32
Standard CE, bfloat16
Fixed CE, float64
Fixed CE, float32
Fixed CE, bfloat16
Figure 3: Normalized Adam step vs. logit margin at . With our fixed cross-entropy, the step stays near 1 and decays smoothly around , whereas standard CE zeroes out at and .
Equation 11 explains why the default causes Slingshot in fp32: its equilibrium sits just above the fp32 cliff (Figure 3), so standard cross-entropy hits the cliff right before reaching equilibrium (whereas for , and standard cross-entropy settles without spiking). To verify Equation 11 across many orders of magnitude down to in fp32 (Figure 4), we use LaProp and update directly without squaring (which would otherwise underflow in fp32 once , or ).
(a) With weight decay ( )
(b) Without weight decay ( )

Figure 4: Logit margins when training with our fixed cross-entropy and LaProp on in fp32 ( , ; 3 seeds per setting as solid lines, analytical predictions as dashed lines). (a) With weight decay ( ), the margin for each grows along the trajectory and levels off at the predicted equilibrium (colored y-ticks), whereas keeps growing until the fp32 gradients themselves underflow at (gray). (b) Without weight decay ( ), nothing balances the step, so the margins rise past and continue drifting upward.
6 GROKKING ACROSS PRECISIONS AND BENCHMARKS
To see how the precision cliff behaves across floating-point formats, we follow Varma et al. (2023) and Lyle et al. (2025) and train a 1-layer width-64 ReLU Transformer on (50% training split) for 10,000 epochs of full-batch AdamW with , , , and . We vary only the loss function (standard vs. fixed cross-entropy), the floating-point precision (bf16, fp32, fp64), and (Figure 5, Table 1). At (Figure 5, top), standard cross-entropy stalls at in bf16 and repeatedly spikes at in fp32, whereas our fixed cross-entropy crosses both cliffs smoothly to the equilibrium and reaches 100% test accuracy in all three precisions. Reducing to (Figure 5, bottom) raises the equilibrium to

(a) Mean logit margin .
(b) Training loss.
(c) Test accuracy.
Figure 5: Standard cross-entropy fails at the precision cliff of its floating-point format; fixed cross-entropy removes the cliff across all precisions of 5 seeds shown). Top: . Bottom: , where even fp64 standard cross-entropy fails at while fixed cross-entropy converges smoothly.
, which causes even fp64 standard cross-entropy to break at while fixed cross-entropy converges smoothly in every precision.
In Table 1 we also compare against two recent methods designed to ameliorate Softmax Collapse by modifying the gradients or the loss function. Liu et al. (2026) subtract the mean logit gradient from each entry so the gradients sum to zero (“Zero-sum Proj.”). However, once and , subtracting the mean only gives the target logit of the total non-target gradient, which stalls the margin near 18 and drops test accuracy below for . Prieto et al. (2025) propose “StableMax,” which replaces in softmax with a piecewise rational function for and for ). Because this function grows linearly instead of exponentially, logit margins blow up to and test accuracy remains lower than with our fixed cross-entropy across all values of .
Table 1: Comparison of loss functions on modular addition seeds) across . Fixed CE reaches the predicted equilibrium margin and test accuracy across all precisions, whereas Standard CE stalls near its precision cliff ( in bf16, in fp32, and in fp64).
| Variant | Test Accuracy (%) | Final Margin | |||||
|---|---|---|---|---|---|---|---|
| fp32 | Fixed CE | 17.9 | 27.4 | 36.8 | |||
| fp32 | Standard CE | 13.0 | 15.1 | 12.7 | |||
| bf16 | Fixed CE | 17.9 | 27.4 | 36.8 | |||
| bf16 | Standard CE | 5.1 | 5.6 | 5.8 | |||
| fp64 | Fixed CE | 17.9 | 27.4 | 36.8 | |||
| fp64 | Standard CE | 17.9 | 27.4 | 30.1 | |||
| fp32 | Zero-sum Proj. (Liu et al., 2026) | 17.0 | 18.9 | 18.9 | |||
| fp32 | StableMax (Prieto et al., 2025) | 3200 | 5661 | 6313 | |||
| fp64 | StableMax (Prieto et al., 2025) | 3170 | 21252 | 2322 | |||
We observe the same behavior across four grokking benchmarks from the literature at (Figure 6): 1-layer Transformers on (Nanda et al., 2023) and (Varma et al., 2023) with , and 2-layer MLPs on and (Doshi et al., 2024) with . On all four tasks, fp32 standard cross-entropy repeatedly spikes once it hits , whereas fp32 fixed cross-entropy matches fp64 standard cross-entropy and reaches test accuracy.

(a)
Nanda et al. (2023).
(b)
Varma et al. (2023).
(c)
Doshi et al. (2024).
(d)
Doshi et al. (2024).
Figure 6: Results across four grokking tasks at (2 of 3–5 seeds shown): 1-layer Transformers (a, b) and 2-layer MLPs (c, d). Fixed cross-entropy in fp32 (blue) matches fp64 standard cross-entropy (red), while standard cross-entropy in fp32 (orange) breaks at .
7 SOFT-TARGET DISTILLATION
To see how Softmax Cancellation (Section 3) affects optimization, we initialize a student network with the weights of a teacher trained to 100% test accuracy on ( ), and run 2,000 steps of Adam ( , , ) at distillation temperature (Hinton et al., 2015), which keeps the scaled margin below so p does not round to one-hot. Because at initialization, the true gradient is zero and the student should not move. However, standard soft-target cross-entropy has a non-zero residual gradient at due to the mismatch between its forward softmax and backward logsoftmax (Figure 1b). Whenever this residual gradient exceeds , Adam normalizes it into steps of size (Figure 7): in fp64 the residual ( ) lies well below so the student stays near KL = 0, in fp32 ( ) it causes a brief KL spike, and in bf16 ( ) it drives the student away from the teacher and degrades test accuracy. Our fixed soft-target cross-entropy returns at , so the student remains at KL = 0 and 100% test accuracy across all precisions.

(a) Held-out KL( ).
(b) Test accuracy.
Figure 7: Soft-target distillation when the student is initialized with the teacher’s weights ( , , , 2 of 3 seeds shown). Fixed soft-target cross-entropy stays at KL = 0 and 100% accuracy across all precisions; standard soft-target cross-entropy amplifies rounding error into parameter drift in bf16 and a brief KL spike in fp32.
8 CONCLUSION
We have presented simple fixes for two numerical bugs in standard implementations of softmax, log-softmax, and cross-entropy: Softmax Collapse, which zeroes out the dominant logit's gradient at high confidence while leaving non-dominant gradients non-zero, and Softmax Cancellation, which loses precision when student logits approach teacher logits in soft-target distillation. Rewriting these functions in log space using softplus, expm1, and log1p restores accurate, zero-sum gradients across bf16, fp32, and fp64 without internally casting to higher precision. Fixing these bugs eliminates Slingshot loss spikes during grokking, prevents student networks from drifting away from the teacher during distillation, and reveals that logit margins under AdamW and weight decay naturally converge to . Though the extreme margins and near-zero student–teacher gaps probed by our experiments are uncommon in standard large-scale training, our fixed functions are easy drop-in replacements that can be implemented without meaningful slowdown, and may prove useful whenever models make high-confidence predictions or distill from close teachers.
ACKNOWLEDGMENTS
We thank Jean-Baptiste Alayrac, Forrester Cole, Roy Frostig, Mark Hamilton, Miki Rubinstein, Keith Rush, and Brandon Zhao for their helpful advice.
REFERENCES
Darshil Doshi, Tianyu He, Aritra Das, and Andrey Gromov. Grokking modular polynomials. arXiv:2406.03495, 2024.
Katie Everett, Lechao Xiao, Mitchell Wortsman, Alexander A. Alemi, Roman Novak, Peter J. Liu, Izzeddin Gur, Jascha Sohl-Dickstein, Leslie Pack Kaelbling, Jaehoon Lee, and Jeffrey Pennington. Scaling exponents across parameterizations and optimizers. ICML, 2024.
Nicholas J. Higham. Accuracy and stability of numerical algorithms. SIAM, 2nd edition, 2002.
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015.
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015.
Atli Kosson, Bettina Messmer, and Martin Jaggi. Rotational equilibrium: How weight decay balances learning across neural networks. ICML, 2024.
H. Liu, Y. Cao, Z. Li, and Y. Zhou. Grokking or glitching? How low-precision drives Slingshot loss spikes. arXiv:2605.06152, 2026.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. ICLR, 2019.
Clare Lyle, Ghada Sokar, András György, and Razvan Pascanu. What can grokking teach us about learning under non-stationarity? Conference on Lifelong Learning Agents, 2025.
Igor Molybog, Peter Albert, Moya Chen, Zachary DeVito, David Esiobu, Naman Goyal, Punit Singh Koura, Sharan Narang, Andrew Poulton, Ruan Silva, et al. A theory on Adam instability in large-scale machine learning. arXiv:2304.09871, 2023.
Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. Progress measures for grokking via mechanistic interpretability. ICLR, 2023.
Alethea Power, Yuri Burda, Harri Edwards, Igor Babuschkin, and Vedant Misra. Grokking: Generalization beyond overfitting on small algorithmic datasets. arXiv:2201.02177, 2022.
Lucas Prieto, Melih Barsbey, Pedro A. M. Mediano, and Tolga Birdal. Grokking at the edge of numerical stability. ICLR, 2025.
Saharon Rosset, Ji Zhu, and Trevor Hastie. Margin maximizing loss functions. NeurIPS, 2004.
Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The implicit bias of gradient descent on separable data. JMLR, 2018.
Vimal Thilak, Etai Littwin, Shuangfei Zhai, Omid Saremi, Roei Paiss, and Joshua Susskind. The Slingshot mechanism: An empirical study of adaptive optimizers and the grokking phenomenon. arXiv:2206.04817, 2022.
Tijmen Tieleman and Geoffrey Hinton. Lecture 6.5—RMSProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
Vikrant Varma, Rohin Shah, Zachary Kenton, János Kramár, and Ramana Kumar. Explaining grokking through circuit efficiency. arXiv:2309.02390, 2023.
Mitchell Wortsman, Peter J. Liu, Lechao Xiao, Katie Everett, Alexander Alemi, Ben Adlam, John D. Co-Reyes, Izzeddin Gur, Abhishek Kumar, Roman Novak, et al. Small-scale proxies for large-scale Transformer training instabilities. ICLR, 2024.
Liu Ziyin, Zhikang T. Wang, and Masahito Ueda. LaProp: Separating momentum and adaptivity in Adam. arXiv:2002.04839, 2020.