Craw4LLM: Efficient Web Crawling for LLM Pretraining

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 highquality 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.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.712
Citations
3
Primary Topic
Web Data Mining and Analysis
Type
article
Field-Weighted Citation Impact
9.74
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Craw4LLM: Efficient Web Crawling for LLM Pretraining

Yu Shi, Zhiyuan Liu, Chenyan Xiong
3 citations
Web Data Mining and Analysis
9.74
article

Craw4LLM: Efficient Web Crawling for LLM Pretraining

Yu Shi, Zhiyuan Liu, Chenyan Xiong
article en
3 citations

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 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 highquality 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.

Openalex Percentile: Top 2%
Web Data Mining and Analysis
9.74
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.