Glossary termConcept

Overfitting

Also known as: Overtraining

Failure mode in which a model learns noise and quirks of its training data so closely that it performs poorly on data it has not seen.

Overfitting happens when a model fits its training data too well. Instead of capturing the general pattern, it memorizes accidental details, such as random noise, mislabeled examples or features that only happen to correlate with the answer in that particular dataset. The telltale sign is a gap between performance on training data, which keeps improving, and performance on held-out validation data, which stalls or gets worse. The opposite problem, underfitting, occurs when a model is too simple to capture the real pattern at all.

The trade-off is often explained through the bias-variance decomposition: simple models tend to have high bias and low variance, while very flexible models have low bias but high variance. Standard defenses include splitting data into training, validation and test sets, cross-validation, regularization that penalizes large weights, dropout in neural networks, early stopping and gathering more data. A related failure, data leakage, occurs when information from the test set accidentally influences training, making a model look far better than it really is.

Overfitting has a social analogue in Goodhart's law: when a benchmark becomes a target, systems can be tuned to the benchmark rather than to the ability it was meant to measure, a recurring concern in AI evaluation. Very large neural networks complicate the classical picture, since heavily overparameterized models often generalize well, and researchers have documented a double descent pattern in which test error falls, rises and falls again as model size grows. Memorization in large language models also raises privacy and copyright questions when training text is reproduced verbatim.

Key points

  • Overfitting shows up as strong training performance combined with weak performance on held-out data.
  • Regularization, dropout, early stopping, cross-validation and more data are standard countermeasures.
  • Data leakage between training and test sets can disguise overfitting as success.
  • Overparameterized neural networks often generalize better than classical statistical theory predicted.

Related entries

Glossary term

The collection of examples from which a machine learning model learns its parameters, shaping both what the model can do and the biases it carries.

Glossary term

Machine Learning

AIProgramming

Branch of artificial intelligence in which computer systems improve at tasks by learning patterns from data rather than following explicitly programmed rules.

Glossary term

The practice of measuring an AI model's capabilities, reliability and risks through benchmarks, human judgment and targeted testing.

Glossary term

Goodhart's Law

Ideas and CultureAI

Principle that a metric used as a target tends to lose its value as a measure, because people optimize for the number rather than the goal.

Glossary term

Machine learning approach in which a model learns to map inputs to outputs from examples that have been labeled with the correct answers.

Glossary term

Gradient Descent

AIProgramming

Optimization method that repeatedly adjusts parameters in the direction that most reduces a function's value, used to train most machine learning models.