Craw4LLM: Efficient Web Crawling for LLM Pretraining

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yu, Shi, Liu, Zhiyuan, Xiong, Chenyan
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913906254938112
author Yu, Shi
Liu, Zhiyuan
Xiong, Chenyan
author_facet Yu, Shi
Liu, Zhiyuan
Xiong, Chenyan
contents 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 Craw4LLM, 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 Craw4LLM in obtaining high-quality pretraining data. With just 21% URLs crawled, LLMs pretrained on Craw4LLM 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/Craw4LLM.
format Preprint
id arxiv_https___arxiv_org_abs_2502_13347
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Craw4LLM: Efficient Web Crawling for LLM Pretraining
Yu, Shi
Liu, Zhiyuan
Xiong, Chenyan
Computation and Language
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 Craw4LLM, 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 Craw4LLM in obtaining high-quality pretraining data. With just 21% URLs crawled, LLMs pretrained on Craw4LLM 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/Craw4LLM.
title Craw4LLM: Efficient Web Crawling for LLM Pretraining
topic Computation and Language
url https://arxiv.org/abs/2502.13347