PaperPretrain, then fine-tune

T5 (2019): a text to text Transformer and the C4 dataset

Event date

On 23 October 2019 Colin Raffel and eight co-authors posted Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. It compared pretraining choices systematically and scaled the best of them to 11 billion parameters. It is on the timeline for the text to text framing and for the C4 dataset.

Milestone 9 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Largest T5 model, parameters, per Google Research
11 billionresearch.google
C4 size, English text
about 750 GBar5iv.labs.arxiv.org
TriviaQA exact match, closed book, 11B model, reported by Google
50.1%research.google

What the paper proposed

By 2019 there were many ways to pretrain and adapt a language model, and results were hard to compare. The authors proposed one framework in which every task, from translation to classification, takes text as input and returns text as output, and used it to compare objectives, architectures, datasets and transfer methods.

The paper was submitted to arXiv on 23 October 2019. The team released the code, the pretrained models and a new dataset, the Colossal Clean Crawled Corpus, known as C4. The abstract says the study covered dozens of language understanding tasks and reported best published results on summarisation, question answering and text classification.

Sources: arxiv.org

How it worked

T5 is an encoder and decoder Transformer. A short prefix names the task, so translate English to German followed by a sentence yields the German text, and a classification task yields a label written out as a word, such as entailment for a pair of sentences from the MNLI set. This lets one model, one loss and one set of settings cover many tasks.

C4 is built from one month of Common Crawl, April 2019, cleaned and filtered to about 750 GB of English text. The baseline model has about 220 million parameters, and the largest version has 11 billion.

Sources: arxiv.org, ar5iv.labs.arxiv.org

What it showed and what came next

The study found that pretraining helps substantially, especially on tasks with little labelled data, that denoising objectives beat plain left to right language modelling, and that the encoder and decoder layout performed best of those tested. Filtering the web crawl also improved results compared with unfiltered text.

Google's later blog post reported that the 11 billion parameter model reached best published results on GLUE, SuperGLUE, SQuAD and CNN/Daily Mail, with a near human SuperGLUE score. It also answered TriviaQA questions exactly right 50.1 per cent of the time without being shown any source text. These are Google's reports. In the paper's baseline setup, pretraining lifted the SuperGLUE validation average from 53.04 to 71.36 and the SQuAD exact match from 50.31 to 80.88.

The text to text idea carried into later instruction following models, where a task is simply written as a prompt. C4 became a widely used training corpus, and T5 itself is still used as a base for summarisation and translation. GPT-3 in 2020 took a different route, a decoder only model with prompting instead of fine-tuning.

Sources: ar5iv.labs.arxiv.org, research.google

Why it mattered

  • It gave a controlled comparison of pretraining choices, which many later projects used as a guide.
  • Its text to text format anticipated the way later models are prompted with plain language.
  • It released C4, a large cleaned web corpus, as an open resource.
  • It showed gains from scaling to 11 billion parameters shortly before the scaling era began.

Questions

What does T5 stand for?
Text-to-Text Transfer Transformer. Every task is posed as taking text in and producing text out.
What is C4?
The Colossal Clean Crawled Corpus, a cleaned version of one month of Common Crawl of about 750 GB, released with the T5 paper.
How big is T5?
The baseline has about 220 million parameters and the largest released model has 11 billion.

About this page

Part of our LLM history timeline. The event happened on 23 October 2019; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Raffel et al., T5 (arXiv)
  2. Raffel et al., T5 (ar5iv HTML version of the paper)
  3. Google Research blog, Exploring Transfer Learning with T5

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.