Papers › Scaling Instruction-Finetuned Language Models

Scaling Instruction-Finetuned Language Models

20 Oct 2022arXiv:2210.11416archive 2025-07-28

Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, Albert Webson, Shixiang Shane Gu, Zhuyun Dai, Mirac Suzgun, Xinyun Chen, Aakanksha Chowdhery, Alex Castro-Ros, Marie Pellat, Kevin Robinson, Dasha Valter, Sharan Narang, Gaurav Mishra, Adams Yu, Vincent Zhao, Yanping Huang, Andrew Dai, Hongkun Yu, Slav Petrov, Ed H. Chi, Jeff Dean, Jacob Devlin, Adam Roberts, Denny Zhou, Quoc V. Le, Jason Wei

Finetuning language models on a collection of datasets phrased as instructions has been shown to improve model performance and generalization to unseen tasks. In this paper we explore instruction finetuning with a particular focus on (1) scaling the number of tasks, (2) scaling the model size, and (3) finetuning on chain-of-thought data. We find that instruction finetuning with the above aspects dramatically improves performance on a variety of model classes (PaLM, T5, U-PaLM), prompting setups (zero-shot, few-shot, CoT), and evaluation benchmarks (MMLU, BBH, TyDiQA, MGSM, open-ended generation). For instance, Flan-PaLM 540B instruction-finetuned on 1.8K tasks outperforms PALM 540B by a large margin (+9.4% on average). Flan-PaLM 540B achieves state-of-the-art performance on several benchmarks, such as 75.2% on five-shot MMLU. We also publicly release Flan-T5 checkpoints, which achieve strong few-shot performance even compared to much larger models, such as PaLM 62B. Overall, instruction finetuning is a general method for improving the performance and usability of pretrained language models.

PaperPDFCodeCode 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="2210.11416")

Code

Syntology Ran 8 of 17 code samples harvested from 3 repositories linked to this paper; 9 have no recorded run. Of those that ran: 7 ran · our draft was wrong; 1 ran with no contract checked.

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

coastalcph/zeroshot_lexglue mentioned on GitHub report
declare-lab/flan-alpaca mentioned on GitHubpytorch report
formulamonks/llm-benchmarker-suite mentioned on GitHubpytorchMIT report
google-research/flan mentioned on GitHubtfApache-2.0 report
joelniklaus/lawinstruct mentioned on GitHub report
kapllan/zeroshot_lexglue mentioned on GitHub report
theoremone/llm-benchmarker-suite mentioned on GitHubpytorchMIT report
zchuz/timebench mentioned on GitHubMIT 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

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

7ran · our draft was wrong
1ran
9unverified

Licence: 2 of the 17 samples 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 3 repositories linked to this paper, official or community; each sample names its own and says which. “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.

TextToTextSample declare-lab/flan-alpaca/training.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · ce7574929468c029 · report
example_list_to_batch google-research/flan/flan/v2/preprocessors.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 09b037bcbd40904b · report
format_from_feature_dictionary google-research/flan/flan/v2/preprocessors.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 348e3fae4483828f · report
format_single_prompted_example yli-z/ml4h_are_clinical_t5_models_better_for_clinical_text/src/finetune_bc5cdr.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 965f08c21d5cd016 · report
get_training_keys google-research/flan/flan/v2/preprocessors.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · d9dfc4a47b45d445 · report
preprocess_function yli-z/ml4h_are_clinical_t5_models_better_for_clinical_text/src/finetune_bc5cdr.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 298d3ae7382f4e0b · report
remove_unbatchable_items_ds google-research/flan/flan/v2/preprocessors.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 945f9e10849aba5f · report
remove_unbatchable_items_ex google-research/flan/flan/v2/preprocessors.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · aed287a99a6a9c29 · report
LightningModel declare-lab/flan-alpaca/training.py community (archive-listed) unverified Apache-2.0 (permissive) · fd9be101d56df782 · report
TextToTextData declare-lab/flan-alpaca/training.py community (archive-listed) unverified Apache-2.0 (permissive) · 20789a28303d52df · report
TextToTextDataset declare-lab/flan-alpaca/training.py community (archive-listed) unverified Apache-2.0 (permissive) · 883e0c27ae1147a1 · report
TokensLengthAnalyzer declare-lab/flan-alpaca/training.py community (archive-listed) unverified Apache-2.0 (permissive) · 826cda9a9517d6b1 · report
batch_apply_template google-research/flan/flan/v2/preprocessors.py community (archive-listed) unverified Apache-2.0 (permissive) · e4eeb164dc20068a · report
example_batch_to_list google-research/flan/flan/v2/preprocessors.py community (archive-listed) unverified Apache-2.0 (permissive) · 69440900d762a595 · report
get_batch_formatter google-research/flan/flan/v2/preprocessors.py community (archive-listed) unverified Apache-2.0 (permissive) · da56567fc45532d9 · report
reformat_batched_example google-research/flan/flan/v2/preprocessors.py community (archive-listed) unverified Apache-2.0 (permissive) · 1a288d0d4efefd6a · report
reformat_single_example google-research/flan/flan/v2/preprocessors.py community (archive-listed) unverified Apache-2.0 (permissive) · 8c6076b9e23aff01 · report

Tasks

Coreference ResolutionCross-Lingual Question AnsweringMMLUMulti-task Language UnderstandingParaphrase IdentificationQuestion Answering

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Coreference Resolution Winograd Schema Challenge Flan-T5 XXL (zero -shot) Accuracy 89.82 #10 of 82 Archive leaderboard report
Cross-Lingual Question Answering TyDiQA-GoldP Flan-U-PaLM 540B (direct-prompting) EM 68.3 #3 of 11 Archive leaderboard report
Cross-Lingual Question Answering TyDiQA-GoldP Flan-PaLM 540B (direct-prompting) EM 67.8 #4 of 11 Archive leaderboard report
Multi-task Language Understanding BBH-alg Flan-PaLM 540B (3-shot, fine-tuned, CoT + SC) Average (%) 66.5 #2 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-alg PaLM 540B (CoT + self-consistency) Average (%) 62.2 #3 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-alg Flan-PaLM 540B (3-shot, fine-tuned, CoT) Average (%) 61.3 #4 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-alg PaLM 540B (CoT) Average (%) 57.6 #5 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-alg Flan-PaLM 540B (3-shot, fine-tuned) Average (%) 48.2 #6 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-alg PaLM 540B Average (%) 38.3 #7 of 7 Archive leaderboard report
Multi-task Language Understanding BBH-nlp Flan-PaLM 540B (3-shot, fine-tuned, CoT + SC) Average (%) 78.4 #7 of 15 Archive leaderboard report
Multi-task Language Understanding BBH-nlp PaLM 540B (CoT + self-consistency) Average (%) 78.2 #8 of 15 Archive leaderboard report
Multi-task Language Understanding BBH-nlp Flan-PaLM 540B (3-shot, fine-tuned, CoT) Average (%) 72.4 #10 of 15 Archive leaderboard report
Multi-task Language Understanding BBH-nlp PaLM 540B (CoT) Average (%) 71.2 #11 of 15 Archive leaderboard report
Multi-task Language Understanding BBH-nlp Flan-PaLM 540B (5-shot, finetuned) Average (%) 70.0 #12 of 15 Archive leaderboard report
Multi-task Language Understanding BBH-nlp PaLM 540B Average (%) 62.7 #13 of 15 Archive leaderboard report
Multi-task Language Understanding MGSM Flan-PaLM 540B (8-shot, fine-tuned, CoT + SC) Average (%) 72.0 #3 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM Flan-U-PaLM 540B (CoT) Average (%) 60.4 #4 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM Flan-PaLM 540B (8-shot, fine-tuned, CoT) Average (%) 57.0 #5 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM text-davinci-003 Average (%) 36 #8 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM code-davinci-002 Average (%) 35 #9 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM text-davinci-002 Average (%) 23.7 #10 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM Flan-PaLM 540B (8-shot, fine-tuned) Average (%) 21.2 #11 of 12 Archive leaderboard report
Multi-task Language Understanding MGSM GPT-3 Davinci 175B Average (%) 5.7 #12 of 12 Archive leaderboard report
Multi-task Language Understanding MML llama 2(65b) Average (%) 73.5 #9 of 44 Archive leaderboard report
Multi-task Language Understanding MML GPT-3 Davinci 175B (CoT) Average (%) 59.5 #19 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-XL 3B (CoT) Average (%) 45.5 #27 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-Large 780M Average (%) 45.1 #29 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-Large 780M (CoT) Average (%) 40.5 #31 of 44 Archive leaderboard report
Multi-task Language Understanding MML GPT-3 Davinci 175B (5-shot) Average (%) 39.7 #32 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-Base 250M Average (%) 35.9 #38 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-Base 250M (CoT) Average (%) 33.7 #39 of 44 Archive leaderboard report
Multi-task Language Understanding MML Flan-T5-Small 80M Average (%) 28.7 #43 of 44 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

Introduced by this paper: Flan-T5

AdafactorAttentionAttention DropoutBPEDense ConnectionsDropoutFlan-T5Gated Linear UnitInverse Square Root ScheduleLayer NormalizationLinear LayerMulti-Head AttentionPaLMResidual ConnectionSentencePieceSoftmaxT5

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