Stopping is a regularisation decision
Training loss falls for as long as you keep training. Validation loss falls, reaches a minimum, and then rises as the model starts fitting noise.
The minimum of the validation curve is the model you want, and every step past it is spent making the model worse.
Early stopping is the rule that finds that point without knowing in advance where it is.
Patience, because the curve is noisy
- : the patience, how many evaluations of no improvement are tolerated.
- : the minimum change that counts as an improvement.
Validation loss wobbles from one evaluation to the next, so stopping at the first rise stops almost immediately and almost always too early.
Patience of five to ten evaluations is typical, and it should be larger when the schedule still has a large learning rate to decay.
The threshold exists so that an improvement of does not reset the counter forever.
One training run, in order
- Evaluate on the validation set at a fixed interval.
- If the score improved, record it and save the weights.
- If not, increment the patience counter.
- When the counter reaches , stop training.
- Restore the saved weights, which are not the ones in memory at the moment you stopped.
Step five is the one that gets skipped.
Stopping after bad evaluations leaves the model evaluations past its best, and without the restore the procedure hands back a worse model than it found.
Why it is equivalent to a penalty
Starting from a small initialisation, the parameters can only travel so far in steps, so stopping early keeps them inside a ball around where they began.
For a linear model with squared loss that correspondence is exact: stopping at step gives the same solution as L2 regularisation with a particular .
So early stopping is not merely a convenience. It is a regularisation dial that happens to be free, tuned on the validation set by construction.
What it interacts badly with
A learning rate schedule that decays to zero already produces much of its improvement in the final steps, so aggressive patience cuts off the part of the run that mattered.
Validation loss and validation accuracy can move in opposite directions late in training, as the model becomes more confident where it is right and more wrong where it is not.
Stop on the metric you are judged by, not on the loss, whenever the two disagree.
The validation set is now part of the training procedure, so a score read off it is optimistic and a separate test set is required to report anything.