# GPT-2 (2019)

> A language model trained only on web text that summarizes, translates and answers questions without being trained to.

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

## Key facts

- Title: Language Models are Unsupervised Multitask Learners
- Authors: Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever
- Venue: OpenAI technical report 2019
- Category: LLMs
- Paper: https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf

## Why it matters

The scores were poor, but every task improved steadily with model size and none had been trained for. That trend was the case for GPT-3. OpenAI also held back the full model for nine months over fears of misuse, which started the debate about how to release language models.

## The idea

Collect 40 GB of web pages that Reddit users had linked to (WebText) and train a Transformer decoder of up to 1.5 billion parameters to predict the next word. To get a task done, write the input the way that task appears on the web, such as an article followed by "TL;DR:", and let the model continue.

## The result

With no training on any benchmark, it set records on 7 of 8 language-modeling datasets, including a perplexity of 17.5 on WikiText-103. Tasks were weak: ROUGE-L 26.6 on CNN/Daily Mail, barely above picking three random sentences, 5 BLEU on WMT-14 English→French and 4.1% on Natural Questions.

## The data

- [WikiText-103 (2016)](https://mralbu.github.io/ai-datasets/d/wikitext.md): 103 million words from 28,475 good and featured Wikipedia articles, kept whole.
- [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.
- [Natural Questions (2019)](https://mralbu.github.io/ai-datasets/d/natural-questions.md): Real Google search questions, each answered by an annotator with a paragraph and a short span from Wikipedia.

## Builds on

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

## Led to

- [GPT-3 (2020)](https://mralbu.github.io/ai-datasets/p/gpt-3.md)

## Part of

- [Scaling language models](https://mralbu.github.io/ai-datasets/t/llm-scaling.md) (step 2 of 5)
