Model Complexity and Training Data Variety
Adding copies of existing data points, or very similar records, does not make a model more reliable, because it does not add variety.
Why a Bigger Table Is Not Automatically Better
Suppose a model is performing poorly and you have a limited budget. A tempting idea is to take the rows you already have, copy them several times, and retrain. The dataset looks bigger, so surely the model gains something. Another common instinct is to gather a fresh batch of records that look almost identical to the old ones, on the theory that more rows always means more reliable predictions.
Both instincts rest on the same assumption: that the number of rows is what matters. This article corrects that assumption. The number of rows is only part of the story. What matters just as much is how varied those rows are, because variety is what determines how complicated a model you can safely use.
What do you think happens?
You have 1,000 customer records and you double the dataset by pasting an exact copy of every row underneath the original. Does the model now have more information about customers than it did before, and has its ability to support a more complex model changed?
Reveal answer
No. The copied rows add no new information about customers, and the model's ability to support a more complex model is unchanged.
An exact copy repeats inputs the model has already seen. It does not add variety, and variety is what determines how complex a model can be without overfitting. The row count doubles, but the information does not.
Variety as the Limit on Model Complexity
The central idea is a link between two things: how varied the training inputs are, and how complicated a model you can safely use. A model with many adjustable parts can bend itself to fit almost any set of points. That flexibility is useful when the training data covers many different situations, but it becomes a liability when the data is narrow.
If the training data is narrow, a flexible model can memorize the quirks of the few examples it has rather than learning a pattern that holds for new cases. This failure is called overfitting. The relationship can be stated directly: the larger the variety of data points in your dataset, the more complex a model you can use without overfitting.
Read the diagram from the data side. Dataset size usually brings more variety, and variety sets the ceiling on how complex a model can be. When a model's complexity goes past what the variety supports, it begins to overfit. This is why the number of rows alone does not settle the question: two datasets of the same size can support very different models.
The Boat-Buying Rule as a Worked Case
A useful way to see the effect of variety is to follow a rule built from a small set of customer records. The rule, developed from a table of 12 customer rows, says that a customer older than 45 who has fewer than 3 children, or who is not divorced, is likely to want to buy a boat. The rule fits those 12 rows, but fitting 12 rows is weak evidence that it describes customers in general.
How Much Should We Trust the Boat Rule?
A rule was built from 12 customer rows. How does our confidence in it change if we later see 10,000 more rows of customer data that all agree with the rule?
- 1Start with the small sample
The rule rests on only 12 rows. Many different rules could fit 12 rows, so the rule's apparent success may come from the particular rows that happened to be collected.
- 2Add new, varied evidence
Imagine 10,000 more rows of customer data that agree with the rule. These rows are new evidence about customers, not repeats of the first 12.
- 3Compare the two situations
With 12 rows, we have little reason to believe the rule holds for new customers. With 10,000 agreeing rows that cover more of the customer population, we would be much more likely to believe the rule is good.
The rule is the same in both cases. What changes is the variety and amount of evidence behind it, and that is what makes us trust it more.
This also explains why more data usually helps. Collecting more data points will usually yield more variety, and larger datasets therefore allow building more complex models. The benefit of a bigger dataset is not that it is bigger. It is that a bigger, well-chosen collection tends to cover more of the situations the model will meet later.
Copies Versus New Records
The key distinction is between rows that repeat what the dataset already covers and rows that reach into regions of the input space that are not yet covered. Duplicates and near-duplicates add row count but no variety. A record that sits in an unexplored region adds both row count and new variety.
Read the diagram from top to bottom. Copying the dataset changes the row count from 100 to 1,000, but the covered input space stays the same. The model sees the same points more often, which does not tell it anything new about the pattern. A dataset that instead adds points in unexplored regions changes what the model has seen, and so it changes what complexity the model can safely support.
Near-duplicates behave the same way. A fresh batch of records that look almost identical to the old ones does not widen the range of inputs the model has learned from, so it does not justify a more complex model on its own.
More Data Versus Tuning the Model
When a model is not reliable enough, there are two broad levers. One is to adjust the model's settings. The other is to change the data by collecting more of it. The source makes a practical claim: having more data, paired with an appropriately more complex model to match it, can often produce large gains for supervised learning tasks.
The two levers change different things. Collecting varied records changes what the data can support, and that in turn determines how much model complexity is justified. Tuning changes how a given model fits the data it already has. Because dataset size is a condition you can influence in real projects, the source's advice is to take it seriously as a lever instead of assuming the model is the only thing to improve.
What the Rest of the Chapter Covers
The ideas in this article are about supervised learning, where a model learns from examples that come with known answers. The rest of this chapter reviews the most popular supervised algorithms. For each one, the chapter describes how the algorithm learns from data and makes predictions, how model complexity plays out for that algorithm, the overall way it builds a model, and its strengths, weaknesses, and suitable kinds of data.
Many of these algorithms come in two variants, a classification variant and a regression variant, and both will be described. You do not need to memorize every algorithm on a first reading. Understanding how the models behave gives you a better feel for the different ways machine learning algorithms can work, and the chapter can later serve as a reference when you are unsure how a particular algorithm behaves.
Mistakes Beginners Make With Dataset Size
Common mistake Assuming more rows always means a more reliable model
What it looks likeDoubling a dataset by pasting an exact copy of every row and expecting the model to improve.
Why it failsCopies repeat inputs the model has already seen, so they add no variety.
Do this insteadAsk whether the new rows cover inputs the dataset does not already cover.
Common mistake Believing near-duplicate records add useful information
What it looks likeCollecting a fresh batch that looks almost identical to the old records and treating it as new evidence.
Why it failsRecords that sit in the same region of the input space do not widen what the model has learned from.
Do this insteadLook for records that reach into regions the data does not yet cover.
Common mistake Making the model more complex without enough variety
What it looks likeChoosing a highly flexible model for a small, narrow dataset.
Why it failsA flexible model can memorize the quirks of a narrow dataset, which is overfitting.
Do this insteadMatch model complexity to the variety the data actually provides.
Common mistake Treating tuning as the only way to improve reliability
Judging a Proposed Dataset Change
A teammate has a model that performs poorly on new customers. They propose two changes: copy the existing 500 rows so the dataset has 1,000 rows, or collect 500 new rows from customers in a group the dataset barely covers. Which change is more likely to improve reliability, and why?
Hints
- Ask what each change adds: row count only, or new variety.
- A copied row repeats an input the model has already seen.
- New rows from a barely covered group extend the range of inputs the model learns from.
Key Takeaways
- Copying existing data points or adding near-duplicate records increases row count but does not add variety, so it does not make a model more reliable.
- The variety of inputs in a training dataset determines how complex a model can be used without overfitting; a flexible model trained on narrow data tends to memorize rather than learn the pattern.
- Larger, well-chosen datasets usually bring more variety, so collecting more data is often a stronger lever for reliability than tuning a model, especially when paired with an appropriately more complex model.
- The rest of this chapter examines popular supervised learning algorithms, describing how each learns, how its complexity plays out, how it builds a model, and its strengths, weaknesses, and suitable data.