Papers › Finetuned Language Models Are Zero-Shot Learners

Finetuned Language Models Are Zero-Shot Learners

3 Sep 2021ICLR 2022 4arXiv:2109.01652archive 2025-07-28

Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, Quoc V. Le

This paper explores a simple method for improving the zero-shot learning abilities of language models. We show that instruction tuning -- finetuning language models on a collection of tasks described via instructions -- substantially improves zero-shot performance on unseen tasks. We take a 137B parameter pretrained language model and instruction-tune it on over 60 NLP tasks verbalized via natural language instruction templates. We evaluate this instruction-tuned model, which we call FLAN, on unseen task types. FLAN substantially improves the performance of its unmodified counterpart and surpasses zero-shot 175B GPT-3 on 20 of 25 tasks that we evaluate. FLAN even outperforms few-shot GPT-3 by a large margin on ANLI, RTE, BoolQ, AI2-ARC, OpenbookQA, and StoryCloze. Ablation studies reveal that number of finetuning datasets, model scale, and natural language instructions are key to the success of instruction tuning.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2109.01652")

Code

Syntology Ran 0 of 1 code samples harvested from 1 repository linked to this paper; 1 has no recorded run.

By repository: community (archive-listed): 1 sample from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

google-research/flan officialmentioned in papermentioned on GitHubtfApache-2.0 report
bigcode-project/starcoder mentioned on GitHubpytorch report
hiyouga/llama-efficient-tuning mentioned on GitHubpytorchApache-2.0 report
hojjat-mokhtarabadi/promptsource mentioned on GitHubApache-2.0 report
openbiolink/promptsource mentioned on GitHubApache-2.0 report
MS-P3/code6 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

1 sample harvested; 0 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1unverified

Licence: 0 of the 1 sample are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ukplab/arxiv2025-inherent-limits-plms. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

preprocess_flan_dataset ukplab/arxiv2025-inherent-limits-plms/data_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 76f691da79652f18 · report

Tasks

ARCCommon Sense ReasoningCoreference ResolutionLanguage ModelingLanguage ModellingMachine TranslationNatural Language InferenceQuestion AnsweringRTESentence CompletionSentiment AnalysisZero-Shot Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Common Sense Reasoning ARC (Challenge) FLAN 137B (few-shot, k=13) Accuracy 63.8 #23 of 54 Archive leaderboard report
Common Sense Reasoning ARC (Challenge) FLAN 137B (zero-shot) Accuracy 63.1 #24 of 54 Archive leaderboard report
Common Sense Reasoning ARC (Easy) FLAN 137B (few-shot, k=14) Accuracy 80.7 #13 of 47 Archive leaderboard report
Common Sense Reasoning ARC (Easy) FLAN 137B (0-shot) Accuracy 79.6 #17 of 47 Archive leaderboard report
Common Sense Reasoning ReCoRD FLAN 137B (prompt-tuned) EM 85.1 #13 of 45 Archive leaderboard report
Common Sense Reasoning ReCoRD FLAN 137B (zero-shot) EM 72.5 #23 of 45 Archive leaderboard report
Common Sense Reasoning WinoGrande FLAN 137B (few-shot, k=16) Accuracy 72.8 #34 of 77 Archive leaderboard report
Common Sense Reasoning WinoGrande FLAN 137B (0-shot) Accuracy 71.2 #36 of 77 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge FLAN 137B (prompt-tuned) Accuracy 86.5 #15 of 82 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge FLAN 137B (zero-shot) Accuracy 80.8 #20 of 82 Archive leaderboard report
Machine Translation WMT2014 English-French FLAN 137B (zero-shot) BLEU score 33.9 #49 of 57 Archive leaderboard report
Machine Translation WMT2014 English-French FLAN 137B (few-shot, k=9) BLEU score 33.8 #50 of 57 Archive leaderboard report
Machine Translation WMT2014 French-English FLAN 137B (few-shot, k=9) BLEU score 37.9 #1 of 3 Archive leaderboard report
Machine Translation WMT2014 French-English FLAN 137B (zero-shot) BLEU score 35.9 #2 of 3 Archive leaderboard report
Machine Translation WMT2016 English-German FLAN 137B (zero-shot) BLEU score 27.0 #5 of 12 Archive leaderboard report
Machine Translation WMT2016 English-German FLAN 137B (few-shot, k=11) BLEU score 26.1 #7 of 12 Archive leaderboard report
Machine Translation WMT2016 English-Romanian FLAN 137B (few-shot, k=9) BLEU score 20.5 #19 of 21 Archive leaderboard report
Machine Translation WMT2016 English-Romanian FLAN 137B (zero-shot) BLEU score 18.9 #20 of 21 Archive leaderboard report
Machine Translation WMT2016 German-English FLAN 137B (few-shot, k=11) BLEU score 40.7 #1 of 8 Archive leaderboard report
Machine Translation WMT2016 German-English FLAN 137B (zero-shot) BLEU score 38.9 #2 of 8 Archive leaderboard report
Machine Translation WMT2016 Romanian-English FLAN 137B (few-shot, k=9) BLEU score 38.1 #2 of 21 Archive leaderboard report
Machine Translation WMT2016 Romanian-English FLAN 137B (zero-shot) BLEU score 37.3 #3 of 21 Archive leaderboard report
Natural Language Inference RTE FLAN 137B (prompt-tuned) Accuracy 91.7% #13 of 90 Archive leaderboard report
Natural Language Inference RTE FLAN 137B (8-shot) Accuracy 84.5% #29 of 90 Archive leaderboard report
Natural Language Inference RTE FLAN 137B (0-shot) Accuracy 84.1% #30 of 90 Archive leaderboard report
Natural Language Inference WNLI FLAN 137B (zero-shot) Accuracy 74.6 #14 of 23 Archive leaderboard report
Natural Language Inference WNLI FLAN 137B (few-shot, k=4) Accuracy 70.4 #17 of 23 Archive leaderboard report
Question Answering BoolQ FLAN 137B (prompt-tuned) Accuracy 86.3 #14 of 65 Archive leaderboard report
Question Answering BoolQ FLAN 137B (4-shot) Accuracy 84.6 #19 of 65 Archive leaderboard report
Question Answering BoolQ FLAN 137B (0-shot) Accuracy 82.9 #24 of 65 Archive leaderboard report
Question Answering COPA FLAN 137B (prompt-tuned) Accuracy 94 #10 of 60 Archive leaderboard report
Question Answering COPA FLAN 137B (zero-shot) Accuracy 91 #13 of 60 Archive leaderboard report
Question Answering COPA FLAN 137B (few-shot, k=16) Accuracy 87 #22 of 60 Archive leaderboard report
Question Answering MultiRC FLAN 137B (prompt-tuned) F1 83.4 #11 of 30 Archive leaderboard report
Question Answering MultiRC FLAN 137B (zero-shot) F1 77.5 #12 of 30 Archive leaderboard report
Question Answering MultiRC FLAN 137B (1-shot) F1 72.1 #14 of 30 Archive leaderboard report
Question Answering NaturalQA FLAN 137B (zero-shot) EM 20.7 #2 of 4 Archive leaderboard report
Question Answering OBQA FLAN 137B (zero-shot) Accuracy 78.4 #1 of 9 Archive leaderboard report
Question Answering OBQA FLAN 137B (few-shot, k=16) Accuracy 78.2 #2 of 9 Archive leaderboard report
Question Answering PIQA FLAN 137B (few-shot, k=10) Accuracy 81.7 #27 of 67 Archive leaderboard report
Question Answering PIQA FLAN 137B (0-shot) Accuracy 80.5 #31 of 67 Archive leaderboard report
Question Answering StoryCloze FLAN 137B (few-shot, k=10) Accuracy 94.7 #3 of 23 Archive leaderboard report
Question Answering StoryCloze FLAN 137B (zero-shot) Accuracy 93.4 #6 of 23 Archive leaderboard report
Question Answering TriviaQA FLAN 137B (zero-shot) EM 56.7 #42 of 56 Archive leaderboard report
Sentence Completion HellaSwag FLAN 137B (3-shot) Accuracy 59.2 #60 of 89 Archive leaderboard report
Sentence Completion HellaSwag FLAN 137B (0-shot) Accuracy 56.7 #62 of 89 Archive leaderboard report
Sentiment Analysis IMDb FLAN 137B (few-shot, k=2) Accuracy 95 #18 of 49 Archive leaderboard report
Sentiment Analysis IMDb FLAN 137B (zero-shot) Accuracy 94.3 #22 of 49 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections