Semi-supervised learning
Semi-supervised learning trains a model on a mix of a small amount of labelled data and a larger amount of unlabelled data.
Labels are often the expensive part of machine learning. A hospital may have a million scans but only a few thousand reviewed by a specialist; a company may have years of support emails but only a sample tagged by topic. Semi-supervised learning is designed for that situation. Google's machine learning glossary defines it as training a model on data where some examples have labels and others do not, and notes that it helps when labels are costly but unlabelled examples are plentiful.
The oldest and simplest method is self-training, also called pseudo-labelling. A model is trained on the labelled examples, used to predict labels for the unlabelled ones, and the predictions it is most confident about are added to the training set. The process repeats until the model stops improving. Wikipedia's account traces self-training applications back to the 1960s. Other methods build a graph linking similar examples and spread known labels along it; the popular scikit-learn library offers both self-training and label propagation tools.
These methods depend on assumptions about the data. The main ones are that points close to each other probably share a label, that data falls into clusters whose members share a label, and that high-dimensional data actually lies on a simpler underlying surface. When the assumptions hold, unlabelled data helps the model place its boundaries in sensible places. When they do not, unlabelled data can make the model worse, and self-training can reinforce its own early mistakes, which is why scikit-learn's documentation stresses that the base model's confidence scores need to be well calibrated.
The idea has also been absorbed into how modern AI is built. Large models are pre-trained on huge amounts of unlabelled data and then fine-tuned on a much smaller labelled set, which fits the same pattern of plenty of raw data and a few labels. Google's glossary classes self-supervised learning as one semi-supervised approach.
Supervised learning uses only labelled examples, where each input comes with the correct answer. Semi-supervised learning uses some labelled examples plus many unlabelled ones, and tries to learn from the structure of the unlabelled data as well. It is useful when labelling everything would be too costly. Pseudo-labelling, or self-training, is a semi-supervised technique in which a model trained on labelled data predicts labels for unlabelled data, and its most confident predictions are added to the training set as if they were real labels. The model is then retrained, and the cycle repeats. It can fail when the data does not fit its assumptions, for example when examples that look similar actually belong to different classes. In those cases unlabelled data can push the model in the wrong direction, and self-training can amplify its own errors. Checking results on a properly labelled test set is essential. Some sources, including Google's machine learning glossary, treat it that way, because it uses unlabelled data to build a model that is then refined with labels. Others group it with unsupervised learning. The labels matter less than the pattern: learn from plentiful raw data, then adapt with a little labelled data.Common questions
What is the difference between semi-supervised and supervised learning?
What is pseudo-labelling?
When does semi-supervised learning fail?
Is self-supervised learning a kind of semi-supervised learning?
Search for "semi-supervised learning", "self-training", "pseudo-labelling" or "label propagation" to find methods and tutorials. Reliable sources include machine learning library documentation such as scikit-learn's, university course notes and review papers on arXiv. When a paper reports large gains from unlabelled data, check how many labels the baseline had and whether the test set was labelled independently.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.