How Can We Synthesize High-Quality Pretraining Data? A Systematic Study of Prompt Design, Generator Model, and Source Data
Organizations: Hugging Face · University of Sheffield, United Kingdom · National Institute of Informatics, Japan
Abstract
Synthetic data is a standard component in training large language models, yet systematic comparisons across design dimensions, including rephrasing strategy, generator model, and source data, remain absent. We conduct extensive controlled experiments, generating over one trillion tokens, to identify critical factors in rephrasing web text into synthetic pretraining data. Our results reveal that structured output formats, such as tables, math problems, FAQs, and tutorials, consistently outperform both curated web baselines and prior synthetic methods. Notably, increasing the size of the generator model beyond 1B parameters provides no additional benefit. Our analysis also demonstrates that the selection of the original data used for mixing substantially influences performance. By applying our findings, we develop FinePhrase, a 486-billion-token open dataset of rephrased web text. We show that FinePhrase outperforms all existing synthetic data baselines while reducing generation costs by up to 30 times. We provide the dataset, all prompts, and the generation framework to the research community.
Figures & tables
| Format | Instructional Content Example |
|---|---|
| math | “Rewrite the document to create a mathematical word problem… Provide a step-by-step solution that shows the calculation process clearly.” |
| faq | “Rewrite the document as a comprehensive FAQ… Order questions logically from foundational to advanced… Ensure the FAQ works as a standalone document.” |
| table | “Rewrite the document as a structured table that organizes the key information, then generate one question-answer pair based on the table.” |
| tutorial | “Rewrite the document as a clear, step-by-step tutorial… Use numbered steps or bullet points where appropriate to enhance clarity.” |
| Dataset | Macro Avg | |
|---|---|---|
| Non- synthetic | DCLM | 13.77 |
| Ultra-FineWeb | 13.00 | |
| FineWeb-HQ | 11.82 | |
| FineWeb-LQ | 8.83 | |
| Synthetic | Nemotron-HQ-Synth | 13.54 |
| REWIRE | 13.49 |
| Prompt | Macro Avg | |
| DCLM | 13.77 | |
| Nemotron-CC | Diverse QA Pairs | 14.58 |
| Distill | 13.17 | |
| Wikipedia | 13.14 | |
| Knowledge List | 13.11 | |
| Extract Knowledge | 11.81 |
| Prompt | Macro Avg |
|---|---|
| DCLM | 13.77 |
| math | 15.31 |
| faq | 14.45 |
| table | 14.83 |
| tutorial | 14.30 |
| Generator Scale | |||||
|---|---|---|---|---|---|
| Student Scale | 270M | 1B | 4B | 12B | 27B |
| 500M | 10.96 | 12.14 | 11.50 | 11.49 | 11.50 |
| 1.2B | 13.80 | 15.31 | 15.06 | 14.68 | 14.76 |
| 2.9B | 13.80 | 15.97 | 14.75 | 16.40 | 15.72 |
| 6.2B | 14.39 | 16.85 | 16.69 | 17.06 | 16.69 |
| Family | Macro Avg |
|---|---|
| DCLM | 13.77 |
| SmolLM2 | 16.55 |
| Falcon 3 | 15.54 |
| Qwen 3 | 14.49 |
| Gemma 3 | 14.72 |
| Granite 3.1 | 14.87 |
| Prompt | Synthetic Only | Mixed |
|---|---|---|
| DCLM | 13.77 | |
| math | 15.20 | 15.31 |
| faq | 13.12 | 14.45 |
| table | 13.74 | 14.83 |
| tutorial | 12.32 | 14.30 |
| Dataset | Generator | Tokens | GPU-hrs | Tok/GPU-hr |
|---|---|---|---|---|
| Cosmopedia | Mixtral 8x7B | 25B | 10K | 2.5M |
| SYNTH | fine-tuned | 80B | 4K | 20M |
| REWIRE | Llama 3.3 70B | 400B | 352K | 1.1M |
| FinePhrase | SmolLM2 1.7B | 486B | 14.7K | 33.1M |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 | 12.78 | 16.55 | 42.56 | 2.94 | 4.84 | 3.90 | 7.42 | 9.25 | 10.87 | 19.31 | 13.76 |
| Ultra-FineWeb | 15.04 | 12.09 | 14.67 | 40.44 | 2.09 | 2.83 | 3.63 | 6.96 | 9.03 | 10.32 | 17.91 | 14.62 |
| FineWeb-HQ | 17.31 | 12.15 | 12.33 | 34.54 | 2.37 | 2.41 | 2.63 | 5.73 | 7.51 | 10.85 | 15.01 | 11.62 |
| FineWeb-LQ | 3.87 | 6.97 | 12.17 | 23.86 | 0.78 | 0.69 | 2.45 | 6.30 | 8.95 | 9.48 | 12.75 | 10.83 |
| Nemotron-HQ-Synth | 18.33 | 14.30 | 16.39 | 42.56 | 2.67 | 4.36 | 4.34 | 6.98 | 8.13 | 10.53 | 17.99 | 10.04 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 | 12.78 | 16.55 | 42.56 | 2.94 | 4.84 | 3.90 | 7.42 | 9.25 | 10.87 | 19.31 | 13.76 |
| Diverse QA Pairs | 21.56 | 13.58 | 17.62 | 51.65 | 3.03 | 3.06 | 3.38 | 5.86 | 7.51 | 10.91 | 17.93 | 12.03 |
| Distill | 20.28 | 13.58 | 14.88 | 39.65 | 2.64 | 3.19 | 3.27 | 6.20 | 7.53 | 10.94 | 16.38 | 12.61 |
| Wikipedia | 19.46 | 13.52 | 14.24 | 42.90 | 2.61 | 2.91 | 3.60 | 5.90 | 7.40 | 10.41 | 16.38 | 11.77 |
| Knowledge List | 19.96 | 14.06 | 17.83 | 39.91 | 3.06 | 2.94 | 2.46 | 6.03 | 7.32 | 11.16 | 13.96 | 11.52 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 | 12.78 | 16.55 | 42.56 | 2.94 | 4.84 | 3.90 | 7.42 | 9.25 | 10.87 | 19.31 | 13.76 |
| math | 20.73 | 14.37 | 16.04 | 53.81 | 2.89 | 3.76 | 3.12 | 6.11 | 7.68 | 12.36 | 20.30 | 14.50 |
| faq | 21.57 | 14.22 | 16.50 | 50.20 | 3.47 | 3.27 | 2.74 | 6.09 | 7.70 | 10.85 | 16.80 | 13.46 |
| table | 22.76 | 14.66 | 14.64 | 47.37 | 3.23 | 3.91 | 2.88 | 5.94 | 7.38 | 11.24 | 21.61 | 15.45 |
| tutorial | 21.34 | 14.11 | 17.98 | 45.49 | 3.06 | 3.51 | 3.71 | 6.07 | 7.71 | 10.54 | 17.29 | 14.42 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 | 12.78 | 16.55 | 42.56 | 2.94 | 4.84 | 3.90 | 7.42 | 9.25 | 10.87 | 19.31 | 13.76 |
| 270M | 19.85 | 13.61 | 18.57 | 44.42 | 2.87 | 2.70 | 2.90 | 5.90 | 7.40 | 10.60 | 17.31 | 12.70 |
| 1B | 20.73 | 14.37 | 16.04 | 53.81 | 2.89 | 3.76 | 3.12 | 6.11 | 7.68 | 12.36 | 20.30 | 14.50 |
| 4B | 19.32 | 14.35 | 19.24 | 46.03 | 3.15 | 3.43 | 3.32 | 5.60 | 7.44 | 13.51 | 20.88 | 15.03 |
| 12B | 19.77 | 13.97 | 17.30 | 43.39 | 3.15 | 3.01 | 3.83 | 5.67 | 7.44 | 13.96 | 19.86 | 14.84 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 (0.00) | 12.78 (0.00) | 16.55 (0.00) | 42.56 (0.00) | 2.94 (0.00) | 4.84 (0.00) | 3.90 (0.00) | 7.42 (0.00) | 9.25 (0.00) | 10.87 (0.00) | 19.31 (0.00) | 13.76 (0.00) |
| SmolLM2 | 22.47 (0.46) | 15.34 (0.14) | 18.86 (1.96) | 59.67 (1.58) | 3.63 (0.16) | 4.84 (0.11) | 3.79 (0.18) | 6.48 (0.13) | 7.82 (0.15) | 11.71 (1.06) | 20.48 (0.81) | 16.80 (2.64) |
| Falcon 3 | 22.20 (0.44) | 15.37 (0.23) | 17.29 (2.45) | 51.55 (2.39) | 3.30 (0.13) | 4.59 (0.13) | 3.73 (0.23) | 6.33 (0.24) | 7.75 (0.12) | 11.33 (0.54) | 20.45 (1.49) | 16.00 (1.72) |
| Qwen 3 | 22.29 (2.07) | 15.02 (0.79) | 15.47 (1.07) | 46.24 (3.00) | 3.28 (0.15) | 3.84 (0.56) | 3.51 (0.21) | 6.11 (0.22) | 7.54 (0.16) | 11.47 (0.68) | 18.76 (0.72) | 13.30 (1.56) |
| Gemma 3 1B | 21.60 (0.74) | 14.34 (0.21) | 16.29 (1.19) | 49.22 (3.14) | 3.16 (0.21) | 3.61 (0.24) | 3.11 (0.37) | 6.05 (0.06) | 7.62 (0.14) | 11.25 (0.69) | 19.00 (2.02) | 14.46 (0.70) |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| DCLM | 15.26 | 12.78 | 16.55 | 42.56 | 2.94 | 4.84 | 3.90 | 7.42 | 9.25 | 10.87 | 19.31 | 13.76 |
| math w/o | 20.24 | 14.02 | 17.23 | 54.07 | 2.64 | 2.96 | 3.02 | 5.76 | 6.99 | 12.36 | 20.34 | 14.26 |
| math | 20.73 | 14.37 | 16.04 | 53.81 | 2.89 | 3.76 | 3.12 | 6.11 | 7.68 | 12.36 | 20.30 | 14.50 |
| faq w/o | 21.34 | 13.02 | 16.28 | 40.95 | 2.47 | 3.24 | 2.70 | 5.55 | 6.63 | 10.83 | 16.24 | 11.11 |
| faq | 21.57 | 14.22 | 16.50 | 50.20 | 3.47 | 3.27 | 2.74 | 6.09 | 7.70 | 10.85 | 16.80 | 13.46 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| FineWeb-LQ | 3.87 | 6.97 | 12.17 | 23.86 | 0.78 | 0.69 | 2.45 | 6.30 | 8.95 | 9.48 | 12.75 | 10.83 |
| FineWeb-HQ | 17.31 | 12.15 | 12.33 | 34.54 | 2.37 | 2.41 | 2.63 | 5.73 | 7.51 | 10.85 | 15.01 | 11.62 |
| Cosmopedia (LQ) | 11.20 | 9.28 | 14.26 | 38.40 | 1.31 | 1.66 | 1.13 | 5.99 | 6.93 | 10.73 | 14.48 | 6.85 |
| Cosmopedia (HQ) | 19.53 | 12.74 | 13.24 | 43.39 | 2.38 | 2.85 | 2.20 | 6.33 | 7.37 | 11.26 | 16.26 | 10.97 |
| DCLM (LQ) | 12.37 | 11.20 | 16.54 | 37.59 | 2.70 | 3.76 | 3.99 | 7.28 | 8.97 | 10.36 | 17.12 | 13.83 |
| General Knowledge | Reading Comp. | Reasoning | NLU | Math | Table Understanding | |||||||
| Approach | ARC | MMLU | DROP | SQuAD v2 | OBQA | XCSQA | WG | PIQA | HS | GSM8K | WikiTQ | TQA |
| Cosmopedia (FWHQ) | 20.33 | 14.17 | 15.01 | 45.23 | 2.84 | 3.69 | 3.65 | 6.95 | 8.26 | 10.79 | 16.44 | 12.91 |
| Cosmopedia (Cosmopedia) | 11.85 | 9.48 | 11.25 | 35.98 | 1.36 | 2.95 | 1.25 | 5.56 | 6.64 | 10.76 | 14.06 | 5.76 |
| DCLM (FWHQ) | 20.48 | 13.78 | 18.16 | 46.93 | 2.83 | 4.23 | 4.36 | 7.08 | 8.57 | 10.49 | 18.09 | 12.80 |
| DCLM (DCLM) | 16.26 | 12.45 | 14.17 | 42.69 | 2.27 | 5.37 | 4.39 | 7.50 | 9.16 | 10.28 | 20.11 | 14.36 |
| FineWeb-HQ (FWHQ) | 21.34 | 14.11 | 17.98 | 45.49 | 3.06 | 3.51 | 3.71 | 6.07 | 7.71 | 10.54 | 17.29 | 14.42 |
| Student Model Size | FWHQ (Baseline) | FWHQ + Table | Absolute Gain | Gain / Std Ratio |
|---|---|---|---|---|
| 0.5B | 9.59 0.44 | 14.30 0.20 | +4.71 | 23.55 |
| 1.7B | 12.09 0.27 | 17.25 0.16 | +5.16 | 32.25 |
| 2.9B | 12.67 0.22 | 17.89 0.19 | +5.22 | 27.47 |
| 6.2B | 13.38 0.49 | 18.61 0.20 | +5.23 | 26.15 |
| Synthetic Fraction | Average Macro Score |
|---|---|
| 10% | 15.1 |
| 20% | 15.2 |
| 30% | 15.8 |
| 40% | 16.2 |
| 50% (Default) | 16.4 |
| 60% | 16.8 |
| Model Family | Distinct Openings | Most Common Prefix Count |
|---|---|---|
| SmolLM2 | 1,897 | 3,235 |
| Qwen 3 | 40 | 7,619 |
| Llama 3.2 | 1,041 | 2,481 |
| Gemma 3 | 1,857 | 3,559 |
| Falcon 3 | 476 | 3,733 |
| Granite 3 | 1,627 | 1,152 |
| Metric | SmolLM2 | Qwen 3 | Llama 3.2 | Gemma 3 | Falcon 3 | Granite 3 |
|---|---|---|---|---|---|---|
| No Math Content (Zero Digits) | 23.0 | 0.1 | 0.7 | 7.7 | 2.1 | 1.9 |
| Per-Equation Arithmetic Accuracy | 57.3 | 78.9 | 71.6 | 68.1 | 71.1 | 61.8 |
| Dataset | Avg Contamination (Docs/B Tokens) | Benchmark Share Breakdown |
|---|---|---|
| DCLM | 365 | WikiTQ (68%), MMLU-Redux (18%), HS (8%), Others (6%) |
| Ultra-FineWeb | 785 | MMLU-Redux (36%), HS (28%), WikiTQ (21%), Others (15%) |
| FineWeb-Edu-HQ | 841 | MMLU-Redux (34%), HS (30%), WikiTQ (20%), Others (16%) |
| FineWeb-Edu-LQ | 814 | MMLU-Redux (35%), HS (29%), WikiTQ (19%), Others (17%) |
| Nemotron-HQ-Synth | 312 | WikiTQ (65%), MMLU-Redux (19%), HS (9%), Others (7%) |
| REWIRE | 1,900 | HS (38%), PIQA (38%), MMLU-Redux (12%), WikiTQ (8%) |
| Prompt | Avg Contamination (Docs/B Tokens) | Benchmark Share Breakdown |
|---|---|---|
| math | 744 | MMLU-Redux (34%), HS (30%), WikiTQ (20%), Others (16%) |
| faq | 738 | MMLU-Redux (34%), HS (30%), WikiTQ (20%), Others (16%) |
| table | 731 | MMLU-Redux (33%), HS (31%), WikiTQ (21%), Others (15%) |
| tutorial | 728 | MMLU-Redux (35%), HS (29%), WikiTQ (20%), Others (16%) |
| Our Framework (Average) | 735 | MMLU-Redux (34%), HS (30%), WikiTQ (20%), Others (16%) |
| Model Family | Avg Contamination (Docs/B Tokens) | Benchmark Share Breakdown |
|---|---|---|
| SmolLM2 | 651 | MMLU-Redux (32%), WikiTQ (25%), HS (26%), Others (17%) |
| Falcon 3 | 633 | MMLU-Redux (31%), WikiTQ (27%), HS (25%), Others (17%) |
| Qwen 3 | 746 | MMLU-Redux (33%), HS (29%), WikiTQ (22%), Others (16%) |
| Gemma 3 | 801 | MMLU-Redux (35%), HS (30%), WikiTQ (20%), Others (15%) |
| Granite 3.1 | 694 | MMLU-Redux (33%), WikiTQ (23%), HS (27%), Others (17%) |
| Llama 3.2 | 858 | MMLU-Redux (36%), HS (32%), WikiTQ (18%), Others (14%) |
Synthetic Data Pretraining
Synthetic data pretraining uses generated, simulated, or transformed examples to initialize models when real training data are scarce or costly.
See all 119 papers