What is supervised learning?
Supervised learning is a machine learning approach in which a model learns from examples paired with correct labels or target values and then makes predictions for new inputs.
It differs from unsupervised learning in its use of labels: supervised learning relies on target labels, while unsupervised learning looks for patterns without them. It covers not only classification but also regression, which predicts a numeric value.
- Topic
- Machine learning, models and training
- Also known as
- Supervised machine learning, supervised training
How supervised learning works
- Data made of input features and known targets is split into training, validation and test sets.
- If the target is a discrete category the task is classification; if it is a continuous number it is regression.
- The model makes predictions; their gap from the true labels is measured by a loss function and methods such as gradient descent in neural networks or split rules in decision trees adjust the model to reduce it.
- Success is measured on a labelled test set unseen during training.
Commonly confused terms
| Term | How it differs |
|---|---|
| Self-supervised learning | Supervised learning relies on explicit target labels supplied by people or another source, whereas self-supervised learning generates its training signal automatically from the structure of unlabelled data, such as by predicting masked or next tokens. |
| Semi-supervised learning | Supervised learning requires every training example to have a ground-truth label; semi-supervised learning combines a small labelled set with a large unlabelled pool (using pseudo-labelling or consistency regularisation) to cut annotation costs. |
| Reinforcement learning | Supervised learning trains on fixed input-target pairs with direct loss feedback, whereas reinforcement learning learns a policy through trial-and-error interactions with an environment guided by delayed scalar rewards. |
Why supervised learning matters for on-premises AI
Label quality directly sets model quality, so labelling guidelines and review are needed (data labelling). When the organisation's own experts label in-house, sensitive data never goes to outside labelling services; access rights and audit logs are kept meanwhile. Errors and bias in past decisions pass into the model through the labels. It underpins enterprise models such as document classification and claim prediction as well as supervised fine-tuning of language models.
A bank trains a model on application texts labelled by its experts to route requests to the right operations teams and evaluates the result on a separate dataset.
Common questions
Where is supervised learning used in large language models?
Pre-training is self-supervised. Supervised learning comes in at the supervised fine-tuning stage that teaches the model to answer questions and instructions properly and in training the reward model.
How much labelled data does supervised learning need?
It depends on task complexity, the number of classes and whether the model is pretrained. Fine-tuning a pretrained model needs far fewer labels than training from scratch.
Related terms
- Data labelling
- Classification
- Regression
- Semi-supervised learning
- Unsupervised learning
- Loss function
- Self-supervised learning
- Training data
- Supervised fine-tuning
- Overfitting
- Support vector machine
Sources
- Goodfellow, Bengio and Courville, Deep Learning, 2016, chapter 5
- Hastie, Tibshirani and Friedman, The Elements of Statistical Learning, chapter 2
In the glossary: Glossary, R to Z