AI CompendiumA public chart of the language
Home / Failure Modes / Overfitting
Failure Modes

Overfitting

Memorising the training data instead of learning the pattern.

Definition

When a model fits its training examples so closely that it performs badly on anything new. The training loss looks great and real-world results do not.

The same failure appears in prompt and eval work: a prompt tuned against ten examples that crumples on the eleventh. Hold out data you never look at.

In LLM work it shows up in three places: fine-tunes that memorise your examples, prompts tuned until they only work on the cases you looked at, and retrieval tuned against a handful of queries. All three share the same signature — excellent scores on the material you developed against, and a surprise in production.

How people use it
Reviewing an eval score.
"Ninety-nine percent on the examples we tuned on means nothing. Show me the held-out set."
Worked example

The prompt tuned into a corner

A prompt scores perfectly on the twelve examples used to refine it.

Hold back a set of cases you never look at until the end. The gap between the tuned set and the held-out set is the honest measure of whether the work generalised — and it is usually wider than expected.

Sources
Related terms