How does pseudo-labelling work?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
How does pseudo-labelling work?
You have a small labelled dataset and a much larger pool of unlabelled data. Explain how pseudo-labelling uses the unlabelled pool, why it can help, and what can go wrong.
```hint Walk through one round
Describe what the model does with an unlabelled example, and which of those predictions you would trust enough to train on.
```
```hint Think about the model teaching itself
If the model trains on its own outputs, ask what happens to the mistakes it already makes, and what assumption about the data has to hold for the method to help.
```
### What a Strong Answer Covers
- The training loop: initial model, predictions on unlabelled data, a selection rule, retraining, and repetition.
- Hard versus soft pseudo-labels, and how the confidence threshold and loss weighting are set.
- Why it helps, in terms of decision boundaries, low-density regions and the cluster assumption.
- The main failure modes, including confirmation bias and class imbalance among accepted labels.
- Concrete mitigations and how to validate the result honestly.
### Follow-up Questions
- How would you choose the confidence threshold, and how would you check that it is working?
- How does pseudo-labelling relate to consistency regularization, and how does FixMatch combine the two?
- What would you do if the unlabelled pool contains classes that never appear in the labelled set?
- How would you detect confirmation bias while training?
Overview: Explain how pseudo-labelling uses a model's confident predictions on unlabelled data to improve a classifier trained on few labels. It tests your understanding of the training loop, confidence thresholds, the cluster assumption, and failure modes such as confirmation bias and class drift.