Data-Constrained Scaling › Synthetic Data Scaling

Michael BrenndoerferOctober 26, 20256 min read
Language AI HandbookAll chapters
Part 23 of 67Scaling Laws
Chapter 166Data-Constrained Scaling › Synthetic Data Scaling
Reading section 6 of 10 · Synthetic Data Scaling · 6 minSection 6 of 10 · 6 min

Book contents

Section 6 of 10 · 6 min read

Data-Constrained Scaling › Synthetic Data ScalingOne section · Sections in this chapter6 / 10 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

If augmented data provides limited value, what about entirely synthetic data? Modern language models can generate coherent, novel text. Could we use model-generated data to train the next generation of models?

This question has generated intense research interest, with results that are simultaneously promising and concerning.

The Synthetic Data Proposition

The appeal is clear. Language models can generate unlimited text. If synthetic data were as valuable as natural data, the data wall would dissolve. Training would be constrained only by compute, and we could generate as much data as needed.

The outcome depends on the generator model, the generation strategy, and how synthetic data is mixed with natural data.

Quality-Filtered Synthetic Data

The most successful synthetic data approaches emphasize quality over quantity. Microsoft's Phi-1 model demonstrated this dramatically. A 1.3 billion parameter model trained primarily on synthetic "textbook-quality" data matched or exceeded models ten times larger trained on web crawl.

The key insight was using GPT-4 to generate educational content designed for learning, rather than arbitrary text. The synthetic data consisted of:

  • Textbook chapters explaining programming concepts step-by-step
  • Exercises with varying difficulty levels
  • Synthetic code with clear, well-documented examples

This curated synthetic data proved more valuable token-for-token than natural web data. One token of synthetic textbook was worth approximately ten tokens of random web crawl for learning coding abilities.

Out[8]:
Visualization
Scatter plot showing model performance vs training tokens, with high-quality data achieving better results with fewer tokens.
The quality-quantity tradeoff in training data. High-quality curated data (like synthetic textbooks) can dramatically outperform larger amounts of raw web data, as demonstrated by the Phi-1 results.

Generation Strategies

How synthetic data is generated matters enormously. Simply prompting a model to "generate text about X" yields bland, repetitive content. Effective strategies include:

  • Curriculum-aware generation: Produces data spanning difficulty levels. Easy examples establish foundations; hard examples push capabilities.

  • Diverse seed prompting: Uses varied prompts to cover different topics and styles in multiple formats. A thousand different prompt templates yield more diverse output than one template run a thousand times.

  • Self-instruct: Has models generate instructions and completions, creating task-diverse training data. This approach powers much of modern instruction tuning.

  • Verification filtering: Generates many candidates and filters to high-quality examples. For code, this might mean keeping only examples that compile and pass tests. For math, keeping only solutions that reach correct answers.

The Model Collapse Problem

Synthetic data also carries risks. Shumailov et al. (2023) identified "model collapse," a phenomenon where models trained on synthetic data from previous model generations progressively degrade.

The mechanism is subtle but important. Each model generation slightly shifts the data distribution toward higher-probability outputs and away from the tails. Rare but important patterns (unusual words, unconventional syntax, domain-specific terminology) become rarer in synthetic data than in natural data.

When model G1G_1 generates training data for model G2G_2, the training distribution shifts. When G2G_2 generates data for G3G_3, the shift compounds. After several generations, the distribution has collapsed toward a narrow subset of high-probability outputs, and models lose capability on anything outside this narrow core.

Out[9]:
Visualization
Series of distribution curves showing progressive narrowing across model generations, illustrating the model collapse phenomenon.
Model collapse through successive generations. Each generation's output distribution becomes narrower, losing coverage of rare but important patterns. The shaded regions show the distribution of outputs.

The implications are concerning. If the internet becomes dominated by AI-generated content, future models trained on web crawls might suffer progressive capability loss.

Mitigating Collapse

Several strategies help prevent model collapse:

  • Mixing synthetic with natural data: Maintains anchoring to the true distribution. Successful approaches typically use 50-80% natural data even when synthetic data is available.

  • Freshness filtering: Preferentially uses synthetic data that is novel relative to the training set. If a generated example is too similar to existing data, discard it.

  • Diversity objectives: Explicitly optimize for varied outputs during generation, using techniques like diverse beam search or temperature annealing.

  • Watermarking: Tags AI-generated content, allowing future training pipelines to identify and appropriately weight synthetic data.