Google’s PaLM 540B proved that a dense Transformer could scale across 6,144 TPU v4 chips without pipeline parallelism, hitting 46.2% model FLOPs utilization (MFU), roughly double GPT-3’s 21.3% and well above Megatron-Turing NLG’s 30.2%. Trained on 780B tokens across two data-center-networked TPU v4 pods via the Pathways runtime, the 540.35B-parameter model set few-shot state of the art on 28 of 29 English NLP tasks and pushed multi-step math accuracy on GSM8K from 17% to 58% when paired with chain-of-thought prompting.
- Pipeline-free two-pod scaling: Using 12-way model and 256-way fully sharded data parallelism inside each 3,072-chip pod plus 2-way pod-level data parallelism across pods, Pathways hit 1.95x single-pod throughput (97% weak scaling) despite
81 Tbpsburst gradient transfers (1.3 GBper host pair per step). - A cleaner utilization benchmark (MFU): Defining MFU as observed tokens per second divided by theoretical peak throughput (
6N + 12LHQTFLOPs/token without rematerialization), PaLM 540B reached238.3K tokens/secat batch size2,048(46.2% MFU,57.8%hardware FLOPs utilization), beating Gopher (32.5%) and Megatron-Turing NLG (30.2%). - Discontinuous BIG-bench gains: Across 150 BIG-bench text tasks, 5-shot PaLM 540B topped average human scores, and 25% of tasks jumped by more than
+10%above the log-linear8Bto62Btrend (15%jumped over+20%), such aslogical_sequenceleaping from13%(8B) and25%(62B) to87%(540B). - State-dependent loss spikes: Despite gradient clipping (
1.0), the540Brun suffered roughly 20 loss spikes (zero at8Bor62B); rolling back100steps and skipping200to500batches cleared each spike, while replaying those exact batches from an earlier checkpoint did not spike.
How Pathways and the PaLM architecture scale
Most contemporaneous 500B-class runs relied on pipeline parallelism across pods or GPU racks, incurring idle “bubble” time and extra weight reloads per micro-batch. PaLM avoided pipelining completely. Inside each 3,072-chip TPU v4 pod, every weight tensor was partitioned via 12-way model parallelism and 256-way fully sharded data parallelism, with forward weights all-gathered on demand and activations rematerialized during backpropagation (4.10 vs 3.28 TFLOPs/token with vs without remat) to afford a 4M-token batch size (2,048 sequences of 2,048 tokens). Across the two pods, a single Python client dispatched sharded JAX/XLA dataflow programs via Pathways, exchanging 1.3 GB of gradients per host pair over the data center network using chunked multi-flow transfers.
To maximize hardware efficiency and stability, the 118-layer decoder (d_model = 18,432, 48 heads) paired SwiGLU activations and RoPE embeddings with three systems-friendly tweaks: parallel attention and MLP blocks (y = x + MLP(LN(x)) + Attention(LN(x)), yielding roughly 15% faster training by fusing input projections, with a minor 8B quality dip that vanished by 62B), Multi-Query Attention (sharing key and value heads for fast decoding), and zero bias terms in dense layers and layer norms. Training used Adafactor without factorization (beta_2 = 1 - k^-0.8), a z_loss = 1e-4 * log^2(Z) softmax stabilizer, and bitwise-deterministic JAX/XLA/T5X checkpoints with random-access shuffled batches so any rollback reproduced identically.
Key findings: reasoning jumps, memorization, and undertraining
Combining scale with 8-shot chain-of-thought prompting unlocked multi-step reasoning without task finetuning: on GSM8K, PaLM 540B rose from 17% (direct prompting) to 54% (CoT) and 58% (CoT plus external calculator), beating a finetuned GPT-3 plus verifier baseline (55%). Inspecting 150 GSM8K problems showed scaling from 62B to 540B eliminated 12 of 18 one-step-missing errors and 6 of 20 semantic errors. In code, despite seeing only 2.7B Python tokens (vs 100B for Codex), PaLM 540B hit 26.2% pass@1 (76.2% pass@100) on HumanEval, rising to 36.0% (88.4% pass@100) after 7.75B-token code finetuning (PaLM-Coder).
The paper also quantified two failure axes. First, exact 50-token memorization rose with scale (1.6% at 8B to 2.4% at 540B), driven overwhelmingly by duplication: spans seen once were memorized only 0.75% of the time, versus over 40% for spans appearing more than 500 times (especially code licenses). Second, clean-subset audits across 10 partially overlapping NLP tasks showed balanced positive and negative deltas between full and clean splits, arguing against contamination inflating scores.
Caveats and builder takeaway
In Section 13 and Appendix F, the authors directly confront Chinchilla compute-optimal scaling: trained for only 780B tokens (2,527.2 ZettaFLOPs), PaLM 540B was severely undertrained in tokens per parameter (~1.44 vs Chinchilla’s ~20), and Chinchilla 70B (1.4T tokens, 588 ZettaFLOPs) outperformed PaLM’s interpolated FLOP curve on BIG-bench. Extending PaLM 62B from 795B to 1,325B tokens on fresh data lifted its 9-task English NLP average from 64.8 to 66.5 (edging out Chinchilla’s 65.2), whereas repeating subcorpora yielded no gain. Even at 540B, humans still beat the model on 35% of 150 BIG-bench tasks, and 540B topped the best human on just 3 of 24 BIG-bench Lite tasks.
For infrastructure and training teams, three lessons hold up cleanly: adopt MFU (not HFU) so rematerialization never disguises real token throughput; enforce bitwise determinism plus indexed batch replay so loss-spike rollbacks are reproducible (a precursor to automated training failure recovery); and measure capability jumps across fine-grained metrics before declaring “emergent” thresholds real.


