generalization
1 article
Generalization is the ability of a learning system to perform well on situations it never saw in training, using patterns from the examples it did see.
A model is built from a finite set of examples, yet it is used on new inputs. Memorising the examples is not enough: a student who memorises last term's exam answers fails when the questions change. A model that fits its training data closely but stumbles on fresh data is said to overfit. One too simple to capture the pattern at all is said to underfit. Practitioners check for both by holding back some data, never showing it during training, and measuring performance on it afterwards.
A further distinction is between new examples of a familiar kind and examples of a different kind altogether. A system that reads handwriting may cope with a new writer and still fail on a new alphabet. Performance under such a change, often called distribution shift, is much harder to predict. The same question applies to behaviour as well as accuracy: whether a model's trained habits, including its refusals of harmful requests, carry over to inputs unlike anything in training.
Generalization is the whole point of machine learning, since a system that only repeats its training data is a lookup table. It is also where surprises come from. Medical, financial and safety-critical uses depend on knowing where a model's learned patterns stop holding.