跳到正文
Yann LeCun (@ylecun)· Yann LeCun·· 20 天前AI 评分43

Jon Barron 指出所有 softmax/交叉熵实现都存在两个微妙数值 bug 并给出改写修复

RT Brandon Amos: ⚠️ Numerical issues can go on silently for decades like in the softmax/CE! Similar issues are present in other widely-used divergen...

AI 导读

Jon Barron 分享新研究结果:JAX、PyTorch 及教科书等所有现有的 softmax 和交叉熵实现都存在两个微妙 bug,一个简单的改写可同时修复,并消除 grokking 中的 "slingshots" 现象。Brandon Amos 转发并提醒,此类数值问题可能像 softmax/CE 一样潜伏数十年,KL、JSD 等常用散度也存在类似问题。

来源:Yann LeCun (@ylecun) · x.com