Concepts / Data Quality and Dataset Curation

Data Quality and Dataset Curation

A small amount of high-quality data can outperform a large amount of noisy data. Quantity cannot compensate for poor quality or missing coverage.

  • Programming

Why More Data Is Not Automatically Better

What do you think happens?

A team has collected one million training examples, but nearly all of them look alike. Will a model trained on this dataset handle the wide range of situations it will meet after deployment?

  • Yes, because one million examples is a very large amount of data

  • No, because the examples do not cover the range of situations the model needs to handle

Reveal answer
Answer:

No. The model will likely have gaps in the situations it can handle.

Quantity is only one of the three core dataset criteria. A million examples that all look alike leave gaps the model never learns to fill. Coverage determines whether a large dataset is actually useful.

Discussions about training data often focus on how much data a model sees. This article argues that the amount is only part of the picture. Building a training dataset is shaped by what you want the model to do and by the training phase the model is in, and the quality of the data matters as much as its size. The sections that follow trace how a dataset is designed, how the three core criteria interact, how synthetic data enters the process, and what a data flywheel can and cannot promise.

Starting From Target Behaviors

Building a training dataset can feel like a mysterious craft, but the underlying logic is direct. You begin by deciding what behaviors you want the model to learn. Then you design a dataset that demonstrates those behaviors. The data you need is shaped by two things at once: your use case and the training phase the model is in. Pre-training draws on different data than instruction finetuning or preference finetuning does.

  1. 1
    Decide the behaviors the model should learn for your use case
  2. 2
    Identify which training phase the model is in, since each phase draws on different data
  3. 3
    Select or create data that demonstrates each target behavior
  4. 4
    Evaluate the chosen data against the three core criteria before training

The order matters. Data choices come after the behavior decision, not before it. A team that starts by collecting whatever data is easy to get has no clear test for whether the data teaches anything useful.

The Three Core Criteria

Dataset design across all training phases rests on the same three criteria: quality, coverage, and quantity. Quantity receives most of the attention in discussions about training, but the other two matter just as much.

Definition

Quality means that a dataset's examples are accurate and useful for the behavior you are trying to teach.

Definition

Coverage means that the dataset includes the range of situations the model will need to handle.

Definition

Quantity is how much data the model sees.

The three criteria are not independent. Coverage determines whether a large dataset is useful at all, because a million examples that all look alike leave gaps the model never learns to fill. Quality determines whether the quantity you collect helps or hurts, because noisy examples add volume without adding correct behavior. Teams have also found that increasing the diversity of their datasets is a key way to improve model performance. Diversity sits at the intersection of coverage and quality, since a varied set of examples only helps if each example is also correct.

Dataset designQualityexamples are accurate andusefulDiversityvaried, correct examplesCoveragerange of situationsincludedGaps never filledwhen coverage is weakQuantityhow much data the modelseesVolume withoutcorrect behaviorwhen quality is weakcriterioncriterioncriterionweak coverage causesweak quality causesintersectsintersects
How do quality, coverage, and quantity depend on one another, and what happens when one is strong while another is weak?
Key point

A small amount of high-quality data can outperform a large amount of noisy data. Quantity cannot compensate for poor quality or missing coverage.

Coverage Versus Quantity in Practice

Consider two candidate training datasets. The first is very large but spans only a few behaviors. The second is much smaller but includes many different situations. The comparison below shows why the second may be the more useful dataset, even though it contains less data.

FeatureLarge dataset, narrow coverageSmaller dataset, broad coverage
Number of examplesVery highModest
Situations representedFew, repeated many timesMany different situations
Gaps in what the model learnsMany, because similar examples leave the rest unlearnedFewer, because the range is included
Main riskModel handles only the familiar casesEach situation has fewer examples to learn from
Useful question to askDoes this data show the behaviors I need?Does each included situation have correct examples?

Coverage and quantity pull in different directions, and the best dataset balances them with quality.

Why Synthetic Data Became Practical

Because acquiring high-quality data is difficult, many teams have turned to synthetic data. Synthetic data is programmatically generated to supplement real data. The source explains that the difficulty comes from steps that resist automation. Annotating data is hard, but writing annotation guidelines is harder. Generating data can be automated to some degree, but verifying that the generated data is correct is harder still. The judgment about what data you want, and attention to details, cannot be handed off to a tool.

The practical appeal is that generation can be automated in ways that collection and annotation cannot. A process that produces candidate examples quickly can supplement real data at a scale that manual work would struggle to reach. The source is careful to add that this does not remove the need for careful thinking. Synthetic data changes where the effort goes. Much of the effort moves from producing raw examples to deciding what is wanted and checking what was produced.

In the real world

Generating content from rules and algorithms predates modern AI. Minecraft and No Man's Sky use noise functions and fractal algorithms to create vast, immersive worlds. In Dungeons and Dragons, procedural generation can produce random dungeons, quests, and encounters. These examples show the appeal of generation: a small set of rules can produce far more content than a designer could write by hand. Synthetic training data aims at a similar gain, but the generated content must serve a training goal, which is why evaluation matters so much.

Checks Generated Data Must Pass

The source is firm on one point: synthetic data must be evaluated to ensure its quality before it is used to train models. This applies to generated data in the same way it applies to real data. A generated example can be wrong, off-topic, or unrepresentative, and training on it can teach the model those flaws. The diagram traces the path a generated example takes. Real data remains the starting point, and the generated portion does not enter training directly.

Generate exampleproduced from a traininggoalAccurate?is the content correctOn topic?does it serve the targetbehaviorReject or send backfailed a checkRepresentative?does it reflect realsituationsUse in trainingpassed all checksevaluateyesyesyesnonono
What path does a generated example take from creation to training, and at which checkpoints can it be rejected or sent back?
Worked example

Tracing one generated example through the checks

A team generates a batch of question and answer pairs to teach a model a specific behavior. One generated pair has a plausible-looking answer that is factually wrong. What happens to it?

  1. 1
    Creation

    The example is produced by the generation process, based on the training goal the team set.

  2. 2
    Correctness check

    The answer is checked for accuracy. It is wrong, so the example fails at this first checkpoint.

  3. 3
    Decision

    Because it failed, it is rejected or sent back for regeneration. It does not enter training directly, even though generation produced it.

  4. 4
    Why the other checks still matter

    An example that is accurate but off-topic, or accurate but unrepresentative, would also be stopped at its own checkpoint. Passing one check does not mean the example has passed all of them.

Result

The wrong answer never reaches training. Without the correctness check, training on it could teach the model that flawed answer.

  • Common mistake

    Generating large amounts of data before deciding how to judge it

    Why it fails

    If you cannot evaluate the output, you cannot be confident the generation process is helping.

    Do this instead

    Decide how you will judge each piece of generated data before you generate at scale.

  • Common mistake

    Assuming synthetic data needs less careful thinking than real data

    Why it fails

    Synthetic data does not remove the need for careful thinking. It changes where the effort goes.

    Do this instead

    Put effort into deciding what is wanted and into verifying what was produced.

  • Common mistake

    Treating generated examples as correct because a tool produced them

The Data Flywheel and Its Conditions

A data flywheel describes a model that continually improves upon itself. The source notes that the implication of using synthetic data is that, in theory, it is possible to train a model that keeps improving this way. Each round of improvement produces material for the next round, so progress builds on itself. The loop is attractive, but the source is careful about whether it works in practice. The flywheel depends on the quality of what the model feeds back into itself.

Deployed modelin real useUsage feedbackcollected from useFeedback checkedis the signal reliableErrors reinforcedwhen feedback is unreliableImproved datafed into next trainingBetter modelproducespasses throughreliabletrainsredeployedunreliable
In what order do the steps repeat, and at which point does the loop stall if one of the enabling conditions is missing?

The loop works only when the feedback it carries is reliable. The source offers a case where feedback clearly helped. In one reported study, about 20 percent of solutions were initially incorrect but self-corrected, which indicated that the model learned from execution feedback and improved its performance. Here the feedback came from running the code, a signal that reliably separated good output from bad.

MEDIUM

A team sets up a flywheel that feeds model outputs back into training. Name the two conditions that must hold for each round to improve the model rather than reinforce mistakes. Then say which step in the loop should be checked first.

Hints
  • Think about the quality of what is fed back, and whether the signal reliably separates good output from bad.
  • The check happens at the point where feedback enters the loop, before it becomes training data.

Summary of Dataset Curation Principles

  1. 1
    Design a dataset by first deciding the behaviors the model should learn, then choosing data that demonstrates them.
  2. 2
    Quality, coverage, and quantity are the three core criteria. They are not independent, and a large amount of data cannot compensate for poor quality or missing coverage.
  3. 3
    Synthetic data is programmatically generated to supplement real data and must be evaluated for accuracy, relevance, and representativeness before training.
  4. 4
    The data flywheel can in theory keep improving a model, but it works in practice only when the feedback it carries is reliable, since errors fed back into the loop are reinforced.

At a glance

  • Dataset design starts from the behaviors the model should learn, and the use case and training phase shape the data needed.
  • Quality, coverage, and quantity are the three core criteria, and a small amount of high-quality data can outperform a large amount of noisy data.
  • Synthetic data supplements real data and must be evaluated for quality before training, because generated examples can be wrong, off-topic, or unrepresentative.
  • The data flywheel can in theory keep improving a model, but it depends on reliable feedback, since feedback that carries errors can reinforce them.

Related concepts

More concepts starting with D