Google DeepMind finds two numerical errors in standard softmax and cross-entropy

burkov · x · 2026-10-25

A Google DeepMind article identifies two numerical errors in standard softmax and cross-entropy calculations that can distort training even when the formulas are mathematically correct:

These matter because adaptive optimizers like Adam can magnify tiny gradient errors into substantial training changes. The authors derive stable replacements for softmax, log-softmax, and cross-entropy that preserve accurate gradients in both low-precision and standard floating-point formats, then validate them experimentally.

Related event: Google's Barron Reveals Two Numeric Bugs in All Softmax/Cross-Entropy Implementations(21 posts)→

Original post →

More from Research

Research channel →