LearnBenchStart learning →

AI Research Scientist · Scaling Laws & Stability

Training instability diagnosis

Real lesson card · Page 1 of 4

Training instability diagnosis

Loss spike

A loss spike is a sudden, sharp jump in training loss over just one or a few steps, followed by the loss returning toward its prior trend. It’s transient: the curve bounces, not breaks.
Example
Loss tracks near 2.1 for hundreds of steps, jumps to 9.4 at step 5,000, then falls back to about 2.2 within the next 20 steps.

Recall check from the same lesson

In a training log, loss is 2.9 at step 800, becomes NaN at step 801, and stays NaN for the rest of the run. This should be diagnosed as a loss spike because the value jumped sharply at step 801.

Real lesson card · Page 1 of 4

Training instability diagnosis

Learning rate as root cause

An inappropriately high or unstable learning rate produces instability because each update step overshoots the loss landscape’s curvature, pushing weights past a good minimum into a region of higher loss. If the overshoot compounds step after step, the result is a spike or outright divergence rather than steady descent.
Example
If a run is stable at LR = 1e-4 but starts spiking right after the schedule bumps to LR = 3e-3, the learning rate increase is the natural first suspect.

Recall check from the same lesson

A loss spike that occurs during the very first 20 steps of training, while warmup is still holding the learning rate near zero, is most likely explained by a learning-rate spike rather than by initialization scale.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Scaling Laws & Stability questions