How would you approach an ML problem where you have only a few hundred labelled examples?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
You are asked to build a model for a supervised task, but only a few hundred labelled examples exist. How would you approach an ML problem where you have only a few hundred labelled examples?
```hint Which error dominates
With a few hundred rows, think about which side of the bias-variance trade-off dominates, and where you could borrow information from outside the dataset.
```
```hint Trusting your numbers
Work out roughly how wide the error bars on a validation score are with this little data, and what that means for comparing models.
```
### Clarifying Questions to Ask
- What is the input type (tabular, text, images, audio), and how many raw features does each example have?
- Is there a large pool of unlabeled data, and what does one more label cost in time or money?
- How are the classes or target values distributed, and which kind of error is expensive?
- Do several examples come from the same user, patient or document, so that they could leak across folds?
- What level of performance would make the model useful, and where will it run?
### What a Strong Answer Covers
- Variance as the main risk, and simple, regularized models as the first baseline
- Use of outside information: pretrained representations, domain features, and few-shot or zero-shot baselines where the task allows
- An evaluation plan that uses every example and accounts for its own noise: repeated stratified k-fold, light or nested tuning, grouped splits
- Ways to get more signal: augmentation, active learning, semi-supervised learning and label quality checks
- Evidence, such as a learning curve, for deciding between collecting labels and improving the model
### Follow-up Questions
- Two models differ by 2 points of accuracy in 5-fold cross-validation on 300 examples. How do you decide whether the difference is real?
- When would you fine-tune a pretrained network instead of training a head on frozen embeddings, and how would you keep fine-tuning stable?
- How would you design an active learning loop, and what can go wrong with pure uncertainty sampling?
- What are the risks of pseudo-labeling, and how would you detect that it is hurting?
Overview: Describe how you would build and evaluate a model when only a few hundred labelled examples are available. Tests model choice under high variance, transfer learning, cross-validation with honest error bars, active and semi-supervised learning, and deciding when to collect more labels.