AGI Hunt· LotfiSanae·· 12 天前AI 评分62
Jon Barron 指出 softmax 与交叉熵实现存在两个 bug,KL/JSD 散度亦有同类数值问题
Jon Barron 揭出 softmax/交叉熵实现双 bug,KL/JSD 也有同类问题
AI 导读
Jon Barron 称 softmax 与 soft cross-entropy 的所有现有实现(JAX、PyTorch、教科书等)都存在两个微妙的 bug,简单重写即可修复,并能消除 grokking 中的 slingshots 现象。
来源:AGI Hunt · agihunt.info