Level 2 · Module 11 · 10 minutes
Overfitting: when a model memorises instead of learning
- Define overfitting and contrast it with underfitting.
- Name the common causes and signs of overfitting.
- Describe several practical ways to reduce overfitting.
Overfitting means a model has learned the training examples too well, including their noise and accidents. It looks excellent on the rows it studied and disappointing on new ones. The opposite problem, underfitting, is a model too simple to catch the real pattern. Good training aims between the two.
The classroom picture
A student who memorises the exact questions from a past paper can score full marks on that paper and struggle on a new one. The student learned the paper rather than the subject. A model can do the same: it can remember that one particular order was late because of an odd detail, instead of learning the general conditions for lateness.
Why it happens
- Too little training data, so every example is special and the model fits each one.
- A model with too much freedom, such as a tree grown very deep or a network with far more capacity than the task needs.
- Training for too long, so the model keeps fitting small errors that mean nothing.
- Many rounds of tuning against the validation pile, so choices slowly fit its quirks.
The signs
The main sign is a gap: training results are much better than validation results. If the gap grows as training continues, overfitting is getting worse. A tiny gap with poor results both ways suggests underfitting instead, so the model needs more useful features, a different shape or better data. A near-perfect training score on a small table is especially suspicious, because so few rows cannot prove perfection.
What reduces it
More and cleaner data is the strongest remedy. Simplifying the model or limiting its freedom helps too. Stopping training when validation results stop improving is a common control. Regularisation, which adds a penalty for extreme learned values, is another. Cross-validation gives a steadier view when data is scarce. Each remedy trades a little training-time accuracy for a better chance on new rows.
Practice versus real training
Comparing two students' marks is a simplified teaching picture. Real training watches the validation score over time and keeps the version that generalises, not the one that memorises. A commercial training run uses the same idea with a monitoring process and a fixed final test. In this lesson you compare tables on paper; no model is trained and no training curve is produced.
Common misconception
A model with a perfect score on its training data must be a very good model. A perfect training score is a warning, not proof. It may mean the model memorised quirks that will not appear again. The useful question is how the model behaves on rows it never saw, which is why validation and test results matter more than training results.
Guided practice
Two hypothetical students each practise for a test. Student one memorises the answers to last year's paper; student two learns the method. On last year's paper both score the same. On a new paper, one collapses. Write which one, then list three ways a model can be stopped from behaving like the memoriser. Relate each remedy to a training decision such as data amount, model size or stopping time. This is a paper exercise; no model is trained.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem