Common Corpus: The Largest Collection of Ethical Data for LLM Pre-Training

Pierre-Carl Langlais, Pavel Chizhov, Catherine Arnett, Carlos Rosas Hinostroza, Mattia Nee, Eliot Krzystof Jones, Irène Girard, David Mach, Anastasia Stasenko, Ivan P. Yamshchikov

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, and OCRonos): 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:

  1. Open Government: Financial and legal documents (e.g., SEC filings, EU legislative texts).
  2. Open Culture: Public domain monographs and newspapers spanning centuries.
  3. Open Science: Permissively licensed academic papers (primarily via OpenAlex and arXiv).
  4. Open Code: Permissive source code from The Stack v1 and v2.
  5. Open Web: Rendered HTML dumps of Wikipedia, Wikisource, StackExchange, and Creative Commons YouTube transcripts.
  6. Open Semantic: A flattened, natural-language adaptation of the entire Wikidata knowledge graph across 300 languages.
Figure 1: Proportional treemap of Common Corpus collections and their most popular languages.

The dataset's multilingual distribution includes substantial representations of French, German, Spanish, and Latin, alongside low-resource languages.

Figure 2: A schematic world map of languages in Common Corpus with a log-scaled distribution of document counts. For each language, we chose a city that is located in the region where this language is most specific to. To avoid outliers, we show only languages with 10,000+ documents.

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.

Figure 3: Temporal and semantic overview of the Common Corpus collections.

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

Abstract

Large Language Models (LLMs) are pre-trained on large amounts of data from different sources and domains. Such datasets often contain trillions of tokens, including large portions of copyrighted or proprietary content, which raises questions about the legal use of such models. This underscores the need for truly open pre-training data that complies with data security regulations. In this paper, we introduce Common Corpus, the largest open dataset for LLM pre-training. The data assembled in Common Corpus are either uncopyrighted or under open licenses, totaling about two trillion tokens. The dataset contains a wide variety of languages, ranging from the high-resource European languages to some low-resource languages rarely represented in pre-training datasets. In addition, it includes a large amount of code data. The diversity of data sources in terms of covered domains and time periods opens up the paths for both research and entrepreneurial needs across diverse areas of knowledge. In this paper, we present the detailed provenance of data assembling and the details of dataset filtering and curation. We train two small language models on Common Corpus and find that they perform comparably to other models of their size, indicating that our dataset is suitable for multilingual pretraining. Common Corpus represents a key contribution to the ecosystem for open science research on Large Language Models.
BibTeX
@inproceedings{langlais2026common,
  author = {Pierre-Carl Langlais and Pavel Chizhov and Catherine Arnett and Carlos Rosas Hinostroza and Mattia Nee and Eliot Krzystof Jones and Irène Girard and David Mach and Anastasia Stasenko and Ivan P. Yamshchikov},
  title = {{Common Corpus: The Largest Collection of Ethical Data for LLM Pre-Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=0wSlFpMsGb},
}
Figure