The Most Used Function in AI Has Two Bugs #machinelearning #deeplearning #ai
Description: Softmax is used in nearly every neural network, but new research from Jon Barron reveals two hidden numerical bugs in standard Softmax and cross-entropy implementations, including those used in PyTorch and JAX.
We look at Softmax Collapse and Softmax Cancellation, two floating-point precision problems that can produce incorrect gradients during neural network training. We'll explore how these bugs affect machine learning, knowledge distillation, gradient stability, and grokking, and how a simple rewrite of Softmax, log-softmax, and cross-entropy loss could fix them. The research also highlights how Google's Gemini models contributed to discovering and investigating these issues. Close description
We look at Softmax Collapse and Softmax Cancellation, two floating-point precision problems that can produce incorrect gradients during neural network training. We'll explore how these bugs affect machine learning, knowledge distillation, gradient stability, and grokking, and how a simple rewrite of Softmax, log-softmax, and cross-entropy loss could fix them. The research also highlights how Google's Gemini models contributed to discovering and investigating these issues. Close description
