Paper summary

Language Models are Few-Shot Learners

Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, Dario Amodei

In short

large-scale language model evaluation study

The paper studies GPT-3, a 175 billion parameter language model, and shows that it can perform many language tasks from just a few examples or a natural language instruction, without any gradient updates. It also reports important limitations, including weaknesses on some reasoning tasks, possible benchmark contamination, and broader concerns about misuse, bias, and energy use.

Research question. Can scaling a language model produce strong zero-shot, one-shot, and few-shot performance across a wide range of NLP tasks without fine-tuning?

Highlights in the PDF

Read these first

Main claims

Claim
“Here we show that scaling up language models greatly improves task-agnostic, few-shot performance, sometimes even reaching competitiveness with prior state-of-the-art finetuning approaches.”

Scaling up language models greatly improves task-agnostic few-shot performance and can make in-context learning competitive with prior fine-tuned systems on many tasks.

Show in PDF
Claim
“For all tasks, GPT-3 is applied without any gradient updates or fine-tuning, with tasks and few-shot demonstrations specified purely via text interaction with the model.”

GPT-3 can perform many NLP tasks without gradient updates or fine-tuning using only text prompts and demonstrations.

Show in PDF
Claim
“GPT-3 achieves strong performance on many NLP datasets, including translation, question-answering, and cloze tasks, as well as several tasks that require on-the-fly reasoning or domain adaptation, such as unscrambling words, using a novel word in a sentence, or performing 3-digit arithmetic.”

GPT-3 shows strong results on translation, question answering, cloze tasks, and several on-the-fly reasoning tasks.

Show in PDF
Claim
“Finally, we find that GPT-3 can generate samples of news articles which human evaluators have difficulty distinguishing from articles written by humans.”

GPT-3 can generate news articles that humans have difficulty distinguishing from human-written articles.

Show in PDF
Claim
“Although we find that data contamination has a minimal effect on GPT-3’s performance on most datasets, we do identify a few datasets where it could be inflating results, and we either do not report results on these datasets or we note them with an asterisk, depending on the severity.”

The paper identifies benchmark contamination as a methodological concern and reports that it has minimal effect on most results but may inflate some datasets.

Show in PDF

Conclusion

Result
“Despite many limitations and weaknesses, these results suggest that very large language models may be an important ingredient in the development of adaptable, general language systems.”

The paper concludes that very large language models can become broadly capable and adaptable without fine-tuning, but that they still have clear weaknesses and important societal and methodological risks. It argues that scale is a major ingredient for general language systems, while also emphasizing the need for better contamination control, bias analysis, and future work on grounding and efficiency.

Show in PDF

Key figures and tables

Main methods

Method
“Specifically, we train GPT-3, an autoregressive language model with 175 billion parameters, 10x more than any previous non-sparse language model, and test its performance in the few-shot setting.”

Large-scale autoregressive pretraining

Train GPT-3 as an autoregressive transformer with 175 billion parameters on 300 billion tokens from filtered Common Crawl and curated corpora.

Show in PDF
Method
“For each task, we evaluate GPT-3 under 3 conditions: (a) “few-shot learning”, or in-context learning where we allow as many demonstrations as will fit into the model’s context window (typically 10 to 100), (b) “one-shot learning”, where we allow only one demonstration, and (c) “zero-shot” learning, where no demonstrations are allowed and only an instruction in natural language is given to the model.”

In-context evaluation

Evaluate zero-shot, one-shot, and few-shot performance by conditioning on natural language instructions and K demonstrations without updating weights.

Show in PDF
Method
“Specifically, we evaluate GPT-3 on over two dozen NLP datasets, as well as several novel tasks designed to test rapid adaptation to tasks unlikely to be directly contained in the training set.”

Benchmark suite evaluation

Test the model on over two dozen NLP datasets spanning language modeling, QA, translation, Winograd-style tasks, commonsense reasoning, reading comprehension, SuperGLUE, NLI, and synthetic tasks.

Show in PDF
Method
“For each benchmark, we produce a ‘clean’ version which removes all potentially leaked examples, defined roughly as examples that have a 13-gram overlap with anything in the pretraining set (or that overlap with the whole example when it is shorter than 13-grams).”

Contamination analysis

Search for n-gram overlaps between training data and benchmark splits, create cleaned subsets, and compare performance on clean versus full data.

Show in PDF
Method
“For each model, we presented around 80 US-based participants with a quiz consisting of these real titles and subtitles followed by either the human written article or the article generated by the model4.”

Human evaluation of synthetic news

Recruit US-based participants to distinguish human-written from model-generated news articles and compare accuracy across model sizes.

Show in PDF

References to read next

Epistemological & authority foundations

Seminal work 1

Standard / benchmark 3

State of the art 3

Methodological & tooling references

Methodological 1

Passages to read

16 of 16
Objective
“By contrast, humans can generally perform a new language task from only a few examples or from simple instructions – something which current NLP systems still largely struggle to do.”

This frames the human-like capability gap motivating the work.

Essential
Show in PDF
Claim
“In this paper, we test this hypothesis by training a 175 billion parameter autoregressive language model, which we call GPT-3, and measuring its in-context learning abilities.”

This states the main contribution and experimental target.

Essential
Show in PDF
Method
“We use the same model and architecture as GPT-2 [RWC+19], including the modified initialization, pre-normalization, and reversible tokenization described therein, with the exception that we use alternating dense and locally banded sparse attention patterns in the layers of the transformer, similar to the Sparse Transformer [CGRS19].”

This gives the architectural basis for GPT-3 and what changed from GPT-2.

Show in PDF
Method
“Datasets for language models have rapidly expanded, culminating in the Common Crawl dataset2 [RSR+19] constituting nearly a trillion words.”

This introduces the scale of the training corpus and why filtering mattered.

Show in PDF
Method
“We took 3 steps to improve the average quality of our datasets: (1) we downloaded and filtered a version of CommonCrawl based on similarity to a range of high-quality reference corpora, (2) we performed fuzzy deduplication at the document level, within and across datasets, to prevent redundancy and preserve the integrity of our held-out validation set as an accurate measure of overfitting, and (3) we also added known high-quality reference corpora to the training mix to augment CommonCrawl and increase its diversity.”

This is the main data curation pipeline.

Essential
Show in PDF
Result
“Broadly, on NLP tasks GPT-3 achieves promising results in the zero-shot and one-shot settings, and in the the few-shot setting is sometimes competitive with or even occasionally surpasses state-of-the-art (despite state-of-the-art being held by fine-tuned models).”

This captures the headline performance claim in compact form.

Essential
Show in PDF
Result
“At the same time, we also find some tasks on which few-shot performance struggles, even at the scale of GPT-3.”

This is important because it balances the positive results with limitations.

Show in PDF
Result
“We also undertake a systematic study of “data contamination” – a growing problem when training high capacity models on datasets such as Common Crawl, which can potentially include content from test datasets simply because such content often exists on the web.”

This identifies a major methodological issue addressed in the paper.

Essential
Show in PDF
Result
“GPT-3 also displays one-shot and few-shot proficiency at tasks designed to test rapid adaption or on-the-fly reasoning, which include unscrambling words, performing arithmetic, and using novel words in a sentence after seeing them defined only once.”

This highlights the synthetic tasks that probe in-context learning.

Show in PDF
Result
“Mean human accuracy (the ratio of correct assignments to non-neutral assignments per participant) at detecting that the intentionally bad articles were model generated was ∼86% where 50% is chance level performance.”

This provides the control condition for the human evaluation.

Show in PDF
Result
“By contrast, mean human accuracy at detecting articles that were produced by the 175B parameter model was barely above chance at ∼52% (see Table 3.11).”

This is the key result for synthetic news generation.

Essential
Show in PDF
Result
“We found that mean human accuracy at detecting the intentionally bad longer articles from the control model was ∼88%, while mean human accuracy at detecting the longer articles that were produced by GPT-3 175B was still barely above chance at ∼52% (see Table 3.12).”

This extends the synthetic text result to longer outputs.

Show in PDF
Result
“We observe a wide range in GPT-3’s performance across tasks.”

This is a useful summary of the heterogeneous benchmark outcomes.

Show in PDF
Result
“On Winograd GPT-3 achieves 88.3%, 89.7%, and 88.6% in the zero-shot, one-shot, and few-shot settings, showing no clear in-context learning but in all cases achieving strong results just a few points below state-of-the-art and estimated human performance.”

This is a representative example of strong but not uniformly improving performance.

Show in PDF
Result
“WiC is a notable weak spot with few-shot performance at 49.4% (at random chance).”

This identifies one of the clearest failure modes.

Show in PDF
Result
“These results on both RTE and ANLI suggest that NLI is still a very difficult task for language models and they are only just beginning to show signs of progress.”

This summarizes the NLI limitation.

Show in PDF

Keywords

GPT-3
in-context learning
few-shot learning
zero-shot learning
language modeling
benchmark contamination
SuperGLUE
question answering
translation
commonsense reasoning
synthetic text
human evaluation

Get a Summary of Your Own Paper

Upload a paper and Thesify writes the digest, reading guide and review