Language Models are Few-Shot Learners
Abstract
Recent work has demonstrated substantial gains on many NLP tasks and benchmarks by pre-training on a large corpus of text followed by fine-tuning on a specific task. While typically task-agnostic in architecture, this method still requires task-specific fine-tuning datasets of thousands or tens of thousands of examples. 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. 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 fine-tuning approaches. 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. 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 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. At the same time, we also identify some datasets where GPT-3's few-shot learning still struggles, as well as some datasets where GPT-3 faces methodological issues related to training on large web corpora. Finally, we find that GPT-3 can generate samples of news articles which human evaluators have difficulty distinguishing from articles written by humans. We discuss broader societal impacts of this finding and of GPT-3 in general.
The following analysis is generated by AI and may contain errors. It is separate from the authors’ abstract and is not peer review.
Research summary
This paper demonstrates that scaling autoregressive language models to 175B parameters enables robust few-shot learning across diverse tasks without gradient-based fine-tuning. By empirically validating the scaling hypothesis and introducing in-context learning as a viable alternative to task-specific adaptation, the work fundamentally redefined the trajectory of natural language processing, catalyzed the foundation model paradigm, and established prompt engineering as a core ML discipline, despite its high compute barriers and prompt sensitivity.
Methodology
The paper abandons the dominant paradigm of task-specific fine-tuning in favor of a pure scaling hypothesis, demonstrating that dense autoregressive Transformers trained on massive web corpora develop emergent in-context learning capabilities when scaled to 175B parameters. The methodology is architecturally conservative but computationally unprecedented. The core innovation lies in the evaluation paradigm: treating natural language prompts and few-shot demonstrations as the sole interface for task specification, effectively turning the model into a general-purpose few-shot learner without gradient updates. While conceptually straightforward, the rigorous ablation across model sizes (125M to 175B) establishes clear power-law scaling trends that validate compute-optimal scaling and reveal emergent capabilities absent in smaller models.
Results & evaluation
The experimental suite is exceptionally broad, spanning 40+ datasets across language modeling, translation, QA, commonsense reasoning, arithmetic, and synthetic manipulation tasks. Results consistently show that few-shot performance improves monotonically with scale, often matching or exceeding fine-tuned BERT/RoBERTa baselines. The inclusion of contamination checks, human evaluations for synthetic news generation, and detailed analysis of prompt sensitivity demonstrates strong methodological rigor. However, performance remains highly sensitive to prompt phrasing, demonstration ordering, and task framing, revealing that in-context learning is not yet robust or fully mechanistically understood. Arithmetic and multi-hop reasoning tasks show promising but inconsistent scaling, correctly identifying the boundaries of current capabilities.
Reproducibility
Low. The paper provides extensive documentation on dataset curation, training hyperparameters, compute budgets, and evaluation protocols, but explicitly withholds model weights and training code due to safety and resource constraints. While the architectural and training details are transparent enough for theoretical replication, the multi-million dollar compute cost and proprietary data filtering make independent reproduction practically impossible for the broader research community. This limits direct reproducibility but is an acknowledged trade-off for frontier model development at this scale.
Limitations
The authors transparently document several critical weaknesses: (1) high sensitivity to prompt formatting and demonstration ordering, (2) inability to update knowledge post-training without full retraining, (3) struggles with complex multi-step reasoning and true causal inference, (4) benchmark contamination risks from large web corpora, and (5) prohibitive computational and energy costs. The paper correctly frames these as fundamental limitations of the current scaling paradigm rather than mere engineering gaps.
Broader impact
The paper sets a new standard for responsible AI reporting, dedicating substantial space to misuse vectors (disinformation, phishing, automated content generation), demographic bias (gender, race, religion), and environmental impact. The threat actor analysis and discussion of external incentive structures are particularly prescient. While the analysis is thorough, it correctly anticipates that capability will outpace safety tooling, establishing a foundational reference for subsequent AI governance, alignment, and safety research. This paper demonstrates that scaling autoregressive language models to 175B parameters enables robust few-shot learning across diverse tasks without gradient-based fine-tuning. By empirically validating the scaling hypothesis and introducing in-context learning as a viable alternative to task-specific adaptation, the work fundamentally redefined the trajectory of natural language processing, catalyzed the foundation model paradigm, and established prompt engineering as a core ML discipline, despite its high compute barriers and prompt sensitivity.
Curator note
Brown et al.; 175B params; in-context learning; paradigm shift
Discussion
Talks & videos
Related later work
- InstructGPT / RLHF 2022
- Chain-of-Thought Prompting 2022
- LLaMA 2023
- ChatGPT (product) 2022
- Codex / GitHub Copilot 2021
- Toolformer 2023
- RAG 2020
Author of this paper? Send a correction.