Reading Training Data Tables Critically
A token is a unit of text that a model reads, and dataset sizes are commonly reported as token counts, which roughly track the number of words and punctuation characters.
What the Table Does Not Tell You at First Glance
When people describe a large language model, they usually start with its size in parameters or with the amount of computing used to build it. A second question is just as important: what did the model see during training? Before a model can learn anything, someone has to decide which text goes into its training collection, how much of each kind of text is included, and how that collection is measured.
The GPT-3 model is a concrete case study. Its pretraining collection was assembled from several sources, and the way those sources were combined says a great deal about what the model learned to imitate. A composition table is the compact summary of that choice, and it can look complete while still hiding two important facts. This article follows one such table through three questions: what unit the data is measured in, where the data came from, and how much of it the model actually consumed. Each question changes how you read the numbers, so we will take them in order.
What do you think happens?
Before reading on: if a table lists a dataset as 499 billion of something, what would you need to know before you could say how much data the model learned from?
Reveal answer
Whether the number describes what the dataset contains or what the training run consumed
The source makes this distinction explicit. A figure describing what a collection contains is a different claim from a figure describing what a training run consumed, so you have to ask which one the author is reporting.
What a Token Measures
A token is a unit of text that a model reads. Dataset sizes are commonly reported as token counts, and those counts roughly track the number of words and punctuation characters in the text.
The source gives a helpful rule of thumb: the number of tokens in a dataset is roughly equal to the number of words and punctuation characters in that text. The rule is approximate, so treat token counts as estimates of text volume rather than exact word counts. The step that converts raw text into these units is called tokenization, the process of turning text into tokens. The source names this step and defers its detailed mechanics to a later chapter. For now, the important idea is the direction of the transformation: human-readable text goes in, a sequence of token units comes out, and only that sequence is what the model reads.
Estimating the token count of a short question
Using the source's rule of thumb, estimate how many tokens the question Is it raining? contributes.
- 1Count the words
Is, it, and raining are three words.
- 2Count the punctuation
The question mark is one punctuation character.
- 3Add them together
Three words plus one punctuation mark gives an estimate of four tokens.
- 4Hold the estimate loosely
Because the rule is approximate, four is a reasonable estimate of text volume, not a guaranteed exact count.
Roughly four tokens, by the word-plus-punctuation rule.
Why are dataset sizes given in tokens rather than documents? Documents vary enormously in length. A one-line note and a long article are both one document, yet they contribute very different amounts of text. Counting documents would therefore say little about how much language the model actually read. Counting tokens tracks the volume of text more directly, which is why token counts are the common way to report dataset size. This reasoning follows from the source's point that token counts roughly track words and punctuation.
Tracing the Five Sources
The GPT-3 pretraining collection drew on five named datasets. They fall into two broad families. Some are web crawl data, gathered by automatically collecting pages from the internet. Others are internet-based book collections or high-quality text. Each row of the composition table pairs a dataset with a short description, its size in tokens, and its share of the training data.
| Source | Family described in the source | Share of training data |
|---|---|---|
| CommonCrawl (filtered) | Web crawl data gathered automatically from the internet | 60 percent |
| Book collection (first of two) | Internet-based book collection | 8 percent |
| Book collection (second of two) | Internet-based book collection | 8 percent |
Only the three rows whose shares are given in the source material. The other two sources are not described in enough detail here to state their shares.
CommonCrawl (filtered) contributes the largest slice of the training mix at 60 percent. The two book collections are each given 8 percent, so they carry equal weight even though their token counts differ. Reading the share column next to the token column is what reveals this difference, so always check both columns rather than trusting either one alone.
Available Tokens Versus Trained Tokens
The token column of the table totals 499 billion tokens. That is the size of the collection that was assembled. The model, however, was trained on 300 billion tokens. These are two different quantities, and the source does not explain why the difference exists. What the source does establish is that the proportion column describes the mix of the sampled data, which means the percentages apply to the sampled portion rather than automatically to the full 499 billion.
What do you think happens?
If the collection totals 499 billion tokens, is the model's training run also 499 billion tokens?
Reveal answer
No, the model was trained on 300 billion tokens according to the source
The total available is 499 billion, but the source states the model was trained on 300 billion. The source does not explain the gap, so do not invent a reason for it.
Checking Whether Shares Add Up
A composition table makes an internal claim: its shares should account for the whole training mix. The source notes that the proportion column sums to 100 percent once rounding is allowed for. That gives you a practical check. If you know some of the shares, subtract them from 100 to find what the remaining sources must cover.
Finding the share left for the other sources
CommonCrawl (filtered) is 60 percent and each of the two book collections is 8 percent. How much of the training mix must the remaining sources account for?
- 1Add the known shares
60 plus 8 plus 8 gives 76 percent.
- 2Subtract from the whole
100 minus 76 leaves 24 percent.
- 3Interpret the result
The remaining sources must together account for about 24 percent, allowing for rounding, if the table is internally consistent.
The remaining sources together should make up about 24 percent of the training mix.
Checking the token counts works the same way in spirit. Because the shares describe the sampled mix, a source's share should correspond to its portion of that mix rather than its raw token total in isolation. When a table gives both numbers for each row, compare them rather than reading either column alone. The source's own table is one where the two columns tell different stories, so the comparison is worth doing.
Mistakes When Reading Composition Tables
Common mistake Treating the largest token total as the amount the model trained on
What it looks likeReading the 499 billion figure and concluding the model trained on 499 billion tokens.
Why it failsThe token column describes the collection, while the source reports that the model was trained on 300 billion tokens.
Do this insteadLook for a separate training-consumption figure and report the two numbers as different claims.
Common mistake Assuming a token is exactly one word
What it looks likeCounting Is it raining? as three tokens because it has three words.
Why it failsThe source's rule counts punctuation characters too, and the count is only roughly words plus punctuation.
Do this insteadUse token counts as estimates of text volume, and include punctuation when reasoning about them.
Common mistake Counting documents to judge dataset size
What it looks likeDeciding that a dataset is larger because it contains more documents.
Why it failsDocuments differ greatly in length, so a document count does not track how much text there is.
Do this insteadCompare token counts, which track the volume of words and punctuation.
Common mistake Ignoring the sum check
What it looks likeAccepting a table whose listed shares add to far from 100 percent.
Why it failsA composition table describes the whole training mix, so its shares should account for it, allowing for rounding.
Do this insteadAdd the listed shares and check that they reach 100 percent within rounding.
Applying the Three Questions to a New Table
A hypothetical composition table lists three sources. Source A is 50 percent of the mix, Source B is 30 percent, and Source C is listed with no share. Using the same check from the GPT-3 table, what share must Source C have for the table to be consistent, and which of the three questions would you ask about the token totals before trusting the table?
Hints
- Add the shares you know and subtract from 100.
- Ask whether the total is the collection size or the amount a training run consumed.
- Remember that token counts are estimates that roughly track words and punctuation.
Key Takeaways
- A token is a unit of text a model reads, and dataset sizes are commonly reported in tokens because token counts roughly track words and punctuation, which document counts cannot do.
- In the GPT-3 pretraining table, CommonCrawl (filtered) is 60 percent of the sampled training data and the two book collections are 8 percent each, while the table's token column totals 499 billion.
- Available tokens describe what the collection contains, and trained tokens describe what a training run consumed; the model was trained on 300 billion tokens, and the source does not explain the gap.
- To read a composition table critically, add the listed shares to check they reach 100 percent within rounding, and ask which claim each number is making.