Overfitting
A model that fits its training data too well has memorized noise instead of learning the pattern that generalizes.
Overfitting is what happens when a model captures the noise in its training data along with — or instead of — the underlying signal, so it performs beautifully on data it has seen and poorly on data it hasn't. It's the central failure mode of any process that fits parameters to examples, from a regression line to a neural network to a rule someone writes after looking at exactly one incident.
The mechanism is a tradeoff between flexibility and generalization. A model with enough free parameters can pass through every training point exactly — zero training error — by treating each point's idiosyncratic noise as if it were a real feature of the world. The model isn't wrong about the data it was shown; it's wrong about everything else, because it spent its capacity explaining coincidences instead of the underlying relationship. This is why held-out test data matters: training accuracy alone can't distinguish a model that learned the pattern from one that memorized the noise, and only checking against examples it never saw can.
Overfitting isn't unique to statistics. A postmortem process that adds a new checklist item after every single incident is overfitting an organization's practices to a training set of one — the specific failure gets patched, but the checklist grows without bound and stops generalizing to failures that don't look exactly like the last one. A test suite with a special-cased assertion for every bug ever filed, instead of a property that would have caught the whole class, has the same shape. The tell is the same in both domains: a fix that only explains the exact case in front of you, phrased in terms specific enough that it would need to be re-derived for the next case.
The corrective is Occam's Razor applied over time — prefer the explanation or rule with fewer free parameters relative to the evidence, and treat perfect performance on the cases you've already seen as a warning sign, not a reward.
See also4
Occam's Razor
Prefer the explanation with fewer assumptions, not the one that is simplest to state.
Method6 connections
Goodhart's Law
When a measure becomes a target, it stops being a good measure.
Method42 connections
Regression to the Mean
An extreme measurement tends to be followed by a more average one, with no cause required beyond noise.
Method7 connections
Root Cause Analysis
Escalating past the visible symptom until you find the layer that actually produced it.
Method49 connections
Related1
Nearby in the graph rather than deliberately chosen. Looser, sometimes surprising.
Linked from6
- Fine-TuningAgents & Language Models
Continuing to train an already-trained model on a narrower dataset to specialize its behavior, instead of prompting the base model.
- Five WhysMethod
Repeatedly asking why a symptom occurred, chaining each answer into the next question until the causal chain runs out.
- Occam's RazorMethod
Prefer the explanation with fewer assumptions, not the one that is simplest to state.
- Premature OptimizationMethod
Spending effort making code fast before you know where it's actually slow trades clarity for speed you may not need.
- Regression to the MeanMethod
An extreme measurement tends to be followed by a more average one, with no cause required beyond noise.
- Second-System EffectMethod
The tendency for a system's successor, freed of its predecessor's constraints, to become dangerously over-engineered.