Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Overfitting

In plain words

When a model fits its training examples too closely. It may then do poorly on new examples.

The fuller definition

Overfitting occurs when a system fits the particularities of its development data so closely that its performance does not generalize well to new examples.

The training loop, simplified
  1. ExamplesInputs paired with the expected output.
  2. PredictionThe model produces an output.
  3. LossHow far off it was, as a number.
  4. UpdateParameters nudged to reduce the loss; repeat.

Training ends at the knowledge cutoff. Whatever the examples contained, including their gaps and biases, is what the model learned.

A concrete example

A prompt handles every practiced email but fails when the same issue is phrased differently.

The distinction that matters

Excellent results on familiar examples do not establish dependable performance on future records.

Related terms

Where it is taught

How models learn from examples

Source and further reading

Hugging Face · LLM course

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC