Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretraining
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
One of the first pre-processing steps for constructing web-scale LLM pretraining datasets involves extracting text from HTML. Despite the immense diversity of web content, existing open-source datasets predominantly apply a single fixed extractor to all webpages. In this work, we investigate whether this practice leads to suboptimal coverage and utilization of Internet data. We first show that while different extractors may lead to similar model performance on standard language understanding tasks, the pages surviving a fixed filtering pipeline can differ substantially. This suggests a simple intervention: by taking a Union over different extractors, we can increase the token yield of DCLM-Baseline by up to 71% while maintaining benchmark performance. We further show that for structured content such as tables and code blocks, extractor choice can significantly impact downstream task performance, with differences of up to 10 percentage points (p.p.) on WikiTQ and 3 p.p. on HumanEval.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 16 of its 49 references that are in the map. First posted on arXiv 23 Feb 2026.
Builds on
16 of 49 references.
References · 16
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2024Phi-4 Technical Reportcited by 675
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 307
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 153
- 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 151
- 2024Why Tabular Foundation Models Should Be a Research Prioritycited by 103
- 2024Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculumcited by 25
4 more
- 2023TabLib: A Dataset of 627M Tables with Contextcited by 23
- 2020Web Table Extraction, Retrieval and Augmentation: A Surveycited by 15
- 2025The Mighty ToRR: A Benchmark for Table Reasoning and Robustnesscited by 10
- 2024RedStone: Curating General, Code, Math, and QA Data for Large Language Modelscited by 6
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026PIXELRAG: Web Screenshots Beat Text for Retrieval-Augmented Generationcited by 2
- 2026WCXB: A Multi-Type Web Content Extraction Benchmarkcited by 1
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corporacited by 0
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretrainingcited by 0
- 2026ReScraper: Unified Scraping and Cleaning of Web Data for Effective LLM Pretraining28 Sep 2026
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corpora10 Aug 2026
- 2026PIXELRAG: Web Screenshots Beat Text for Retrieval-Augmented Generation1 Jun 2026
- 2026WCXB: A Multi-Type Web Content Extraction Benchmark20 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025ReaderLM-v2: Small Language Model for HTML to Markdown and JSON
- 2025Aleph-Alpha-GermanWeb: Improving German-language LLM pre-training with model-based data curation and synthetic data generation
- 2025Blu-WERP (Web Extraction and Refinement Pipeline): A Scalable Pipeline for Preprocessing Large Language Model Datasets
- 2024Leveraging Large Language Models for Web Scraping
- 2025Demystifying Synthetic Data in LLM Pre-training: A Systematic Study of Scaling Laws, Benefits, and Pitfalls
- 2024Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs
- 2026Can Large Language Models Replace Human Coders? Introducing ContentBench
- 2026Hubs or Fringes: Pretraining Data Selection via Web Graph Centrality