TensorX
返回文献探索

Paper · arXiv 2502.13347

Craw4LLM: Efficient Web Crawling for LLM Pretraining

Shi Yu, Zhiyuan Liu, Chenyan Xiong

30 upvotesFebruary 19, 2025arXiv 预印本
AI 摘要

Crawl4LLM is an efficient web crawling method that prioritizes webpages based on their influence in LLM pretraining, significantly reducing the amount of low-quality data and improving downstream performance.

LLMslarge language modelsweb crawlingweb graphLLM pretrainingpriority scoreweb crawler's schedulergraph connectivitycrawling wastedownstream performance

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号