Papers › PaLM: Scaling Language Modeling with Pathways

PaLM: Scaling Language Modeling with Pathways

5 Apr 2022Google Research 2022 4arXiv:2204.02311archive 2025-07-28

Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel

Large language models have been shown to achieve remarkable performance across a variety of natural language tasks using few-shot learning, which drastically reduces the number of task-specific training examples needed to adapt the model to a particular application. To further our understanding of the impact of scale on few-shot learning, we trained a 540-billion parameter, densely activated, Transformer language model, which we call Pathways Language Model PaLM. We trained PaLM on 6144 TPU v4 chips using Pathways, a new ML system which enables highly efficient training across multiple TPU Pods. We demonstrate continued benefits of scaling by achieving state-of-the-art few-shot learning results on hundreds of language understanding and generation benchmarks. On a number of these tasks, PaLM 540B achieves breakthrough performance, outperforming the finetuned state-of-the-art on a suite of multi-step reasoning tasks, and outperforming average human performance on the recently released BIG-bench benchmark. A significant number of BIG-bench tasks showed discontinuous improvements from model scale, meaning that performance steeply increased as we scaled to our largest model. PaLM also has strong capabilities in multilingual tasks and source code generation, which we demonstrate on a wide array of benchmarks. We additionally provide a comprehensive analysis on bias and toxicity, and study the extent of training data memorization with respect to model scale. Finally, we discuss the ethical considerations related to large language models and discuss potential mitigation strategies.

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="2204.02311")

Code

Syntology Ran 30 of 37 code samples harvested from 5 repositories linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 5 ran · our draft was wrong; 2 ran · fixture could not drive it; 20 ran with no contract checked.

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

chrisociepa/allamo mentioned on GitHubpytorchMIT report
foundation-model-stack/fms-fsdp mentioned on GitHubpytorchApache-2.0 report
google/paxml mentioned on GitHubjaxApache-2.0 report
lucidrains/CoCa-pytorch mentioned on GitHubpytorch 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

37 samples harvested; 30 ran; 2 honoured the contract we drafted; 7 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.

2ran · honoured contract
1ran · violated contract
5ran · our draft was wrong
2ran · fixture could not drive it
20ran
7unverified

Licence: 0 of the 37 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 5 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.

AllGather lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran MIT (permissive) · 54e85922a73fb785 · report
CrossAttention lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 3e79daee4d06c337 · report
EmbedToLatents lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · d8d433ddd03a68b1 · report
LayerNorm lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · cbb7647a3b310ee0 · report
LayerNorm lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran MIT (permissive) · c0074f24b1b1dddf · report
LayerNorm lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) ran fingerprinted MIT (permissive) · f77c04c0d47070c9 · report
PaLM conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 036d204fef6ec731 · report
PaLM lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 901f254b57206879 · report
PaLM lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) ran MIT (permissive) · 75aea79ee837ee93 · report
ParallelTransformer conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 25a9d6da0d4b31f2 · report
ParallelTransformerBlock conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 0b005776897ae6b9 · report
ParallelTransformerBlock lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 7b94868665d25696 · report
ParallelTransformerBlock lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran MIT (permissive) · 7214c60748cdc2fb · report
PreNorm conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 4cf5ff951dbba496 · report
Residual lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 5fab2dfc0a4ccb06 · report
Residual lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran fingerprinted MIT (permissive) · b7ffedd1471cf6f7 · report
RotaryEmbedding conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · c327a17241c2969e · report
RotaryEmbedding lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · metamorphic tier: well formed MIT (permissive) · 231817c8d194a68b · report
SwiGLU lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran fingerprinted MIT (permissive) · 84cdb1c0d54b1ef4 · report
SwiGLU lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran fingerprinted MIT (permissive) · 8d2e371b5f3aa503 · report
apply_rotary_pos_emb conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 37ffe94c2d21b89e · report
apply_rotary_pos_emb lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · fd592af960c2230e · report
apply_rotary_pos_emb lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 6d7a8eee9f74827c · report
apply_rotary_pos_emb lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 1e2e827e2a6e8c99 · report
fixed_pos_embedding lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 78821f282a7ccfa2 · report
jax_unstack conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 18a3c5b8f897961c · report
pad_dim_to lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · d3d5bf1b20109dcd · report
rotate_every_two lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 6aa7304ec358cbea · report
rotate_half conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · ca6a06a57596c8b4 · report
rotate_half lucidrains/PaLM-pytorch/palm_pytorch/palm_pytorch.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 08213c6683993d3b · report
CoCa lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) unverified MIT (permissive) · c4b1f7fca53ae6f0 · report
ParallelTransformerBlock lucidrains/PaLM-jax/palm_jax/palm.py community (archive-listed) unverified MIT (permissive) · 51d0ce838f5af6d3 · report
SwiGLU conceptofmind/PaLM-flax/palm_flax/palm_flax.py community (archive-listed) unverified MIT (permissive) · f9d416af20c5e200 · report
all_gather_variable_batch lucidrains/CoCa-pytorch/coca_pytorch/coca_pytorch.py community (archive-listed) unverified MIT (permissive) · 5079742c167ede96 · report
is_checkpoint_asset google/paxml/paxml/checkpoint_paths.py community (archive-listed) unverified Apache-2.0 (permissive) · c0b06c9deb2f2918 · report
metadata_exists google/paxml/paxml/checkpoint_metadata.py community (archive-listed) unverified Apache-2.0 (permissive) · 835cdf8db74062ed · report
restore_metadata google/paxml/paxml/checkpoint_metadata.py community (archive-listed) unverified Apache-2.0 (permissive) · 73f6618e94cff797 · report

Tasks

Auto DebuggingCode GenerationCommon Sense ReasoningCoreference ResolutionCross-Lingual Question AnsweringFew-Shot LearningHindu KnowledgeKnown UnknownsLanguage ModelingLanguage ModellingLogic Grid PuzzleLogical ReasoningMathMemorizationMulti-task Language UnderstandingMultiple Choice Question Answering (MCQA)Natural Language InferenceNovel ConceptsQuestion AnsweringReading ComprehensionSentence CompletionStrategyQAWinowhy

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Auto Debugging Big-bench Lite PaLM 62B (few-shot, k=5) Exact string match 38.2 #1 of 3 Archive leaderboard report
Auto Debugging Big-bench Lite PaLM 540B (few-shot, k=5) Exact string match 38.2 #2 of 3 Archive leaderboard report
Auto Debugging Big-bench Lite PaLM 8B (few-shot, k=5) Exact string match 14.7 #3 of 3 Archive leaderboard report
Code Generation MBPP PaLM Coder 540B Accuracy 47 #71 of 99 Archive leaderboard report
Code Generation MBPP PaLM 540B Accuracy 36.8 #86 of 99 Archive leaderboard report
Common Sense Reasoning BIG-bench (Known Unknowns) PaLM-540B (few-shot, k=5) Accuracy 73.9 #1 of 3 Archive leaderboard report
Common Sense Reasoning BIG-bench (Winowhy) PaLM-540B (few-shot, k=5) Accuracy 65.9 #1 of 4 Archive leaderboard report
Common Sense Reasoning BIG-bench (Winowhy) PaLM-62B (few-shot, k=5) Accuracy 61.0 #3 of 4 Archive leaderboard report
Common Sense Reasoning ReCoRD PaLM 540B (finetuned) EM 94.0 #4 of 45 Archive leaderboard report
Common Sense Reasoning ReCoRD PaLM 540B (finetuned) F1 94.6 #4 of 45 Archive leaderboard report
Common Sense Reasoning WinoGrande PaLM 540B (0-shot) Accuracy 81.1 #15 of 77 Archive leaderboard report
Common Sense Reasoning WinoGrande PaLM 62B (0-shot) Accuracy 77.0 #21 of 77 Archive leaderboard report
Common Sense Reasoning WinoGrande PaLM-cont 62B (0-shot) Accuracy 77.0 #22 of 77 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge PaLM 540B (fine-tuned) Accuracy 100 #1 of 82 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge PaLM 540B (5-shot) Accuracy 89.5 #11 of 82 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge PaLM 540B (0-shot) Accuracy 89.1 #12 of 82 Archive leaderboard report
Coreference Resolution Winograd Schema Challenge PaLM 540B (1-shot) Accuracy 86.3 #16 of 82 Archive leaderboard report
Cross-Lingual Question Answering TyDiQA-GoldP PaLM-540B (CoT) EM 52.9 #7 of 11 Archive leaderboard report
Extreme Summarization GEM-XSum PaLM (finetuning)-540B Parameters 540 B #2 of 6 Archive leaderboard report
Extreme Summarization GEM-XSum PaLM (finetuning)-540B ROUGE-2 21.2 #2 of 6 Archive leaderboard report
Extreme Summarization GEM-XSum T5-XXL ROUGE-2 21.0 #3 of 6 Archive leaderboard report
Extreme Summarization GEM-XSum PaLM (finetuning)-62B Parameters 62 B #4 of 6 Archive leaderboard report
Extreme Summarization GEM-XSum PaLM (finetuning)-62B ROUGE-2 18.5 #4 of 6 Archive leaderboard report
Language Modelling LAMBADA PaLM-540B (Few-Shot) Accuracy 89.7 #1 of 37 Archive leaderboard report
Language Modelling LAMBADA PaLM-540B (One-Shot) Accuracy 81.8 #9 of 37 Archive leaderboard report
Language Modelling LAMBADA PaLM-540B (Zero-Shot) Accuracy 77.9 #15 of 37 Archive leaderboard report
Logical Reasoning BIG-bench (StrategyQA) PaLM-540B (few-shot, k=5) Accuracy 73.9 #1 of 4 Archive leaderboard report
Logical Reasoning BIG-bench (StrategyQA) PaLM-62B (few-shot, k=5) Accuracy 65.4 #3 of 4 Archive leaderboard report
Memorization BIG-bench (Hindu Knowledge) PaLM-540B (few-shot, k=5) Accuracy 95.4 #1 of 3 Archive leaderboard report
Memorization BIG-bench (Hindu Knowledge) PaLM-62B (few-shot, k=5) Accuracy 77.7 #3 of 3 Archive leaderboard report
Multi-task Language Understanding MGSM PaLM 540B Average (%) 55.0 #6 of 12 Archive leaderboard report
Multiple Choice Question Answering (MCQA) BIG-bench (Novel Concepts) PaLM-540B (few-shot, k=5) Accuracy 71.9 #1 of 4 Archive leaderboard report
Multiple Choice Question Answering (MCQA) BIG-bench (Novel Concepts) PaLM-62B (few-shot, k=5) Accuracy 59.4 #3 of 4 Archive leaderboard report
Natural Language Inference CommitmentBank PaLM 540B (finetuned) Accuracy 100 #1 of 20 Archive leaderboard report
Natural Language Inference CommitmentBank PaLM 540B (finetuned) F1 100 #1 of 20 Archive leaderboard report
Natural Language Inference RTE PaLM 540B (fine-tuned) Accuracy 95.7% #2 of 90 Archive leaderboard report
Natural Language Inference RTE PaLM 540B (5-shot) Accuracy 79.6% #38 of 90 Archive leaderboard report
Natural Language Inference RTE PaLM 540B (1-shot) Accuracy 78.7% #42 of 90 Archive leaderboard report
Natural Language Inference RTE PaLM 540B (0-shot) Accuracy 72.9% #49 of 90 Archive leaderboard report
Question Answering BoolQ PaLM 540B (fine-tuned) Accuracy 92.2 #3 of 65 Archive leaderboard report
Question Answering COPA PaLM 540B (finetuned) Accuracy 100 #1 of 60 Archive leaderboard report
Question Answering MultiRC PaLM 540B (finetuned) EM 69.2 #1 of 30 Archive leaderboard report
Question Answering MultiRC PaLM 540B (finetuned) F1 90.1 #1 of 30 Archive leaderboard report
Question Answering Natural Questions PaLM-540B (Few-Shot, k=64) EM 39.6 #26 of 47 Archive leaderboard report
Question Answering Natural Questions PaLM-540B (One-Shot) EM 29.3 #36 of 47 Archive leaderboard report
Question Answering Natural Questions PaLM-540B (Zero-Shot) EM 21.2 #44 of 47 Archive leaderboard report
Question Answering OBQA PaLM 540B (zero-shot) Accuracy 53.4 #8 of 9 Archive leaderboard report
Question Answering OBQA PaLM 62B (zero-shot) Accuracy 50.4 #9 of 9 Archive leaderboard report
Question Answering TriviaQA PaLM-540B (Few-Shot) EM 81.4 #11 of 56 Archive leaderboard report
Question Answering TriviaQA PaLM-540B (One-Shot) EM 81.4 #12 of 56 Archive leaderboard report
Question Answering TriviaQA PaLM-540B (Zero-Shot) EM 76.9 #17 of 56 Archive leaderboard report
Question Answering WebQuestions PaLM-540B (Few-Shot) EM 43.5 #11 of 37 Archive leaderboard report
Question Answering WebQuestions PaLM-540B (One-Shot) EM 22.6 #30 of 37 Archive leaderboard report
Question Answering WebQuestions PaLM-540B (Zero-Shot) EM 10.6 #34 of 37 Archive leaderboard report
Reading Comprehension RACE PaLM 540B (zero-shot) Accuracy (High) 49.1 #12 of 24 Archive leaderboard report
Reading Comprehension RACE PaLM 540B (zero-shot) Accuracy (Middle) 68.1 #12 of 24 Archive leaderboard report
Reading Comprehension RACE PaLM 62B (zero-shot) Accuracy (High) 47.5 #14 of 24 Archive leaderboard report
Reading Comprehension RACE PaLM 62B (zero-shot) Accuracy (Middle) 64.3 #14 of 24 Archive leaderboard report
Reading Comprehension RACE PaLM 8B (zero-shot) Accuracy (High) 42.3 #19 of 24 Archive leaderboard report
Reading Comprehension RACE PaLM 8B (zero-shot) Accuracy (Middle) 57.9 #19 of 24 Archive leaderboard report
Sentence Completion HellaSwag PaLM-540B (Few-Shot) Accuracy 83.8 #29 of 89 Archive leaderboard report
Sentence Completion HellaSwag PaLM-540B (1-shot) Accuracy 83.6 #30 of 89 Archive leaderboard report
Sentence Completion HellaSwag PaLM-540B (0-shot) Accuracy 83.4 #32 of 89 Archive leaderboard report
Word Sense Disambiguation Words in Context PaLM 540B (finetuned) Accuracy 78.8 #2 of 37 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: Parallel Layers

AdafactorAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationMulti-Query AttentionPaLMParallel LayersResidual ConnectionRotary EmbeddingsSentencePieceSoftmaxSwiGLUTransformer

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