Synthetic data: rephrasing, textbooks and model collapse

How language models write pretraining data (from seeds, by rephrasing real pages, with a checker), what the evidence says it buys, how to measure a synthetic set, and when training on model output degrades the next model. Real rows from Cosmopedia, Nemotron-CC, TinyStories and MegaMath measured on an Apple M1 Pro; published results kept apart. A child of Topic: data-curation-and-datasets. Data as of October 2026. Reading: 42 min, plus 13 in closed details.

The idea in one screen

A generator model turns seeds (a topic, a real web page, a problem with a checker) into text a student model learns from faster. It pays only while the text stays grounded in real documents or checked, and only when it is added to the real data, never put in its place: a model refit on its own output loses the rare things first (model collapse).

You need: how web text is sorted into quality buckets (Quality classifiers and data selection) and what MinHash deduplication finds (Deduplication). Model-written post-training data (instructions, preference pairs, reasoning traces) belongs to Post-training data; training a student on a teacher's outputs as a method belongs to Distillation and Small Language Models. The parent's two-paragraph version and one-dimensional collapse simulation (Topic: data-curation-and-datasets, section 8) are not repeated here.

Seed
what goes into the prompt to steer one output: a topic, three random words, a persona, a real web page.
Rephrasing, transformation
rewriting a real page in another style; a transformation also changes its structure (questions and answers, a list of facts).
Distillation data
outputs of a stronger model collected to train a weaker one.
Tails
the rare events of a distribution: uncommon words, rare facts, unusual styles.
Replace, accumulate
each new model trains only on the newest generated data, or on all the real data plus everything generated so far.

Numbers are labelled: measured here in October 2026 on an Apple M1 Pro (CPU, and its GPU for one Qwen3 run) from public samples, every one from a script in src/scripts/; self-reported by a method's own makers; third-party by someone without a stake; derived with the formula shown; illustrative made up for teaching. The 24 measured samples of 1,000 documents are listed in the Diversity meter.

The families in one table, with their best-known examples (reference)
FamilyWhat the generator is asked to doWhere the information comes fromBest-known examples
Generate from seedsWrite a new textbook unit, story, blog post, exercise or instruction about a topicThe generator's own knowledge; the seed only steers the topicTinyStories, phi-1 and phi-1.5 textbooks, Cosmopedia v1 and v2, Self-Instruct, Persona Hub
RephraseRewrite this real document in another style (Wikipedia-like, simple, Q and A)The real document; the generator changes the formWRAP, Nemotron-CC Wikipedia-style, REWIRE, BeyondWeb, Kimi K2
TransformTurn this document into question-answer pairs, a condensed version, a list of facts, a tableThe real document, reorganisedNemotron-CC diverse QA, distill, extract knowledge, knowledge list; FinePhrase; MegaMath QA
Code and math with checksWrite code or worked solutions, run them, keep what passes; translate code between languagesSeeds plus an executor or answer checker that filters the outputphi-1 exercises, MegaMath text and code blocks, OpenCoder snippets, Nemotron code rewriting and transpiling
UnchosenNothing: model-written pages published on the web end up in every new crawlWhatever models wrote onlineEvery Common Crawl snapshot after 2023

Three ways to make synthetic text, one gate, and the loop to avoid

Colours as everywhere on this page: real, rephrased or transformed, generated from seeds. Where the facts come from decides the risk: the generator's memory (it invents and narrows), the real page (the web's variety survives), or a checker (only what passes is kept). The share comes from section 5; the red loop is section 7.

1. Why let a model write training data

The problem. Frontier runs train on 15 trillion tokens and more, while FineWeb-Edu's strict cut of the English web is 1.3 trillion (numbers and sources on the parent page). Repeating data is nearly free for about 4 epochs and loses value fast after about 16 (Muennighoff et al., arXiv 2305.16264); keeping lower-quality text is the other fallback. A generator offers a third: more tokens of the kind you lack (explanations, worked problems, questions and answers) and a better form for the tokens you have (the same facts written clearly, without menus and boilerplate).

What it costs. Every synthetic token is inference on a large model. WRAP generated 3 million tokens per A100 hour with Mistral-7B and estimated about 25,000 GPU hours for its 85 billion tokens (Section 7.1; 85B / 3M per hour is about 28,000, so their figure is rounded down; arXiv 2401.16380). Cosmopedia's 25 billion tokens took "over 10k GPU hours" (Cosmopedia blog, 2024-03-20). Section 9's calculator turns these rates into a budget; section 5 shows who pays it and how much synthetic text they mix in.

2. Generating from seeds: TinyStories, phi, Cosmopedia and instruction data

The idea. Ask a strong model for the text you wish the web had more of (clear explanations, graded exercises, simple stories, instructions with answers) and train on it. The generator's knowledge does the work; the prompt only says what to write. The hard part, every team reports, is diversity: a model asked a thousand times for "a story for children" writes nearly the same story a thousand times. So every method below is, at heart, a way to inject variety through the seed.

TinyStories: three random words per story

Eldan and Li (Microsoft Research, May 2023) asked GPT-3.5 and GPT-4 for short stories using only words "a typical 3-year-old child would understand" (arXiv 2305.07759, Section 2). From a list of about 1,500 basic words, "3 words are chosen randomly (one verb, one noun, and one adjective)" and must appear, plus a random subset of story features (a dialogue, a plot twist, a bad ending, a moral). Without this, generation "even if the temperature of generation is set to a high value, will still produce a very repetitive dataset". Models under 10 million parameters, or with a single transformer block, trained on it write fluent, consistent stories (graded by GPT-4). The card lists 2,141,709 stories, CDLA-Sharing-1.0, plus a GPT-4-only version (dataset card).

Predict: in a random sample of 1,000 TinyStories, how many stories begin with the words "Once upon a"?

phi: "textbook quality" data for small models

Microsoft's phi-1 (June 2023) made the field take synthetic pretraining data seriously (Textbooks Are All You Need, arXiv 2306.11644): a 1.3-billion-parameter code model trained on under 7 billion tokens (about 6 billion of real code filtered for "educational value", under 1 billion of Python textbooks written by GPT-3.5, about 180 million of exercises with solutions) reached 50.6% on HumanEval and 55.5% on MBPP after 4 days on 8 A100s. Because the exercises resemble HumanEval, the authors removed between 42.5 thousand and 354 thousand of the 879.5 thousand exercises closest to HumanEval problems and retrained: phi-1 stayed at 45.1% to 50.6%, above StarCoder-Prompted's 41.5% (Table 3). That is the right test, because a set built to teach a skill will resemble the benchmark for that skill.

phi-1.5 (September 2023) extended the recipe to general text: "roughly 20B tokens" of textbooks seeded by "20K topics", 80% of a 150-billion-token run (arXiv 2309.05463). phi-4 (December 2024) used 50 kinds of synthetic datasets, "about 400B unweighted tokens", made with multi-agent prompting, self-revision and instruction reversal (arXiv 2412.08905), and gives the warning to remember: "Models trained only with synthetic data underperformed on the knowledge-heavy benchmarks and demonstrated increased hallucinations". Its synthetic-only 13B ablation was 14.8 points worse on TriviaQA than phi-3-medium, and adding web rewrites halved that gap (to 7.7; Table 3).

phi details: the filter, the counts and the web-only comparison (depth)

phi-1's code filter: GPT-4 labelled about 100,000 files for educational value; a random forest on code-model embeddings labelled the rest. The filtering alone mattered: on unfiltered code a 350M model stalled at 12.19% HumanEval, on the filtered subset it reached 17.68% in fewer steps. The exercise count is given as "about 180M", "less than 180M" and "<200M" in different places of the paper. phi-1.5's Table 1 lists the data as 30B, the prose 7B plus 20B. A web-only phi-1.5 variant trained on 95 billion tokens of filtered web text did much worse on common-sense benchmarks (ARC-Challenge 0.329 against 0.444, Table 2).

Cosmopedia: the open replication, and what a prompt looks like

Hugging Face's Cosmopedia (March 2024) reproduced phi-1.5's data openly: over 30 million documents and 25 billion tokens written by Mixtral-8x7B-Instruct, Apache-2.0 (blog, card). Curated seeds ran out ("only 16,000 unique units from OpenStax and 250,000 from Stanford"), so over 80% of prompts quote a web page from an educational topic cluster, crossed with an audience (young children, high school, college, researchers) and a style (textbook, blog post, WikiHow): "up to 12 times the number of prompts". Real rows, with the parts coloured, are in the card:

Two lessons sit in these rows. The generator invents: the shipping unit adds a figure for shipping's share of CO2 emissions that the seed never gave, and the product listing becomes a unit on "materials used (cotton candy, glass, etc.)" because the brand name "Cotton Candy" was read as a material; nobody checks a 30-million-document set by hand. And a junk seed still yields a fluent textbook, so the quality filter has to act on the seed (Cosmopedia kept only educational clusters) or on the output: fluency says nothing about value.

A seed goes in, a fluent textbook comes out, with claims the seed never made

seed (a real web extract or topic)instructionsclaims in the output that are not in the seed (flagged here by hand)
Prompt
Output (first 1,700 characters)

The diversity fix, measured. Cosmopedia's team found that changing only the audience line was "insufficient to prevent a high rate of duplicate content", and that stories kept opening with "Once upon a time" and "The sun hung low in the sky" until the prompts said not to. Fig. 1 sorts real samples by their first three words (lowercased, punctuation dropped; measured on the seeded 1,000-document samples of the Diversity meter):

  1. Seeds in, stories out. TinyStories' recipe: three random words and a few story features go into every prompt, and GPT-3.5 or GPT-4 writes the story. Here are 1,000 of them, one cube for five stories, in sample order.
  2. Sorted by their first three words. 669 start "once upon a" (67%), 107 "once there was", 29 "one day a", and the next seven openings add 31 more: 84% of the stories share ten openings, and only 164 start any other way. The random words changed the content, not the shape.
  3. One sentence of prompt. Cosmopedia's stories, split by prompt: of the 406 whose prompt says "Do not start with classic sentences like 'Once upon a time'", 5 start that way (1.2%); of the 594 whose prompt does not, 213 do (35.9%). One sentence moved the rate by a factor of thirty.
  4. The web, sorted the same way. 1,000 FineWeb pages from the running example's crawl: the three commonest openings ("when it comes", "welcome to the", "one of the") have 3 pages each, the top ten cover 2.4%, and 976 pages begin some other way.
  5. No copies, yet narrow. MinHash over 5-word shingles finds no near-duplicate pair among the same 1,000 TinyStories (0.0%), although ten openings cover 84% of them. Near-duplicate detection measures copies; openings, distinct n-grams and embedding spread measure variety (section 6).

The fix leaves templates behind: 57% of the WikiHow-style documents begin "Title: How to", 22% of the Khan Academy units "Welcome back to". MinHash deduplication over Cosmopedia found "less than 1%" near-duplicates (card), and the samples here agree (at most 0.6% of any sample is in a near-duplicate pair). That is the trap: no two documents are copies, yet the set is narrow.

The top opening's share on nine sets (depth)

Generated sets start the same way; the web does not measured

Share of 1,000 documents per set that start with the set's most common three-word opening (lowercased, punctuation dropped; seeded samples, see the Diversity meter).

Cosmopedia's clusters and v2 (depth)

Seed web samples were clustered into 145 clusters and the educational ones kept (the blog says 112 topics; the card says 35 of 145 were discarded, which is 110). Cosmopedia v2 (July 2024, used for SmolLM) replaced clustering with a fixed list of 34,000 topics from the BISAC book classification; for each topic a search over FineWeb retrieved 1,000 seed pages, giving 39 million documents and 28 billion tokens. Its ablations on 1.8B models found curated-seed textbooks best on MMLU and ARC and a middle-school audience best on everything except MMLU (SmolLM blog). By SmolLM2 (2025) Cosmopedia v2 appears only in the last stage, at 4% of the mix (Section 4.5, arXiv 2502.02737, which gives it as 30B tokens).

Instructions and answers: the same problem, other seeds

Generating instruction data is the same move with a different target, and each well-known method is a different answer to "where does the variety come from". The datasets themselves, their measured properties and Self-Instruct's filter step by step are on Post-training data (section 2); here is the strategy each one uses.

MethodWhere the variety comes fromScale, as published
Self-Instruct (2022) arXiv 2212.10560A pool that starts with 175 human tasks; each round the model sees 8 of them (6 human, 2 generated) and writes new ones; a new instruction joins only if its ROUGE-L with every instruction already in the pool is below 0.752,445 instructions from GPT-3; Alpaca's 52,002 rows reused the recipe with text-davinci-003
Evol-Instruct (WizardLM, 2023) arXiv 2304.12244Rewrite existing instructions to be harder ("in-depth": add constraints, deepen, concretise, more reasoning steps, complicate the input) or into new ones ("in-breadth")250k after four rounds; 70k sampled for training
Persona Hub (2024) arXiv 2406.200941,015,863,523 personas inferred from web pages ("who would write or read this?"), one per prompt, so the same request is written for a billion different people1.07 million persona-conditioned math problems took Qwen2-7B to 64.9% on MATH; released subset CC-BY-NC-SA 4.0
Magpie (2024) arXiv 2406.08464No seed at all: an aligned model given only its chat template's user header writes a plausible user query itself, then answers it4 million generated, 300K selected
Distillation dataReal or generated prompts; a stronger model writes the answers (or reasoning traces) that a weaker one is trained onMost open SFT data; the method is on Distillation and Small Language Models

All of these inherit the generator's errors and its terms of use (section 8), and all need the checks of section 6. The difference from pretraining text is the target: tens of thousands to a few million rows that teach a format (Alpaca 52,002; Magpie 300K kept), against billions of tokens that teach knowledge.

3. Rephrasing real documents

The idea. Instead of asking the generator to know things, give it a real web page and ask it to rewrite the page in a better form. The facts, topics and variety come from the web; the generator removes menus, fixes grammar and changes the register. This is rephrasing; when the output has a new structure (questions and answers, a list of facts) it is a transformation. Fig. 2 rewrites one real page from the running example's crawl with WRAP's four prompts, using a local model (Qwen3-4B, Q4_K_M GGUF, through llama.cpp on the M1 Pro GPU).

  1. One real page. The first segment of a page from the running example's crawl file (a FineWeb row, CC-MAIN-2024-30): one cube per word, laid twelve by eight a layer, so a block's height is its length. Its names (capitalised words after a lower-case word, a crude proxy) are gold.
  2. Four prompts. WRAP's Easy, Medium (Wikipedia-style), Hard and Q/A prompts, quoted in the closed block below, each sent with the page to the same model.
  3. Easy and Medium. Teal words sit inside a four-word sequence copied from the page; white ones are reworded or new; gold ones are the page's names. Easy comes back at about half the length and drops most names; Medium comes back as long and keeps nearly all of them.
  4. Hard and Q/A. Hard rewrites almost every phrase; Q/A copies the most phrasing and comes back longest.
  5. All 200 pages. Per style, the share of the pages' numbers kept (gold), of their names kept (purple) and of four-word phrases that are new (white): Easy 47%, 33%, 97%; Medium 94%, 86%, 80%; Hard 77%, 76%, 96%; Q/A 72%, 67%, 71%.

Measured on all 200 pages (measured, 800 generations in 73 minutes on one laptop GPU). Easy halves the page (length ratio 0.52) and keeps only 47.0% of its numbers and 32.8% of its names: detail is thrown away, not simplified. Medium (Wikipedia-style) is the faithful one: length 1.02, 93.7% of numbers and 85.8% of names kept, though 18.5% of outputs open with a chat preamble ("Here is...") to strip. Hard rewrites almost every phrase (96.2% of four-word phrases are new) and drifts: on the game page it adds "uncharted territories", which the page never says. Q/A copies the most phrasing (only 71.2% new) and 126 of 200 outputs hit the 450-token cap mid-answer. The FineWeb-Edu classifier passed 8.5% of the sources and between 7.0% and 17.0% of the rewrites: a new style does not make a page educational. The run made 267,925 tokens, about 0.22 million per hour (derived: tokens / wall-clock), against 1.1 to 33.1 million per GPU-hour for the data-centre presets in section 9.

The 200-page run in full, and the four prompts verbatim (depth)

Per-style table over the two pages in the rewrite viewer. Also seen in the run: Q/A wraps its tags in Markdown bold in 199 of 200 outputs, so a larger cap or smaller segments are needed for that style; Q/A scores 10.5% and Medium 11.0% on the classifier. The game page itself reads like model-written marketing copy ("Dive into the adrenaline-rushing world..."): some "real" seeds are already synthetic. Rerun: src/scripts/run_pending.sh (llama-server with Qwen3-4B, then run_rephrase.py on 200 pages and analyze_rephrase.py).

StyleWRAP prompt (each preceded by a Vicuna-style system line; Appendix G)
Easy"For the following paragraph give me a paraphrase of the same using a very small vocabulary and extremely simple sentences that a toddler will understand:"
Medium"For the following paragraph give me a diverse paraphrase of the same in high quality English language as in sentences on Wikipedia:"
Hard"For the following paragraph give me a paraphrase of the same using very terse and abstruse language that only an erudite scholar will understand. Replace simple words and phrases with rare and complex ones:"
Q/A"Convert the following paragraph into a conversational format with multiple tags of "Question:" followed by "Answer:":"

One page, four styles: what each prompt keeps and what it throws away

Before: running-example page (FineWeb row, CC-MAIN-2024-30), first segment
Rewritten

Green in the rewrite: words inside a four-word sequence copied from the source; the rest is reworded or new. Qwen3-4B (Q4_K_M GGUF) through llama.cpp on the M1 Pro GPU, thinking off, temperature 0.5, top-p 0.9 (Nemotron-CC's settings), up to 450 new tokens, WRAP's Vicuna-style system line and prompts verbatim (Appendix G). Two of the 200 pages of the full run are shown; numbers for all 200 are in the paragraph beside it.

WRAP: half real, half rephrased

Maini et al. (Apple and CMU, January 2024; ACL 2024) rephrased C4 with a frozen Mistral-7B-Instruct in those four styles, capped outputs at 300 tokens because longer rephrasing "often lost information", and trained 128M to 1.3B models on real and rephrased text sampled 1:1 (Rephrasing the Web, arXiv 2401.16380).

The finding that has held up is in WRAP's own discussion: "synthetic data can not impart 'new knowledge'. It can only help pre-train faster". A 1.8B rephraser (Qwen-1.8B-chat) gave rephrases "of high quality" comparable to Mistral-7B at about three times the throughput, and synthetic-only training lost perplexity on domains whose style the rephrases removed (Philpapers, Gutenberg), so the real half of the mix is not optional.

The paper disagrees with itself; quote the tables (depth)
  • Pile perplexity: the abstract says it "improves perplexity by more than 10% on average", the introduction and Section 4 say "~50%". Both come from figures with no table, so neither can be checked to the decimal.
  • The prose credits "the smaller C4 (85B) dataset" with 43.5% on the specialised tasks; in Table 2, 43.5 is Full C4 (170B) and Half C4 is 43.1.
  • "3x faster" (abstract) and "5x lesser data, or 3x lesser compute" (introduction) are read off Figure 1, again without a table.

Half real plus half rephrased beats more real text, at 1.3B self-reported

Zero-shot averages of 3 runs, Tables 1 and 2. Half C4 is 85B tokens, Full C4 170B, RW is RefinedWeb, Synthetic is 85B tokens of Medium plus Q/A rephrases, Synthetic + C4 mixes them with real C4: 49.4 general against 47.3 for Full C4. On the specialised tasks MMLU sits at 24 to 25 for every row, which is chance for four options: these models are too small to read it.

Fig. 3 · one real page through Nemotron-CC's rephrasing, step by step

Before: the crawled page, extracted
After

Green in the "after" text: copied phrasing, as in the rewrite viewer. The steps between crawl and row follow the paper (Section 2.3, footnote 11, Appendix H); the intermediate model output was not published. Excerpts are cut at 2,600 characters.

Nemotron-CC: five prompts at 1.9 trillion tokens

NVIDIA's Nemotron-CC (December 2024) applied rephrasing at corpus scale (arXiv 2412.02595). Pages already sorted into quality buckets by a classifier ensemble (Quality classifiers) get different prompts: low-quality pages are rewritten Wikipedia-style with WRAP's prompt, so text that would be thrown away becomes usable; high-quality pages are also turned into four new forms (diverse question-answer pairs, a condensed "distilled" version, an "extract knowledge" rewrite, a knowledge list). Medium-quality pages were not rephrased "due to time and resource constraints". NVIDIA published every synthetic row with the URL and WARC record id of its source page, so the original can be fetched from Common Crawl: the pairs in Fig. 3 were found that way (record ids checked), the "before" extracted with jusText as Nemotron-CC did.

  1. Crawled. A page captured in Common Crawl CC-MAIN-2024-30, its text extracted with jusText as Nemotron-CC did: the "before" (host, WARC record and word count in the card).
  2. Bucketed. Nemotron-CC's classifier ensemble put the page in the high-quality bucket, so it gets the four transformation prompts as well as Wikipedia-style rephrasing (low-quality pages get only the rephrasing).
  3. Segmented. The text is cut at line boundaries into segments of at most 512 tokens for Wikipedia-style, 2,000 for Distill, 1,400 for Extract knowledge and 1,000 for Diverse QA pairs and Knowledge list, prompt included (footnote 11: "including tokens from the prompt"), because longer inputs gave "over-simplified outputs with reduced detail". Lines longer than the limit are dropped.
  4. Prompted. The segment is wrapped in the chosen prompt, quoted in the card.
  5. Generated. Mistral NeMo 12B Instruct in FP8, temperature 0.5, top-p 0.9, run with TensorRT-LLM. The raw output (with any "Here is a paraphrased version:" preamble) was not published.
  6. Post-processed and published. Preambles and Markdown stripped, outputs under 50 tokens dropped; Diverse QA pairs are shuffled and some appended after the source segment, the other prompts' segments are joined back per document. Green words in the published row sit in a four-word sequence copied from the page.
The five pairs in numbers, with their sources (depth)

measured on the five pairs: length ratio (after/before words), copied phrasing (share of the after text's words inside a 4-word sequence of the before text), numbers kept and names kept (capitalised words after a lower-case word, a crude proxy). Five pairs show what each prompt does; they are not a sample of the corpus. Before texts are cut at 2,600 characters, so ratios for long pages understate how much was dropped.

    Look at the question-answer row: the appended question asks which event is "NOT a real campus event mentioned in the text" and offers a "Spring Fling" the text never mentions either, so the keyed answer is not supported. Transformations make plausible-looking errors, and at 500 billion tokens of question-answer pairs nobody reads them.

    What it bought (8B models, 1 trillion tokens, average of 10 tasks, self-reported, Table 10): rewriting the low-quality bucket lifted the average from 52.5 to 54.0 (MMLU fell from 48.2 to 47.1); replacing half of the repeats of high-quality data with its synthetic variants lifted it from 55.8 to 56.7 (MMLU 53.4 to 53.6). Table 3 counts the output: 336.3 billion tokens from low-quality pages, and from high-quality pages 372.9B Wikipedia-style, 499.5B diverse QA, 157.6B distill, 303.6B extract knowledge and 203.2B knowledge lists, about 1.87 trillion (the abstract rounds to 1.9). Nemotron-CC v2 (August 2025) switched the generator to Qwen3-30B-A3B and translated the question-answer data into 15 languages (card).

    Where the evidence agrees, and where it does not

    Agreed: rephrased text mixed with real text beats real text alone at equal tokens; rephrased text alone does not; small generators (1B to 8B) are enough (BeyondWeb Figure 9: 47.3, 48.8, 49.2 for 1B, 3B, 8B generators; Kang et al.; FinePhrase); several different rephrasings beat repeating the original (Kimi K2). Not agreed: the best synthetic share. Kang et al. find about 30% by validation loss, FinePhrase 60 to 80% by benchmark average, WRAP used 50%; they differ in generator, prompts, metric and scale. Scale alone moves it: a scaling law over model size, tokens, rewrite fraction and epochs that charges the rewriter's compute puts the compute-optimal share under 10% at 3 × 1018 FLOPs and 32% at 1022, so the share is something to fit for your own run, not to copy. The same law adds a result the earlier studies lacked: the student can pass its rewriter. The studies, this one included, are below.

    What later work found, study by study (depth)
    WorkWhat it didResult, from the tables
    REWIRE (Meta, June 2025) arXiv 2506.04689Llama-3.3-70B reasons about a page's purpose, then rewrites it; every page of the unfiltered pool is rewritten and the top 10% of rewrites kept by a fastText classifierTable 1 CORE at 7B: real top 10% 0.420; real plus rewritten 0.445; real with a pool twice as large 0.425. About 82% of the kept rewrites come from pages the filter would have discarded. Rewritten-only is below real at every scale. self-reported
    BeyondWeb (DatologyAI, August 2025) arXiv 2508.10975Undisclosed rephrasing of high-quality DCLM pages; 40% synthetic, 60% RedPajamaTable 1, 14-task average at 1B/3B/8B: Cosmopedia 52.2/55.8/58.6, Nemotron-Synth 54.3/58.8/61.1, BeyondWeb 57.4/60.8/63.7. The abstract's "up to 2.6pp" over Nemotron-Synth is the 8B gap; the 1B gap is 3.1. self-reported by a data-curation vendor; method and data not released
    Kimi K2 (Moonshot, July 2025) arXiv 2507.20534Rewrites knowledge text chunk by chunk with the previous chunk as context, then checks each rewrite's fidelity to its sourceTable 1, SimpleQA on an early checkpoint: raw text for 10 epochs 23.76; one rephrasing repeated 10 epochs 27.39; ten different rephrasings, 1 epoch each 28.94. self-reported
    Kang et al. (Meta and others, EMNLP 2025) arXiv 2510.01631About 1,000 models up to 3B on mixes of web text and Mistral-7B rephrases or textbooksRephrased-only is not faster than web text; about one third rephrased, two thirds web is 5 to 10 times faster to the same validation loss at larger budgets; textbook-only is worse; a 70B generator was not better than an 8B one. Metric is validation loss, not benchmarks. third-party
    Rewriting Scaling Laws (Roberts, Ahmed, Kotha, Liang and others, October 2026) arXiv 2610.31867A scaling law predicting loss from model size, tokens, rewrite fraction and epochs over the natural data, with the rewriter's compute counted in the budgetCompute-limited: optimal rewrite fraction under 10% at 3 × 1018 FLOPs, 32% at 1022; extrapolated 33 times in FLOPs to a 22B model whose final loss landed within 1.1% of the prediction, and which beat its rewriter's bits per byte on several web domains at one-tenth of the rewriter's training compute. Data-limited: a model trained on rewrites of its own pretraining data by a same-size rewriter beat the best natural-only run at every size up to 3B. Metric is loss, not benchmarks. third-party
    FinePhrase (Hugging Face, April 2026) arXiv 2604.13977Rewrites FineWeb-Edu pages into structured formats (tables, math problems, FAQs, tutorials) with SmolLM2-1.7B; 486 billion tokensStructured formats beat the curated web baselines and earlier synthetic sets; generators larger than 1B "provides no additional benefit"; 33.1 million tokens per GPU-hour against 1.1 million for REWIRE (Table 10). Best mix 60 to 80% synthetic (Table 22). self-reported

    4. Math and code: synthesis with a checker

    Math and code are where synthetic data is easiest to trust, because an executor or an answer checker can reject wrong output. The clearest evidence that the form matters, not only the facts, is MegaMath's ablation: the same math web pages, trained on as they are or rewritten into questions and answers.

    Same math pages, three forms: Q and A with a good prompt scores 48.8 against 28.3 self-reported

    Web pages as they are (FineMath-4+)28.3
    Q and A, plain prompt39.2
    Q and A, best prompt48.8

    Core average of a 1B model trained on 5B tokens, MegaMath Table 6 (arXiv 2504.02807); bars from zero, full width 49.6. The format gained 10.9 points and the prompt another 9.6: the prompt mattered almost as much as the format.

    Three patterns recur:

    • Generate, execute, keep what passes. This is rejection sampling with a checker, drawn step by step on Post-training data (its Fig. 1: OpenR1's sampled math answers, Math-Verify's verdicts and a judge's rescues); here the kept text becomes pretraining data. phi-1's exercises (section 2); OpenCoder's annealing data (2.71 billion tokens of synthetic code snippets kept "only if they pass generated tests" and 0.91 billion of code textbooks, beside 96 billion real tokens, Table 3, arXiv 2411.04905); MegaMath's interleaved text and code blocks, generated, run and packed (50.3 billion tokens).
    • Rewrite the web into problems and solutions. MegaMath (LLM360, April 2025) did this with Qwen-2.5-72B-Instruct and Llama-3.3-70B-Instruct; its Table 1 lists 64.5 billion synthetic tokens out of 371.6 billion (the MegaMath chart). MAmmoTH2's WebInstruct harvested 10 million question-answer pairs that already existed on the web (recall, extract, refine with open models), taking Mistral-7B from 11% to 36.7% on MATH without in-domain training data (arXiv 2405.03548). self-reported
    • Translate and restyle code. NVIDIA rewrote all its Python with Qwen3 32B using style-guided and self-contained rewriting prompts, checked with syntax checks and Pylint, and transpiled Python into C++, which "improved downstream C++ code-generation accuracy" (Nemotron 3 Nano report, Section 2.2.2, arXiv 2512.20848; data in Nemotron-Pretraining-Code-v2, gated).

    A caution for section 6: MegaMath's text-and-code blocks have the lowest distinct-bigram ratio (0.26) and the highest compression ratio (5.62) of all 24 sets measured here, and its question-answer set is next to them. Math and code repeat symbols and keywords by nature, so diversity numbers are only comparable within a domain.

    5. How much synthetic text to mix in

    Every published recipe keeps real text in the mix, and the shares vary widely. Keep apart what a recipe used (one team's choice for one run) and what an ablation found best (a sweep, under that paper's metric). Qwen3's report says Qwen2.5 models synthesised "trillions of text tokens" of textbooks, question-answering, instructions and code (arXiv 2505.09388; no exact count), so not every lab can be placed on the chart.

    Synthetic text is also usually repeated more than web text: phi-4's 290 billion unique synthetic tokens were seen 13.8 times each, its 1.3 trillion web tokens 1.2 times (Table 5). Practical reading: a third to a half of a training stage is where the evidence sits, more in the last stage (mid-training or annealing, where small high-quality sets are upsampled; Data mixing) than in the bulk phase, and the share is worth one sweep at small scale for your own data and generator. Expect the best share to grow with the budget: once the rewriter's compute is charged, the optimum rose from under 10% at 3 × 1018 FLOPs to 32% at 1022, and the fitted law predicted a 22B model's final loss to within 1.1% (Rewriting Scaling Laws (arXiv 2610.31867)). When unique real data, not compute, is the limit, rewriting it pays even with a rewriter no larger than the student: same-size rewrites of a model's own pretraining data beat natural-only training at every size tested up to 3B.

    Recipes use a third to a half; sweeps disagree on the best share

    Blue: what a recipe used. Green: what an ablation found best. Sources and arithmetic:

    • phi-1.5 pretraining 80%: of 150B training tokens (Section 2.3, arXiv 2309.05463).
    • Olmo 3 mid-training (Dolmino 100B) 57.5%: derived, 100% minus the four non-synthetic rows of the Dolma 3 Dolmino card table (parent page, section 8); its mix is largely synthetic math, code and question-answer text.
    • phi-4 pretraining 55%: derived, synthetic 40% + web rewrites 15% of about 10 trillion tokens for a 14B model (Table 5, arXiv 2412.08905).
    • WRAP experiments 50%: real and rephrased sampled 1:1 (Section 3.1, arXiv 2401.16380).
    • Nemotron-CC v2 42.7%: derived, (1,257.3 + 692.9 + 558.2) / (3,359.8 + 2,508.4) billion tokens, card table (nvidia/Nemotron-CC-v2).
    • BeyondWeb experiments 40%: 60% RedPajama + 40% synthetic (arXiv 2508.10975).
    • Nemotron-CC 30.2%: derived, 1.9T synthetic / 6.3T total (Table 4, arXiv 2412.02595).
    • SmolLM2 final stage 4%: Cosmopedia v2 at 4% of stage 4 (Section 4.5, arXiv 2502.02737).
    • FinePhrase sweep 70%: 60 to 80% best, 1.2B model on 21B tokens, benchmark average (Table 22, arXiv 2604.13977); bar at the middle.
    • Kang et al. sweep 30%: "converging to ~30%" for rephrased data by validation loss (arXiv 2510.01631).

    6. Checking a synthetic set before training on it

    The problem. A generator writes fluent text whatever it is asked, so reading a few samples tells you almost nothing about a set of millions. The failures are statistical: the set is narrow (the same openings, phrases, topics), it repeats itself, it contains benchmark questions the generator memorised, or it is confidently wrong. Each has a cheap measure; all of them were run here on 1,000-document samples of 24 sets (real, rephrased and generated). The table shows eight; the Diversity meter has all 24 and measures your own text.

    Templated sets give themselves away on every measure except near-duplicates measured

    1,000 documents per set; n-gram and compression measures on the first 100,000 words; embedding and classifier measures on the first 300 documents (truncated to 512 tokens). Arrows: which direction is "more varied". FineWeb: distinct-2 0.65, gzip 2.65, embedding similarity 0.20; TinyStories: 0.33, 3.33, 0.67; Khan Academy units: 0.35, 3.42, 0.52.

    distinct-n = (number of different n-word sequences) / (number of n-word sequences)
    n
    sequence length in words: 1 counts vocabulary, 2 and 4 count phrasing
    budget
    always the same number of words for every set (100,000 here): the ratio falls as a sample grows, because common sequences repeat, so a 10k-word sample cannot be compared with a 1M-word one
    • Distinct n-grams (above): TinyStories and the Khan Academy part of Cosmopedia are narrow by design (a small vocabulary; one lesson template).
    • Compression ratio: raw bytes divided by gzip bytes of the same 100,000 words; higher means more redundant. A compressor finds repetition at every length, and Shaib et al. found that fast compression ratios capture much of what slow n-gram homogeneity scores measure, recommending them as one of a small set of low-correlated scores to report (arXiv 2403.00553).
    • Openings and templates: the share of documents starting with the set's ten most common three-word openings (section 2). Catches template collapse that n-gram ratios over whole documents average away.
    • Embedding spread: the mean cosine similarity between all pairs of documents (here the encoder of the FineWeb-Edu classifier, Snowflake arctic-embed-m, 300 documents per set); higher means documents about the same things in the same way.
    • Near-duplicates: MinHash over 5-word shingles (Deduplication). Necessary, never sufficient: the most templated sets here have almost none.
    • Benchmark overlap: the share of documents sharing a 13-word sequence with a test item (MMLU, ARC, HellaSwag, GSM8K: 2.1 million distinct 13-grams). Generators memorise benchmarks: Cosmopedia's own decontamination removed, for example, 386 documents matching 41 BoolQ items (blog). Here the highest synthetic rate is 0.2% of documents. Methods and false positives: Decontamination.

    What the numbers say. Rephrasing keeps the variety of its source: Nemotron-CC's Wikipedia-style rewrites of low-quality pages have distinct-2 0.63 against 0.61 for the pages themselves, because the information is the pages'. Generated sets are as varied as the web when seeds are varied (Cosmopedia web_samples_v2 0.69) and much less when the template is fixed. The diverse-QA rows look less varied (0.46) because each row repeats its source and then asks about it: a measure only means something against what the format must repeat.

    A quality classifier is not a judge of synthetic text

    Pipelines filter synthetic output with the classifiers they use on the web (REWIRE kept the top 10% of rewrites by a fastText classifier). Those classifiers learned a style: FineWeb-Edu's from Llama-3-70B ratings of educational value, DCLM's with OpenHermes 2.5 (itself GPT-4 output) as positives. With the FineWeb-Edu classifier (score 3 or more is FineWeb-Edu's cut), measured 5.7% of FineWeb pages pass and, as a sanity check, 100% of FineWeb-Edu pages.

    Two readings. First, the classifier reads content, not just tone: Nemotron-CC's Wikipedia-style rewrites of low-quality pages pass at 0.0%, the same as the pages themselves (0.0%), and Cosmopedia's web-seeded textbooks pass far less often (35% for web_samples_v2) than those seeded with real course outlines (97% Khan Academy, 95% Stanford). Second, every transformation of high-quality pages scores above its sources (32% for the real high-quality pages): restating facts as questions, lists or condensed prose moves documents over the cut. Filtering synthetic output by this score partly selects formats; that may be what you want, but it should be a decision. And a score says nothing about whether the facts are right (the shipping unit's emissions figure in section 2): check seeds and facts, not only scores.

    The seed's subject decides the score; transforming a page into Q and A or lists raises it measured

    Share of 300 documents per set the published classifier (HuggingFaceFW/fineweb-edu-classifier, CPU, first 512 tokens) scores 3 or more. Cosmopedia: from 25% (stories) to 97% (Khan Academy units).

    Model-written text is already in the "real" data

    FineWeb's authors tracked phrases typical of chat models ("delve", "as a large language model", "it's important to note", "rich tapestry", "intertwined", "certainly!", "dive into") across crawls and saw a "steep increase" after CC-MAIN-2023-14; they judged it did "not seem to drastically harm" quality and did not filter (FineWeb blog, section "Synthetic data").

    The same phrase list on the samples here, and what it hints (depth)

    Per 10,000 words, measured: DCLM-baseline (crawls up to 2022) 0.05, Wikipedia (2023 dump) 0.04, FineWeb from the July 2024 crawl 0.52, Nemotron-CC's real high-quality bucket from the same crawl 1.99, and Cosmopedia v2 7.6. The real high-quality bucket carries about four times the rate of the unfiltered crawl: a hint, from one crawl and 1,000 documents per set, that classifiers trained on model-rated or model-written positives prefer model-written pages. A question to test on your own data, not a result.

    7. Model collapse: what the experiments show, and what they do not

    The worry. If models train on text written by models, and those models write the next round, errors could compound. Shumailov et al. named this model collapse: "In early model collapse, the model begins losing information about the tails of the distribution; in late model collapse, the model converges to a distribution that carries little resemblance to the original one, often with substantially reduced variance" (Nature 631, 755 to 759, published 2024-07-24; preprint arXiv 2305.17493, May 2023).

    Why the tails go first

    Think of the model as a table of word probabilities, refit each generation by counting a sample of n words drawn from the previous model. Take 1,000 word types with Zipf-shaped frequencies (exponent 1.1) and samples of 2,000 words: one sample is expected to contain only 423 of the types (the sum of 1 − (1 − p)n over all types). A type that misses a sample gets probability zero and can never be drawn again; in the paper's words the process is a Markov chain whose only absorbing states are distributions on a single value. Fig. 4 steps through it; the widget after it reruns the toy with other settings and workflows.

    1. The real distribution and one sample. The 1,000 word types are grouped into 19 rank bins on a log scale; a bar's height is the share of its bin's types the model can still produce. The grey row is the real distribution, every type alive. Generation 0 counts 2,000 draws from it and sees only 402 types (423 expected); a bin whose types all missed the sample is a red tile on the floor.
    2. Replace, generations 1 to 10. Each row is fit only on 2,000 draws from the row before it. A type that misses one sample has probability zero for good, so the tail bins on the right empty first while the common words on the left stay full: generation 10 keeps 120 types.
    3. Generations 11 to 30. The losses go on, more slowly, because what is left is common: generation 30 of this run keeps 72 types; over 50 seeds the median is 64 (54 to 78).
    4. Accumulate. The same 30 generations, but every fit uses the real sample plus all synthetic samples so far. Real counts never leave the pool, so no type seen in the real sample can die: every row keeps all 402.
    5. Four workflows at generation 30. Types alive over 50 seeds, the column at the median and the glass slab from the lowest to the highest run: replace 64, accumulate 422, accumulate-subsample 276 (the pool grows, each model sees only 2,000 draws), fresh real data 242 (10% of each generation's draws are new real ones). The dashed line is what one real sample is expected to contain.

    The same toy, as a widget. Pick a workflow and drag through the 30 generations (it opens on the last).

    Its top chart: probability of each word type by its rank in the real distribution (log scales). Its bottom chart: word types still alive for all four workflows at the same settings; the selected one is thick. Replace (Shumailov's setting A): fit only on n samples of the previous model. Accumulate (Gerstgrasser et al.): the real sample plus every synthetic sample so far, so no type seen in the real sample can die. Accumulate-subsample (Kazdan et al.): the pool grows but each model sees only n draws from it (fixed compute); losses slow and level off (draws with replacement here, without in the paper; at these sizes the difference is small). Fresh real data (Alemohammad et al.'s loop): each generation includes new real draws, which bring dead types back. The toy leaves out parameter sharing: a real model can give a never-seen word some probability.

    Replace loses the rare types for good; keeping the real sample stops it

    real distribution (generation 0's source)the model at this generationtypes the model can no longer produce (probability zero)
    replaceaccumulateaccumulate-subsamplefresh real data
    Settings and the check against Python (depth)

    "Tail mass" is the probability on types ranked 101 and below in the real distribution. Over 50 seeded runs at the defaults, the median replace run keeps 64 types after 30 generations (range 54 to 78); accumulate keeps 422. measured

    The JavaScript simulation uses the same algorithm and the same PRNG as the recorded Python run (src/scripts/collapse_categorical.py); at the defaults the line below compares them generation by generation.

    The formula behind the picture: a word with probability p is missing from a sample of n words with probability (1 − p)n. Common words survive any one generation almost surely; rare words face the same small risk every generation, and the risks add up. Predict the chance that a word expected once per sample (1 in 100,000, at 100,000 words) survives 10 generations, then check it and move the slider.

    A word expected once per sample survives ten generations at most 1% of the time

    derived: expected count np; chance of vanishing in one generation (1 − p)n; and an upper bound on surviving all g generations, (1 − (1 − p)n)g, as if its probability stayed at p. In the real process its probability also drifts each generation (a random walk), which makes extinction more likely, not less.

    The experiment, exactly

    • Model and data: OPT-125m (125 million parameters), already pretrained, fine-tuned on wikitext2 (a small Wikipedia corpus). Not pretraining from scratch.
    • Generating: for every 64-token block of the training set, the current model writes the next 64 tokens with five-way beam search (keeps the 5 most probable continuations, which favours high-probability text). The generated set is the same size as the original.
    • Generations: generation 0 is fine-tuned on real data; 9 more, each fine-tuned on the previous generation's output; 5 seeds. Setting (A): 5 epochs and no original data; (B): 10 epochs and a random 10% of the original data kept each generation.
    • Results: generation 0 reaches perplexity 34 on the real test set (115 zero-shot). Setting A loses "from 20 to 28 perplexity points" (ambiguous; read from the figure it is an increase of 20 to 28, no table is given); setting B shows "only minor degradation". Generated text, scored by generation 0, piles up at low perplexity with a longer tail of sequences "that would never be produced by the original model". A generation-9 sample degenerates into a list: "black @-@ tailed jackrabbits, white @-@ tailed jackrabbits, blue @-@ tailed jackrabbits".
    • Why, they argue: three errors that compound, statistical approximation (finite samples, the arithmetic above), functional expressivity (the model family cannot represent the truth) and functional approximation (the learning procedure is biased). The preprint names two; the Nature version three.
    What it does not show
    • Nothing about pretraining from scratch, models above 125M parameters, or real web data.
    • Nothing about keeping earlier synthetic data or all of the real data: each generation replaces the last (the 10% setting already mostly prevents the damage).
    • Beam search, not sampling: beam search by itself pushes output toward the most probable text.
    • Only 9 generations. Headlines that cite it for "AI trained on AI text collapses" describe a setup no lab uses.
    Shumailov et al. Figure 1: the generational loop of data, model, sampled data; histograms of the perplexity of generated text for generations 0 to 9; and real-test perplexity per generation for 5 runs, without and with 10% of the original data kept
    The paper's Figure 1. Notice in (b) that the damage to real-test perplexity arrives at generation 1 and then holds, and that (c), which keeps 10% of the real data, stays far lower (its axis tops out at 42, against 60 in b); on the left, later generations pile up at low perplexity.
    Shumailov, Shumaylov, Zhao, Papernot, Anderson and Gal, Nature 631 (2024), Fig. 1; CC BY 4.0, resized; from nature.com.

    Replace, keep some, accumulate: the same experiment on a tiny real language model

    A word bigram model (each word predicted from the previous one; probabilities are counts) trained on 300,001 words of real TinyStories, then refit for 10 generations on 300,001 words it sampled itself: replace (setting A), keep 10% (setting B: 90% sampled text plus a fresh random 10% of the real text), and accumulate (the real text plus every sampled set so far). Perplexity on 30,011 words of held-out real stories; measured, pure Python on CPU, seed fixed.

    Replace lost 46% of its vocabulary (6,007 to 3,223 word types) and 71% of its distinct word pairs, and its perplexity on real stories rose 1.91 times (57.7 to 110.5). Keeping 10% real text stopped the slide at 79.9; accumulating ended at 60.4. One finding of Shumailov's did not reproduce: the sampled sentences' perplexity under the generation-0 model stayed level (medians 22.8 to 24.8), because this toy samples at temperature 1 where theirs used beam search. The narrowing comes from sampling error alone; their low-perplexity pile-up is at least partly the decoding method.

    Replace nearly doubles perplexity on real stories in ten generations; accumulate ends near where it started

    Perplexity uses each generation's bigram probabilities mixed 9 to 1 with smoothed word frequencies over a fixed vocabulary, so a lost word costs a lot but not infinity. The sentence is the first one the model sampled in that generation.

    The follow-ups that changed the conclusion

    PaperSetupFinding
    Gerstgrasser et al. 2024 arXiv 2404.01413GPT-2 (9M) and Llama-2 (12M, 42M, 126M) trained from scratch on TinyStories (470M tokens), new model each iteration; also diffusion on molecules and VAEs on facesReplace degrades, accumulate does not. Table 2 test cross-entropy, GPT-2 9M: 1.82 at iteration 1; at iteration 4, 1.74 accumulate against 2.39 replace; 2.91 replace at 10 (9.85 when sampling at temperature 0.3). In linear regression, error grows linearly with iterations under replace and stays below π2/6 times the first iteration's under accumulate. For VAEs accumulate still degrades, slowly.
    Kazdan, Schaeffer et al. 2024 arXiv 2410.16713Gaussians, kernel density estimators, supervised fine-tuning of Gemma 2 (2B to 27B), TinyStoriesAccumulate-subsample (fixed compute) degrades faster than accumulate, slower than replace, and often levels off. What matters most is the number of real examples, more than their proportion; with fewer than about 1,000 real examples a little synthetic data helped.
    Feng et al. 2024 arXiv 2406.07515One round of generate, select, retrain: eigenvalue prediction and news summarisationVerification turns synthetic data from harmful to helpful. Eigenvalues: greedy generator 20.2%, the best of 50 beams chosen by an oracle 60.4%; choosing by the model's own perplexity did not help (about 19 to 20%). Summarisation: training on the best 12.5% chosen by an oracle beat training on all the real labels.
    Collapse in theory, in token-edited data and in image models (depth)
    PaperSetupFinding
    Dohmatob et al. 2024 arXiv 2402.07043Theory with Zipf-distributed data; transformers on arithmetic; Llama-2-7B fine-tuned on its own Wikitext continuationsCutting the tail changes the scaling law: past a point more data stops helping (a plateau); error grows linearly with the number of generations; mixing in clean data restores scaling after a delay. A sequel argues even a small synthetic fraction can stall scaling in theory (Strong Model Collapse: "as little as 1%" in the arXiv version, "1 per 1000" in the ICLR 2025 abstract).
    Zhu et al. 2025 (ToEdit, ICML 2025) arXiv 2412.14689Pretraining with growing shares of synthetic text; then "semi-synthetic" data made by editing individual tokens of human textMore synthetic text correlated with worse models, traced to a shifted distribution and over-concentrated n-grams (the narrowing section 6 measures). Editing tokens of real text keeps its distribution, and they argue the test error stays bounded. self-reported, abstract-level check here
    Alemohammad et al. 2023 arXiv 2307.01850; Bertrand et al. 2024 arXiv 2310.00429Image generators retrained on their own samplesA fixed real set "only delays the inevitable degradation" if synthetic data keeps growing; enough fresh real data each round prevents it; sampling for quality (low temperature, guidance) keeps quality but destroys diversity faster. Bertrand: retraining is stable when the model is close to the data and enough real data is reused.
    What a data team takes from this
    • Never drop the real data. Synthetic tokens are added to a pool that keeps all the real tokens; with a fixed token budget, cap the synthetic share.
    • Ground and verify. Rephrasing keeps the real document's tails; checkers (code execution, answer checking, fidelity checks as in Kimi K2) remove the errors that compound.
    • Watch diversity, not only quality. Low-temperature or best-of sampling buys quality at the price of the tails, exactly what collapse removes first.
    • Know what is already synthetic. Vendors measuring with commercial detectors estimate that about half of new English articles in Common Crawl samples are now model-written (Graphite, an SEO agency, May 2026 update: graphite.io; vendor, detector-based); an academic lower bound for new English Wikipedia articles in August 2024 was 4.36% (arXiv 2410.08044). No peer-reviewed estimate for Common Crawl as a whole was found. Date-stamping crawls and keeping pre-2023 snapshots is cheap insurance.
    Not run here: a neural model trained from scratch, generation after generation (depth)

    Training a small transformer on its own samples for several iterations (Gerstgrasser et al.'s TinyStories setup) costs hours of GPU time and would only restate their published Table 2 at smaller scale, so it was dropped (2026-10-15). The two CPU toys above cover the mechanism and show the same split: replace degrades, accumulate holds.

    8. Terms of use: can you train on this model's output?

    Synthetic data carries two sets of rights: those of the seed documents (rephrasing a copyrighted page does not obviously remove the original's rights) and the generator's terms, which may restrict what its output can train. The generators' terms as published (quoted from the documents fetched 2026-10-14; not legal advice, and terms change):

    GeneratorWhat the terms say about training on outputs
    Mixtral-8x7B-Instruct, Mistral-7B-Instruct, Mistral NeMo Instruct (Cosmopedia, WRAP, Nemotron-CC v1)Apache-2.0: no clause restricting outputs. Cosmopedia is Apache-2.0 as a result.
    Qwen3 open-weight models (Nemotron-CC v2)Apache-2.0. Older Qwen2.5 72B used the "Qwen License Agreement"; Nemotron-CC v2's card warns that models trained on it "may be subject to redistribution and use requirements in the Qwen License Agreement and the DeepSeek License Agreement".
    Llama 3.1 and 3.3 Community License (2024)Allowed, with conditions: if you use "any outputs or results of the Llama Materials to create, train, fine tune, or otherwise improve an AI model, which is distributed or made available, you shall also include "Llama" at the beginning of any such AI model name", plus "Built with Llama". Llama 2's licence had forbidden improving other models. This is why Olmo 3 regenerated two math sets with Qwen3 instead of keeping Llama-made versions (Olmo 3, arXiv 2512.13961).
    Gemma Terms of Use (last modified 2026-04-01)A model trained on Gemma's synthetic outputs "in order to cause that model to perform similarly to Gemma" is a "Model Derivative", so the terms flow down to it; Gemma 4 is Apache-2.0 instead (terms).
    OpenAI Services Agreement (business, v.010126)Customers may not "use Output to develop artificial intelligence models that compete with OpenAI's products and services", except internal classifiers or embeddings not distributed (agreement).
    Anthropic Commercial Terms (effective 2025-06-17)Customers may not use the services "to build a competing product or service, including to train competing AI models" (terms).
    NVIDIA Open Model License (2025-10-24)"NVIDIA does not claim ownership to any outputs"; "An output is not a Derivative Model."

    Two habits follow. Record the generator, its version and its licence in every synthetic row's metadata (Cosmopedia keeps the prompt and seed source per row; Nemotron-CC keeps the source URL and WARC record id), so a licence question can be answered later by filtering. And prefer permissively licensed generators for anything you will release; TinyStories (written by OpenAI models) is released under CDLA-Sharing-1.0 and Persona Hub's sample (GPT-4, Llama-3 and Qwen) under CC-BY-NC-SA 4.0, research use. Post-training sets mix many generators' terms at once (Post-training data); copyright in seeds and the state of court cases are on Decontamination, PII and data governance.

    9. Building it: a synthetic data pipeline at scale

    The hero figure is the pipeline: choose and deduplicate seeds, design and pilot prompts, chunk, generate on an inference server with a small generator, post-process, verify, deduplicate and decontaminate, then sweep the mix. The generator's size sets the generation rate, as the calculator shows.

    The eight stages, each with how to check it (depth)
    1. Choose seeds. Low-quality pages to rescue by rewriting (Nemotron-CC, REWIRE), high-quality pages to transform into more forms, or a topic list (Cosmopedia v2's 34,000 BISAC topics) with retrieved seed pages. Deduplicate seeds first: duplicated seeds become duplicated outputs that MinHash will not catch once reworded. Check: topic histogram of seeds.
    2. Design prompts. Styles and formats (WRAP's four, Nemotron-CC's five, FinePhrase's tables and FAQs), audiences, personas, explicit bans on stock openings. Check: 1,000 outputs per prompt through the measures of section 6 before scaling; this is where Cosmopedia "spent most of the time".
    3. Chunk. Rewrite segments, not whole documents (WRAP: 300 tokens; Nemotron-CC: 512 to 2,000 by prompt; Kimi K2: chunk by chunk with the previous chunk as context). Long inputs get summarised instead of rewritten.
    4. Generate. An inference server with large batches (vLLM, SGLang, TensorRT-LLM; Nemotron-CC used TensorRT-LLM in FP8), a 1B to 8B generator for rephrasing (section 3), moderate temperature (Nemotron-CC: 0.5, top-p 0.9). Resumable, with the prompt id, seed id, generator and sampling settings stored per row.
    5. Post-process. Strip preambles ("Here is a paraphrased version:") and Markdown, drop refusals, truncated and very short outputs (Nemotron-CC: under 50 tokens).
    6. Verify. Execute code, check math answers, check fidelity to the source (Kimi K2's semantic comparison; a cheap proxy is the share of numbers and names kept, which section 3 measures), optionally score with a classifier (knowing it favours formats, section 6).
    7. Deduplicate and decontaminate. MinHash within the synthetic set and against the real corpus; n-gram matching against every evaluation set (Cosmopedia: 10-grams then a similarity check), because generators reproduce benchmark items.
    8. Mix and test. Sweep the synthetic share on small proxy models (section 5; Data mixing), keep all real data in the pool, decide how many times synthetic tokens may repeat.

    A 1.7B generator is thirty times cheaper per token than a 70B one

    Presets reproduce the published throughputs by construction: WRAP 3M tokens per A100-hour (Section 7.1); Cosmopedia 25B tokens in "over 10k GPU hours", so at most 2.5M per hour; REWIRE about 400B tokens for about 352K H100-hours, 1.1M per hour, and FinePhrase 33.1M per GPU-hour with speculative decoding (FinePhrase Table 10). 33.1 / 1.1 is about 30 (derived).

    Depth: mistakes that teach, and a design question

    Common mistakes the sections above do not already show (depth)
    • Comparing distinct-n across samples of different sizes or domains. The ratio falls as the sample grows, and math or code repeats symbols by nature. Fix the word budget (100,000 words here) and compare within a domain.
    • Skipping decontamination because "the text is new". Generators reproduce benchmark items they memorised, and exercise-style data resembles benchmarks by design (phi-1's own analysis; Cosmopedia removed hundreds of matching documents). Run n-gram matching against every evaluation set, and for skill-targeted data retrain without the nearest items as phi-1 did.
    • Citing model collapse against all synthetic data. The famous experiment fine-tunes a 125M model on its own beam-search output and throws the real data away each generation. Accumulating, grounding and verifying, which is what labs do, avoids it (Gerstgrasser et al., Feng et al.). The real risks are narrower: lost tails and style, and unlabelled model text in new crawls.
    • Using a bigger generator than needed. For rephrasing, gains flatten above 1B to 8B parameters in three studies (BeyondWeb, Kang et al., FinePhrase), and the cost per token grows with size. Spend the budget on prompts and seeds.
    • Losing track of which model wrote what. Without the generator, prompt and seed id on every row, a licence change or a bad prompt cannot be removed later.
    Design questions: a synthetic stage for a 10-trillion-token run, and a suspicious GSM8K gain (interview rehearsal)

    Build the synthetic-data stage for a 10-trillion-token pretraining run. Goal and budget: say 30% synthetic, 3T tokens, repeated at most 4 times, so about 750B unique synthetic tokens. Seeds: the quality buckets from the web pipeline (rewrite low and medium, transform high), deduplicated, plus topic lists for math and code. Prompts: five to ten formats, piloted on 1,000 outputs each and measured. Generation: a 4B to 8B Apache-2.0 model on an inference server; at about 10 million tokens per GPU-hour (between the WRAP and FinePhrase rates) 750B tokens is about 75,000 GPU-hours, so a few days on 1,000 GPUs, sharded by seed id and resumable. Post-process and verify: preambles, length, refusals; execution for code, answer checks for math, fidelity checks for rephrasing. Dedup and decontaminate against the real corpus and every eval. Mix: sweep the share on 1B proxies, keep all real data, more synthetic in the final stage. Provenance: generator, prompt, seed id on every row. Trade-offs to name: generator size against cost, diversity against quality filtering, synthetic share against knowledge benchmarks, licences.

    A synthetic math set lifts GSM8K by 15 points. What do you check before believing it? Contamination: n-gram and embedding matches between the set and GSM8K test items, and the generator's own exposure to the test set; retrain without the nearest items (phi-1's method). Then a held-out or fresh benchmark (phi-4 used the November 2024 AMC), several seeds, and whether general benchmarks dropped.