← All entries
Paper2026#785

ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining

Summary

Proposes ReScraper, a unified 0.6B-parameter language model that replaces the entire heuristic pretraining-corpus cleaning stack (HTML scraper + dozens of rule-based filters). ReScraper first extracts the main content from raw pages, then chooses among four operations: keep as extracted, edit out noisy lines/spans, delete entirely, or rewrite when poorly written but informative. Trained on supervised data curated from three teacher models. On the same crawled data pool, pretraining 400M, 1.4B, and 2.8B models on the curated data improves DCLM Core score by a relative 3.8-4.7% over the strongest baseline at each scale, including costly multi-agent curation. Each operation plays a distinct, complementary role; one-model extraction+cleaning beats a cascade of separate models; ReScraper concentrates edits on the pages that need them, raising poor-page quality while keeping corpus diversity.

Venue
arXiv
Source
arxiv
Access
public
Language
en
Hugging Face
cx-cmu/ReScraper
Added
Sep 29, 2026
Verified
Sep 29, 2026
Research status
done
Found via
#random-papers

From the source

Published
Sep 28, 2026
arXiv categories
cs.CL, cs.AI, cs.LG
Citations
0
References
39

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from 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

Tags

data-curationpretrainingweb-scrapinghtml-extractionai4aidclm

Topics

data curation, pretraining, web scraping

Research notes

  • Discovery: shared by Zichun Yu (@Zichun_Yu, PhD student @ CMU LTI with Chenyan Xiong) in an X thread on 2026-09-29: https://x.com/Zichun_Yu/status/2105024721716752608
  • Blog: https://cxcscmu.github.io/ReScraper
  • Model: https://huggingface.co/cx-cmu/ReScraper
  • Data: https://huggingface.co/datasets/cx-cmu/ReScraper-Data (logged separately in the Datasets sheet)
  • Code: https://github.com/cxcscmu/ReScraper
  • Submitted to arXiv 2026-09-28.
  • Positioned as AI4AI for pretraining data curation: a small learned model taking over an entire pipeline stage from hand-written heuristics.

Cites, within this collection 1

Similar entries