TECHNOLOGY

Late loss spikes: output-head drift meets finite precision

In this article
THE QUICK TAKE

The study identifies a bounded numerical failure mechanism; it does not establish a universal warning threshold or a remedy for every loss spike.

A delayed failure differs from an isolated spike

The Role of Quantization in Loss Spikes investigates delayed terminal divergence associated with the language-model output head. Its long-horizon experiment trains a 404M-parameter model for 96B tokens, using elevated learning-rate sweeps and four B200 GPUs. This is a controlled instability study, not a measurement of how often ordinary production training fails.

The paper distinguishes these delayed failures from short, recoverable spikes. Learnable normalization gains suppress much of the latter in its experiments, while the delayed failure can persist. A remedy evaluated for one regime therefore should not be described as solving every loss spike.

Why a common logit shift can become harmful

In exact arithmetic, adding the same scalar to every logit leaves softmax probabilities unchanged. The study argues that this familiar invariance does not remove finite-precision risk: as absolute logit scale grows, small differences between logits can become harder to represent accurately.

The authors connect vocabulary-mean drift to Adam’s coordinate-dependent preconditioning, then test precision and optimizer interventions separately. Mean growth alone is not sufficient evidence of a changed prediction distribution. The important measurement is the resulting numerical error and its relationship to divergence under the selected configuration.

The precision comparison uses the same hidden states

For the smaller controlled experiment, 28M-parameter models train for 16B tokens with five seeds. The authors recompute output-head logits in FP32 from the same hidden states used for native BF16 logits, then measure their difference. This targets the head computation rather than comparing two independently drifting whole-model runs.

Their BF16 mixed and BF16 true settings also differ in storage of weights and optimizer state. Those labels must remain defined rather than reduced to one generic low-precision category. The mixed-precision guide gives context for separating representation, operations and optimizer updates.

A targeted optimizer change needs its own tuning

The proposed mitigation replaces AdamW only on the output head with SGD and momentum, retaining AdamW elsewhere. The authors tune head-specific settings and compare against centering and an additional logit penalty. They also find that retuning AdamW’s head momentum closes part of the optimization gap.

This matters because changing optimizer family and changing its hyperparameters are distinct interventions. A fair local test should preserve the tuning budget and compare validation quality, not merely show that a previously unstable default became stable. Higher-precision head computation is another tested route, with a separate memory and throughput cost.

Turn the observation into a bounded diagnostic

The author repository exposes model, dataset, experiment, precision and method configurations, together with diagnostics for logits and updates. It documents how to reproduce the research; its availability does not establish an independent reproduction.

For a new run, preserve head precision and optimizer state, output-logit scale, a declared numerical reference and the actual checkpoint history. The paper does not establish a universal error threshold or guaranteed advance warning for a different architecture. Global clipping fundamentals also explain why limiting unusually large gradients addresses a different operation from correcting accumulated output-head representation error. The practical contribution is a specific testable failure mechanism, with its model scale, training horizon and numerical conditions retained.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles