With 2% training error and 15% validation error, should you collect 10x more data or change the model?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Your model has 2% training error and 15% validation error, and you can afford either to collect ten times more data or to spend the time on model changes. How would you decide which to pursue?
```hint Split the gap
Before picking a fix, break the error into parts: how far training error is from the best achievable, how much of the gap appears on held-out data from the training distribution, and how much appears only on the validation distribution.
```
```hint Predict before you pay
Look for a cheap experiment on the data you already have that estimates what ten times more data would buy.
```
### Clarifying Questions to Ask
- Is the validation set drawn from the same distribution as the training data, and does it match production traffic?
- What is human-level or best-known error on this task?
- How long would ten times more data take to collect and label, and can it be collected in stages?
- Would new labels have the same quality as the existing ones?
- Is the 15% error spread evenly, or concentrated in particular classes or slices?
### What a Strong Answer Covers
- Reading the train/validation gap as variance, and checking training error against human-level or Bayes error for remaining bias
- Separating variance from distribution mismatch with a train-dev split
- Using learning curves to estimate what ten times more data would buy
- Cheap model-side fixes, and error analysis that may point to targeted data collection
- Weighing cost, time and the long-term value of each path
### Follow-up Questions
- The learning curve is flat but validation error is still 15%. What do you check next?
- How would you fit and extrapolate a learning curve, and how far would you trust the extrapolation?
- If train-dev error came back at 14%, how would your plan change?
- If you could label only a fraction of the new data, how would you choose which examples to label?
Overview: Asks how to choose between collecting ten times more data and changing the model when training error is low and validation error is much higher. Tests bias and variance diagnosis, train-dev splits for distribution mismatch, learning curve extrapolation, and error analysis.