Language Models are Few-Shot Learners
Abstract
Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.
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.
Results and benchmarks
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.
Benchmark evidence is limited
Evidence graph: 3 refs, 3 links.
Utility signals: depth 100/100, grounding 85/100, status high.
Implementation
Historical official implementation (not recommended for new builds)
Only a historical official implementation is available
Use with caution for new projects; verify against current tooling and maintained community alternatives.
openai/gpt-3 · 15,717 stars · Last push Sep 18, 2020 · Archived
codedotal/gpt-code-clippy is the closest maintained adjacent implementation (Community adoption signal (3264 stars)). It is not paper-verified; validate algorithm and evaluation setup against the paper before trusting reported metrics. Community adoption signal: 3264 GitHub stars.
Open openai/gpt-3- Adjacent implementations are not paper-verified
- Recommended repository is adjacent and not paper-verified.
- Adjacent implementation match confidence is low.
- No direct maintained implementation is currently verified.
- Only historical official repository was found: openai/gpt-3.
- No maintained paper-verified implementation met reliability thresholds.
Compare implementation paths
Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.
- Maintenance
- Archived
- Confidence
- High
- Reproducibility
- Limited
- Stars
- 15,717
- Last push
- Sep 18, 2020 (2167d)
Official implementation from Papers with Code · Repository link is mentioned in the paper metadata
- Repository archived
- No push in 12+ months
- No CI pipeline detected
- Maintenance
- Stale
- Confidence
- Low
- Reproducibility
- Limited
- Stars
- 169
- Last push
- Jun 20, 2025 (432d)
Strong overlap with paper title keywords · Community adoption signal (169 stars)
- No push in 12+ months
- No CI pipeline detected
- No tagged releases
- Maintenance
- Stale
- Confidence
- Low
- Reproducibility
- Limited
- Stars
- 48
- Last push
- Dec 2, 2024 (632d)
Strong overlap with paper title keywords · Community adoption signal (48 stars)
- No push in 12+ months
- No CI pipeline detected
- No Docker setup
Reproduction readiness
Major work
Repository archived, fork required
- openai/gpt-3 has been archived. Fork the repository before using it.
- No further updates or bug fixes will be made by the original authors.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
Repositories and ecosystem
Closest related implementations
These are not paper-verified. Use them as reference points when no direct implementation is available.
- codedotal/gpt-code-clippy Adjacent · Confidence: Low · 3,264 stars
Community adoption signal (3264 stars)
- bigscience-workshop/promptsource Adjacent · Confidence: Low · 3,030 stars
Community adoption signal (3030 stars)
- bigscience-workshop/Megatron-DeepSpeed Adjacent · Confidence: Low · 1,447 stars
Strong overlap with paper title keywords
- allenai/macaw Adjacent · Confidence: Low · 459 stars
Community adoption signal (459 stars)
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
- asahi417/lmppl
Confidence: Low · 169 stars
- asahi417/relbert
Confidence: Low · 48 stars
- ai21labs/lm-evaluation
Confidence: Low · 130 stars
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Machine translation, Instruction tuning
Methods
Transformer
Domains
Natural Language Processing, Large Language Models
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.
Data includes links from Papers with Code ( CC-BY-SA-4.0 ).