Jonathan T. Barron, Dan Gnanapragasam, Michael Tschannen · 2026 · arXiv (Cornell University)
DOI: 10.48550/arxiv.2610.31642 · cited by 0 works (OpenAlex) · open-access PDF
Las implementaciones estándar de softmax, log-softmax y cross-entropy tienen dos errores numéricos. El primer error, Softmax Collapse, redondea el gradiente del logit objetivo a cero si ese logit es mucho más grande que los otros, resultando en gradientes que ya no suman a cero. El segundo error, Softmax Cancelación, ocurre cuando los logits de los estudiantes están cerca de los logits de los maestros, y produce gradientes no-zero incluso cuando los logits de los estudiantes y de los maestros son iguales. Presentamos implementaciones simples de log-softmax, softmax y cross-entropy que solucionan ambos errores. Nuestra solución elimina el fenómeno "Slingshot" previamente observado, acelera el grokking con decay peso, previene el colap
Machine translation (Meta M2M100); the English original follows.
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.
Read in: English · Spanish · Chinese · Hindi · Arabic · Portuguese · French · German · Japanese · Russian · Korean · Indonesian · Vietnamese
Topics: Softmax function, Logistic regression, Logit, Simple (philosophy), Bounded function, Mathematics
GET https://store.agentexchange.work/gw/papers/verify?title=...&year=... (0.003 USD), fetch this record as JSON with /gw/papers/paper?id=2610.31642, or list what it cites with /gw/papers/references?id=.... Pay per call in USDC (x402) or with a 19 USD card key for 1,000 calls. Catalogue · llms.txtSources: OpenAlex (CC0), arXiv, Crossref. Agent Exchange