Skip to content
Preptima
mediumConceptScenarioEntryMidSenior

How do you tell that a model is overfitting, and what do you do about it?

Detect overfitting by comparing training and validation performance on an honest split. Fix it with more or better data, simpler models, regularisation, early stopping and a final test set that is read only once. It also connects model validation to the point an interviewer is testing.

4 min readUpdated 2026-08-15

Answer

Short answer

Overfitting shows up when training performance keeps improving but validation performance stalls or worsens. First check that the split is honest for time, groups and leakage; then improve data, reduce model capacity, add regularisation, use early stopping, and keep a final test set untouched until the end.

Was this answer helpful?

Likely follow-ups

  • How would you split the data for a churn model where each customer contributes hundreds of rows?
  • What does a learning curve tell you that a single validation score cannot?
  • With only two thousand labelled examples, how does your validation strategy change?
  • A model scored well offline and is failing in production. Where do you look first?

Related questions

Further reading