papers / gpt2
Next task →
Research Papers/Transformer and LLM pretraining/Language Models are Unsupervised Multitask Learners
Transformer and LLM pretraining · #3 · seminal

Language Models are Unsupervised Multitask Learners

Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever · 2019 · OpenAI technical report
reproduction difficulty: highNLPLanguage ModelsPretraining

1. Research problem

NLP systems still needed task-specific supervision and architectures even after pretraining, and broad web text contained natural demonstrations of many tasks.

2. Motivation

The authors wanted to test whether a single large autoregressive language model trained on diverse text could perform tasks zero-shot from natural-language prompts.

3. Previous approaches

GPT-1 showed supervised fine-tuning after generative pretraining; ELMo and BERT required downstream adaptation and task architectures.

4. Core contribution

Trained a 1.5B-parameter GPT-2 on WebText and showed zero-shot transfer to question answering, summarization, translation, and other tasks without task-specific training.

5. Mathematical formulation

Autoregressive next-token maximum likelihood over byte-pair-encoded text, with a decoder-only Transformer and task specification delivered purely through the input context.

6. Methodology

Scale model size and data from GPT-1, use WebText scraped from high-quality outbound Reddit links, and evaluate zero-shot task performance.

7. Architecture

Decoder-only Transformer with layer normalization moved inside residual blocks and modified initialization.

8. Experimental setup

Zero-shot evaluations on language modeling, reading comprehension, summarization, translation, and trivia-style tasks.

9. Datasets

WebText (approx. 8 million documents), standard evaluation sets for the tested tasks.

10. Results

Strong zero-shot language modeling and promising but uneven task transfer, with recognizably coherent long-form text generation.

11. Limitations

Zero-shot performance was far below supervised systems; the model was sensitive to prompt wording and could produce repetitive or factually wrong text.

12. Critical analysis

Its staged release controversy aside, it established the research program that scaling autoregressive models plus prompting could subsume many NLP tasks.

13. Implementation tasks

  • 1.Train a small GPT-style decoder on a compact text corpus and sample continuations.
  • 2.Design several zero-shot prompts and compare outputs across phrasings.
  • 3.Implement top-k, nucleus, and temperature sampling and compare generation quality.

14. Follow-up work

  • 1.Language Models are Few-Shot Learners (Brown et al., 2020)
  • 2.Scaling Laws for Neural Language Models (Kaplan et al., 2020)

15. Open research questions

  • 1.Which tasks genuinely transfer zero-shot versus being memorized from web data?
  • 2.How should we evaluate open-ended generation fairly?
16. Reproduce it. Record the hypothesis, configuration, dataset, metrics and discrepancies in the Experiment Tracker. A reproduction is not complete until you have run the experiments, performed at least one ablation and documented the differences from the reported numbers.