# Generalization

- **Canonical URL:** https://getaimath.com/dictionary/generalization/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Generalization?

**In one sentence:** Generalization is how well an AI model handles new examples it never saw during training.

Memorizing the answers to last year's test is not the same as understanding the subject. A model that generalizes well has learned the real pattern, so it does fine on fresh questions. A model that generalizes badly only works on the exact examples it practiced on.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Generalization?

A model that learned to spot cats in sunny photos generalizes well if it also spots cats in rainy or dark photos.

## Why does Generalization matter?

Generalization is the whole point of machine learning: we want models that work in the real world, not just on practice data.

## Related Concepts

- [Transfer Learning](https://getaimath.com/dictionary/transfer-learning/): Transfer learning means taking what a model learned on one task and reusing it to learn a new, related task faster.
- [Overfitting](https://getaimath.com/dictionary/overfitting/): Overfitting is when a model learns its training examples too closely, including the noise, so it does badly on new data.
- [Pre-training](https://getaimath.com/dictionary/pre-training/): Pre-training is the first, giant training stage where a model learns general knowledge from enormous amounts of data.
- [Underfitting](https://getaimath.com/dictionary/underfitting/): Underfitting is when a model is too simple or not trained enough, so it fails to learn the pattern even on its training data.
- [Fine-tuning](https://getaimath.com/dictionary/fine-tuning/): Fine-tuning is giving an already-trained AI model extra training on a smaller, focused set of examples so it gets good at a specific job.
- [Model](https://getaimath.com/dictionary/model/): In AI, a model is the trained program that takes an input and produces an output, like an answer, a label or a picture.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/generalization/)
