Concepts / Data Quality and Data Diversity

Data Quality and Data Diversity

A small, well-crafted dataset of around 50 to 100 examples is a reasonable test, and clear gains from it suggest that more data will likely help further.

  • Programming

The Question Every Data Project Asks

Anyone preparing data for finetuning eventually asks the same question: how many examples do I need? A common instinct is that the answer is a large number, and that a handful of examples is wasted effort because a model that small cannot possibly learn anything useful from it. This article examines that instinct. It also looks at the other forces that decide how much data a project actually requires, beyond the quality and diversity of the examples themselves.

What do you think happens?

Suppose you finetune a model on only around 50 well-written examples and then measure it. Do you expect the measured performance to improve, stay flat, or get worse? Commit to an answer before reading on.

  • It improves

  • It stays flat

  • It gets worse

Reveal answer
Answer:

It can improve. A small, well-crafted dataset of around 50 to 100 examples is a reasonable test, and clear gains from it suggest that more data will likely help further.

The rest of this article explains why a small set can help, what limits that effect, and how to use the result to choose a strategy.

Keep your answer in mind. The reasons behind the answer depend on three things beyond the examples themselves: the finetuning technique you choose, the complexity of the task, and how well the base model already performs before any finetuning begins. Each of these shifts the number of examples you need up or down, and the three interact with each other.

Why a Weak Result Is Not Proof

The belief that a small dataset cannot help rests on treating data as the only lever. A failed finetuning run with few examples is easy to blame on the number of examples, but many other things can produce the same disappointing result. The source names three common culprits: a learning rate that is too high or too low, data that contains errors, and prompts that were poorly constructed.

  • Learning rate: a value that is too high or too low can stop a run from showing gains
  • Data quality: errors inside the examples can hide or cancel out any real signal
  • Prompts: poorly constructed prompts can make correct answers look wrong, or the reverse

Choosing a Technique by Data Volume

The technique you choose is one of the biggest determinants of data requirements. Full finetuning updates the model as a whole and is expected to deliver the strongest performance, but it demands far more data than parameter-efficient finetuning, often called PEFT. LoRA is the example the source uses for a PEFT method. The gap is not small: full finetuning needs orders of magnitude more examples than PEFT methods like LoRA.

Updates the wholemodelParameter-efficientupdatesTens of thousands tomillions of pairsFew hundred to fewthousand examplesStrongest expectedperformanceFits small, realisticvolumes
How does LoRA differ from full finetuning in what gets updated, and why does that change how much data is needed? The two columns show the scope of each technique and the volume of examples it typically calls for.

The practical reading is direct. If your collection is in the tens of thousands to millions of instruction-response pairs, full finetuning becomes worth attempting. If you only have a few hundred or a few thousand examples, PEFT is the more likely fit. The choice of technique therefore follows from the volume you can realistically assemble, not the other way around.

AspectFull finetuningPEFT such as LoRA
What gets updatedThe model as a wholeA parameter-efficient subset of the model
Typical data volumeTens of thousands to millions of instruction-response pairsA few hundred to a few thousand examples
Expected performanceStrongest expected performancePractical when data is scarce
Fit for your projectWorth attempting when data is plentifulThe more likely fit when data is limited

How the two techniques differ in data requirements, using the volume ranges given in the source.

Two Forces That Change the Count

Technique is only one lever. Two more forces move the example count: how demanding the task is, and how close the base model already is to the performance you want. Both are easier to reason about once you see how they connect to the number of distinct patterns the model must learn.

Examples neededFinetuning techniquePEFT lowers, full raisesTask complexityComplex raisesBase model startingqualityStrong lowersData quality anddiversityShapes each example's valueshiftsraiseslowersmodulates
How do task complexity and the base model's starting quality each push the number of examples needed up or down? Data quality and diversity sit at the center because they determine how efficiently each example contributes.

Reading the OpenAI Experiment

Worked example

Two data scales, two outcomes

The source reports an experiment from OpenAI's finetuning guide. Five models were finetuned at two data scales. What does the pattern show about the role of the starting model?

  1. 1
    Small scale

    With only 100 examples, more advanced models produced noticeably better results after finetuning.

  2. 2
    Interpret the small-scale gap

    The likely explanation is that these models already performed better before any finetuning, so they began closer to the target.

  3. 3
    Large scale

    After finetuning on a very large set of 550,000 examples, all five models performed similarly.

  4. 4
    Interpret the large-scale result

    Enough data can compensate for differences in the starting model, at least in that setting.

Result

A strong starting point matters most when data is scarce. Once data is plentiful, the gap between starting models narrows.

Notice what the experiment does and does not claim. It shows a pattern across two scales in one setting. It does not establish that every base model converges at every data volume. Treat it as evidence for the direction of the effect, which is that a better starting point reduces the data you need and that abundant data can offset differences in the starting model.

A Pilot-First Decision Flow

The pilot step is the cheapest way to make the decision. A well-crafted set of about 50 examples costs little to assemble. If performance clearly improves, that is a signal that a larger dataset is likely to help more. If it does not, the sensible move is to examine hyperparameters, data quality, and prompts before committing to a large collection effort.

Pilot run on 50 to100 examplesClear improvement?Checkhyperparameters, dataquality, promptsBefore any large collectioneffortConsider fullfinetuningGather more dataA larger dataset is likelyto helpTens of thousands ofpairs available?Use PEFT such as LoRAnoyesyesno, few hundred to few thousand
Given the pilot results, which branch do you take: gather more data, switch to PEFT, or proceed with full finetuning? The flow starts from the pilot and branches on whether gains are clear and how much data you can realistically assemble.

Read the flow as a sequence of checks. The pilot tells you whether more data is likely to pay off. The volume you can realistically assemble then decides between full finetuning and PEFT. A flat pilot sends you back to diagnosis rather than straight to collection, because a flat result has several possible causes.

MEDIUM

Your team's pilot of 60 well-written examples shows clear gains. Which branch should you take next, and what would change your answer?

Hints
  • Start from the pilot result: is the improvement clear?
  • Then ask how many examples you can realistically assemble.
  • Consider what a few hundred examples would imply for the technique.

Mistakes With Small Datasets

The following mistakes come up when teams reason about small datasets. Each one treats the example count as the only variable, or ignores a factor the source identifies as shaping the decision.

  • Common mistake

    Concluding that a small dataset cannot help after one flat run

    What it looks like

    A run on 50 examples shows no gain, so the team abandons finetuning.

    Why it fails

    A flat result can come from the learning rate, data errors, or poor prompts, not only the number of examples.

    Do this instead

    Check hyperparameters, data quality, and prompts first, then decide whether the dataset is really the limit.

  • Common mistake

    Choosing full finetuning because it promises the strongest performance

    What it looks like

    A team with a few thousand examples commits to full finetuning.

    Why it fails

    Full finetuning needs far more data than PEFT methods, so a small collection is a poor fit for it.

    Do this instead

    Match the technique to the volume you can realistically assemble, and consider PEFT such as LoRA at small volumes.

  • Common mistake

    Ignoring the starting point of the base model

    What it looks like

    A team uses a weak base model and assumes a large collection will fully compensate.

    Why it fails

    A smaller gap to the target requires less data, so a weak start raises the number of examples needed.

    Do this instead

    Account for how close the base model already is to your target when estimating the data requirement.

  • Common mistake

    Treating every task as equally demanding, when a sentiment label and a financial-filing question need very different amounts of data

Practice: Choosing a Strategy

MEDIUM

A group has a pilot of 80 examples for a complex task: answering questions about dense financial filings. The base model performs reasonably but is not close to the target. The pilot shows clear gains. The team can realistically assemble about 2,000 instruction-response pairs. Which technique should they use, and how would the answer change if they could assemble 200,000 pairs instead?

Hints
  • Clear gains from the pilot suggest more data is likely to help.
  • A few thousand examples points toward PEFT, while tens of thousands or more makes full finetuning worth attempting.
  • Task complexity and the starting gap both push the requirement up, so consider whether the 2,000 examples is enough for this task.

Key Takeaways

  • A small, well-crafted dataset of around 50 to 100 examples is a reasonable test, and clear gains from it suggest that more data will likely help further.
  • The technique sets the scale: full finetuning needs orders of magnitude more examples than PEFT methods such as LoRA, so the volume you can assemble shapes which technique is practical.
  • Task complexity and the starting quality of the base model shift the count: simple tasks and strong base models need fewer examples to reach the target.
  • A flat pilot result is a diagnostic signal. Check hyperparameters, data quality, and prompts before concluding that the dataset is too small.

Related concepts

More concepts starting with D