Search

Search IconIcon to open search

Early Stopping

Last updatedUpdated: by Jakub Žovák · 2 min read

Properties
created 15.03.2026, 09:28
modified 26.07.2026, 13:37
published Empty
topics Regularization, Training Strategy
authors Jakub
ai-assisted Yes

Early stopping halts training when the validation loss stops improving, using the model checkpoint from the best validation epoch. It is the cheapest regularization method — no extra computation, no hyperparameter penalty terms, no architectural changes ( Deep Learning, Ch. 7).

# Mechanism

  1. Monitor validation loss after every epoch (or every $k$ steps)
  2. Save a checkpoint whenever validation loss reaches a new minimum
  3. Stop training if validation loss has not improved for $P$ consecutive checks (patience)
  4. Restore the saved checkpoint as the final model

# Regularization Effect

Early stopping limits the effective number of training iterations, which bounds the complexity of the learned function. Goodfellow et al. show that for quadratic loss, early stopping is approximately equivalent to L2 Regularization with $\lambda \approx \frac{1}{\tau \epsilon}$, where $\tau$ is the number of steps and $\epsilon$ is the learning rate ( Deep Learning, Ch. 7).

# Key Hyperparameters

ParameterTypical ValueDescription
Patience $P$5–20 epochsSteps without improvement before stopping
Min delta$10^{-4}$–$10^{-3}$Minimum change to count as improvement
Restore best weightsYesRevert to best checkpoint after stopping

# Properties

  • No additional compute cost during forward/backward pass
  • Works with any optimizer and architecture
  • Implicitly limits model complexity by capping effective training time
  • Can be combined with learning rate schedules — stop only after LR has been reduced
  • Risk: stopping too early if validation is noisy; mitigated by larger patience or smoothing