Overfitting happens when a model learns the training data too specifically — including its noise and quirks — and performs poorly on new, unseen data as a result.
An overfit model essentially memorizes its training examples rather than learning the general pattern behind them. It looks excellent on the data it was trained on, but fails to generalize when it encounters new, slightly different examples.
Imagine a student who memorizes the exact answers to last year's practice exam questions instead of understanding the underlying concepts — they'll do great if this year's exam is identical, but poorly the moment the questions change even slightly.
Last reviewed: September 2026