Learn AI Math

Overfitting

What is Overfitting?

In one sentence: Overfitting is when a model learns its training examples too closely, including the noise, so it does badly on new data.

It is like a student who memorizes the exact practice questions instead of learning the idea. They ace the practice test but fail when the questions change. An overfit model scores great on training data but makes silly mistakes on anything new.

What does Overfitting look like?

A model that learned "all dogs are on green grass" because every training photo had grass is overfitting.

Why does Overfitting matter?

Spotting and preventing overfitting is one of the most important skills in building AI.

Overfitting vs. Underfitting

An overfitting model memorizes training quirks and stumbles on new data; an underfitting model is too simple or under-trained to capture the pattern even on training data.

DimensionOverfittingUnderfitting
Training scoreVery high (memorized)Poor
Test / real-world scoreDrops sharply on unseen examplesAlso poor
Common fixMore data, regularization, early stoppingBigger model, better features, longer training

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.