Pseudo-labeling

Also known as: self-training · pseudo-labels

On this page 7

Pseudo-labeling is a semi-supervised learning technique in which a model trained on a small labeled dataset predicts labels for unlabeled examples, keeps the most confident predictions as pseudo-labels, and then continues training on the combined data. In artificial intelligence, it belongs to the training toolbox used when raw data is plentiful but human annotation is expensive or slow.

The idea is closely related to self-training, a term often used as a synonym, and it underlies several strong results in image classification, speech recognition and text classification. Its value comes from exploiting the structure of unlabeled data; its main risk is that the model may reinforce its own mistakes, a failure known as confirmation bias.

How pseudo-labeling works step by step

Pseudo-labeling follows an iterative teacher-student cycle. A teacher model learns from labeled data, generates predictions on unlabeled data, and a student model, which may be the same network, then trains on both the true labels and the selected pseudo-labels.

  1. Train an initial model on the labeled set until validation performance stabilizes.
  2. Run the model on the unlabeled pool and record class probabilities.
  3. Keep predictions above a confidence threshold, often 0.9 to 0.95 for classification.
  4. Train on labeled plus pseudo-labeled data, usually with a lower loss weight on pseudo-labels.
  5. Repeat with the improved model, refreshing pseudo-labels each round or each epoch.

The method works because of two assumptions. The cluster assumption says that points in the same dense region of input space tend to share a class, and the low-density separation assumption says that decision boundaries should pass through sparse regions. Training on confident pseudo-labels pushes the boundary away from dense clusters, an effect related to entropy minimization.

Key design parameters

Pseudo-labeling looks simple, yet its outcome depends heavily on a few design choices. The table below lists the parameters that most often decide whether the technique helps or harms.

ParameterTypical settingEffect if set poorly
Confidence threshold0.9-0.95 softmax probabilityToo low adds noise; too high adds almost nothing
Pseudo-label weightRamped from 0 to 1 over trainingEarly heavy weight locks in errors
Hard versus soft labelsHard one-hot or soft probabilitiesHard labels amplify mistakes faster
Refresh frequencyEvery epoch or every roundStale labels preserve early errors
Class balancingPer-class quotas or thresholdsMajority classes crowd out rare ones
Labeled to unlabeled ratio1:1 to 1:7 per batchToo much unlabeled data dilutes true signal
Parameters that shape pseudo-labeling results

Calibration matters as much as the threshold itself. Deep networks are often overconfident, so a 0.95 softmax score may correspond to a much lower real accuracy. Temperature scaling or uncertainty estimates from ensembles and dropout give more reliable selection.

Variants used in modern training

Several well-known methods extend basic pseudo-labeling by combining it with data augmentation, consistency constraints or a separate teacher network. They share the same core idea but differ in how pseudo-labels are produced and filtered.

VariantCore ideaTypical domain
Classic pseudo-labelHard labels from the current modelImage classification
Noisy StudentLarger student trained with noise and augmentationLarge-scale vision
FixMatchLabel from weak augmentation, train on strong augmentationLow-label image tasks
Mean TeacherTeacher is a moving average of student weightsVision and medical imaging
Iterative self-trainingRepeated rounds with a growing labeled setSpeech and text
Notable pseudo-labeling variants

In language models, a related practice uses a strong model to generate labels or responses for unlabeled prompts. This overlaps with distillation and synthetic data generation, but true pseudo-labeling keeps the defining feature of a model learning from its own or a peer model’s predictions on real unlabeled inputs.

Pseudo-labeling is one of several ways to reduce dependence on manual labels. It is often confused with weak supervision and knowledge distillation, which address different problems.

TechniqueSource of training labelsMain goal
Pseudo-labelingModel predictions on unlabeled dataUse unlabeled data to improve accuracy
Weak supervisionHeuristics, rules and noisy sourcesCreate labels without annotators
Knowledge distillationSoft outputs of a larger teacherCompress a model into a smaller one
Active learningHumans label selected uncertain samplesSpend annotation budget efficiently
Self-supervised pretrainingSignals derived from the data itselfLearn general representations
Pseudo-labeling and neighboring techniques

These methods combine well. A common pipeline uses self-supervised pretraining for representations, active learning to pick valuable human labels, and pseudo-labeling to exploit the remaining unlabeled pool.

Limitations and failure modes

The most serious risk is confirmation bias: wrong but confident pseudo-labels are learned as truth, which makes the next round even more confident in the same error. Gains are therefore largest when the initial model is already reasonably accurate and smallest when labeled data is extremely scarce.

  • Class imbalance drift: the model labels easy majority classes more often, so rare classes shrink further.
  • Distribution mismatch: unlabeled data from a different domain produces systematically wrong pseudo-labels.
  • Evaluation leakage: test or validation samples must never enter the unlabeled pool.
  • Diminishing returns: after a few rounds, extra iterations usually add little accuracy.

A reliable safeguard is to monitor accuracy on a held-out labeled set after every round and to audit a random sample of pseudo-labels by hand. If audited precision falls below roughly the model’s validation accuracy, the threshold or weighting needs adjustment.

Understanding it simply

Imagine a student who has a few solved exercises and a large stack of unsolved ones. The student solves the unsolved ones, keeps only the answers they feel very sure about, and studies those as well.

Pseudo-labeling teaches a model the same way. It learns from a small set of examples with correct answers. Then it labels new examples on its own and keeps only its surest guesses. This saves a great deal of human labeling work. The catch is simple: if the model is sure about a wrong answer, it learns that mistake. Careful checks keep this risk under control.

Applied in practice

A team building a defect classifier for a factory has 2,000 labeled images of circuit boards and 150,000 unlabeled ones. Labeling more images requires senior inspectors, so the team turns to pseudo-labeling instead.

The initial model reaches 88 percent accuracy on a held-out set. The team keeps pseudo-labels with confidence above 0.95, applies per-class thresholds so rare defect types are not crowded out, and ramps the pseudo-label weight over the first ten epochs. Inspectors audit 300 random pseudo-labels per round.

After three rounds, held-out accuracy rises to about 93 percent, and audited pseudo-label precision stays near 97 percent. A fourth round adds almost nothing, so the team stops there and spends the saved budget on labeling rare defects that the model still confuses.