NLP Lineage

23 October 2019 · Language modelling

C4

C4: Colossal Clean Crawled Corpus

C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, et al. (9 authors)

Date
23 October 2019
What the date marks
Dataset
Kind
Dataset
Organisation
Google
Access
ODC-BY
Other dates
released with T5
Threads
In the guided tour
Chapter 4. Pretrain once, use everywhere
Learning phases
2. How LLMs are trained; 8. Training from scratch

A turning point: 4 later milestones descend directly from it, and its descendants reach 10 of the 10 threads. How levels are decided

Drafted with Claude from the paper on 15 October 2026; reviewed by Zeeshan Arif. Read from arxiv.org (arXiv version 4 (September 2023) of the paper published in the Journal of Machine Learning Research (2020)). C4 was introduced in the T5 paper. This summary covers the parts about C4, mainly sections 2.2 and 3.4.

What it changed

It gave researchers a large, cleaned, public dataset of English web text, about 750 GB, and measured how the choice of pretraining data affects results. C4 became a standard pretraining corpus and a model for how later web datasets were built.

The problem before it

Pretraining needs a lot of plain text. The web is the largest source. Common Crawl, a public web archive, adds about 20 TB of extracted text every month.

But most of that text is not natural language. It is menus, error messages, repeated boilerplate, code, placeholder text, and offensive content. Earlier pretraining datasets were often small, limited to one domain such as news or Wikipedia, or not public. New datasets were usually introduced as a side part of a new model, so they were rarely compared with each other.

The idea

The mechanism. Start from one month of Common Crawl (April 2019), and keep only text that looks like clean English prose. The paper lists simple rules, called heuristics:

The result is the Colossal Clean Crawled Corpus, C4. It was released in TensorFlow Datasets, together with the other variants the paper tests.

The test. The authors pretrained the same model on several datasets and compared the fine-tuned results: C4, C4 without the filters, news-like C4, WebText-like C4, Wikipedia, and Wikipedia with a books corpus. They also tested what happens when a smaller dataset is repeated many times during pretraining.

The notation. There are no equations. The paper’s baseline pretrains on 2^35 tokens, about 34 billion.

What it showed

Reported in the paper. It was published in the peer-reviewed Journal of Machine Learning Research in 2020. The scores are on standard benchmarks; higher is better.

The authors conclude that a large and varied dataset like C4 is the better choice for general language understanding.

Limits, and what came later

The limits come from the paper and from the rules themselves:

C4 was the pretraining data for T5. Later web corpora set out to improve on C4-style filtering, including The Pile, RefinedWeb and Dolma.

What to know first

How to read it

The T5 paper is 67 pages. For C4, read only these parts:

  1. The abstract.
  2. Section 2.2, about two pages. It describes how C4 was built.
  3. Section 3.4.1 with Table 8, which compares the datasets.
  4. Section 3.4.2 with Table 9, about repeating data.
  5. The “Data sets” paragraph in section 4.1 (“Takeaways”), the paper’s conclusion about C4.

Expect about 45 minutes for these parts (an estimate). The rest of the paper is the T5 study.

In brief, from the research data

Before it

Web-scale corpora were either proprietary or raw, unfiltered crawl.

The problem

Common Crawl is mostly boilerplate, menus and noise, and nobody had published a cleaned version.

What it introduced

A documented cleaning pipeline over Common Crawl, released openly at hundreds of gigabytes.

Why it matters

The first open, reusable web corpus, which made independent replication of large pretraining possible.

What modern models inherit

The public web corpus as shared infrastructure.

What came next

The Pile, RefinedWeb, Dolma and FineWeb all iterate on its filtering.

Before and after

The milestones it descends from, and the milestones that descend from it. Work developed alongside it is not counted. Weak links are left out unless you include them.

Before: where it came from

No documented ancestors are recorded for C4 without weak links.

No documented ancestors are recorded for C4 without weak links.

C4 has 21 recorded ancestors, including indirect ones, across 4 chapters, reaching back to Recurrent networks in 1990. Showing its direct parents and the 5 turning points among them.

C4 has 21 recorded ancestors, including indirect ones, across 4 chapters, reaching back to Recurrent networks in 1990. Showing all of them.

  1. 2019C4This milestone.
  2. 2019WebTextC4 was influenced by this (indirect influence)Chapter 4. Pretrain once, use everywhere
  3. 2018GPT-1WebText was influenced by thisChapter 4. Pretrain once, use everywhere
  4. 2018ELMoGPT-1 was influenced by this (indirect influence)Chapter 4. Pretrain once, use everywhere
  5. 2018ULMFiTGPT-1 was influenced by this (indirect influence)Chapter 4. Pretrain once, use everywhere
  6. 2017CoVeELMo was influenced by thisChapter 3. Attention, then only attention
  7. 2017Transformer Turning pointGPT-1 built directly on thisChapter 3. Attention, then only attention
  8. 2017ConvS2STransformer was influenced by this (indirect influence)Chapter 3. Attention, then only attention
  9. 2016Layer normTransformer built directly on thisChapter 3. Attention, then only attention
  10. 2015Residual connectionsTransformer was influenced by thisChapter 3. Attention, then only attention
  11. 2015LM pretraining Turning pointGPT-1 was influenced by thisChapter 2. Words become vectors
  12. 2015Luong attentionTransformer was influenced by thisChapter 3. Attention, then only attention
  13. 2014AdamTransformer was influenced by thisChapter 2. Words become vectors
  14. 2014GloVeELMo built directly on thisChapter 2. Words become vectors
  15. 2014Seq2seq Turning pointTransformer built directly on thisChapter 2. Words become vectors
  16. 2014Attention Turning pointTransformer built directly on thisChapter 3. Attention, then only attention
  17. 2014GRU / encoder-decoderAttention built directly on thisChapter 2. Words become vectors
  18. 2013word2vecELMo was influenced by thisChapter 2. Words become vectors
  19. 2011NLP from scratchELMo was influenced by thisChapter 1. Language as probability
  20. 2003Neural LMNLP from scratch was influenced by this
    word2vec was influenced by this
    Chapter 1. Language as probability
  21. 1997LSTM Turning pointELMo built directly on thisChapter 1. Language as probability
  22. 1990Recurrent networksLSTM was influenced by thisChapter 1. Language as probability

After: what it led to

C4 has 76 documented descendants across 11 chapters, reaching forward to Claude Opus 5.5 in 2026. Showing its direct descendants and the 5 turning points among them.

C4 has 76 documented descendants across 11 chapters, reaching forward to Claude Opus 5.5 in 2026. Showing all of them.

C4 has 89 recorded descendants, including indirect ones, across 11 chapters, reaching forward to Claude Opus 5.5 in 2026. Showing its direct descendants and the 5 turning points among them.

C4 has 89 recorded descendants, including indirect ones, across 11 chapters, reaching forward to Claude Opus 5.5 in 2026. Showing all of them.

  1. 2019C4This milestone.
  2. 2019T5 Turning pointwas influenced by C4Chapter 4. Pretrain once, use everywhere
  3. 2020The Pilewas influenced by C4Chapter 5. Scale becomes a science
  4. 2021Switch Transformerbuilt directly on T5Chapter 5. Scale becomes a science
  5. 2021FLANwas influenced by T5Chapter 6. Teaching models what people want
  6. 2021T0built directly on T5Chapter 6. Teaching models what people want
  7. 2022InstructGPT Turning pointwas influenced by FLANChapter 6. Teaching models what people want
  8. 2022OPT-175Bbuilt directly on The PileChapter 8. The weights get out
  9. 2022BLOOMwas influenced by The PileChapter 8. The weights get out
  10. 2022LLM.int8()was influenced by OPT-175BChapter 9. Making it run anywhere
  11. 2022Flan-T5 / Flan-PaLMbuilt directly on T5Chapter 6. Teaching models what people want
  12. 2022GPTQwas influenced by LLM.int8()Chapter 9. Making it run anywhere
  13. 2022ChatGPTbuilt directly on InstructGPTChapter 7. The assistant goes public
  14. 2022GPT-3.5 Turning pointbuilt directly on InstructGPTChapter 7. The assistant goes public
  15. 2022Self-Instructwas influenced by FLANChapter 6. Teaching models what people want
  16. 2023Alpacabuilt directly on Self-InstructChapter 8. The weights get out
  17. 2023GPT-4 Turning pointbuilt directly on InstructGPTChapter 7. The assistant goes public
  18. 2023AutoGPTwas influenced by GPT-4Chapter 13. Models that act
  19. 2023Pythiabuilt directly on The PileChapter 8. The weights get out
  20. 2023LLaVAbuilt directly on GPT-4Chapter 11. Seeing and hearing
  21. 2023QLoRAbuilt directly on LLM.int8()Chapter 9. Making it run anywhere
  22. 2023Falconbuilt directly on RefinedWebChapter 8. The weights get out
  23. 2023DPObuilt directly on InstructGPTChapter 6. Teaching models what people want
  24. 2023RefinedWebwas influenced by C4Chapter 8. The weights get out
  25. 2023phi-1was influenced by GPT-3.5Chapter 8. The weights get out
  26. 2023Llama 2 Turning pointwas influenced by InstructGPTChapter 8. The weights get out
  27. 2023GPT-4Vbuilt directly on GPT-4Chapter 11. Seeing and hearing
  28. 2023SWE-benchwas influenced by GPT-4Chapter 13. Models that act
  29. 2023Mixtral 8x7Bbuilt directly on Switch TransformerChapter 8. The weights get out
  30. 2024DeepSeek LLMwas influenced by Llama 2Chapter 8. The weights get out
  31. 2024DeepSeekMoEwas influenced by Switch TransformerChapter 8. The weights get out
  32. 2024Dolmawas influenced by C4Chapter 8. The weights get out
  33. 2024OLMobuilt directly on DolmaChapter 8. The weights get out
  34. 2024GRPOwas influenced by InstructGPTChapter 12. Thinking longer
  35. 2024Gemmawas influenced by Llama 2Chapter 8. The weights get out
  36. 2024Claude 3was influenced by GPT-4Chapter 14. Where the threads meet now
  37. 2024Chatbot Arenawas influenced by ChatGPTChapter 14. Where the threads meet now
  38. 2024Devinwas influenced by GPT-4Chapter 13. Models that act
  39. 2024Llama 3built directly on Llama 2Chapter 8. The weights get out
  40. 2024Phi-3built directly on phi-1Chapter 8. The weights get out
  41. 2024DeepSeek-V2 / MLAbuilt directly on DeepSeekMoEChapter 9. Making it run anywhere
  42. 2024SWE-agentbuilt directly on SWE-benchChapter 13. Models that act
  43. 2024GPT-4obuilt directly on GPT-4Chapter 11. Seeing and hearing
  44. 2024Claude 3.5 Sonnetbuilt directly on Claude 3Chapter 14. Where the threads meet now
  45. 2024FineWebbuilt directly on RefinedWeb
    was influenced by The Pile
    Chapter 8. The weights get out
  46. 2024Llama 3.1 405Bbuilt directly on DPOChapter 8. The weights get out
  47. 2024Computer usewas influenced by GPT-4VChapter 13. Models that act
  48. 2024DeepSeek-V3built directly on DeepSeekMoEChapter 8. The weights get out
  49. 2025DeepSeek-R1built directly on GRPO
    built directly on DeepSeek-V3
    Chapter 12. Thinking longer
  50. 2025Claude Codewas influenced by Computer useChapter 13. Models that act
  51. 2025Claude 3.7built directly on Claude 3.5 SonnetChapter 12. Thinking longer
  52. 2025GPT-4.5built directly on GPT-4oChapter 14. Where the threads meet now
  53. 2025Llama 4was influenced by Switch TransformerChapter 8. The weights get out
  54. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  55. 2025Claude 4succeeded Claude 3
    was influenced by SWE-bench
    Chapter 13. Models that act
  56. 2025Kimi K2was influenced by DeepSeekMoEChapter 8. The weights get out
  57. 2025GPT-5succeeded GPT-4oChapter 14. Where the threads meet now
  58. 2025DeepSeek-V3.2was influenced by DeepSeek-V2 / MLA
    built directly on DeepSeek-V3
    Chapter 10. Reading more than you remember
  59. 2025Claude Sonnet 4.5built directly on Claude 4Chapter 13. Models that act
  60. 2025GPT-5.1built directly on GPT-5Chapter 14. Where the threads meet now
  61. 2025Claude Opus 4.5was influenced by SWE-benchChapter 13. Models that act
  62. 2025GPT-5.2built directly on GPT-5.1Chapter 14. Where the threads meet now
  63. 2026Claude Opus 4.6built directly on Claude Opus 4.5Chapter 14. Where the threads meet now
  64. 2026GPT-5.3-Codexbuilt directly on GPT-5.2Chapter 13. Models that act
  65. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  66. 2026GPT-5.4built directly on GPT-5.3-CodexChapter 14. Where the threads meet now
  67. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  68. 2026Claude Opus 4.7built directly on Claude Opus 4.6Chapter 14. Where the threads meet now
  69. 2026GPT-5.5built directly on GPT-5.4Chapter 14. Where the threads meet now
  70. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  71. 2026Claude Opus 4.8built directly on Claude Opus 4.7Chapter 14. Where the threads meet now
  72. 2026Claude Sonnet 5succeeded Claude Opus 4.8Chapter 14. Where the threads meet now
  73. 2026GPT-5.6 Solbuilt directly on GPT-5.5Chapter 14. Where the threads meet now
  74. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  75. 2026Claude Opus 5succeeded Claude Opus 4.8Chapter 14. Where the threads meet now
  76. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out
  77. 2026Claude Opus 5.5built directly on Claude Opus 5Chapter 14. Where the threads meet now
  1. 2019C4This milestone.
  2. 2019T5 Turning pointwas influenced by C4Chapter 4. Pretrain once, use everywhere
  3. 2020The Pilewas influenced by C4Chapter 5. Scale becomes a science
  4. 2021Switch Transformerbuilt directly on T5Chapter 5. Scale becomes a science
  5. 2021FLANwas influenced by T5Chapter 6. Teaching models what people want
  6. 2021T0built directly on T5Chapter 6. Teaching models what people want
  7. 2022InstructGPT Turning pointwas influenced by FLANChapter 6. Teaching models what people want
  8. 2022OPT-175Bbuilt directly on The PileChapter 8. The weights get out
  9. 2022BLOOMwas influenced by The PileChapter 8. The weights get out
  10. 2022LLM.int8()was influenced by OPT-175BChapter 9. Making it run anywhere
  11. 2022Flan-T5 / Flan-PaLMbuilt directly on T5Chapter 6. Teaching models what people want
  12. 2022GPTQwas influenced by LLM.int8()Chapter 9. Making it run anywhere
  13. 2022ChatGPTbuilt directly on InstructGPTChapter 7. The assistant goes public
  14. 2022GPT-3.5 Turning pointbuilt directly on InstructGPTChapter 7. The assistant goes public
  15. 2022Self-Instructwas influenced by FLANChapter 6. Teaching models what people want
  16. 2023llama.cppwas influenced by GPTQ (indirect influence)Chapter 9. Making it run anywhere
  17. 2023Alpacabuilt directly on Self-InstructChapter 8. The weights get out
  18. 2023GPT-4 Turning pointbuilt directly on InstructGPTChapter 7. The assistant goes public
  19. 2023AutoGPTwas influenced by GPT-4Chapter 13. Models that act
  20. 2023Pythiabuilt directly on The PileChapter 8. The weights get out
  21. 2023LLaVAbuilt directly on GPT-4Chapter 11. Seeing and hearing
  22. 2023QLoRAbuilt directly on LLM.int8()Chapter 9. Making it run anywhere
  23. 2023Falconbuilt directly on RefinedWebChapter 8. The weights get out
  24. 2023DPObuilt directly on InstructGPTChapter 6. Teaching models what people want
  25. 2023RefinedWebwas influenced by C4Chapter 8. The weights get out
  26. 2023phi-1was influenced by Self-Instruct (indirect influence)Chapter 8. The weights get out
  27. 2023Llama 2 Turning pointwas influenced by InstructGPTChapter 8. The weights get out
  28. 2023GPT-4Vbuilt directly on GPT-4Chapter 11. Seeing and hearing
  29. 2023SWE-benchwas influenced by GPT-4Chapter 13. Models that act
  30. 2023Mixtral 8x7Bbuilt directly on Switch TransformerChapter 8. The weights get out
  31. 2024DeepSeek LLMwas influenced by Llama 2Chapter 8. The weights get out
  32. 2024DeepSeekMoEwas influenced by Switch TransformerChapter 8. The weights get out
  33. 2024Dolmawas influenced by C4Chapter 8. The weights get out
  34. 2024OLMobuilt directly on DolmaChapter 8. The weights get out
  35. 2024GRPOwas influenced by InstructGPTChapter 12. Thinking longer
  36. 2024Gemmawas influenced by Llama 2Chapter 8. The weights get out
  37. 2024Claude 3was influenced by GPT-4Chapter 14. Where the threads meet now
  38. 2024Chatbot Arenawas influenced by ChatGPTChapter 14. Where the threads meet now
  39. 2024Devinwas influenced by GPT-4Chapter 13. Models that act
  40. 2024Llama 3built directly on Llama 2Chapter 8. The weights get out
  41. 2024Phi-3built directly on phi-1Chapter 8. The weights get out
  42. 2024DeepSeek-V2 / MLAbuilt directly on DeepSeekMoEChapter 9. Making it run anywhere
  43. 2024SWE-agentbuilt directly on SWE-benchChapter 13. Models that act
  44. 2024GPT-4obuilt directly on GPT-4Chapter 11. Seeing and hearing
  45. 2024Claude 3.5 Sonnetbuilt directly on Claude 3Chapter 14. Where the threads meet now
  46. 2024FineWebbuilt directly on RefinedWeb
    was influenced by The Pile
    Chapter 8. The weights get out
  47. 2024Llama 3.1 405Bbuilt directly on DPOChapter 8. The weights get out
  48. 2024Computer usewas influenced by GPT-4VChapter 13. Models that act
  49. 2024Gemini 2.0was influenced by Computer use (indirect influence)Chapter 14. Where the threads meet now
  50. 2024DeepSeek-V3built directly on DeepSeekMoEChapter 8. The weights get out
  51. 2025DeepSeek-R1built directly on GRPO
    built directly on DeepSeek-V3
    Chapter 12. Thinking longer
  52. 2025Claude Codewas influenced by Computer use
    was influenced by SWE-agent (indirect influence)
    Chapter 13. Models that act
  53. 2025Claude 3.7built directly on Claude 3.5 SonnetChapter 12. Thinking longer
  54. 2025GPT-4.5built directly on GPT-4oChapter 14. Where the threads meet now
  55. 2025Gemini 2.5built directly on Gemini 2.0Chapter 12. Thinking longer
  56. 2025Llama 4was influenced by Switch TransformerChapter 8. The weights get out
  57. 2025Qwen3was influenced by DeepSeek-R1Chapter 8. The weights get out
  58. 2025Claude 4succeeded Claude 3
    was influenced by SWE-bench
    Chapter 13. Models that act
  59. 2025Kimi K2was influenced by DeepSeekMoEChapter 8. The weights get out
  60. 2025IMO goldbuilt directly on Gemini 2.5Chapter 12. Thinking longer
  61. 2025gpt-osswas influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  62. 2025GPT-5succeeded GPT-4oChapter 14. Where the threads meet now
  63. 2025GLM-4.5was influenced by DeepSeek-R1 (indirect influence)Chapter 8. The weights get out
  64. 2025DeepSeek-V3.2was influenced by DeepSeek-V2 / MLA
    built directly on DeepSeek-V3
    Chapter 10. Reading more than you remember
  65. 2025Claude Sonnet 4.5built directly on Claude 4Chapter 13. Models that act
  66. 2025IMO-ProofBenchwas influenced by IMO goldChapter 12. Thinking longer
  67. 2025GPT-5.1built directly on GPT-5Chapter 14. Where the threads meet now
  68. 2025Gemini 3built directly on Gemini 2.5Chapter 14. Where the threads meet now
  69. 2025Claude Opus 4.5was influenced by SWE-benchChapter 13. Models that act
  70. 2025GPT-5.2built directly on GPT-5.1Chapter 14. Where the threads meet now
  71. 2026GPT-5.3-Codexwas influenced by Computer use (indirect influence)Chapter 13. Models that act
  72. 2026Claude Opus 4.6built directly on Claude Opus 4.5Chapter 14. Where the threads meet now
  73. 2026Gemini 3 Deep Thinkbuilt directly on Gemini 3
    was influenced by IMO gold
    Chapter 12. Thinking longer
  74. 2026Qwen3.5built directly on Qwen3Chapter 8. The weights get out
  75. 2026Gemini 3.1built directly on Gemini 3Chapter 14. Where the threads meet now
  76. 2026GPT-5.4built directly on GPT-5.3-CodexChapter 14. Where the threads meet now
  77. 2026Project Glasswingwas influenced by Computer use (indirect influence)Chapter 14. Where the threads meet now
  78. 2026Muse Sparksucceeded Llama 4Chapter 8. The weights get out
  79. 2026Claude Opus 4.7built directly on Claude Opus 4.6Chapter 14. Where the threads meet now
  80. 2026GPT-5.5built directly on GPT-5.4Chapter 14. Where the threads meet now
  81. 2026DeepSeek-V4was influenced by DeepSeek-V3Chapter 8. The weights get out
  82. 2026Claude Opus 4.8built directly on Claude Opus 4.7Chapter 14. Where the threads meet now
  83. 2026Claude Sonnet 5succeeded Claude Opus 4.8Chapter 14. Where the threads meet now
  84. 2026Fable 5 / Mythos 5was influenced by Project GlasswingChapter 14. Where the threads meet now
  85. 2026GLM-5.2built directly on GLM-4.5Chapter 8. The weights get out
  86. 2026GPT-5.6 Solbuilt directly on GPT-5.5Chapter 14. Where the threads meet now
  87. 2026Kimi K3built directly on Kimi K2Chapter 8. The weights get out
  88. 2026Claude Opus 5succeeded Claude Opus 4.8Chapter 14. Where the threads meet now
  89. 2026Qwen3.8built directly on Qwen3.5Chapter 8. The weights get out
  90. 2026Claude Opus 5.5built directly on Claude Opus 5Chapter 14. Where the threads meet now

Direct links and their sources

Where it came from

Influenced by

What it led to

Influenced