mlsanityData to 24 Nov 2026

A Fix for Softmax and Cross-Entropy

arXiv 2610.31642 ↗Submitted 22 Oct 2026cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 5 papers in the map (data through 24 Nov 2026). Builds on 15 of its 20 references that are in the map. Submitted 22 Oct 2026.

Builds on

15 of 20 references.

References · 15

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,967
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 919
  3. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 710
  4. 2017The Implicit Bias of Gradient Descent on Separable Datacited by 678
  5. 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 206
  6. 2023Explaining grokking through circuit efficiencycited by 124
  7. 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 105
  8. 2024Scaling Exponents Across Parameterizations and Optimizerscited by 92
  9. 2023A Theory on Adam Instability in Large-Scale Machine Learningcited by 66
  10. 2023Rotational Equilibrium: How Weight Decay Balances Learning Across Neural Networkscited by 63
  11. 2025Grokking at the Edge of Numerical Stabilitycited by 61
  12. 2020LaProp: Separating Momentum and Adaptivity in Adamcited by 23
3 more
  1. 2024Grokking Modular Polynomialscited by 23
  2. 2025What Can Grokking Teach Us About Learning Under Nonstationarity?cited by 11
  3. 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikescited by 8

Built on by

Cited by year (2026 to 24 Nov)

Citing papers per year: 2026: 5.

5 papers.