Skip to content
ImagineWorld

Data, Synthetic Data, and Self-Improvement

node_idnode-book_building-frontier-llm-from-scratch_chapter-42-data-synthetic-data-and-self-improvement
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num42
chapter_titleData, Synthetic Data, and Self-Improvement
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 42 — Data, Synthetic Data, and Self-Improvement

Section titled “Chapter 42 — Data, Synthetic Data, and Self-Improvement”

For a decade the recipe for a better model was more data. That era is ending — not because data stopped mattering, but because the supply of high-quality human text is finite and the largest models have nearly exhausted it. The frontier has therefore shifted from collecting data to creating and curating it, and to the tantalizing possibility that a model might generate the very data that improves it. This chapter examines the data frontier, including its most important hazard.

Chapter 6 described pretraining on trillions of tokens scraped from the web. Frontier models now train on tens of trillions — GLM-5.2 on 28.5T — and are approaching the limit of how much high-quality text exists. Simply scaling the crawl yields diminishing returns: what remains is lower in quality, more redundant, or more contaminated. This scarcity reframes the problem. If you cannot get more data, you must get more value from the data you have, and you must manufacture data where the world does not supply it. Both have become first-class research areas, displacing the brute-force scaling that defined the previous generation.

The clearest finding of recent years is that quality beats quantity. A smaller corpus of well-filtered, deduplicated, high-quality text often trains a better model than a larger raw one. Curation — filtering for quality, removing duplicates and benchmark contamination, and balancing domains — is now among the highest-leverage activities in model-building, and much of it is itself done with models: classifiers that score text quality, or large models that judge whether a document is worth training on. A related lever is curriculum: the order and mixture of data through training matters, and deliberately staging it — broad early, specialized late, with reasoning-heavy or code-heavy data concentrated where it helps most — measurably improves the result over a uniform shuffle. The frontier treats the training mixture itself as a design space to be optimized, not a bucket to be filled.

Where data is scarce, models can generate it. Synthetic data — text, problems, or solutions produced by a model — now plays a central role, especially in post-training. The reasoning models of Chapter 25 are a prime example: their training traces are generated by sampling and filtering for correctness, not written by humans. A capable model can produce instruction-response pairs, hard problems with verified solutions, and diverse rephrasings, all at scale and low cost:

def synthesize_verified(model, seed_problems, n=8):
dataset = []
for problem in seed_problems:
for _ in range(n):
solution = model.solve(problem) # model proposes
if verify(problem, solution): # rule / tests check it
dataset.append((problem, solution)) # keep only correct ones
return dataset

Python — generate-and-verify: synthesizing training data that is known-correct

The crucial ingredient is verification. Synthetic data is only as trustworthy as the filter that selects it, which is why the technique works best where correctness is checkable — math, code, logic — and is harder where it is not. Generating data in domains without a cheap verifier, without amplifying the model’s own errors, is an open challenge.

The most ambitious version of this idea is a self-improvement loop: a model generates data, trains on the verified subset, becomes more capable, generates better data, and so on. On verifiable tasks this clearly works to a degree — it is essentially what RL with verifiable rewards (Chapter 25) does. Whether such loops can compound indefinitely, or whether they saturate once the model can no longer generate problems harder than it can already solve, is unresolved and central to forecasting how far current methods reach. The boundary is the same one Chapter 38

raised about reinforcement learning: can a model bootstrap itself past its current frontier, or only fill in what is already within reach?

There is a real danger lurking in synthetic data, and it has a name: model collapse. A model trained on its own (or another model’s) unfiltered output, generation after generation, degrades — losing diversity, forgetting the tails of the distribution, and converging toward bland, self-reinforcing averages. As model-generated text is the web, even ordinary web-scraped pretraining data is increasingly contaminated with it, so collapse is not only a risk for iterative self-training but a creeping property of the whole data system.

ThemeIdeaKey risk
Curationquality and mixture beat raw sizeover-filtering, contamination
Synthetic datamodels generate verified training dataamplifying model errors
Self-improvementgenerate, verify, retrain, repeatsaturation past the frontier
Model collapse—diversity loss over generations

Table 42.1 — The data frontier at a glance

The defenses are the same disciplines that make synthetic data work in the first place: rigorous verification, mixing fresh human data with synthetic, and tracking diversity rather than only accuracy. The data frontier, in the end, is a frontier of judgment — deciding what is worth learning from when the model is increasingly both the student and the author of its lessons.

From collecting to creating The age of training on ever-more scraped text is closing, and three things replace it: ruthless curation of what already exists, synthesis of new data where correctness can be verified, and self-improvement loops that compound capability on verifiable tasks. Each is powerful and each is shadowed by the same hazard — that a model learning from model-generated data drifts toward its own averages and loses the diversity that made it capable. The discipline that separates progress from collapse is verification, which is why this frontier belongs to those who can tell good data from bad as confidently as they can train on it.

42.6 Worked Example: Model Collapse from Synthetic Data

Section titled “42.6 Worked Example: Model Collapse from Synthetic Data”

As the open web is exhausted, synthetic data — text generated by models — becomes an ever-larger share of training corpora, and with it comes a characteristic danger. Train a model repeatedly on the outputs of the previous generation, with no fresh real data, and the distribution narrows: rare phrasings and tail knowledge that appeared once in the original data fail to be regenerated, variance shrinks, and each generation is a slightly blurrier copy of the last. This is model collapse, and the loop that produces it is deceptively simple:

data = real_corpus
for generation in range(N):
model = train(data)
data = model.generate(n=len(data)) # train next gen on own output
# each pass loses tail mass -> variance collapses, quality decays

Python — data/collapse.py: the degenerative loop to avoid

The mechanism is statistical, not mystical. Sampling from a model preferentially reproduces its high- probability modes and under-represents its tails; feed those samples back as training data and the next model sees an even more peaked distribution, which it then samples even more narrowly. The defenses define the modern synthetic-data discipline: always anchor with real data so the tails are continually refreshed, filter synthetic output by quality or by verifiable correctness (Section 25.7) so only the good samples survive, and prefer synthetic data that adds genuinely new signal — solved problems with checked answers — over mere paraphrase of what the model already knows.

Synthetic data needs a real anchor Models trained only on their own output drift toward their own mean and forget the tails. Keeping real data in the mix, and filtering synthetic data by verifiable quality, is what separates useful self-improvement from a slow-motion copy-of-a-copy.

The preference data that aligns a model (Chapter 23) traditionally comes from humans — slow, expensive, and hard to scale to the volume modern post-training wants. Reinforcement learning from AI feedback (RLAIF) replaces the human labeler with a capable model that judges responses (Section 29.7) according to an explicit set of written principles, a “constitution.” The judge reads two responses, applies the principles, and emits the preference that would otherwise have required a person.

the appeal is throughput: a model judge can generate preference levels by the million at a fraction of the cost and latency of human notation, which is why AI feedback now underpins a large share production alignment. The principles make the value judgments explicit and auditable rather than implicit in a crowd of annotators, and they can be revised deliberately. The risk is equally clear and is the same one that haunts any model judge (Section 29.7): the judge’s own biases and blind spots propagate directly into the training signal, so a flaw in the judge becomes a flaw trained into the policy at scale. The frontier treats RLAIF not as a replacement for human judgment but as an amplifier of it — humans write and curate the constitution, and the model applies it at a volume no human team could match.

Scale the labeler, keep the human in the principles RLAIF swaps the human annotator for a model judging against written principles, multiplying feedback volume enormously. The danger is that the judge’s biases train straight into the policy — which is why humans still author and audit the constitution.

High-quality human text is finite, and the largest models have already consumed much of what is readily available — the much-discussed “data wall.” One response, increasingly central to frontier training, is synthetic data: training material generated by language models rather than written by people. It already appears throughout this book — the distilled reasoning traces of Section 25.5, the teacher outputs of Section 26.8, generated instruction data for SFT — and its role is growing.

The promise and the peril are two sides of one fact: a model trained on model-generated data is learning from itself. Used carelessly, this causes model collapse — train repeatedly on your own outputs and quality degrades over generations as the model amplifies its own biases and loses the diversity of the original data. Used carefully, with verification, filtering, and mixing with real data, synthetic data is powerful: a model can generate candidate solutions, verify which are correct (using tests, a verifier, or a reward model), and train on the verified best — a self-improvement loop that manufactures high-quality training signal in domains where answers are checkable. This is exactly the dynamic behind verifiable-reward reasoning training (Chapter 25), generalized into a data strategy. The frontier is learning where the line between productive self-improvement and degenerative collapse falls, and the discipline that keeps a system on the right side of it — verification and real-data anchoring — is becoming as important as the data generation itself.

Generate, verify, then train Synthetic data addresses the data wall but risks model collapse if a model naively trains on its own outputs. Verification, filtering, and real-data mixing turn it into genuine self-improvement — manufacturing signal wherever answers are checkable.

The early scaling era treated data as something to accumulate — more web text, more tokens. As the field matured and the readily available text was largely consumed (Section 42.8), the emphasis shifted decisively from quantity to quality and composition, and frontier data work became a discipline of deliberate engineering rather than bulk collection.

Several threads define this shift. Synthetic generation produces high-quality examples on demand (Section 42.8), especially for capabilities like reasoning where good natural data is scarce. Principle-based data — generating training examples that deliberately embody desired behaviors and values — shapes how a model acts rather than only what it knows, a data-side complement to the alignment training of Part VI. Targeted curation assembles focused, high-quality corpora for specific