# Pretrain, then fine-tune

> From learning translation end to end to one pretrained model that treats every task as text in, text out.

Page: https://mralbu.github.io/ai-datasets/t/pretrain-then-finetune
Timeline: https://mralbu.github.io/ai-datasets/timeline?track=pretrain-then-finetune
Categories: Text

Neural NLP started with translation: one network reading a sentence, another writing it out. Attention removed the fixed-size bottleneck between them, the Transformer removed recurrence, and BERT showed one model pretrained on unlabeled text could be fine-tuned for almost any task. T5 then compared the recipes head to head and cast every task as text-to-text.

## Sequence

- **2014 · Dataset:** [WMT14 English–German](https://mralbu.github.io/ai-datasets/d/wmt14.md) — 4.5M English–German sentence pairs: the benchmark in the Transformer paper.
- **2014 · Step 1:** [Seq2seq](https://mralbu.github.io/ai-datasets/p/seq2seq.md) — Showed one network could read a sentence and write its translation, squeezing the source into a single fixed-length vector.
- **2014 · Step 2:** [Attention for translation](https://mralbu.github.io/ai-datasets/p/bahdanau-attention.md) — That single vector became a bottleneck on long sentences; letting the decoder attend over every source word removed it.
- **2015 · Dataset:** [CNN/DailyMail](https://mralbu.github.io/ai-datasets/d/cnn-dailymail.md) — 312,000 news articles paired with the bullet-point highlights their editors wrote.
- **2016 · Dataset:** [SQuAD](https://mralbu.github.io/ai-datasets/d/squad.md) — 100k+ questions about Wikipedia paragraphs; the answer is a span of the text.
- **2017 · Step 3:** [Transformer](https://mralbu.github.io/ai-datasets/p/transformer.md) — Recurrence still forced word-by-word computation; attention alone, with no recurrence, trained in parallel and translated better.
- **2018 · Dataset:** [GLUE](https://mralbu.github.io/ai-datasets/d/glue.md) — Nine English language-understanding tasks rolled into one score.
- **2018 · Step 4:** [BERT](https://mralbu.github.io/ai-datasets/p/bert.md) — Each task still trained its own model; pretraining one bidirectional encoder on unlabeled text, then fine-tuning, set records on GLUE and SQuAD.
- **2019 · Dataset:** [C4](https://mralbu.github.io/ai-datasets/d/c4.md) — The Colossal Clean Crawled Corpus: 365 million English web pages, filtered with simple rules.
- **2019 · Dataset:** [SuperGLUE](https://mralbu.github.io/ai-datasets/d/superglue.md) — GLUE's harder successor: eight tasks, from yes/no questions to pronoun resolution.
- **2019 · Step 5:** [T5](https://mralbu.github.io/ai-datasets/p/t5.md) — Pretraining recipes multiplied and were hard to compare; casting every task as text-to-text on the new C4 corpus tested them head to head.
