🛰️ Daily AI Frontier
‹ back to 2026-10-23

A Fix for Softmax and Cross-Entropy

Research Efficiency & Systems

Ranking

Overall 89
Content 95
Popularity 75

Observed public metrics from 1 member.

Representative image for A Fix for Softmax and Cross-Entropy

Merged summary

TL;DR - This paper identifies two numerical bugs in standard softmax and cross-entropy implementations and proposes simple corrected versions. The fixes improve numerical gradient behavior and stabilize grokking and knowledge distillation.

  • “Softmax Collapse” can round a dominant target logit’s gradient to zero, breaking the zero-sum gradient property.
  • “Softmax Cancellation” can produce nonzero gradients even when student and teacher logits match.
  • Corrected implementations eliminate the observed “Slingshot” phenomenon and prevent accuracy collapse or teacher-student drift.
  • The analysis links bounded post-memorization logit growth to an equilibrium between weight decay and Adam’s ε.

Sources (1)

A Fix for Softmax and Cross-Entropy

arXiv cs.LG Jonathan T. Barron, Dan Gnanapragasam, Michael Tschannen 2026-10-22 arXiv:2610.31642
Public signals Hugging Face upvotes 5 · Semantic Scholar citations 4 · Semantic Scholar influential citations 1
Providers: Hugging Face · Upvotes 5 OpenAlex · N/A Publisher · N/A Semantic Scholar · Citations 4 · Influential citations 1 X · N/A Fetched 2026-11-22 15:31:44.437135 UTC

TL;DR - This paper identifies two numerical bugs in standard softmax and cross-entropy implementations and proposes simple corrected versions. The fixes improve numerical gradient behavior and stabilize grokking and knowledge distillation.

  • “Softmax Collapse” can round a dominant target logit’s gradient to zero, breaking the zero-sum gradient property.
  • “Softmax Cancellation” can produce nonzero gradients even when student and teacher logits match.
  • Corrected implementations eliminate the observed “Slingshot” phenomenon and prevent accuracy collapse or teacher-student drift.
  • The analysis links bounded post-memorization logit growth to an equilibrium between weight decay and Adam’s ε.
item →