Kinds of learning
Semi-Supervised Learning: A Few Labels, Many Unlabeled Examples
Explore how labeled and unlabeled data are combined, the assumptions behind pseudo-labeling and consistency methods, and the danger of confident error amplification.
By the end you can
- Define semi-supervised learning as joint use of labeled and unlabeled examples for one target task
- Explain pseudo-labeling, consistency, and graph-based intuition
- Identify assumptions linking unlabeled structure to class boundaries
- Design safeguards against confirmation bias and distribution mismatch
Visual
The semi-supervised setting
A small labeled set anchors the task while a larger unlabeled pool provides information about input structure. The labeled anchor defines the classes, fixes what the target means, and supplies the evaluation everything else is judged against. The unlabeled pool contributes only what the inputs look like. Between them sits an assumption — that nearby, consistent, or low-density structure in that pool relates to the target — and a protected validation set whose job is to find out whether it did.
The anchor is the part the whole arrangement treats as solid, so it is worth seeing one that was not. ChestX-ray8 is 108,948 frontal chest X-rays from 32,717 patients, collected between 1992 and 2015 and released by the NIH Clinical Center in 2017. A later release, ChestXray14, expanded it to 14 classes and 112,120 images. The disease labels were not drawn by radiologists looking at the images. They were text-mined from free-text reports by NLP, and the authors scored that mining at precision 0.90, recall 0.91 and F1 0.90 against the separate OpenI dataset. Only 983 of the images carry expert-drawn bounding boxes, 1,600 boxes in total.
Then a board-certified radiologist sat down with about 700 of those images and looked at them. Luke Oakden-Rayner reported what he saw in Academic Radiology in 2020: “The ChestXray14 labels did not accurately reflect the visual content of the images, with positive predictive values mostly between 10% and 30% lower than the values presented in the original documentation.” Emphysema came out at 14% under a permissive rule and 10% under a clinical one. Pneumothorax looked healthy at 90%. Then the images containing chest drains — the treatment, not the untreated finding — were excluded, and it was 60%. He also found that 13,302 patients, 43% of them, contributed more than one study, and that those patients account for 84% of the images.
Every method in this lesson would have taken those labels as the definition of the task.
- 01
Unlabeled pool
Many inputs are available without task-specific targets.
- 02
Labeled anchor
A smaller set defines classes, target semantics, and evaluation.
- 03
Learning assumption
Nearby, consistent, or low-density structure is expected to relate to the target.
- 04
Protected validation
Trusted labeled evidence checks whether unlabeled data actually help.
Semi-supervised learning is still target-directed
The goal remains a supervised task, such as classification or regression, and unlabeled examples influence representation, boundaries, or pseudo-targets while labeled examples define the task.
This differs from unsupervised exploration, where no immediate target is supplied. It also differs from self-supervised pretraining, where the training targets are constructed from the data itself before a downstream task is chosen.
Case
Noisy Student: 300 million unlabelled images, and 88.4% top-1
The largest public demonstration of the setting is Noisy Student Training, published in 2019. Its authors trained an EfficientNet teacher on labelled ImageNet, used it to place pseudo-labels on 300 million unlabelled images, and trained a larger student on both. Dropout, stochastic depth and RandAugment went into the student on purpose, so that it could not simply reproduce the teacher.
The result was 88.4% top-1 accuracy on ImageNet, above the previous best, which had needed 3.5 billion weakly labelled Instagram images. The robustness numbers moved further than the headline: ImageNet-A top-1 from 61.0% to 83.7%, ImageNet-C mean corruption error from 45.7 to 28.3, ImageNet-P mean flip rate from 27.8 to 12.2. The labelled set never grew. What grew was the evidence about what the inputs look like.
Figure
Comparison
Three ways unlabeled data can influence the learner
Pseudo-labeling turns confident predictions into temporary targets. Consistency training asks for stable predictions under perturbations that are supposed to preserve meaning. Graph and neighborhood methods propagate information between similar examples. Each mechanism relies on an assumption, and those assumptions may fail in a mismatched or ambiguous pool. The mechanisms are also separable enough to measure, which is the useful part: put two of them in one system and you can see what each was buying.
FixMatch is that experiment. Google Research took a pseudo-label from a weakly augmented copy of an unlabeled image, kept it only when the model was confident about it, and then required the model to reproduce that label on a strongly augmented copy of the same image. Pseudo-labeling and consistency training, doing one job. The 2020 paper reports what that bought: “Despite its simplicity, we show that FixMatch achieves state-of-the-art performance across a variety of standard semi-supervised learning benchmarks, including 94.93% accuracy on CIFAR-10 with 250 labels and 88.61% accuracy with 40 – just 4 labels per class.”
The size of the contribution is clearest in someone else’s code. The FlexMatch team, at Tokyo Institute of Technology and Microsoft, re-ran both methods in 2021 inside their own TorchSSL codebase. FixMatch: 4.86% ± 0.05 error with 250 CIFAR-10 labels, 7.47% ± 0.28 with 40. Fully supervised training on all 50,000 labels, in the same codebase: 4.62% ± 0.05. Two hundred and fifty labels come within a quarter of a point of fifty thousand. Plain pseudo-labeling, same codebase, same 250 labels: 46.49% ± 2.20, and 74.61% ± 0.26 at 40 labels. The confidence filter and the perturbation are not decoration on the idea of self-training. On this benchmark they are most of it.
Pseudo-labeling
Use confident model predictions as temporary targets.
- Simple and broadly applicable
- Can expand effective labels
- Errors can reinforce themselves
- Needs confidence and class checks
Consistency training
Encourage stable predictions under meaningful perturbations.
- Uses invariance assumptions
- Works with augmentations or noise
- Bad perturbations change semantics
- Requires protected evaluation
Graph or neighborhood methods
Propagate information among similar examples.
- Uses local structure
- Can exploit connected manifolds
- Sensitive to similarity definition
- Risky across class bridges
Example
56 labelled studies against 353,500 uncurated images
A hospital's unlabeled pool is not curated, and one benchmark uses it the way hospitals actually hold it. Heart2Heart, built at Tufts University and Tufts Medical Center in 2023, trains echocardiogram view classifiers on 56 labelled studies from TMED-2 plus a genuinely uncurated unlabeled set of 353,500 images from 5,486 routine patient-studies collected in Boston. Nobody filtered that pool to the labelled task first, because in a hospital nobody does.
The paper that introduced it, Fix-A-Step, is blunt about what happens next: “Unfortunately, modern deep SSL often makes accuracy worse when given uncurated unlabeled data.”
- The anchor is 56 labelled studies. The pool is 353,500 images from 5,486 routine studies. That ratio is the real one, not a hypothetical, and it is the ratio at which fitting the pool starts to outweigh fitting the anchor.
- Mismatch, first kind — extra classes. At least 9 canonical view types appear in routine transthoracic echocardiography, against the 4 labelled classes. Most of what the model is being asked to be consistent about has no label in the task at all.
- Mismatch, second kind — a skewed anchor. About 50% of patients in the labelled set have severe aortic stenosis, compared with less than 10% in the general population. The labelled anchor oversamples the disease roughly fivefold before any unlabeled image is added.
- Off-the-shelf Pi-Model, VAT and FixMatch needed the paper’s Fix-A-Step correction before they convincingly beat a labelled-only baseline — and the labelled-only baseline is the thing you already had for free.
- Evaluation was held out and then held further out: 120 studies (~2,104 images) from the same source, then 7,231 Unity images from 17 UK sites and 2,000 CAMUS images from France. Gains that survive only the first test are equipment-specific gains.
- Confidence is not evidence that the model is looking at the right thing, so experts still have to inspect the newly confident cases. The pneumothorax label in ChestXray14 scored 90% until the images containing chest drains were removed, and then 60%.
Key idea
Confident mistakes can become training targets
Trained on a small biased sample, a model may assign high confidence to the same shortcut on thousands of unlabeled examples. Pseudo-labeling then turns that bias into additional supervision.
The failure mode has been measured. Trained naively on its own confident predictions, a CIFAR-10 network reached 11.40% validation error with 4,000 labels. Adding mixup, which softens the targets the network is asked to reproduce, took the same setup to 7.16%. Then the labelled anchor was cut to 500 images, and mixup alone stopped being enough: error rose to 32.10%. It came down only when a minimum number of genuinely labelled examples was forced into every mini-batch. The 2020 paper's explanation is arithmetic rather than exotic. When labels are few, “fitting the pseudo-labels is weighted far higher than fitting the labelled samples”. The model's early mistakes become the curriculum.
The standard advice at this point is to update the teacher, and there is a named system that does it. Meta Pseudo Labels, from Google in 2021, closes the loop the other way round: “However, unlike Pseudo Labels where the teacher is kept fixed, in Meta Pseudo Labels, the teacher is constantly adapted by the feedback of how well the student performs on the labeled dataset.” The labelled set stops being only the starting point. It becomes the signal that keeps correcting the labeller. Meta Pseudo Labels reached 90.2% top-1 accuracy on ImageNet, which the paper reports as 1.6% better than the previous state of the art. Correcting the teacher was not a compromise on accuracy. It was where the remaining accuracy was.
Use high-quality labeled validation, class-balance checks, uncertainty filters, and teacher updates. More pseudo-labels are not evidence of more truth.
Semi-supervision can amplify the initial model’s errors as efficiently as its successes.
Steps
Decide whether semi-supervision is worth the complexity
Compare populations, strengthen the anchor, state the assumption you are relying on, track the pseudo-labels, run the ablations, inspect the amplified errors. Step five is the one that gets skipped, and there is now a tally of what it finds when it is not.
USB, the Unified Semi-supervised Learning Benchmark, evaluated 14 SSL algorithms on 15 tasks across vision, language and audio in 2022. Twenty-two authors built it, at Microsoft Research Asia, Westlake University, Carnegie Mellon and several other institutions. Just as importantly, they made the comparison affordable. Evaluating one algorithm fell from about 335 GPU days under TorchSSL's 5 vision tasks to 39 GPU days on a single NVIDIA V100. Microsoft states the same reduction as 7,000 GPU hours to 900.
Table 9 of that paper counts how often each algorithm was worse than plain supervised training on the labelled data alone. The Π-Model: worse in 9 of 10 NLP settings and 7 of 9 audio settings. Pseudo-Labeling: worse in 7 of 10 NLP settings. Mean Teacher: 3 of 9 vision settings and 6 of 9 audio settings. MixMatch: 4 of 9 vision settings. These are published methods, run by people trying to make them work. The paper's own summary, in its robustness section, is one line: “SSL algorithms cannot always outperform supervised training especially when labeled data is scarce.” Of its medical dataset, TissueMNIST, it adds that “the biased pseudo-labels might produce a destructive effect that impedes training”.
The labelled-only baseline is therefore not a formality to be reported after the decision. On this evidence it is a live candidate, and in several modalities it is the favourite.
1. Compare populations
Check whether labeled and unlabeled examples come from compatible domains.
2. Strengthen the anchor
Audit label definitions, class coverage, and trusted validation.
3. State the assumption
Name the invariance, neighborhood, or confidence logic used.
4. Track pseudo-labels
Measure class distribution, confidence, revisions, and slice behavior.
5. Run ablations
Compare labeled-only, unlabeled-only pretraining, and combined methods.
6. Inspect error amplification
Review cases repeatedly selected by the learner and their downstream impact.
Unlabeled data can be abundant and still irrelevant
A large unlabeled pool from another language, device, market, or time period may distort the decision boundary, and even in-domain data can overrepresent ordinary cases while adding little information about rare classes.
This is not a defect of deep learning, and the demonstration predates deep SSL by seventeen years. Cozman and Cohen made it in 2002, in one line: “We show that unlabeled data can degrade the performance of a classifier when there are discrepancies between modeling assumptions used to build the classifier and the actual model that generates the data; our analysis of this situation explains several seemingly disparate results in the literature.”
Their worked example is a Naive Bayes classifier on two Gaussian features whose true dependence the model does not represent. 50 labelled records give about 7.8% classification error. 100 labelled records, about 7.2%. Adding 100 unlabelled records raises it to about 8.2%. Adding 9,800 more raises it to about 16.5% — more than twice the error of the 50-label starting point, produced entirely by data that cost nothing to collect. Each plotted point averages 100 trials, tested on 10,000 labelled records drawn from the correct model. The unlabelled data were not corrupt. The model was wrong, and more data made it more precisely wrong.
The modern version was measured in 2018, by five authors who reimplemented the major methods against one shared model so that the comparison meant something. On mismatch, they classified CIFAR-10's six animal classes from 2,400 labels and varied how many of the four unlabelled classes were among the labelled six. They found that “adding unlabeled data from a mismatched set of classes can actually hurt performance compared to not using any unlabeled data at all.”
Then the alternative nobody was running. With 4,000 CIFAR-10 labels the best semi-supervised method in their reimplementation reached 13.13% error. Simply fine-tuning an ImageNet-pretrained model of the same architecture reached 12.09%, and 12.91% even after the ImageNet classes resembling CIFAR-10 were removed.
Report the marginal value of the unlabeled pool by slice. Before paying for the pool, price what it is competing against.
Key takeaways
- Semi-supervised learning combines a labeled anchor with a larger unlabeled pool for one target task, and the anchor can itself be wrong: 983 of ChestX-ray8’s 108,948 images carry expert-drawn boxes, and its labels came from text-mined reports.
- Pseudo-labeling, consistency, and neighborhood methods use different assumptions. Combining the first two is most of the gain: FixMatch at 4.86% error from 250 CIFAR-10 labels, against 46.49% for plain pseudo-labeling in the same codebase.
- The labeled set defines class meaning and provides trusted evaluation; in Heart2Heart 56 labelled studies carry that job against 353,500 uncurated images, with 4 labelled classes against at least 9 view types.
- Confident errors become supervision when labels are scarce: 32.10% error at 500 labels, because fitting the pseudo-labels outweighs fitting the labelled samples. Meta Pseudo Labels answers this by letting the student’s labelled-set performance update the teacher.
- Population mismatch can make unlabeled data harmful with no bug anywhere: Cozman and Cohen’s Naive Bayes goes from about 7.8% error on 50 labels to about 16.5% once 100 unlabelled records and then 9,800 more are added.
- A labeled-only baseline is a live competitor, not a formality: USB’s Table 9 records the Π-Model losing to it in 9 of 10 NLP settings and Pseudo-Labeling in 7 of 10.