The interview problem
Design a semi-supervised training loop that uses unlabeled images without amplifying its own mistakes.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume a labeled seed set and unlabeled data from a related distribution. Fit a teacher, calibrate acceptance thresholds on held-out labels, and add only selected pseudo-labels with source/version metadata. Preserve a supervised-only baseline and cap pseudo-label weight per class. Evaluate on untouched labeled groups and audit high-confidence failures before another iteration. Track selection rates by class and source so easy majority examples do not dominate.
2. Trace the design or derivation
Train teacher → calibrate selection → store pseudo-label lineage → train student → compare release gates
For each round, retain a fixed challenge set and record how the accepted population changes. A rising pseudo-label agreement rate can simply mean the teacher selected easier examples. Stop when independent validation gains plateau or rare-class recall deteriorates, even if training loss continues to fall.
3. Calculate the example
A teacher accepts 8,000 of 10,000 unlabeled examples at estimated 95% precision. That implies roughly 400 incorrect pseudo-labels if the estimate transfers; it is not a guarantee. A shifted source can invalidate the estimate entirely.
4. Failure cases and trade-offs
Confidence is not correctness under shift. Reusing pseudo-labels across many rounds can make errors self-reinforcing. Lower thresholds increase diversity and noise; stricter thresholds can starve rare classes. Keep lineage so suspect pseudo-label batches can be removed and training reproduced.
5. Validation, follow-ups and self-review
Compare supervised-only, one-round and multi-round variants on rare classes. Follow-up: what if no examples of a new class were labeled? Self-review: define selection, weighting, stopping and rollback criteria.
Sources and related practice
Technical reference: scikit-learn.org — Self-training and confidence-based pseudo-label selection.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Train a classifier from conflicting labeling rules; When can you trust a probability?.
Continue your preparation
Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.