LearnBenchStart learning →

AI Research Scientist · Generalization Theory & Phenomena

Generalization theory

Real lesson card · Page 1 of 3

Generalization theory

generalization gap

The generalization gap is the difference between a model’s error on the data it trained on and its error on new, unseen data from the same distribution. Generalization theory asks why and when this gap stays small rather than assuming it will.
Example
A model scores 2% error on its training images but 15% error on a fresh test set; that 13-point difference is the generalization gap the theory tries to explain.

Recall check from the same lesson

A model that reaches zero error on its training set has thereby proven that it learned the true underlying pattern generating the data, so any later test error must be pure measurement noise.

Real lesson card · Page 1 of 3

Generalization theory

Capacity’s Effect on Train and Test Error

  1. 1
    Below capacityWith too little capacity, the model can’t fit training data well: both errors stay high, since the pattern is never captured.
  2. 2
    At the right capacityOnce capacity matches the true pattern, training error drops and test error drops with it, keeping the gap small.
  3. 3
    Beyond needed capacityExtra capacity lets the model fit training-set noise; training error keeps falling, but the generalization gap widens as test error stalls.

Recall check from the same lesson

If a model trained on a fixed dataset has near-zero training error but a large gap to its test error, the classical capacity view attributes this primarily to the model having more capacity than needed to capture the true underlying pattern.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Generalization Theory & Phenomena questions