liveBook · Manning

Overfitting

As explained in LLMs in Production

Overfitting is a condition in which a model becomes excessively tailored to training data and performs poorly on unseen data.

Overfitting occurs when a model becomes excessively tailored to training data and performs poorly on unseen data. In language-model training, minimizing training loss is not enough; the goal is broad generalization across contexts. section 5.2.1

Monitor training and treat these safeguards as useful but imperfect:

  • Use early stopping to halt training before the model becomes too specialized to its training data. section 5.2.1
  • Apply dropout and learning rate scheduling to support generalizability, while recognizing that neither guarantees success. section 5.2.1
  • Monitor the training process rather than optimizing training loss alone. section 5.2.1

How LLMs in Production covers it

How deep it goes
Defines the failure mode and names three safeguards, but stops short of implementation details or diagnostic thresholds.
Examples
Uses language-model training, unseen-data performance, and monitoring alongside early stopping, dropout, and learning rate scheduling.
What it assumes
Assumes familiarity with model training, batches, loss, epochs, and training versus unseen data.
What you can do after
Diagnose/debug with it by monitoring training and applying early stopping, dropout, or learning rate scheduling.
How it connects
Connects overfitting with training loss, epochs, early stopping, dropout, learning rate scheduling, and generalizability.

Also explained in

Compare how 24 books explain overfitting →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.