ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining
Not on the map. Why?
Abstract (arXiv)
LLM pretraining corpora are normally cleaned by a stack of hand-written heuristics. A heuristic scraper extracts the main content from HTML, and dozens of rule-based filters then clean it, so corpus quality is capped by the coarseness and accuracy of the rules. In this work, we propose ReScraper, a unified language model of only 0.6B parameters that replaces this entire stack. To train ReScraper, we carefully curate supervised data from the outputs of three teacher models, so it learns to first extract the main content from raw data and then choose among four operations: keeping the page as extracted, editing out noisy lines and spans, deleting it entirely, or rewriting it when it is poorly written but informative. Based on the same crawled data pool, pretraining 400M, 1.4B, and 2.8B models on our curated data improves the DCLM Core score by a relative 3.8--4.7% over the strongest baseline at each scale, including the costly multi-agent curation. Our analyses show that each operation plays a distinct and complementary role, and that extracting and cleaning in one model outperforms a cascade of separate models. ReScraper also concentrates its operations on the pages that need them, raising the quality of poor pages the most while keeping the corpus diverse. These results demonstrate the feasibility and effectiveness of AI4AI for pretraining data curation, where a small learned model takes over an entire stage of the pipeline from hand-written heuristics. We open-source our code at https://github.com/cxcscmu/ReScraper
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 39 references that are in the map. First posted on arXiv 28 Sep 2026.
Builds on
32 of 39 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2025Qwen3 Technical Reportcited by 8,820
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2016Bag of Tricks for Efficient Text Classificationcited by 876
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2019CCNet: Extracting High Quality Monolingual Datasets from Web Crawl Datacited by 548
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2023Scaling Data-Constrained Language Modelscited by 403
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
20 more
- 2023Data Selection for Language Models via Importance Resamplingcited by 329
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 195
- 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
- 2024MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Modelscited by 100
- 2024How to Train Data-Efficient LLMscited by 93
- 2024Perplexed by Perplexity: Perplexity-Based Data Pruning With Small Reference Modelscited by 84
- 2024Programming Every Example: Lifting Pre-training Data Quality Like Experts at Scalecited by 37
- 2025Recycling the Web: A Method to Enhance Pre-training Data Quality and Quantity for Language Modelscited by 31
- 2025DataMan: Data Manager for Pre-training Large Language Modelscited by 17
- 2025RefineX: Learning to Refine Pre-training Data at Scale from Expert-Guided Programscited by 17
- 2025Dripper: Token-Efficient Main HTML Extraction with a Lightweight LMcited by 8
- 2025RePro: Training Language Models to Faithfully Recycle the Web for Pretrainingcited by 6
- 2024Cleaner Pretraining Corpus Curation with Neural Web Scrapingcited by 5
- 2025AICC: Parse HTML Finer, Make Models Better -- A 7.3T AI-Ready Corpus Built by a Model-Based HTML Parsercited by 4
- 2026Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretrainingcited by 4
- 2026Data Darwinism Part II: DataEvolve -- AI can Autonomously Evolve Pretraining Data Curationcited by 3
- 2026UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editingcited by 1
- 2026DataOrchestra: Learning to Orchestrate Per-Example Curation of Pretraining Datacited by 1
Built on by
Not cited yet.