2025-02-20 · 进阶 · 机器学习 · 数据科学

Craw4LLM: Efficient Web Crawling for LLM Pretraining

CRAW4LLM提出了一种基于LLM预训练偏好的高效网页抓取方法,通过优先抓取对预训练有高影响力的网页,显著提高了数据质量和抓取效率。

更新于 2025-02-20。作者:Shi Yu、Zhiyuan Liu、Chenyan Xiong。

中文摘要

网页爬取是大型语言模型(LLM)预训练数据的主要来源,但由于数据质量低,大多数爬取的网页在预训练过程中被丢弃。本文提出了Crawl4LLM,这是一种高效的网页爬取方法,它基于LLM预训练的偏好来探索网页图。具体来说,它利用网页在LLM预训练中的影响力作为爬虫调度器的优先级分数,取代了基于标准图连通性的优先级。我们在一个包含来自商业搜索引擎索引的9亿个网页的网页图上的实验,展示了Crawl4LLM在获取高质量预训练数据方面的效率。仅通过爬取21%的URL,基于Crawl4LLM数据进行预训练的LLM达到了之前爬取相同的下游性能,显著减少了爬取浪费并减轻了网站负担。我们的代码在https://github.com/cxcscmu/Crawl4LLM上公开。

英文摘要

Web crawl is a main source of large language models' (LLMs) pretraining data, but the majority of crawled web pages are discarded in pretraining due to low data quality. This paper presents Crawl4LLM, an efficient web crawling method that explores the web graph based on the preference of LLM pretraining. Specifically, it leverages the influence of a webpage in LLM pretraining as the priority score of the web crawler's scheduler, replacing the standard graph connectivity based priority. Our experiments on a web graph containing 900 million webpages from a commercial search engine's index demonstrate the efficiency of Crawl4LLM in obtaining high-quality pretraining data. With just 21% URLs crawled, LLMs pretrained on Crawl4LLM data reach the same downstream performances of previous crawls, significantly reducing the crawling waste and alleviating the burdens on websites. Our code is publicly available at https://github.com/cxcscmu/Crawl4LLM.

解读

一句话总结

CRAW4LLM提出了一种基于LLM预训练偏好的高效网页抓取方法,通过优先抓取对预训练有高影响力的网页,显著提高了数据质量和抓取效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源