Contents
Supervised, Unsupervised, Semi-Supervised and Self-Supervised LearningFour Ways a Model Learns
Where the learning signal comes from, and the classic methods for each case
A tutorial companion to the video Machine Learning Interview #1: Supervised, Unsupervised, Semi- and Self-Supervised Learning PDF
01Introduction
1.1The question
“What is the difference between supervised, unsupervised, semi-supervised and self-supervised learning?” is a favourite opening question in machine learning interviews. The names sound alike, and a memorized list of definitions rarely survives the first follow-up. The answer becomes easy, and hard to forget, once you ask one question about any method: where does the learning signal come from? That is, what tells the model that its current guess is wrong?
- Supervised learning: every training input comes with a correct answer provided by people. The signal is the human label.
- Unsupervised learning: there are no answers at all, only inputs. The signal is the structure of the data itself: groups, directions of spread, regions of high density.
- Semi-supervised learning: a few inputs have answers, most do not. The signal is the few labels, extended to the rest by the structure of the data.
- Self-supervised learning: no human answers, but we manufacture answers by hiding part of each input and asking the model to predict it. The signal is the data, used as its own answer key.
The companion video tells this as the story of a student and a textbook. The supervised student has the answer key; the unsupervised student has no key and must find the patterns alone; the semi-supervised student gets a few problems graded and works out the rest; the self-supervised student makes up their own exercises: cover a word, guess it, uncover it, check. This tutorial makes each story precise and derives the classic methods behind it.
1.2A short history
The four paradigms grew up at different times. Supervised learning goes back to least squares and to Cox (1958), who introduced logistic regression for binary outcomes; Vapnik (1991) framed learning from labeled examples as empirical risk minimization. Unsupervised learning is just as old: Pearson (1901) and Hotelling (1933) invented principal component analysis, and Stuart Lloyd described the K-means algorithm in a 1957 Bell Labs report published much later (Lloyd, 1982); MacQueen (1967) gave the method its name. Semi-supervised learning starts with self-training (Scudder, 1965) and became a field in its own right around 2000, with graph-based label propagation (Zhu and Ghahramani, 2002; Zhou et al., 2003) and the textbook of Chapelle et al. (2006). Self-supervised learning was named much later, but its key idea, predicting part of the data from the rest, powers word embeddings (Mikolov et al., 2013), the language models BERT (Devlin et al., 2019) and GPT (Radford et al., 2018), and contrastive image models such as SimCLR (Chen et al., 2020). Good references are Hastie et al. (2009), Bishop (2006) and, for semi-supervised learning, van Engelen and Hoos (2020).