Early stopping is a regularization procedure that ends training when validation loss stops improving. If training loss continues to fall while validation loss rises, further optimization may worsen generalization. Stopping at that point can also save computation. section 10.1 section 10.6
Use validation loss to decide when to stop:
- After each epoch, compare validation loss with its best value so far. An epoch is one pass through the training dataset. section 10.1
- If validation loss fails to improve for several epochs, stop training; save a model checkpoint rather than relying only on the final epoch. section 10.1 section 10.2.1
MNIST training
In a Keras/TensorFlow multilayer perceptron or LeNet-style CNN, record training and validation loss across epochs and use an EarlyStopping callback. The CNN example stops when validation loss has not improved over several epochs. Its loss and accuracy plots make the training–validation difference visible. section 10.1 section 10.2.1








