Counting encounters with text #

Suppose a language model reads a billion tokens of local newspaper archives three times. It has processed three billion training tokens and completed three epochs, or passes through the collection. It has still encountered only a billion token positions in the source material. Even that figure can overstate the variety of evidence. Several newspapers might have carried the same wire story, or a website might have appended the same notice to every page.

The distinction matters when extrapolating past training runs. An estimate expressed in bytes must be converted into tokens under a specified tokenizer. Estimates of usable material also depend on the languages surveyed, duplication, access and filtering. A collection assembled to answer questions about a particular town may value a local report that contributes very little to average performance on a broad sample of English text.

Section sources [1] [2] [3]

What a projected data limit means #

Pablo Villalobos and colleagues compared estimates of the stock of publicly available human-generated text with projected training dataset sizes. In their 2024 paper, continuation of the trends they studied placed the point at which those quantities would be roughly equal between 2026 and 2032. The calculation included adjustments for differences in data quality and the usefulness of repeated passes. It was a conditional forecast about a particular resource and manner of training.

An earlier intersection could result from labs choosing to train smaller models on more tokens to reduce their subsequent serving costs. A later one could result from slower growth in training datasets. A new measurement in either direction would change the forecast without settling how quickly models could learn from experiments, images or newly collected observations. The date alone establishes no deadline for improvements in AI.

Section sources [1]

Measuring the return to another pass #

Niklas Muennighoff and colleagues varied repetition under a fixed compute budget. Across their experiments, which reached nine billion parameters and 900 billion training tokens, up to about four epochs on repeated data produced nearly the same loss as spending the budget on unique data. With further repetition the gains from extra computation diminished. The result concerns the loss, models and data distributions they tested. Different corpora or evaluation tasks could yield a different useful number of passes.

For a local archive, an informative comparison would give one model a second pass over last year’s stories and another an equal number of tokens from different years. Evaluation on a separately collected set of stories would reveal whether the second year helped with unfamiliar names or events. Holding model size, training compute and the evaluation set fixed would make the return to new material easier to interpret.

Section sources [2]

Deliberate repetition and accidental duplication #

Katherine Lee and colleagues found one 61-word sentence repeated more than 60,000 times in the C4 corpus. In their experiments, removing duplicate passages reduced the frequency with which models emitted memorized training text and could reduce the number of steps needed to reach a given accuracy. Removing overlaps with validation data also made the evaluation more credible.

There is a difference between scheduling a second pass over an entire cleaned collection and unknowingly giving one notice 60,000 votes in the first pass. The former preserves the relative frequency of the documents. The latter can distort it. Reporting the processed token count, distinct source material, deduplication method and performance on genuinely new material makes a claim about data scarcity much easier to evaluate.

Section sources [2] [3]

Sources

  1. Pablo Villalobos and colleagues · Will we run out of data? Limits of LLM scaling based on human-generated data (2024) proceedings.mlr.press
  2. Niklas Muennighoff and colleagues · Scaling Data-Constrained Language Models (2023) papers.nips.cc
  3. Katherine Lee and colleagues · Deduplicating Training Data Makes Language Models Better (2022) aclanthology.org