Recycling the Web: A Method to Enhance Pre-training Data Quality and Quantity for Language Models
Not on the map. Why?
Abstract (arXiv)
Scaling laws predict that the performance of large language models improves with increasing model size and data size. In practice, pre-training has been relying on massive web crawls, using almost all data sources publicly available on the internet so far. However, this pool of natural data does not grow at the same rate as the compute supply. Furthermore, the availability of high-quality texts is even more limited: data filtering pipelines often remove up to 99% of the initial web scrapes to achieve state-of-the-art. To address the "data wall" of pre-training scaling, our work explores ways to transform and recycle data discarded in existing filtering processes. We propose REWIRE, REcycling the Web with guIded REwrite, a method to enrich low-quality documents so that they could become useful for training. This in turn allows us to increase the representation of synthetic data in the final pre-training set. Experiments at 1B, 3B and 7B scales of the DCLM benchmark show that mixing high-quality raw texts and our rewritten texts lead to 1.0, 1.3 and 2.5 percentage points improvement respectively across 22 diverse tasks, compared to training on only filtered web data. Training on the raw-synthetic data mix is also more effective than having access to 2x web data. Through further analysis, we demonstrate that about 82% of the mixed in texts come from transforming lower-quality documents that would otherwise be discarded. REWIRE also outperforms related approaches of generating synthetic data, including Wikipedia-style paraphrasing, question-answer synthesizing and knowledge extraction. These results suggest that recycling web texts holds the potential for being a simple and effective approach for scaling pre-training data. We make our high-quality synthetic data publicly available at https://huggingface.co/datasets/facebook/recycling_the_web.
Key facts. Cited by 31 papers in the map (data through 14 Oct 2026). Builds on 39 of its 45 references that are in the map. First posted on arXiv 5 Jun 2025.
Builds on
39 of 45 references.
References · 39
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
27 more
- 2016Bag of Tricks for Efficient Text Classificationcited by 876
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 763
- 2024Phi-4 Technical Reportcited by 711
- 2023Textbooks Are All You Needcited by 569
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 565
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2024Scaling Synthetic Data Creation with 1,000,000,000 Personascited by 417
- 2023Scaling Data-Constrained Language Modelscited by 403
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 399
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2023The Curse of Recursion: Training on Generated Data Makes Models Forgetcited by 356
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 182
- 2024Rephrasing the Web: A Recipe for Compute and Data-Efficient Language Modelingcited by 161
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
- 2024QuRating: Selecting High-Quality Data for Training Language Modelscited by 157
- 2024Is Model Collapse Inevitable? Breaking the Curse of Recursion by Accumulating Real and Synthetic Datacited by 151
- 2024How to Train Data-Efficient LLMscited by 93
- 2024Metacognitive Capabilities of LLMs: An Exploration in Mathematical Problem Solvingcited by 84
- 2025Organize the Web: Constructing Domains Enhances Pre-Training Data Curationcited by 76
- 2024Synthetic continued pretrainingcited by 60
- 2025Reasoning to Learn from Latent Thoughtscited by 45
- 2024Harnessing Diversity for Important Data Selection in Pretraining Large Language Modelscited by 34
- 2025Predictive Data Selection: The Data That Predicts Is the Data That Teachescited by 21
- 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Codecited by 21
- 2024MIND: Math Informed syNthetic Dialogues for Pretraining LLMscited by 14
Built on by
Citing papers per year: 2025: 12; 2026: 19.
31 papers.
Sort:
By area:
- 2025CoT-Self-Instruct: Building high-quality synthetic prompts for reasoning and non-reasoning taskscited by 32
- 2025BeyondWeb: Lessons from Scaling Synthetic Data for Trillion-scale Pretrainingcited by 21
- 2026Data-efficient pre-training by scaling synthetic megadocscited by 7
- 2025Synthetic bootstrapped pretrainingcited by 6
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
- 2026Self-Improving Pretraining: using post-trained models to pretrain better modelscited by 6
- 2026How Can We Synthesize High-Quality Pretraining Data? A Systematic Study of Prompt Design, Generator Model, and Source Datacited by 6
- 2025Thinking Augmented Pre-trainingcited by 4
- 2025Toward Cybersecurity-Expert Small Language Modelscited by 4
- 2025Motif 2 12.7B technical reportcited by 4
- 2026Scale Dependent Data Duplicationcited by 4
- 2025Large-Scale Diverse Synthesis for Mid-Trainingcited by 3
19 more
- 2025Data-Centric Lessons To Improve Speech-Language Pretrainingcited by 3
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
- 2026How Does "English (US)" Become the Default? Triangulating Structural Bias Towards American English Across the LLM Pipelinecited by 3
- 2025Induction Signatures Are Not Enough: A Matched-Compute Study of Load-Bearing Structure in In-Context Learningcited by 2
- 2026DynaMoE: Dynamic Token-Level Expert Activation with Layer-Wise Adaptive Capacity for Mixture-of-Experts Neural Networkscited by 2
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scalingcited by 2
- 2026Building a Strong Instruction Language Model for a Less-Resourced Languagecited by 1
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Datacited by 1
- 2025Beyond Repetition: Text Simplification and Curriculum Learning for Data-Constrained Pretrainingcited by 0
- 2025Improving Romanian LLM Pretraining Data using Diversity and Quality Filteringcited by 0
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scalecited by 0
- 2026Continually self-improving AIcited by 0
- 2026Synthetic Rewriting as a Quality Multiplier: Evidence from Portuguese Continued Pretrainingcited by 0
- 2026WRAP++: Web discoveRy Amplified Pretrainingcited by 0
- 2026Alignment Plausibility: A New Standard for Assuring AI in Healthcarecited by 0
- 2026Blind Men and the Elephant: Probing the Epistemic Myopia of LLMs under Long-Tail Divergent Knowledgecited by 0
- 2026Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Samplingcited by 0
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretrainingcited by 0
- 2026Effective Synthetic Data Curation Requires Group-Level Signalscited by 0
- 2026Effective Synthetic Data Curation Requires Group-Level Signals30 Sep 2026
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining28 Sep 2026
- 2026Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Sampling26 Sep 2026
- 2026Blind Men and the Elephant: Probing the Epistemic Myopia of LLMs under Long-Tail Divergent Knowledge28 Aug 2026
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Data27 Jul 2026
- 2026Alignment Plausibility: A New Standard for Assuring AI in Healthcare8 Jul 2026
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scaling18 May 2026
- 2026How Can We Synthesize High-Quality Pretraining Data? A Systematic Study of Prompt Design, Generator Model, and Source Data15 Apr 2026
- 2026WRAP++: Web discoveRy Amplified Pretraining8 Apr 2026
- 2026How Does "English (US)" Become the Default? Triangulating Structural Bias Towards American English Across the LLM Pipeline5 Apr 2026
- 2026Synthetic Rewriting as a Quality Multiplier: Evidence from Portuguese Continued Pretraining25 Mar 2026
- 2026Data-efficient pre-training by scaling synthetic megadocs19 Mar 2026
19 more
- 2026Continually self-improving AI18 Mar 2026
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curation15 Mar 2026
- 2026DynaMoE: Dynamic Token-Level Expert Activation with Layer-Wise Adaptive Capacity for Mixture-of-Experts Neural Networks2 Mar 2026
- 2026Building a Strong Instruction Language Model for a Less-Resourced Language2 Mar 2026
- 2026Scale Dependent Data Duplication18 Feb 2026
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scale29 Jan 2026
- 2026Self-Improving Pretraining: using post-trained models to pretrain better models29 Jan 2026
- 2025Motif 2 12.7B technical report7 Nov 2025
- 2025Improving Romanian LLM Pretraining Data using Diversity and Quality Filtering2 Nov 2025
- 2025Data-Centric Lessons To Improve Speech-Language Pretraining22 Oct 2025
- 2025Toward Cybersecurity-Expert Small Language Models15 Oct 2025
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretraining12 Oct 2025
- 2025Beyond Repetition: Text Simplification and Curriculum Learning for Data-Constrained Pretraining29 Sep 2025
- 2025Induction Signatures Are Not Enough: A Matched-Compute Study of Load-Bearing Structure in In-Context Learning26 Sep 2025
- 2025Thinking Augmented Pre-training24 Sep 2025
- 2025Synthetic bootstrapped pretraining17 Sep 2025
- 2025BeyondWeb: Lessons from Scaling Synthetic Data for Trillion-scale Pretraining14 Aug 2025
- 2025Large-Scale Diverse Synthesis for Mid-Training2 Aug 2025
- 2025CoT-Self-Instruct: Building high-quality synthetic prompts for reasoning and non-reasoning tasks31 Jul 2025
- 2025BeyondWeb: Lessons from Scaling Synthetic Data for Trillion-scale Pretrainingcited by 21
- 2025Synthetic bootstrapped pretrainingcited by 6
- 2026Self-Improving Pretraining: using post-trained models to pretrain better modelscited by 6
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scalecited by 0
- 2026Continually self-improving AIcited by 0
- 2026Effective Synthetic Data Curation Requires Group-Level Signalscited by 0
- 2026Effective Synthetic Data Curation Requires Group-Level Signals30 Sep 2026
- 2026Continually self-improving AI18 Mar 2026
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scale29 Jan 2026
- 2026Self-Improving Pretraining: using post-trained models to pretrain better models29 Jan 2026
- 2025Synthetic bootstrapped pretraining17 Sep 2025
- 2025BeyondWeb: Lessons from Scaling Synthetic Data for Trillion-scale Pretraining14 Aug 2025
- 2026Data-efficient pre-training by scaling synthetic megadocscited by 7
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
- 2026How Can We Synthesize High-Quality Pretraining Data? A Systematic Study of Prompt Design, Generator Model, and Source Datacited by 6
- 2025Toward Cybersecurity-Expert Small Language Modelscited by 4
- 2025Motif 2 12.7B technical reportcited by 4
- 2026Scale Dependent Data Duplicationcited by 4
- 2025Large-Scale Diverse Synthesis for Mid-Trainingcited by 3
- 2025Data-Centric Lessons To Improve Speech-Language Pretrainingcited by 3
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
- 2026How Does "English (US)" Become the Default? Triangulating Structural Bias Towards American English Across the LLM Pipelinecited by 3
- 2025Induction Signatures Are Not Enough: A Matched-Compute Study of Load-Bearing Structure in In-Context Learningcited by 2
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scalingcited by 2
12 most cited of 22 All 22 (JSON)
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining28 Sep 2026
- 2026Towards Scalable Data Diversification for Language Model Pretraining via Leverage Score Sampling26 Sep 2026
- 2026Blind Men and the Elephant: Probing the Epistemic Myopia of LLMs under Long-Tail Divergent Knowledge28 Aug 2026
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Data27 Jul 2026
- 2026Alignment Plausibility: A New Standard for Assuring AI in Healthcare8 Jul 2026
- 2026Generating Pretraining Tokens from Organic Data for Data-Bound Scaling18 May 2026
- 2026How Can We Synthesize High-Quality Pretraining Data? A Systematic Study of Prompt Design, Generator Model, and Source Data15 Apr 2026
- 2026WRAP++: Web discoveRy Amplified Pretraining8 Apr 2026
- 2026How Does "English (US)" Become the Default? Triangulating Structural Bias Towards American English Across the LLM Pipeline5 Apr 2026
- 2026Synthetic Rewriting as a Quality Multiplier: Evidence from Portuguese Continued Pretraining25 Mar 2026
- 2026Data-efficient pre-training by scaling synthetic megadocs19 Mar 2026
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curation15 Mar 2026
12 newest of 22 All 22 (JSON)