The Impact of Training Data Quality
A model can only be as capable as the data that shaped it. What is missing from the training data tends to be missing from the model's skills.
A Translation Model That Cannot Say Hello in Vietnamese
Imagine a translation model that has been carefully built and trained. Its design is sound, and it handles many translation requests well. Then you ask it to translate English into Vietnamese, and it cannot produce Vietnamese at all. The cause is not a flaw in the model's design. The cause is that Vietnamese never appeared in the material the model learned from.
A model can only be as capable as the data that shaped it. What is missing from the training data tends to be missing from the model's skills.
What do you think happens?
If a model was trained on a large collection of animal photographs and nothing else, how well would you expect it to handle a photograph of a plant?
Reveal answer
It would not perform well on the plant photograph.
The training set contained only animals, so the model had no experience with plants. Its behavior on plant images is unreliable because plants lie outside the territory it was trained on.
What the Training Set Defines
An AI model is only as good as the data it was trained on. Its performance is tied to the quality and relevance of that training data.
The two properties named in this principle are different, and it helps to keep them apart. Quality concerns whether the data is accurate and useful. Relevance concerns whether the data actually covers the situations the model will face. A training set can be accurate and still fail on relevance, because accurate examples of the wrong things teach the model very little about the work it is actually asked to do.
A useful way to think about this is as territory. The training set defines the territory the model has explored. Anything inside that territory is something the model has had a chance to learn. Anything outside it is effectively unknown, and the model's behavior there is unreliable. Data therefore does more than influence performance in general. It sets the boundary of where performance can be trusted.
Tracing a Gap Into a Failure
Follow the chain step by step. First, a category of examples is missing from the training data. Second, the model never receives examples from that category, so it has no learned patterns for it. Third, a related input arrives that depends on that missing category. Finally, the output is weak. The diagram below lays out this sequence using the translation case.
The same chain explains the image case. An image model trained only on animals has no relevant experience with plants. When a plant photograph arrives, the model meets an input from a category it never covered, and the result is weak performance. In both cases the gap is in the data, and the weakness appears in the model's output.
Reading Coverage Across Possible Inputs
One way to check a model is to ask which regions of the possible inputs its training data covers, and which regions are empty. Regions with training examples are inside the model's territory. Regions without examples are the places where its behavior cannot be trusted.
Reading the coverage this way turns a vague worry about a model into a concrete question. For any new input, you can ask whether training examples like it exist. If they do not, the model is operating in empty territory, and you should expect its results there to be unreliable.
Matching Data to the Task
Two training sets can both be high quality, yet produce very different results on a specific task. What separates them is how closely the data matches that task. Accurate data that does not cover the needed examples leaves the model without the experience it requires. Data that closely matches the task gives the model relevant examples to learn from.
Why Better Data Is Hard to Get
If the training data determines what a model can do, the natural response to a weak skill is to change the data. The course material advises that to improve a model on a certain task, you might include more data for that task in the training set. The reasoning follows from the chain traced earlier. A task that is poorly covered needs more examples of that task, so the model has something to learn from.
Checking Coverage Before Trusting a Model
Deciding Whether to Trust a Translation Model
You want to use a translation model to translate English into Vietnamese. Should you expect it to work well?
- 1Identify the target task
The task is translating English into Vietnamese.
- 2Check the training data
Ask whether Vietnamese appears in the material the model learned from.
- 3Apply the principle
If Vietnamese is absent, the gap in the data predicts that translation into Vietnamese will be ineffective.
- 4Decide
Do not rely on the model for this task until its training coverage of Vietnamese is established.
Before asking whether a model can translate into a given language, check whether that language appears in the training data. If it does not, expect ineffective translation into that language.
Mistakes Learners Make About Training Data
Common mistake Assuming a model that is strong in general will handle every specific language or category
What it looks likeExpecting a capable translation model to produce Vietnamese when Vietnamese never appeared in its training data.
Why it failsGeneral strength does not extend to material the model never learned from. The training set sets the boundary of its skills.
Do this insteadCheck whether the specific category or language appears in the training data before relying on the model for it.
Common mistake Treating quality as the only property that matters
Why it failsAccurate data can still fail if it does not cover the situations the model will face. Relevance is a separate requirement.
Do this insteadAsk two questions: is the data accurate and useful, and does it cover the inputs the model will actually receive?
Common mistake Believing that adding any data will fix a weak skill
Why it failsThe source says adding data for a task might improve the model. It is a lever that helps when the added data is relevant to the task.
Do this insteadAdd examples that are relevant to the specific task rather than data in general.
Common mistake Expecting reliable behavior on inputs far outside the training territory
What it looks likeExpecting an animal-only image model to classify plant photographs well.
Why it failsInputs outside the training territory are effectively unknown to the model, so its behavior there is unreliable.
Do this insteadTreat results on uncovered inputs as unverified, and test them directly.
Practice Applying Coverage Reasoning
A team has an image classification model trained only on photographs of animals. They want it to classify photographs of plants. Using the chain from missing data to weak output, explain what you would expect to happen, and describe one concrete step the team could take to improve the model's performance on plant photographs.
Hints
- Start by identifying which category is missing from the training data.
- Connect the missing category to the model's lack of learned patterns for plants.
- The source suggests that adding more data for the target task is the direct way to widen what a model can handle.
Key Takeaways
- 1An AI model is only as good as the data it was trained on, so its performance is tied to the quality and relevance of that data.
- 2Information missing from training data tends to produce weak performance on related tasks, such as a translation model lacking Vietnamese.
- 3Adding relevant data for a task is a direct way to widen what a model can handle, though it is not a guaranteed fix on its own.
- 4Collecting enough data for a large model can be difficult and expensive, so developers often must work with data that does not exactly fit their needs.
At a glance
- An AI model is only as good as the data it was trained on, so its performance is tied to the quality and relevance of that data.
- A gap in training data, such as a missing language or a missing category of images, tends to produce weak performance on related tasks.
- The training set defines the territory a model has explored, so behavior on inputs outside that territory is unreliable.
- Adding relevant task-specific data is a sensible lever for improvement, but collecting enough data is difficult and expensive, so developers often work with data that does not exactly fit.