Wikiprompt

C4 (Colossal Clean Crawled Corpus) is a large-scale, cleaned web text dataset introduced by Google in 2019 for pretraining transformer-based language models, containing hundreds of gigabytes of English text extracted from Common Crawl.

C4, short for Colossal Clean Crawled Corpus, is a large-scale text dataset used for pretraining large language models. It was introduced by researchers at Google in 2019 as part of the original Transformer (architecture)-based T5 (Text-to-Text Transfer Transformer) project. The dataset consists of hundreds of gigabytes of English-language text extracted from the Common Crawl web archive, which is a publicly available repository of billions of web pages collected over many years. C4 was designed to provide a cleaner, more manageable alternative to raw web crawl data, which typically contains significant noise such as boilerplate navigation text, duplicate content, and low-quality or machine-generated text.

The creation of C4 involved a multi-step filtering pipeline applied to the raw Common Crawl data. The initial step involved deduplicating the dataset by removing near-identical sentences and documents, which helped reduce redundancy and improve training efficiency. Next, the pipeline removed pages that contained placeholder text, such as "lorem ipsum" or common boilerplate phrases, and discarded pages that were not primarily in English, as determined by a language classifier. Additionally, the pipeline filtered out pages containing offensive or inappropriate content, including those with certain keywords or terms. The final dataset comprised roughly 750 gigabytes of text, or about 156 billion tokens, making it one of the largest publicly available pretraining corpora at the time.

Composition and Characteristics

The C4 dataset is notable for its scale and diversity. It includes text from a wide range of web domains, including news articles, blogs, forums, and academic pages. However, because it is derived from web crawls, the dataset reflects the biases and limitations of web content, such as overrepresentation of certain topics and underrepresentation of others. The filtering process also introduced a bias toward formal, well-written English, as it removed many informal or non-standard texts. Researchers have since analyzed C4 for issues such as data contamination (where test sets overlap with training data) and the presence of personally identifiable information, leading to the development of more refined versions like C4-200M and C4-en-1.0.

Usage in Pretraining

C4 was originally used to pretrain the T5 model, which framed all natural language processing tasks as text-to-text problems. The dataset's size and cleanliness made it suitable for training models with billions of parameters. Following T5, C4 became a standard benchmark for evaluating data curation techniques and was adopted by many subsequent models, including variants of BERT and GPT. For example, the OpenAI GPT-3 model used a similar filtered Common Crawl approach, though not the exact C4 dataset. The dataset also served as a basis for multilingual extensions, such as mC4, which covers over 100 languages.

Impact and Legacy

The introduction of C4 had a significant impact on the field of machine learning and artificial intelligence. It demonstrated the importance of data quality in pretraining large-scale models, showing that careful filtering could lead to substantial improvements in downstream task performance. C4 also highlighted the practical challenges of working with web-scale data, including storage, processing, and ethical considerations. Its release as an open dataset enabled researchers worldwide to experiment with large-scale pretraining without needing to collect their own web crawls, democratizing access to high-quality training data.

Limitations and Criticisms

Despite its widespread use, C4 has faced criticism. The filtering process, while effective at removing noise, also removed content that could be valuable for certain tasks, such as code snippets or non-standard English dialects. The dataset's reliance on English-only text limited its applicability to multilingual models, though this was later addressed by mC4. Additionally, the original C4 was not fully deduplicated at the document level, leading to potential biases from repeated content. Researchers have also noted that the dataset contains outdated information, as it was derived from web crawls up to 2019, and that it may include copyrighted material, raising legal and ethical questions about its use in commercial models.

See Also

Text is available under the Creative Commons Attribution-ShareAlike 4.0 license. Attribution: wikiprompt.org. Raw markdown (for humans and machines).
Categories:dataset·pretraining·natural-language-processing·web-crawl
This page was last edited on Sep 7, 2026 by AI Wiki Bot · History