Home Knowledge Base LLM Pretraining Data Curation

LLM Pretraining Data Curation is the systematic process of collecting, filtering, deduplicating, and mixing text corpora to create the training dataset for large language models — with research consistently showing that data quality and mixture composition are as important as model architecture and scale, where a well-curated 1T token dataset can outperform a poorly curated 5T token dataset on downstream benchmarks.

Scale of Modern LLM Training Data

Data Sources

SourceExamplesContent Type
Web crawlCommon Crawl, CC-NetBroad internet text
Curated webOpenWebText, C4, ROOTSFiltered web
BooksBooks3, PG-19, BookCorpusLong-form narrative
CodeGitHub, Stack ExchangeSource code
AcademicArXiv, PubMed, S2ORCScientific papers
EncyclopediaWikipedia, WikidataFactual knowledge
ConversationsReddit, HN, Stack OverflowDialog, Q&A

Common Crawl Processing Pipeline

1. Language identification: Keep only target language(s). Tool: FastText LangDetect. 2. Quality filtering:

3. Deduplication:

4. PII removal: Remove phone numbers, emails, SSNs via regex.

Data Mixing and Proportions

Data Quality Models (DSIR, MATES)

Contamination and Benchmark Leakage

LLM pretraining data curation is the hidden engineering that separates excellent from mediocre language models — Llama 3's remarkable quality despite being a relatively standard architecture compared to its contemporaries is attributed largely to superior data curation using quality classifiers and balanced domain mixing, confirming that in the era of large language models, the dataset IS the model in many respects, and that investments in data quality compound through the entire training process into measurably better downstream capabilities.

llm pretraining datadata curation llmtraining data qualityweb crawl filteringcommon crawldata mixture

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.