Numerical bugs in softmax and cross-entropy fixed for stable training
Researchers have identified and patched two long-standing numerical instabilities in softmax and cross-entropy implementations that affect gradient flow during training. Softmax Collapse causes target gradients to vanish when one logit dominates, breaking the zero-sum property of softmax gradients, while Softmax Cancellation produces spurious gradients during knowledge distillation when student and teacher outputs converge. The fixes address practical training pathologies including the Slingshot phenomenon, accelerate grokking, prevent accuracy collapse, and stabilize distillation. This work matters because these primitives are foundational to nearly all neural network training, making even small numerical corrections potentially impactful across the field.62






