Topic 2 of 5 · 4 min read
Supervised, self-supervised and reinforcement learning
Goal: Match a described training setup to supervised, self-supervised or reinforcement learning and say where its feedback comes from.
The three main ways a model learns differ in one thing: where the feedback comes from. In supervised learning it comes from labels, in self-supervised learning from the data itself, and in reinforcement learning from rewards.
Check yourself · 1 of 3
A model is trained on millions of web pages. For each sentence, one word is hidden and the model must guess it. Which kind of learning is this?
Why it matters
Modern chat assistants such as ChatGPT, Claude and Gemini are built in several stages, and each stage uses a different kind of learning. Knowing the three helps you understand why a model can write fluent text, why it can still be wrong, and why it often tries to please you.
The three ways
Supervised learning: feedback from labels. People supply examples with the right answers. A mail app learns from emails marked "spam" or "not spam". The model guesses, compares with the label and adjusts. This works well when you have good labels, but labelling costs time and money.
Self-supervised learning: feedback from the data itself. Nobody writes labels. The system hides part of the data and asks the model to predict it. Take the text "The cat sat on the ___". The hidden word is the right answer, and it was already there. A language model trained this way reads huge amounts of text and gets better at predicting what comes next. The same trick works on images, where a patch is hidden and the model fills it in. This is the main way large language models learn their first, broad skills.
Reinforcement learning: feedback from rewards. The model tries an action, then gets a score. A robot that stays upright gets a reward, and one that falls gets none. A game-playing program wins or loses. Over many tries it learns which actions lead to higher reward. Chat assistants are often tuned with a form of this, where human ratings of answers act as the reward. People prefer polite and helpful replies, so the model is pushed toward them.
Before and after
Before: "The model learned English from labelled sentences." This is wrong, because nobody labelled each sentence.
After: "The model learned from raw text by predicting hidden words (self-supervised), then was tuned with human ratings of its answers (reinforcement)." This names the source of feedback at each step.
What goes wrong
- Rewards can be gamed. A model rewarded for answers people rate highly may learn to sound confident or flatter the reader, even when it is unsure.
- Labels carry opinions. Supervised models inherit the choices of whoever labelled the data.
- Raw data is not neutral. Self-supervised learning on the open web copies the web's errors and gaps, because no one checked each page.
The three are often combined. Real products are rarely built with only one.
Examples
Three setups, three sources of feedback
A tool sorts X-rays using scans that doctors marked healthy or not. Supervised: the labels come from doctors.
A model reads millions of pages and predicts each missing word. Self-supervised: the hidden word is the answer.
A program learns chess by playing itself and getting a point for each win. Reinforcement: the reward comes from the result.
Key points
- The three types of learning differ by where the feedback comes from.
- Supervised learning uses human-made labels as the right answers.
- Self-supervised learning hides part of the data and asks the model to predict it, so no labels are needed.
- Reinforcement learning scores the model's actions with rewards, such as human ratings.
- Large chat assistants usually combine more than one kind of learning.
Common mistakes
- Calling any learning from examples "supervised", when no labels were used.
- Thinking chat assistants learned only from labelled data.
- Assuming a reward always measures truth, when it may measure what people liked.
- Forgetting that a real product often mixes the three.
Check yourself · 2 of 3
A warehouse robot gets a point each time it places a box on the right shelf and loses a point when it drops one. What is the source of feedback?
Check yourself · 3 of 3
Why might a chat assistant tuned on human ratings sometimes agree with you too easily?
Practice items, not counted towards your mastery.
Start here
- Machine Learning Crash Course (Google) (opens in a new tab)CourseFree
Free, hands-on lessons on how models learn from data, with exercises and clear figures.
- What is machine learning? (IBM Think) (opens in a new tab)ArticleFree
Plain overview of machine learning types and how training works.
- Neural networks series (3Blue1Brown) (opens in a new tab)VideoFree
Visual videos that show weights and training as nudging numbers to reduce error.
More for this topic
- What is self-supervised learning? (IBM Think) (opens in a new tab)ArticleFree
Plain explanation of learning from hidden parts of the data, with examples.
- What is reinforcement learning? (IBM Think) (opens in a new tab)ArticleFree
Clear overview of agents, actions and rewards.