arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.16397cs.CL
收藏

AICC:解析HTML更精细,使模型更优秀——通过基于模型的HTML解析器构建的7.3T AI-ready语料库

AICC: Parse HTML Finer, Make Models Better -- A 7.3T AI-Ready Corpus Built by a Model-Based HTML Parser

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Ren Ma, Jiantao Qiu, Chao Xu, Pei Chu, Kaiwen Liu, Pengli Ren, Yuan Qu, Jiahui Peng, Linfeng Hou, Mengjie Liu, Lindong Lu, Wenchang Ning, Jia Yu, Rui Min, Jin S… 展开作者

Ren Ma, Jiantao Qiu, Chao Xu, Pei Chu, Kaiwen Liu, Pengli Ren, Yuan Qu, Jiahui Peng, Linfeng Hou, Mengjie Liu, Lindong Lu, Wenchang Ning, Jia Yu, Rui Min, Jin Shi, Haojiong Chen, Peng Zhang, Wenjian Zhang, Qian Jiang, Zengjie Hu, Guoqiang Yang, Zhenxiang Li, Fukai Shang, Runyuan Ma, Chenlin Su, Zhongying Tu, Wentao Zhang, Dahua Lin, Conghui He

AI总结:

AICC通过基于模型的HTML解析器构建,显著提升了网络数据提取质量,从而在多个基准测试中优于现有方法,证明提取质量对模型性能的重要性。

摘要:

尽管网络数据质量对大语言模型至关重要,但大多数整理工作集中在过滤和去重上,将HTML到文本提取视为一个固定的预处理步骤。现有网络语料库依赖于基于启发式的提取器,如Trafilatura,这些提取器难以保持文档结构,并且经常破坏结构元素,如公式、代码和表格。我们假设提高提取质量可以与激进的过滤策略一样对下游性能产生影响。我们介绍了MinerU-HTML,一种新的提取流程,将内容提取重新表述为一个序列标注问题,通过一个具有0.6B参数的语言模型解决。与文本密度启发式方法不同,MinerU-HTML利用语义理解,并采用两阶段的格式化流程,在转换为Markdown之前明确分类语义元素。关键的是,其基于模型的方法本质上是可扩展的,而启发式方法提供有限的改进路径。在MainWebBench上,我们的7,887个注释网页基准测试中,MinerU-HTML实现了81.8%的ROUGE-N F1,相比Trafilatura的63.6%,在结构元素保存方面表现出色(代码块为90.9%,公式为94.0%)。使用MinerU-HTML,我们构建了AICC(AI-ready Common Crawl),一个从两个Common Crawl快照中提取的7.3万亿token多语言语料库。在受控的预训练实验中,当AICC和Trafilatura提取的TfCC经历相同的过滤时,训练AICC(62B tokens)的模型在13个基准测试中平均准确率为50.8%,比TfCC高出1.08个百分点,提供了直接证据,证明提取质量对模型能力有显著影响。AICC还在关键基准测试中超过了RefinedWeb和FineWeb。我们公开发布了MainWebBench、MinerU-HTML和AICC,证明HTML提取是网络语料库构建中的关键、往往被低估的组成部分。

英文摘要:

While web data quality is crucial for large language models, most curation efforts focus on filtering and deduplication,treating HTML-to-text extraction as a fixed pre-processing step. Existing web corpora rely on heuristic-based extractors like Trafilatura, which struggle to preserve document structure and frequently corrupt structured elements such as formulas, codes, and tables. We hypothesize that improving extraction quality can be as impactful as aggressive filtering strategies for downstream performance. We introduce MinerU-HTML, a novel extraction pipeline that reformulates content extraction as a sequence labeling problem solved by a 0.6B-parameter language model. Unlike text-density heuristics, MinerU-HTML leverages semantic understanding and employs a two-stage formatting pipeline that explicitly categorizes semantic elements before converting to Markdown. Crucially, its model-based approach is inherently scalable, whereas heuristic methods offer limited improvement pathways. On MainWebBench, our benchmark of 7,887 annotated web pages, MinerU-HTML achieves 81.8\% ROUGE-N F1 compared to Trafilatura's 63.6\%, with exceptional structured element preservation (90.9\% for code blocks, 94.0\% for formulas). Using MinerU-HTML, we construct AICC (AI-ready Common Crawl), a 7.3-trillion token multilingual corpus from two Common Crawl snapshots. In controlled pretraining experiments where AICC and Trafilatura-extracted TfCC undergo identical filtering, models trained on AICC (62B tokens) achieve 50.8\% average accuracy across 13 benchmarks, outperforming TfCC by 1.08pp-providing direct evidence that extraction quality significantly impacts model capabilities. AICC also surpasses RefinedWeb and FineWeb on key benchmarks. We publicly release MainWebBench, MinerU-HTML, and AICC, demonstrating that HTML extraction is a critical, often underestimated component of web corpus construction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑