Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretraining

Jeffrey Li, Josh Gardner, Doug Kang, Fangping Shi, Karanjeet Singh +8 more
2/23/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026beyond,
  title  = {Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretraining},
  author = {Jeffrey Li and Josh Gardner and Doug Kang and Fangping Shi and Karanjeet Singh and Chun-Liang Li and Herumb Shandilya and David Hall and Oncel Tuzel and Percy Liang and Ludwig Schmidt and Hadi Pour Ansari and Fartash Faghri},
  year   = {2026},
  eprint = {2602.19548},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.19548v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.19548.svg)](https://codeofpaper.com/paper/2602.19548)

Discussion