Diagnosing a Dev-Set Error Spike in a Product Review Classifier
Case context: You are building a sentiment classifier for mobile app reviews. Human annotators are nearly perfect on this task. Your model has a 2% error rate on the training set, and a 2.2% error rate on a held-out set drawn from the same source as the training data. But when you evaluate on the dev set, the error rate rises to 11%.
Question: Identify the most likely issue affecting performance on the dev set, and explain which error rates support that conclusion.
Sample answer: The most likely issue is a mismatch between the training distribution and the dev-set distribution. The model performs similarly on training data and on other examples from the same source (2% versus 2.2%), so there is no sign of a large overfitting problem to the training set. The jump to 11% on the dev set shows that the dev examples come from a different or harder distribution that the model has not learned well.
Key points:
- The main diagnosis is a distribution mismatch.
- The close 2% and 2.2% error rates show the model generalizes well within the training distribution.
- The much larger 11% dev-set error indicates the dev set differs in some important way from the data used for training and same-distribution evaluation.
Rubric: The response must identify distribution mismatch as the diagnosis and support it by comparing the small gap between training and same-distribution error with the much larger gap to dev-set error.
0
1
Tags
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Data Science
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
Which comparison most clearly indicates a data mismatch problem in the case where training error is 4%, same-distribution unseen error is 5%, and dev error is 14%?
A train error of 0.8%, a same-source holdout error of 1.0%, and a development error of 7.5% mainly show overfitting.
In the distribution-shift example, the classifier has _____ error on the dev set.
Match each error metric in the distribution-shift example to its value.
Order the steps for diagnosing a distribution-shift problem in model evaluation.
What does a 0.4% gap between training error (2.0%) and error on other data drawn from the same distribution (2.4%) suggest?
If training error is 2%, human-level error is 1%, and development error on a different data source is 12%, the 1% gap between training error and human-level error is the biggest issue to fix.
For unseen data drawn from the same distribution as the training set, the error is _____.
Match each comparison to the kind of error it measures.
Order the evidence showing that distribution shift is the main issue in a speech-command classifier.
Explain how two error comparisons reveal a distribution mismatch.
Diagnosing a Dev-Set Error Spike in a Product Review Classifier
Meaning of error on the training-like distribution