NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes

LIU Hanqing, Jianjun Cao, Yuanze Li, Zijian Zhou

NeurIPS page · Open on the map

Category: Interpretability & Model Adaptation › Random Matrix Theory of Learning Dynamics · Type: theory · Keywords: low-precision training, Slingshot loss spikes, gradient rounding, numerical instability, parameter norm growth

Summary

The paper identifies Numerical Feature Inflation (NFI) as a deterministic numerical instability caused by low-precision floating-point arithmetic that drives rapid norm growth and Slingshot loss spikes during long-term training.

Explained to a 5-year-old

When computers learn, they try to guess the right answer. They write down numbers that show how confident they are. These numbers are stored in a special way that can only hold a certain size. If the confident number gets too big, a tiny rounding error can happen. This rounding error makes the computer think the right answer is even more confident. The computer then keeps making bigger changes to its numbers, and this repeats over and over.

Explained to a 5-year-old, longer

When a computer learns, it tries to guess the right answer. It writes down numbers that show how confident it is. These numbers are stored in a special way that can only hold a certain size. If the confident number gets too big, a tiny rounding error can happen. This rounding error makes the computer think the right answer is even more confident. The computer then keeps making bigger changes to its numbers, and this repeats over and over. This cycle makes the numbers grow faster and faster, like a spiral. Sometimes this leads to a sudden jump in the learning curve, called a loss spike. Not every learning task shows a spike, but the fast growth can still happen. Knowing about this helps designers watch for big changes and avoid surprises. It also lets researchers test new ideas to stop the unwanted growth. The idea is simple: a small mistake in numbers can cause big problems later. By understanding it, we can make computers learn more smoothly and reliably.

For a technical reader

During long training runs, deep neural networks sometimes experience sudden spikes in loss. The authors show that this can happen because floating-point numbers have limited precision; when a model becomes very confident, the gradient for the correct class can round to zero while other gradients stay non-zero. This breaks the usual balance of gradients, creating a feedback loop that makes the model’s weights grow exponentially. The effect can cause rapid norm growth and loss spikes, and it can also happen without a visible spike in some tasks. Understanding this numerical instability helps engineers anticipate and mitigate unexpected behavior in training.

Problem

Why do deep neural networks exhibit periodic loss spikes (the Slingshot Mechanism) during unregularized long-term training, and what triggers this phenomenon?

Method

The authors analyze the cross-entropy loss under floating-point precision, showing that when the correct-class logit exceeds the absorption-error threshold, its gradient rounds to zero while incorrect-class gradients stay non-zero, breaking the zero-sum constraint. They prove that this gradient imbalance creates a positive feedback loop between the classifier layer and feature statistics, leading to exponential growth of parameter norms. This analysis is supported by observations on practical tasks where the effect may be partial.

Results

The analysis shows that Numerical Feature Inflation explains rapid norm growth and loss spikes before and after gradient reappearance, and can cause parameter norm growth even when spikes do not occur.

Contributions

It provides a testable explanation of Slingshot as a numerical dynamic of finite-precision training, identifies the zero-sum-breaking gradient imbalance as the root cause, and demonstrates that the effect can drive abnormal growth even in practical settings.

Limitations and assumptions

The analysis assumes standard floating-point formats and that the correct-class logit can exceed the absorption-error threshold; it also notes that in practice the effect may be partial, affecting only some samples.

Practical relevance

Understanding this numerical instability helps practitioners diagnose and potentially mitigate unexpected norm growth and loss spikes in long-term training of deep models.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction