A concept · How Machines Learn · Computing

Overfitting

A model that fits the past perfectly has memorised it, not learned it.

A student memorises the answer to every past exam paper and scores full marks on all of them. The real exam asks the same ideas in new words, and the marks collapse. What did the past papers hold that the exam did not? They held the ideas, and they also held the accidents of their own phrasing, and full marks could not tell the two kinds of learning apart. A trading strategy tuned until it would have profited in every one of the last twenty years loses steadily from the day it goes live. When does fitting the past better mean knowing less about the future?

What Overfitting means

Overfitting is the failure in which a model learns the particular accidents of the examples it was trained on rather than the pattern that will recur, so its score on what it has seen keeps rising while its performance on anything new gets worse. Owning this changes what we ask of any explanation that fits perfectly. We stop being impressed by a fit that leaves nothing unexplained, because the data always carries noise, and a model with enough freedom will explain the noise too. We judge a model only on cases it has never seen, and we suspect every rule that was added to account for one awkward month. Before, the perfect back-test was the goal. After, it is the warning sign, and the honest number is the one from the held-out set.

Overfitting examples: where it shows up

  • At work: a hiring rubric tuned to describe the last five successful hires in detail selects for their coincidences rather than for what made them good.
  • With money: a strategy with dozens of rules, each added to fix one bad year, is a description of those years and a poor guide to the next.
  • In the news: a diagnostic system that scored brilliantly at one hospital fails elsewhere, having learned which scanner the sickest patients were put through.

Where it sits

Open to walk. See where Overfitting sits on the sky →

Nearest on the sky

A filled dot marks a star that is already open to walk.

Consuming content is one thing.
Connecting Overfitting to your mental models is understanding. Apply it to your world today.

Begin Overfitting now →

The first one is on us. No signup, no card.