超越单一提取器:重新思考用于LLM预训练的HTML到文本提取
Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretraining
AI总结:
本文提出通过结合多种提取器提升HTML到文本提取的效率与效果,显著提高LLM预训练数据的token产出并改善下游任务性能。
摘要:
在构建网络级LLM预训练数据集时,第一个预处理步骤涉及从HTML中提取文本。尽管网络内容的多样性巨大,现有的开源数据集大多使用单一固定提取器处理所有网页。在本工作中,我们探讨这种做法是否导致了对互联网数据的覆盖和利用不充分。我们首先表明,尽管不同的提取器在标准语言理解任务上的模型性能可能相似,但经过固定过滤流程后存活的页面可能会有显著差异。这表明一种简单的干预:通过不同提取器的并集,我们可以在保持基准性能的同时,将DCLM-Baseline的token产出提高多达71%。我们进一步表明,对于结构化内容如表格和代码块,提取器的选择会显著影响下游任务性能,在WikiTQ上差异可达10个百分点(p.p.),在HumanEval上差异为3 p.p。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。