Logo

Early Stopping: Stop Training Before Overfitting Wins

0:00 / 5:29
The overfitting trap
0:00 - 0:38

Why training too long makes performance worse: the model memorizes training noise instead of learning general rules.

What Early Stopping is
0:38 - 1:25

Early Stopping as regularization: continuously check a held-out validation set (80/20 split) instead of guessing epoch limits.

Train, evaluate, save — plus patience
1:25 - 2:16

The three-step loop and the patience buffer that prevents stopping on a random blip before rolling back to best weights.

Reading the two loss curves
2:16 - 3:01

Training loss keeps falling while validation loss bottoms out then rises — the valley is the sweet spot before overfitting.

Pull the stop lever at the valley
3:01 - 3:42

Halt when validation loss hits its minimum, keep the best checkpoint, and avoid overtrained end-state weights.

Epoch-by-epoch worked example
3:42 - 4:41

From epochs 8–12: best validation at epoch 10 (0.191), patience fires, halt, and automatic rollback to that checkpoint.

Four payoffs — best model before overfit
4:41 - 5:29

Prevent overfitting, train faster, spend less compute, and generalize better by choosing the best model before overfitting begins.