Language Models are Unsupervised Multitask Learners
GPT-2 showed that scaling a decoder-only Transformer on diverse web text can produce useful zero-shot task behavior without task-specific fine-tuning.
Key takeaway
GPT-2 scales GPT-1 to as many as 1.5 billion parameters and trains on WebText, a curated corpus of about 40GB of internet text. By predicting the next token only, it learns to perform several NLP tasks in a zero-shot setting when given suitable textual context. Model capacity strongly affects transfer, though many capabilities remain limited.
Updated on Nov 23, 2026
01
Abstract
From language modeling to multitask behavior
GPT-2 asks whether a sufficiently large language model, trained only to predict the next token on diverse text, can learn behaviors that resemble many NLP tasks. Rather than fine-tuning separately for each benchmark, the authors provide task descriptions and examples as text in the model context and measure zero-shot performance.
02
Background
From GPT-1 toward modern LLMs
GPT-2 directly extends GPT-1’s autoregressive pretraining approach by increasing model and data scale and evaluating zero-shot behavior. It sits alongside BERT’s bidirectional masked-language-model approach and precedes GPT-3’s much larger in-context learning study.
03
Methodology
Unsupervised multitask learning
The central hypothesis is that many NLP tasks can be expressed as predicting continuations of text. A passage followed by a question, a translation prompt, or a summarization prefix becomes a sequence whose continuation can be generated by the same language model. The model is not explicitly trained on these task labels; it learns patterns from naturally occurring documents.
Next-token prediction and zero-shot prompting
The training objective is the standard autoregressive language-model likelihood: predict each next token conditioned on all preceding tokens. At evaluation time, task-specific examples are serialized into a prompt. The model generates an answer or continuation directly, without supervised fine-tuning on that task’s training split.
04
Architecture
Decoder-only Transformer at four scales
GPT-2 keeps the GPT causal Transformer design and increases capacity. The paper evaluates four model sizes, culminating in a 1.5-billion-parameter model with 48 layers, 1,600-dimensional hidden states and 25 attention heads. The model uses causal self-attention, so each token can attend only to earlier tokens.
05
Training
Training choices and data hygiene
The authors use a cleaned and deduplicated web corpus, byte-level BPE tokenization and standard Transformer training practices. The paper emphasizes data diversity and model capacity; it does not present a separate regularization innovation as the primary contribution.
WebText and training scale
WebText was created from outbound links on Reddit that received at least 3 karma. The initial crawl covered roughly 45 million links; after filtering and cleaning, the dataset contained slightly over 8 million documents and about 40GB of text. The paper does not specify an exact accelerator count or training duration, so those should not be inferred.
Reproducing GPT-2-style training
A reproduction needs a byte-level BPE tokenizer, a decoder-only Transformer with causal attention, and a next-token training loop over a large text corpus. For zero-shot evaluation, build prompt templates that serialize the task context and measure generated continuations without fine-tuning on task labels.
WebText train and test perplexity fall together
Section 4 asks whether GPT-2's results come from memorizing its training data. A memorizing model would keep lowering training perplexity while held-out perplexity stalls. Instead, perplexity on WebText's training split and on its held-out test split stays close and both fall as the model grows from 117M to 1.5B parameters. The authors conclude that even GPT-2 is still underfitting WebText in many ways, a strong hint that larger models on the same kind of data would keep improving. The same section measures n-gram overlap between WebText and benchmark test sets and finds it gives only a small, consistent benefit to the reported results.
Figure 4 from Radford et al. (2019), supplied by the user. OpenAI technical report.
06
Results
Zero-shot benchmark results
Evidence highlights
- 0155 F1 on CoQA in the reported zero-shot setup
- 02State of the art on 7 of 8 language-modeling datasets
- 03Performance generally improved with model capacity
- 04Summarization and some other tasks remained weak by quantitative measures
How to read the zero-shot evidence
The paper evaluates multiple task families without task-specific fine-tuning and studies how performance changes with model size. This is different from GPT-1’s pretrain-then-fine-tune setup. The results are evidence of transfer from language modeling, but the paper itself notes that many task capabilities are still weak and that benchmark scores do not imply practical readiness.
Evidence highlights
- 01Separate zero-shot results from any supervised baseline
- 02Compare all model sizes to inspect scaling behavior
- 03Check task-specific metrics rather than relying on fluent samples
- 04Account for benchmark contamination and prompt sensitivity
- 05Treat qualitative generations as illustrations, not proof of reliability
Zero-shot task performance grows with model size
Each panel evaluates the four WebText-trained models (117M to 1,542M parameters) with no fine-tuning: the task is induced only by how the prompt is written, and dashed lines are reference systems. Reading comprehension (CoQA): given a document, the conversation history and a final "A:", the largest model reaches 55 F1, matching or beating 3 of 4 baselines without using the 127,000+ training examples they were trained on. Translation (WMT-14 French to English): conditioned on example sentence pairs, GPT-2 reaches 11.5 BLEU, above several unsupervised baselines but far below the best unsupervised MT systems. Summarization (CNN/Daily Mail): appending "TL;DR:" after an article and sampling 100 tokens gives summaries that only barely beat picking 3 random sentences. Question answering (Natural Questions): 4.1% exact match, far below open-domain QA systems (30 to 50%). The common thread is the slope: every task improves as capacity grows, the paper's core argument that language models start to learn tasks as a by-product of scale.
Figure 1 from Radford et al. (2019), supplied by the user. OpenAI technical report.
Zero-shot language modeling across eight benchmarks
GPT-2 is evaluated on standard language-modeling benchmarks without training on any of them. Lower is better for perplexity (PPL), bits per byte (BPB) and bits per character (BPC); higher is better for accuracy (ACC); bold marks a new state of the art. The 1.5B model sets new results on 7 of 8 datasets, with the largest gains on small datasets (Penn Treebank, WikiText-2) and on those that test long-range dependencies: LAMBADA perplexity falls from 99.8 to 8.63 and accuracy rises to 63.24%. Even the 117M model beats prior work on LAMBADA, CBT and WikiText-2. The exception is One Billion Word (42.16 vs 21.8), the largest dataset, whose sentence-level shuffling removes the long-range structure GPT-2 exploits. Because WebText is raw, un-tokenized text, the authors applied invertible de-tokenizers to the benchmarks, worth 2.5 to 5 perplexity points.
Table 3 from Radford et al. (2019), supplied by the user. OpenAI technical report.
Children's Book Test accuracy by model size
The Children's Book Test (Section 3.2) removes a word from a passage and asks the model to choose it from 10 candidates; GPT-2 scores each candidate by the probability of the sentence with that word filled in. Accuracy rises steadily with model size, reaching 93.3% on common nouns and 89.1% on named entities, above the previous state of the art (Bajgar et al., grey) and close to human performance (green). One test-set book, Kipling's The Jungle Book, appears in WebText, so the results are reported on the validation set, which has no significant overlap.
Figure 2 from Radford et al. (2019), supplied by the user. OpenAI technical report.
Winograd Schema Challenge accuracy by model size
The Winograd Schema Challenge (Section 3.4) tests commonsense reasoning: which noun does an ambiguous pronoun refer to? GPT-2 substitutes each candidate for the pronoun and compares probabilities, either over the whole sentence (full scoring) or only over the words after the substitution (partial scoring). Partial scoring works better, and the 1.5B model reaches 70.70%, improving the state of the art by 7%. Note the jump between 345M and 762M: below that size neither method beats the previous result. The dataset has only 273 examples, so small differences should be read with caution.
Figure 3 from Radford et al. (2019), supplied by the user. OpenAI technical report.
GPT-2's 30 most confident Natural Questions answers
For factual questions (Section 3.8), GPT-2 is primed with example question-answer pairs and must produce the answer from what is stored in its weights; no documents are provided. Overall it answers 4.1% of Natural Questions exactly, 5.3 times more than the smallest model, suggesting capacity is a major factor in how much knowledge a model holds. This table lists its 30 highest-probability answers. Most are correct, and the probability GPT-2 assigns is well calibrated: on the 1% of questions it is most confident about, accuracy is 63.1%. The errors are instructive, such as "Montana" for the state on Montana's western boundary: plausible associations rather than retrieved facts. Overall performance still lags open-domain QA systems that combine retrieval with extraction (30 to 50%).
Table 5 from Radford et al. (2019), supplied by the user. OpenAI technical report.
07
Limitations
What GPT-2 could not yet do
The authors explicitly caution that zero-shot performance was far from usable on many practical tasks. Summarization was often only rudimentary, and the model could produce fluent but inaccurate or incoherent text. The dataset’s web origins also carry quality, bias and representational risks. Zero-shot benchmark gains should not be mistaken for robust general intelligence.
08
Conclusion
What GPT-2 changed
GPT-2 made the case that scaling an autoregressive language model and training on varied web text can produce broad task behavior without supervised task-specific training. It popularized zero-shot evaluation of generative models and reinforced the idea that task instructions and examples can be represented in the prompt itself.
What to remember
GPT-2 established an influential scaling-and-prompting direction: train a causal language model on diverse text, then express tasks as text at inference time. Its importance lies in the direction it opened, not in having solved every task. The paper’s own limitations are central to interpreting its claims.
Frequently asked questions
09
References
Source trail
Primary papers, implementation pages, and external source records used to ground this explainer.
Language Models are Unsupervised Multitask Learners
Radford et al., OpenAI Technical Report, 2019.
Original GPT-2 report on WebText pretraining and zero-shot transfer.
Improving Language Understanding by Generative Pre-Training
Radford et al., OpenAI Technical Report, 2018.
GPT-1 introduced the generative pretraining approach GPT-2 scales.
Attention Is All You Need
Vaswani et al., NeurIPS 2017.
Introduces the Transformer architecture underlying GPT-2.
Language Models are Few-Shot Learners
Brown et al., NeurIPS 2020.
GPT-3 expands the scale and few-shot in-context learning direction.
01Original OpenAI GPT-2 paper (PDF)02OpenAI: Better language models and their implications03OpenAI GPT-2 code and model repository04GPT-2 staged release reportContinue reading
Related research
GPT-1: Generative Pre-Training
GPT-1 demonstrated that a Transformer decoder pretrained to predict the next token can transfer to many language-understanding tasks through lightweight supervised fine-tuning.
Natural Language ProcessingBERT: Bidirectional Transformer Pre-training
BERT made deep bidirectional Transformer representations practical by pre-training on unlabeled text and fine-tuning the same model for many NLP tasks.