TL;DR
Common Corpus is a newly introduced, fully open pre-training dataset for Large Language Models (LLMs) containing roughly 2 trillion tokens of copyright-safe, permissively licensed, or public domain data. By proving that models trained on this data perform comparably to those trained on legally ambiguous web scrapes, the authors provide a viable, legally compliant path forward for open-science AI development.
What Problem Does This Paper Address?
Frontier LLMs are hungrier for data than ever, with recent models consuming tens of trillions of tokens during pre-training. To satisfy this appetite, developers routinely scrape massive swaths of the public internet. However, this practice has created a legal and ethical minefield. High-profile copyright lawsuits (such as The New York Times v. OpenAI) and sudden DMCA takedowns of popular research datasets (like Books3) have severely threatened the reproducibility of open-science AI.
Furthermore, existing open-license datasets are overwhelmingly English-centric, leaving a massive gap for high-quality, legally compliant, multilingual pre-training data. The authors introduce Common Corpus to resolve this tension, offering a massive, multi-domain dataset built entirely on clear, verifiable legal foundations.
Methods
Building a multi-trillion-token dataset from public domain and open-source materials is notoriously difficult; historical texts and government documents are often plagued by poor digitization and formatting issues. To tackle this, the authors developed the Bad Data Toolbox, a suite of custom curation and cleaning tools:
- Text Segmentation (
Segmentext): A fine-tuned DeBERTa-v2 token classification model designed to reconstruct editorial structures (titles, tables, bibliographies) from raw text, ignoring layout anomalies introduced during digitization. - OCR Error Detection & Correction (
OCRoscope,OCRerrcr, andOCRonos): A pipeline that flags token-level OCR mistakes and uses a specialized Llama-3-8B variant (OCRonos) to synthetically rewrite and clean heavily deteriorated text. - PII Removal: Customized implementation of Microsoft’s Presidio to replace sensitive personal information with realistic, fictitious placeholders to preserve the model's contextual understanding.
- Toxicity Filtering (
Celadon): A custom, highly efficient DeBERTa-v3-small classifier trained on 2 million synthetic samples to filter out historical biases and harmful language common in older public-domain texts.
To validate the dataset, the authors trained two baseline language models (PleIAs 350M and PleIAs 1.2B) using a custom Llama-style tokenizer.
Datasets
The paper introduces Common Corpus, totaling 1,998,647,168,282 tokens across 517 million documents. It is divided into six core collections:
- Open Government: Financial and legal documents (e.g., SEC filings, EU legislative texts).
- Open Culture: Public domain monographs and newspapers spanning centuries.
- Open Science: Permissively licensed academic papers (primarily via OpenAlex and arXiv).
- Open Code: Permissive source code from The Stack v1 and v2.
- Open Web: Rendered HTML dumps of Wikipedia, Wikisource, StackExchange, and Creative Commons YouTube transcripts.
- Open Semantic: A flattened, natural-language adaptation of the entire Wikidata knowledge graph across 300 languages.
The dataset's multilingual distribution includes substantial representations of French, German, Spanish, and Latin, alongside low-resource languages.
Key Insights and Ideas
- The Open Data Paradox: The authors note that massive volumes of open and public-domain data exist but are functionally "invisible" to standard web-crawling pipelines. Standard scrapes favor HTML pages, completely missing massive public PDF repositories (like government archives and scientific repositories) that Common Corpus explicitly targets.
- The Necessity of Historical Filtering: Public domain data often means old data (18th and 19th-century texts). Because cultural norms have shifted dramatically, these texts frequently contain language that violates modern ethical standards, making specialized historical toxicity filtering (
Celadon) mandatory. - Graph Flattening for Language Alignment: By translating structured Wikidata RDF triples directly into simple natural language sequences (e.g., transforming a triple into "Franz Liszt country of citizenship Kingdom of Hungary"), the authors created a highly effective parallel corpus for multilingual alignment across 300 languages.
Key Results
The authors evaluated their PleIAs models against prominent open models (like Gemma 3, XGLM, BLOOM, and OLMo) across multilingual benchmarks including MultiBLiMP, XStoryCloze, and XCOPA.
- PleIAs 350M demonstrated outstanding performance on MultiBLiMP, frequently outperforming much larger models in the 500M+ range.
- PleIAs 1.2B stably outperformed OLMo 1B (which was also trained on a public dataset) and delivered highly competitive results compared to models trained on closed or restricted web data.
Semantic mapping confirms that Common Corpus occupies a vastly different data footprint than traditional web crawls like C4 or FineWeb, introducing entirely new, high-quality distributions to the open AI ecosystem.
Limitations and Future Work
While Common Corpus is a major milestone, the authors acknowledge several limitations:
- Scale Constraints: At 2 trillion tokens, the dataset is currently only large enough to train smaller, compact language models. Frontier models require tens of trillions of tokens.
- Lack of Instruction Data: The corpus is strictly designed for base pre-training; it does not contain data formatted for instruction-tuning or specialized downstream tasks.
- The OCR Challenge: Despite advanced cleaning pipelines, residual OCR errors from historical texts still pose a challenge to tokenization and model comprehension, representing an ongoing area for optimization.
Summary updated