Concepts / Training Data Sources for Modern LLMs

Training Data Sources for Modern LLMs

The GPT-3 dataset totals 499 billion tokens, but the model was trained on 300 billion tokens, and the source gives no reason for the difference.

  • Programming

Why One Number Is Not Enough

When someone says a model was trained on a dataset, they usually mean a single number. For GPT-3 that number is less simple than it first looks. The dataset the training data was drawn from is reported at one size, and the amount the model actually consumed during training is reported at a smaller size. Reading any large-model dataset description accurately starts with noticing the gap between those two numbers.

In this article you will trace the GPT-3 figures step by step, place them next to a much larger public corpus called CommonCrawl, and then look at the extra sources that later models such as Meta's LLaMA added to their training scope.

What do you think happens?

If a dataset is listed as 499 billion tokens, do you think the model trains on all 499 billion of them?

  • Yes, the whole dataset is always used

  • No, the model trains on fewer tokens than the dataset contains

Reveal answer
Answer:

No. The GPT-3 dataset totals 499 billion tokens, but the model was trained on 300 billion tokens.

The dataset size and the training size are two different figures. The reported training count is smaller than the full pool.

Two Numbers Behind GPT-3

The GPT-3 training data is described in a table that lists its component subsets together with a token count for each one. Add up the token counts in that column and the total is 499 billion tokens. This is the size of the dataset as a whole, which is the pool that training data is drawn from.

The model itself was trained on 300 billion tokens, which is less than the full 499 billion. The reported figures do not explain why training stopped short of the full pool. The accurate statement is therefore that the dataset size and the training size are two different figures, and both are reported for GPT-3.

Following the Tokens from Pool to Training Run

A helpful way to keep these numbers straight is to follow them in order, the way you would track money moving from a total balance into a spending account. The walk-through below is illustrative and built from the reported GPT-3 numbers. It is not a calculation that the original reporting performs.

Worked example

Tracing the GPT-3 token figures

The GPT-3 dataset totals 499 billion tokens and the model was trained on 300 billion tokens. How do these two figures relate, and how many tokens lie outside the training run?

  1. 1
    Start with the pool

    The dataset as a whole is 499 billion tokens. This is the total that the training data was drawn from.

  2. 2
    Identify the training count

    The model was trained on 300 billion tokens. This is the amount consumed during the training run.

  3. 3
    Compare the two

    300 billion is less than 499 billion, so the training run did not use the full pool. The reported figures do not give a reason.

  4. 4
    Find the difference by subtraction

    499 minus 300 is 199 billion. This is simple arithmetic on the two reported numbers. It tells you the size of the gap, not a verified fact about how those tokens were handled.

Result

The dataset is 499 billion tokens and the training run is 300 billion tokens. The two are different figures, and the reported numbers leave 199 billion tokens of difference unexplained.

Measuring Scale with CommonCrawl

To judge whether 499 billion tokens is a large amount, it helps to compare it with another dataset. CommonCrawl is used for this purpose. CommonCrawl alone consists of 410 billion tokens and requires about 570 GB of storage.

410 billion tokenstoken count499 billion tokenstoken countAbout 570 GBstorage300 billion tokenstokens used for trainingfewer tokenstraining run uses
How big is CommonCrawl relative to the GPT-3 dataset in tokens and in storage, and which is larger?

Read against the GPT-3 figures, CommonCrawl's 410 billion tokens sit below the GPT-3 dataset total of 499 billion and well above the 300 billion tokens the model was trained on. CommonCrawl is therefore large on its own terms, and it is still smaller than the GPT-3 pool by the reported token count. The comparison also shows that the training count is a separate figure from either dataset total.

Widening the Scope in Later Models

Later iterations of models like GPT-3 have widened their training scope. Meta's LLaMA is named as an example. Rather than relying only on a web-derived corpus, these later models include additional data sources. Two are named: Arxiv research papers, which add 92 GB to the dataset, and StackExchange's code-related questions and answers, which add 78 GB.

Training scopelater models such as LLaMAWeb-derived corpusCommonCrawl-style dataArxiv research papers92 GBSpecialized sourcesadded beyond the web corpusStackExchange codeQ&As78 GB
What categories make up the training scope of later models, and where do Arxiv papers and StackExchange Q&As fit among them?

Notice that these additions are given in gigabytes, not tokens. The reported figures do not convert them into token counts, so 92 GB and 78 GB should not be assumed to correspond to any particular number of tokens. What is established is the direction of change: newer models drew on specialized sources such as scientific papers and programming Q&A, in addition to the kind of data the earlier GPT-3 corpus was built from.

Mistakes When Reading Dataset Sizes

  • Common mistake

    Treating 499 billion tokens as the number of tokens the model trained on

    What it looks like

    Saying GPT-3 was trained on 499 billion tokens because that is the largest figure in the description.

    Why it fails

    499 billion is the size of the dataset. The reported training count is 300 billion tokens.

    Do this instead

    Report the dataset size and the training size separately, and attach the correct label to each.

  • Common mistake

    Adding up the proportions column to get a token total

    What it looks like

    Summing the percentages and treating the result as a size.

    Why it fails

    The proportions describe shares of the sampled data and sum to 100 percent. They do not give token counts.

    Do this instead

    Use the token column to find the size of each subset and the pool total.

  • Common mistake

    Converting gigabytes into tokens

    What it looks like

    Assuming 92 GB of Arxiv papers equals a specific number of tokens.

    Why it fails

    The reported figures give the additions in gigabytes only, with no conversion ratio.

    Do this instead

    Keep tokens and gigabytes as separate units and do not infer one from the other.

  • Common mistake

    Assuming the reported figures explain the gap

    What it looks like

    Stating that the model stopped at 300 billion tokens because of a particular cause.

    Why it fails

    The reported figures do not give a reason for the difference between 499 and 300 billion.

    Do this instead

    State the gap as a fact and mark any explanation as an open question.

Practice Tracing the Numbers

EASY

A dataset is described as 499 billion tokens, a model is trained on 300 billion tokens, and a second corpus, CommonCrawl, is 410 billion tokens. Without guessing at any missing figure, write two sentences: one that states what each of the three numbers measures, and one that states which of the three is largest and which is smallest.

Hints
  • Ask first whether each number describes a pool of data, an amount consumed in training, or a separate corpus.
  • Compare the three values directly; no conversion between tokens and gigabytes is needed for this question.
  • The largest value is the dataset pool, and the smallest is the training count.
MEDIUM

A reader says that because Arxiv papers add 92 GB and StackExchange adds 78 GB, the Arxiv addition contains more tokens than StackExchange. Explain why this conclusion cannot be drawn from the reported figures.

Hints
  • Check which unit each addition is reported in.
  • Consider whether a gigabyte count and a token count can be compared directly.

Key Takeaways

  • The GPT-3 dataset totals 499 billion tokens, while the model was trained on 300 billion tokens; these are two different figures, and the reported sources give no reason for the difference.
  • The token column gives the size of each subset and sums to the pool total, while the proportions column describes shares of the sample and sums to 100 percent.
  • CommonCrawl alone is 410 billion tokens and about 570 GB, a large public corpus that sits below the GPT-3 pool in token count.
  • Later models such as LLaMA widened their training scope beyond web-derived data, adding Arxiv research papers at 92 GB and StackExchange code-related Q&As at 78 GB, reported in gigabytes rather than tokens.

Related concepts

More concepts starting with T