What is early stopping?

Early stopping is a technique used when training deep learning models to prevent overfitting. The model’s performance on validation data is monitored during training, and if performance keeps improving on the training data but starts to worsen or plateau on the validation data after a certain number of epochs, training is stopped at that point. This keeps the model from learning noise or unhelpful details in the data, and the version that generalizes best to new data is kept.