Skip to content
AI for Everyone

Supervised learning

Concept

A three-step diagram. Step 1 shows three labeled messages: two marked as spam and one marked as not spam. In step 2, the model learns from these examples. In step 3, the model labels a new, unlabeled message, “Your coupon is waiting, click now,” as “spam.”
A spam filter is a typical example of supervised learning: a person prepares examples with the correct answers, and the model learns to label new messages.Diagram: AI for Everyone

In supervised learning, people pair each example in the training data with the correct answer, which is called a label. The model learns how the data relates to the answers and then predicts the answer for examples it has never seen. A spam filter is a classic example: the model sees many messages marked as spam or as regular email, and it learns to tell which group a new message belongs to. A model that detects whether a photo contains a cat works the same way.

Supervised learning is also used to fine-tune large language models. In a 2022 paper, OpenAI researchers described how they collected human-written examples of the desired answers and used them to fine-tune GPT-3 with supervised learning. Only after that did they fine-tune the model further with reinforcement learning. Unsupervised learning and semi-supervised learning are covered in separate entries.

In my articles

The comparison table in my February 2025 article on generative AI lists supervised learning only under artificial general intelligence and assigns unsupervised or semi-supervised learning to generative AI. In the corrections I added in November 2026, I explain that this split was already inaccurate when the article was published, because back in 2022 OpenAI fine-tuned large language models first with supervised learning, using example answers written by people, and only then with reinforcement learning.

Sources

Related articles

Related entries

Last checked:

All entries