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.
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.
| Family | What the generator is asked to do | Where the information comes from | Best-known examples |
|---|---|---|---|
| Generate from seeds | Write a new textbook unit, story, blog post, exercise or instruction about a topic | The generator's own knowledge; the seed only steers the topic | TinyStories, phi-1 and phi-1.5 textbooks, Cosmopedia v1 and v2, Self-Instruct, Persona Hub |
| Rephrase | Rewrite this real document in another style (Wikipedia-like, simple, Q and A) | The real document; the generator changes the form | WRAP, Nemotron-CC Wikipedia-style, REWIRE, BeyondWeb, Kimi K2 |
| Transform | Turn this document into question-answer pairs, a condensed version, a list of facts, a table | The real document, reorganised | Nemotron-CC diverse QA, distill, extract knowledge, knowledge list; FinePhrase; MegaMath QA |
| Code and math with checks | Write code or worked solutions, run them, keep what passes; translate code between languages | Seeds plus an executor or answer checker that filters the output | phi-1 exercises, MegaMath text and code blocks, OpenCoder snippets, Nemotron code rewriting and transpiling |
| Unchosen | Nothing: model-written pages published on the web end up in every new crawl | Whatever models wrote online | Every Common Crawl snapshot after 2023 |
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.
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.
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.
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).
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-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).
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.
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):
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.
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).
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).
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.
| Method | Where the variety comes from | Scale, as published |
|---|---|---|
| Self-Instruct (2022) arXiv 2212.10560 | A 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.7 | 52,445 instructions from GPT-3; Alpaca's 52,002 rows reused the recipe with text-davinci-003 |
| Evol-Instruct (WizardLM, 2023) arXiv 2304.12244 | Rewrite 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.20094 | 1,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 people | 1.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.08464 | No seed at all: an aligned model given only its chat template's user header writes a plausible user query itself, then answers it | 4 million generated, 300K selected |
| Distillation data | Real or generated prompts; a stronger model writes the answers (or reasoning traces) that a weaker one is trained on | Most 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.
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).
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.
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).
| Style | WRAP 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:":" |
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.
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.
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.
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.
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.
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).
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.
| Work | What it did | Result, from the tables |
|---|---|---|
| REWIRE (Meta, June 2025) arXiv 2506.04689 | Llama-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 classifier | Table 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.10975 | Undisclosed rephrasing of high-quality DCLM pages; 40% synthetic, 60% RedPajama | Table 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.20534 | Rewrites knowledge text chunk by chunk with the previous chunk as context, then checks each rewrite's fidelity to its source | Table 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.01631 | About 1,000 models up to 3B on mixes of web text and Mistral-7B rephrases or textbooks | Rephrased-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.31867 | A scaling law predicting loss from model size, tokens, rewrite fraction and epochs over the natural data, with the rewriter's compute counted in the budget | Compute-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.13977 | Rewrites FineWeb-Edu pages into structured formats (tables, math problems, FAQs, tutorials) with SmolLM2-1.7B; 486 billion tokens | Structured 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 |
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.
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:
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.
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.
Blue: what a recipe used. Green: what an ablation found best. Sources and arithmetic:
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.
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.
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.
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.
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).
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").
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.
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).
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.
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.
"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.
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.
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.
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.
| Paper | Setup | Finding |
|---|---|---|
| Gerstgrasser et al. 2024 arXiv 2404.01413 | GPT-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 faces | Replace 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.16713 | Gaussians, kernel density estimators, supervised fine-tuning of Gemma 2 (2B to 27B), TinyStories | Accumulate-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.07515 | One round of generate, select, retrain: eigenvalue prediction and news summarisation | Verification 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. |
| Paper | Setup | Finding |
|---|---|---|
| Dohmatob et al. 2024 arXiv 2402.07043 | Theory with Zipf-distributed data; transformers on arithmetic; Llama-2-7B fine-tuned on its own Wikitext continuations | Cutting 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.14689 | Pretraining with growing shares of synthetic text; then "semi-synthetic" data made by editing individual tokens of human text | More 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.00429 | Image generators retrained on their own samples | A 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. |
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.
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):
| Generator | What 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.
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.
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).
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.
Eleven measures on 24 sets of 1,000 documents: real web and reference text, rephrased and transformed web pages, and text generated from seeds. Pick a measure, click a set for its details, or paste your own text to measure it at the same word budget. measured on an Apple M1 Pro (CPU), October 2026; scripts measure_sets.py, embed_sets.py, budget_curves.py in src/scripts/.
Paste documents separated by blank lines (a few thousand words or more gives stable numbers). Computed in your browser: word count, distinct-1, 2 and 4, the compression ratio of the lowercased words (gzip, if your browser supports CompressionStream) and the top openings. Each number is compared with every set at the same word budget, because these ratios fall as text grows: the nearest measured budget at or below your word count is used.
Each sample is one seeded random row group (or the first rows of one file), not a uniform sample of the whole dataset: subsets with file-order effects (Wikipedia's first file is alphabetical, Nemotron-CC files are shuffled) are labelled. Nemotron-CC rows are from the crawl the running example uses (CC-MAIN-2024-30).
Times are for a careful read. Papers marked vendor come from teams that sell data or curation services.
The parent page: the whole pipeline at overview depth; section 8 has the one-dimensional collapse simulation; its Post-training data lab covers model-written SFT data. 31 min, plus 7
The instruction, preference and reasoning datasets themselves, Self-Instruct's filter step by step, and their licences per generator: the post-training half of synthetic data. 30 min, plus 23
How the FineWeb-Edu and DCLM classifiers used here were built, and Nemotron-CC's buckets. 42 min, plus 13
MinHash and semantic dedup, the near-duplicate measure used in section 6. 34 min, plus 23
Benchmark overlap methods, licences, opt-outs and copyright. 38 min, plus 21
How to choose the synthetic share and when in training it goes. 45 min, plus 23
Nemotron-CC, FineWeb, DCLM and the rest: where the seeds come from. 31 min, plus 15
Training a small model on a large model's outputs, the post-training cousin of this page. 25 min, plus 8
What the student run looks like: stages, annealing, token budgets. 30 min, plus 4
"Trillions" of synthetic tokens in a 36T pretraining run, and the generator behind Nemotron-CC v2. 27 min
Mid-training on Dolmino, where synthetic math enters an open recipe. 29 min
The generator of Cosmopedia v1 and v2. 24 min
Contamination from the benchmark side. 23 min
Hugging Face, 2024-03-20. The practical playbook: seeds, prompts, duplicates, decontamination. 25 min
Maini et al., 2024. Read Tables 1 and 2 and Section 7.1 (cost). 45 min
Su et al., NVIDIA, 2024. Section 2.3, footnote 11, Table 3, Table 10, Appendix H prompts. 45 min
Shumailov et al., Nature 2024 (Author Correction 2025-03-21). Read the setup before the abstract. 40 min
Gerstgrasser et al., 2024. Replace against accumulate; Table 2. 35 min
Kazdan, Schaeffer et al., 2024. The fixed-compute workflow and real-data counts. 40 min
Kang et al., EMNLP 2025. The largest sweep of synthetic shares and generator sizes. 50 min
Hugging Face, 2026. Prompt formats, small generators, throughput. 50 min
Microsoft, 2024. Section 2.2 and Tables 3 to 5: the most detailed synthetic-heavy recipe. 45 min
Gunasekar et al., 2023. Includes the contamination retraining test. 35 min
Eldan and Li, 2023. The diversity trick in two paragraphs. 25 min
Meta, 2025. Rewriting the pages filters would discard. 35 min
DatologyAI, 2025 vendor. Lessons at trillion-token scale; method not released. 45 min
Feng et al., 2024. Why selection changes the sign. 35 min
Dohmatob et al., ICML 2024. Collapse as a change of scaling law. 45 min
Shaib et al., 2024. Which diversity scores to report. 30 min
Apache-2.0; 8 subsets, prompts included. 5 min
Cosmopedia v2, ODC-By. 5 min
Real and synthetic rows by quality bucket, with source URLs and WARC record ids. 5 min
CDLA-Sharing-1.0. 5 min
ODC-By; web, code and synthetic math subsets. 5 min