# T5 (2019)

> Every language task written as text in, text out, and a careful study of which pretraining choices actually matter.

Page: https://mralbu.github.io/ai-datasets/p/t5

## Key facts

- Title: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- Authors: Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu
- Venue: JMLR 2020
- Category: Text
- Paper: https://www.alphaxiv.org/abs/1910.10683

## Why it matters

After BERT, new pretraining methods appeared monthly and were hard to compare. T5 tested them head to head under one setup, settled on span corruption as the objective, and released C4 and its models. The text-to-text framing became the way instruction-tuned models are trained, and C4 became a standard pretraining corpus.

## The idea

Cast every task, from translation to classification to question answering, as feeding the model a string with a task prefix ("summarize:", "translate English to German:") and training it to produce a string. With one encoder–decoder Transformer and one loss, compare pretraining objectives, architectures, data sets and fine-tuning strategies one at a time, then scale the best recipe up to 11 billion parameters on C4, a new cleaned crawl of the web.

## The result

The 11B model set records on GLUE (90.3), SuperGLUE (88.9, against a human baseline of 89.8), SQuAD and CNN/DailyMail summarization.

## The data

- [C4 (2019)](https://mralbu.github.io/ai-datasets/d/c4.md): The Colossal Clean Crawled Corpus: 365 million English web pages, filtered with simple rules.
- [GLUE (2018)](https://mralbu.github.io/ai-datasets/d/glue.md): Nine English language-understanding tasks rolled into one score.
- [SuperGLUE (2019)](https://mralbu.github.io/ai-datasets/d/superglue.md): GLUE's harder successor: eight tasks, from yes/no questions to pronoun resolution.
- [SQuAD (2016)](https://mralbu.github.io/ai-datasets/d/squad.md): 100k+ questions about Wikipedia paragraphs; the answer is a span of the text.
- [CNN/DailyMail (2015)](https://mralbu.github.io/ai-datasets/d/cnn-dailymail.md): 312,000 news articles paired with the bullet-point highlights their editors wrote.
- [WMT14 English–German (2014)](https://mralbu.github.io/ai-datasets/d/wmt14.md): 4.5M English–German sentence pairs: the benchmark in the Transformer paper.

## Builds on

- [Transformer (2017)](https://mralbu.github.io/ai-datasets/p/transformer.md)
- [BERT (2018)](https://mralbu.github.io/ai-datasets/p/bert.md)

## Led to

- [Chronos (2024)](https://mralbu.github.io/ai-datasets/p/chronos.md)

## Part of

- [Pretrain, then fine-tune](https://mralbu.github.io/ai-datasets/t/pretrain-then-finetune.md) (step 5 of 5)
