{
  "id": 785,
  "kind": "paper",
  "title": "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.",
  "body": "",
  "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.",
  "url": "https://arxiv.org/abs/2609.34287",
  "links": [],
  "authors": [
    "Zichun Yu",
    "Jiarui Yan",
    "Shlok Sanghvi",
    "Nihar Atri",
    "Chenyan Xiong"
  ],
  "tags": [
    "data-curation",
    "pretraining",
    "web-scraping",
    "html-extraction",
    "ai4ai",
    "dclm"
  ],
  "topics": "data curation, pretraining, web scraping",
  "venue": "arXiv",
  "publisher": "",
  "source": "arxiv",
  "language": "en",
  "access": "public",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-09-29T00:00:00.000Z",
  "verified_at": "2026-09-29T00:00:00.000Z",
  "attrs": {
    "hf": {
      "kind": "model",
      "name": "ReScraper",
      "namespace": "cx-cmu"
    }
  },
  "enrichment": {
    "s2": {
      "paper_id": "1a17db567d1ef0d0b8e9d5cb763b66f1e0ff5bdb",
      "published": "2026-09-28",
      "fetched_at": "2026-10-03T14:57:49.476Z",
      "citation_count": 0,
      "reference_count": 39,
      "influential_citation_count": 0
    },
    "arxiv": {
      "id": "2609.34287",
      "title": "ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining",
      "authors": [
        "Zichun Yu",
        "Jiarui Yan",
        "Shlok Sanghvi",
        "Nihar Atri",
        "Chenyan Xiong"
      ],
      "updated": "2026-09-28",
      "abstract": "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",
      "published": "2026-09-28",
      "categories": [
        "cs.CL",
        "cs.AI",
        "cs.LG"
      ],
      "fetched_at": "2026-10-03T14:57:49.476Z"
    }
  },
  "enriched_at": "2026-10-03T14:57:49.511Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "866",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/785",
  "markdown": "https://papers.projxon.ai/entries/785.md",
  "api": "https://papers.projxon.ai/api/entries/785",
  "relations": [
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 670,
        "kind": "paper",
        "title": "AI can Autonomously Evolve Pretraining Data Curation",
        "summary": "GAIR/SII/FDU/SJTU (cite Mi et al.; arXiv 2603.14420; Data Darwinism Part II). DataEvolve: observer identifies issues, designer writes a cleaning prompt, cleaner executes on samples, judge scores 1-10 with diagnostics; experience pool + strategy pool carry knowledge across 30 generations per category. Applied to 8 Nemotron-CC academic STEM categories (672B tokens) to produce Darwin-CC (504B, ~25% token drop from targeted cleaning not rewrite). 3B Qwen2.5 trained 500B tokens: Darwin-CC 44.13 avg on 18 benches vs raw 40.17, DCLM 42.42, FineWeb-Edu 36.52, Ultra-FineWeb 36.29; MMLU +18.64, MedQA +13.48 vs raw. Evolved strategies converge on L4-style cleaning (noise/format + domain preservation) not Wikipedia/QA rewrite. Ablation: best vs suboptimal strategy +2.93 avg. Fitness is sample scoring, not full training; limited to 8 academic categories.",
        "url": "https://arxiv.org/abs/2603.14420",
        "authors": [
          "Tiantian Mi",
          "Dongming Shan",
          "Zhen Huang",
          "Yiwei Qin",
          "Muhang Xie",
          "Yuxuan Qiao",
          "Yixiu Liu",
          "Chenyang Zhou",
          "Pengfei Liu"
        ],
        "tags": [
          "dataevolve",
          "darwin-cc",
          "data-darwinism",
          "pretraining",
          "nemotron-cc",
          "gair",
          "curation"
        ],
        "venue": "arXiv / GAIR",
        "source": "arxiv",
        "license": "arXiv perpetual non-exclusive license 1.0",
        "published_year": 2026,
        "added_at": "2026-08-14T20:26:00.000Z",
        "has_dataset_profile": false,
        "license_class": "other",
        "langs": [
          "en"
        ],
        "modalities": [],
        "size_class": null,
        "citation_count": 3,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/670",
        "markdown": "https://papers.projxon.ai/entries/670.md",
        "api": "https://papers.projxon.ai/api/entries/670"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 524,
      "kind": "paper",
      "title": "Efficient Pre-Training with Token Superposition",
      "summary": "Token-Superposition Training (TST) averages embeddings of non-overlapping bags of s contiguous tokens and trains with multi-hot cross-entropy, then a recovery phase reverts to standard next-token CE. Drop-in: no change to parallelism, optimizer, tokenizer, data, or architecture. Evaluated at 270M/600M (SmolLM2-shaped Llama3, untied embeddings) and validated at 3B and a 10B A1B MoE on DCLM. Consistently beats baseline loss and downstream metrics; equal-loss wall-clock up to 2.5× faster at the 10B A1B scale. Project https://nousresearch.com/token-superposition.",
      "url": "https://arxiv.org/abs/2605.06546",
      "authors": [
        "Bowen Peng",
        "Théo Gigant",
        "Jeffrey Quesnelle"
      ],
      "tags": [
        "tst",
        "token-superposition",
        "pretraining",
        "multi-hot-ce",
        "dclm",
        "smollm",
        "nous-research",
        "moe"
      ],
      "venue": "arXiv / Nous Research",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/524",
      "markdown": "https://papers.projxon.ai/entries/524.md",
      "api": "https://papers.projxon.ai/api/entries/524"
    },
    {
      "id": 527,
      "kind": "paper",
      "title": "Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting",
      "summary": "Treats forgetting as local Hessian curvature along the fine-tuning direction. SAM, larger peak LR, and shorter WSD annealing each improve the learning–forgetting Pareto frontier even when they do not lower base pretraining loss. OLMo-60M / 192B tokens: SAM cuts StarCoder forgetting ~80% at matched FT loss; gap widens with token budget. Late-only SAM during WSD decay (~10% of steps) recovers much of full-SAM robustness. OLMo-2-1B mid-train 50B tokens: SAM vs OLMo recipe reduces forgetting 31% after MetaMath SFT and 40% after 4-bit NF4 quantization despite a slightly weaker base (42.9 vs 43.2 avg). Hessian analysis: SAM and large peak LR lower fine-tuning-directional sharpness. No official code on abs.",
      "url": "https://arxiv.org/abs/2605.02105",
      "authors": [
        "Ishaan Watts",
        "Catherine Li",
        "Sachin Goyal",
        "Jacob Mitchell Springer",
        "Aditi Raghunathan"
      ],
      "tags": [
        "sam",
        "catastrophic-forgetting",
        "sharpness",
        "pretraining",
        "quantization",
        "olmo",
        "dclm",
        "icml",
        "cmu"
      ],
      "venue": "arXiv / Carnegie Mellon University",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 10,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/527",
      "markdown": "https://papers.projxon.ai/entries/527.md",
      "api": "https://papers.projxon.ai/api/entries/527"
    },
    {
      "id": 1127,
      "kind": "paper",
      "title": "daVinci-LLM: Towards the Science of Pretraining",
      "summary": "Argues pretraining sets the capability ceiling and is under-studied due to industry secrecy vs academic compute limits. Releases daVinci-LLM under a fully-open paradigm (pipelines, training process, exploration). Uses Data Darwinism L0–L9 taxonomy for data processing; trains a 3B model from scratch on 8T tokens with a two-stage adaptive curriculum shifting from foundational to reasoning-intensive data. Linked Hub release SII-GAIR-NLP/davinci-llm-data (gated) covers L3–L5 subsets; code at GAIR-NLP/daVinci-LLM.",
      "url": "https://arxiv.org/abs/2603.27164",
      "authors": [
        "Yiwei Qin",
        "Yixiu Liu",
        "Tiantian Mi",
        "Muhang Xie",
        "Zhen Huang",
        "Weiye Si",
        "Pengrui Lu",
        "Siyuan Feng",
        "Xia Wu",
        "Liming Liu",
        "Ye Luo",
        "Jinlong Hou",
        "Qipeng Guo",
        "Yu Qiao",
        "Pengfei Liu"
      ],
      "tags": [
        "pretraining",
        "data-darwinism",
        "open-llm",
        "curriculum",
        "gair",
        "davinci-llm",
        "8t-tokens"
      ],
      "venue": "arXiv / Shanghai AI Lab / GAIR-NLP / SII",
      "source": "arxiv",
      "license": "paper arXiv; dataset CC-BY-4.0 (Hub)",
      "published_year": 2026,
      "added_at": "2026-10-02T23:40:42.683Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1127",
      "markdown": "https://papers.projxon.ai/entries/1127.md",
      "api": "https://papers.projxon.ai/api/entries/1127"
    },
    {
      "id": 835,
      "kind": "paper",
      "title": "How Much Is an AI Token Worth? Scaling Laws for Wild AI-Generated Web Text",
      "summary": "Measures how 'wild' AI-generated web text affects LM pretraining: after FineWeb quality filtering, 27.5% of June 2026 web tokens are labeled AI-generated by Pangram, rising to 31.1% by August. Pretrains 800 language models varying the ratio of added AI tokens to human tokens and fits scaling laws to held-out losses on both human and AI-generated text. For data-starved models, adding AI tokens initially lowers loss on human text, but the benefit saturates and quickly reverses into harm; for models trained on high budgets of human text, AI tokens raise loss almost immediately while the same number of fresh human tokens keeps lowering it. Standard scaling laws (e.g. Hoffman/Chinchilla 2022) fail to predict this behavior, so the authors propose a new scaling law with separate benefit and harm terms that lets the value of an AI token change sign and reduces to Chinchilla in the absence of AI text; fit on smaller models it predicts the effect on models up to 3.6x larger with 41% lower error than the best existing law over all AI ratios. Recommendations: filter AI text when the target is human text, repeat human text before expanding the training dataset with AI-generated web text, and report validation loss on human and AI text separately; AI text remains valuable when the target is AI text. Releases WildAI, an 83B-token corpus with AI, topic, and format labels, plus all 800 models and code.",
      "url": "https://arxiv.org/abs/2609.40295",
      "authors": [
        "Jenna Russell",
        "Ben Glickenhaus",
        "Katherine Thai",
        "John Wieting",
        "Mohit Iyyer",
        "Max Spero",
        "Bradley Emi"
      ],
      "tags": [
        "ai-generated-text",
        "wild-ai-text",
        "pretraining",
        "scaling-laws",
        "chinchilla",
        "synthetic-data",
        "data-filtering",
        "wildai"
      ],
      "venue": "arXiv 2026-09-30 (cs.CL, cs.LG)",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": true,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/835",
      "markdown": "https://papers.projxon.ai/entries/835.md",
      "api": "https://papers.projxon.ai/api/entries/835"
    },
    {
      "id": 1055,
      "kind": "paper",
      "title": "Self-Play Pretraining with Zero Data",
      "summary": "arXiv:2609.30063 (2026-09-24; X announce @michaelyli_ 2026-09-25). Proof-of-concept: from random init, a generator RL-proposes programs for a Brainfuck-like universal TM; a learner does next-byte prediction on the emitted bytes only—no natural data in training. Generator reward is AdamW-preconditioned gradient alignment with the learner’s recent parameter trajectory (frontier curriculum); ablations beat difficulty-only and fixed universal-prior sampling. Compute-optimal frontiers show power-law zero-shot BPB gains on text, images, audio, melody, DNA, math, code; self-play also induces ICL (reverse/stack/assoc/sum/max/min) where fixed priors fail; generator discovers Fibonacci/geometric/etc. much earlier than a Solomonoff-style prior. Authors frame results via contingent vs universal predictive structure. Code: github.com/acowsik/self_play_pretraining. Small-scale PoC (models <~25M in discussion).",
      "url": "https://x.com/michaelyli_/status/2103534415033119001",
      "authors": [
        "Aditya Cowsik",
        "Kfir Dolev",
        "Michael Y. Li (equal)",
        "G. Bruno De Luca",
        "Nourya Cohen",
        "Noah D. Goodman",
        "Yoav Levine"
      ],
      "tags": [
        "self-play",
        "zero-data",
        "pretraining",
        "solomonoff",
        "utm",
        "brainfuck",
        "synthetic-data",
        "icl",
        "michaelyli",
        "cowsik",
        "dolev",
        "arxiv-2609.30063"
      ],
      "venue": "arXiv",
      "source": "x",
      "license": "unspecified on arXiv abs; code repo check separately",
      "published_year": 2026,
      "added_at": "2026-09-25T18:34:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1055",
      "markdown": "https://papers.projxon.ai/entries/1055.md",
      "api": "https://papers.projxon.ai/api/entries/1055"
    },
    {
      "id": 479,
      "kind": "paper",
      "title": "Beyond Random Sampling: Efficient Language Model Pretraining via Curriculum Learning",
      "summary": "First systematic curriculum-learning study for LLM pretraining: more than 200 models, up to 100B tokens, three strategies (vanilla sort, pacing, interleaved) times six difficulty metrics (compression ratio, fertility, Flesch, MTLD, n_tokens, perplexity) on CulturaX English. 0.5B LLaMA3.2-like, plus 1B/3B. CL reaches the random baseline 18-45 percent faster in early/mid training. Best warmup (CL then random) gains up to 3.5 percent (0.5B) and about 3.1 percent at 100B tokens. Strongest metrics: compression ratio, MTLD, Flesch; high-perplexity tails are often noisy. Orthogonal to data selection. English decoder-only only; static precomputed scores. No official code on the abs page.",
      "url": "https://arxiv.org/abs/2506.11300",
      "authors": [
        "Yang Zhang",
        "Amr Mohamed",
        "Hadi Abdine",
        "Guokan Shang",
        "Michalis Vazirgiannis"
      ],
      "tags": [
        "curriculum-learning",
        "pretraining",
        "data-ordering",
        "culturax",
        "mtld",
        "flesch",
        "mbzuai"
      ],
      "venue": "arXiv / Ecole Polytechnique / MBZUAI",
      "source": "arxiv",
      "license": "CC BY 4.0",
      "published_year": 2025,
      "added_at": "2026-08-14T16:54:04.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 30,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/479",
      "markdown": "https://papers.projxon.ai/entries/479.md",
      "api": "https://papers.projxon.ai/api/entries/479"
    }
  ]
}
