Semisupervised learning
What Is Semisupervised Learning?
Semisupervised learning is a branch of machine learning that trains models using a combination of a small set of labeled examples and a much larger pool of unlabeled data, occupying the methodological space between supervised learning, which requires labeled examples for every training instance, and unsupervised learning, which operates without any labels at all. The central motivation is practical: in many real-world domains, collecting and annotating large quantities of labeled data is expensive or time-consuming, while unlabeled data is relatively easy to acquire. Semisupervised methods allow a system to extract structural information from the unlabeled portion to improve performance beyond what the labeled set alone would support.
The field draws on statistical learning theory, graph theory, and probabilistic modeling, and it has become particularly prominent in deep learning applications where neural networks benefit from large datasets but annotation at scale is impractical.
Self-Training Methods
Self-training, also called pseudo-labeling, is the simplest and oldest semisupervised technique. A model is first trained on the available labeled data; it then generates predicted labels for the unlabeled examples, and those predictions made above a confidence threshold are added to the training set as if they were true labels. The process iterates, progressively expanding the labeled pool. The quality of pseudo-labels depends critically on how well the initial model has generalized from the labeled examples, and errors can compound across iterations if the threshold is set too loosely. The scikit-learn documentation on semi-supervised learning implements self-training through its SelfTrainingClassifier, which wraps any classifier supporting probability outputs and iteratively incorporates high-confidence predictions using either a threshold or a k-best selection criterion.
Graph-Based and Label Propagation Methods
Graph-based semisupervised methods represent the entire dataset, labeled and unlabeled, as a similarity graph in which nodes are examples and edge weights reflect proximity in feature space. Labels propagate from labeled nodes to unlabeled neighbors in proportion to edge strength, spreading through the graph until a stable assignment is reached. Two standard variants, LabelPropagation and LabelSpreading, differ in whether labeled nodes' assignments remain fixed or can adjust slightly during propagation. LabelSpreading uses soft clamping with a regularization parameter, allowing labeled nodes to adjust slightly, which improves accuracy when some labeled examples may themselves be noisy. These methods embody the manifold assumption: that examples connected by high-weight edges are likely to share the same class, even when the class boundaries in the raw feature space appear complex. Graph-based label propagation scales to thousands of examples but becomes computationally expensive on very large datasets due to the cost of constructing and storing the similarity matrix.
Consistency Regularization and Deep Semisupervised Models
Consistency regularization is the dominant paradigm for semisupervised deep learning. The core idea is that a well-trained model should produce the same prediction for an unlabeled example regardless of mild random perturbations applied to the input: image augmentations, dropout noise, or small input translations. A consistency loss term penalizes prediction changes across perturbed versions of unlabeled inputs, training the model to learn representations that are invariant to the perturbations used. Methods such as FixMatch, published at NeurIPS 2020, combine consistency regularization with a confidence threshold for pseudo-label generation. The FixMatch paper achieved top benchmark accuracy on CIFAR-10 using as few as 40 labeled examples out of 50,000. Teacher-student frameworks, where a teacher model generates targets for a student trained on unlabeled data, extend the consistency principle to structured prediction tasks such as medical image segmentation, as surveyed in PMC research on consistency regularization for histopathological images.
Applications
Semisupervised learning has applications in a wide range of fields, including:
- Text classification and sentiment analysis using abundant web text with minimal manual annotation
- Speech recognition, where transcribed audio is far scarcer than raw recordings
- Medical image segmentation, where expert annotation is time-intensive
- Image and video recognition for large-scale computer vision
- Drug discovery, where labeled bioactivity data is limited relative to the chemical compound space