Paper Overview
- Field: Machine Learning
- Authors: Jonathan T. Barron, Dan Gnanapragasam, Michael Tschannen
- Published: 2026-10-22
- arXiv: 2610.31642
- Two distinct numerical defects exist in softmax/log-softmax/cross-entropy implementations: Softmax Collapse and Softmax Cancellation.
- Both can be fixed with simple implementation changes.
- Fixing the bugs removes the "Slingshot" instability observed in prior work.
- Grokking with weight decay is accelerated; accuracy collapse without weight decay is prevented.
- In distillation, student networks no longer drift from the teacher.
- Post-memorization logit growth is bounded by an equilibrium between weight decay and Adam's ε.
Abstract (translated)
Standard implementations of softmax, log-softmax, and cross-entropy have two numerical bugs:
1. Softmax Collapse: the target logit's gradient is rounded to zero if that one logit is much larger than the others, resulting in gradients that no longer sum to zero. 2. Softmax Cancellation: occurs when student logits are close to teacher logits, producing non-zero gradients even when they are equal.
We present simple implementations 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 Findings
*Auto-collected on 2026-10-24*